This content has been marked as final. Show 15 replies
your collectButton has incorrect rollOut code.
Oh my god - I have been looking at this for hours... THANKYOU!!
Now for the next problem....
I have now added the following function to take you to the craftsmanship page.
The only difference on that page is that I have removed the "craftsmanship" button, and replaced it with a static text title - it seems to go there, but does not stop (I have a stop action on the craftsmanship frame)
copy and paste the code from your "crafsmanship" frame.
it just has a stop action a few frames along, as I want to do an animation when it goes to that page
do I need to repeat all the other functions again on each page it goes to?
your craftButton will no longer function if your timeline goes to a frame where the craftButton no longer exists. even if you return to a frame where it does exist the code you defined for it will be lost unless it's re-executed.
Ok - so now I know that each time I want to re-execute an mcButton, I have to recall the function - yeah?
The timeline is still not stopping, or at least, it does not appear to be, because the craftBUTTON is still there somehow...?
See the code now:
your going to a frame on your main timeline that is a keyframe and doesn't have the craftButton on-stage and the craftButton is not created with actionscript? if yes to both post a link to your fla and specify the location of the problems.
Boy am I glad to see you - how dare you have a life ;)
Thankyou so much for your excellent help so far! The fla can be downloaded from here - yes to both of those questions.
The main thing I am trying to do at this stage is get the time line to onRelease gotoAndPlay ("craftsmanship"), which it kind of does, because you can see the static title, but then when you rollover anything else it somehow moves to somewhere else on the timeline...
Weird - I am not explaining it well, but you will see hopefully when you see the fla
Have been playing around - still no joy :(
Have uploaded a newer fla here:
The problem swf can be viewed here:
There is another movie loading into the collections section which is incomplete, and I am having some troubles with that too - I want it to scroll only on RollOver, and as the mouse moves more up it scrolls faster or down it scrolls down etc... But that is another problem which I am sure I will sort out in the next little while...
Thanks to anyone who can help out! I'm off to bed...
when you use swapDepths() you're movieclip is attached to the timeline via actionscript and must be removed using removeMovieClip().
but in your situation i can't see any reason to use swapDepths(). eliminate that part of the code you should have less trouble.
Hi again kglad,
Thankyou! That seems to have helped - and in fact there was a biut of messy coding, and I discovered that I had left out a few semi-colons... :\
The buttons are looking a lot better now, and doing what they are meant to do, except it seems as if they are still losing some alpha each time you rollover and rollout, until you click on a new one, then they are reset to the 80%.
Can you think of a way to rectify this?
I have reloaded the fla too - can be found here --
and the swf is still at the same url
Thanks once again! You have saved me a lot of heart ache so far!
because flash doesn't store movieclip alphas as an integer, you may run into problems increasing and decreasing your alpha by 20 because of repeated round-offs.
to remedy, you can either set the alpha to 80 and 100 or you can use a variable to increment and decrement by 20 (flash won't round a variable) and then set your button movieclip's _alpha equal to that variable.
Such a simple remedy! That is wonderful - thankyou so much - I think I will start a new thread for the next problem...
Thanks so much for your help!