Quick Flash help
- Started
- Last post
- 5 Responses
- sajets_v20
Problem surfaced again.
What i want to do is to have bunch of buttons in one frame with movie clip above them. In that movieclip i have animation that starts invisible craphic tweened to solid and then again to transparent. Sort of flash like anim. I want to add action to the frame where my moviclip turns all solid to tell to which frame to go.
I thought i use variable on buttons. Lets call it "destination".
So when i press button that should take me to frame 10 it first changes to destination variable to certain number. Lets say 10.
No how can use that variable to make accepteable to gotoAndStop(); action? Can i at all?
- sajets_v20
simply put:
can i use variable to define which frame gotoAndStop(); goes?
If yes, how?
- cram0
on(release){
mask.destination = 12;
mask.play();
}in the mask:
_parent.gotoAndStop(destination...
in your work, the mask was not accessing the variable destination because the var was set on the buttons timeline. what i did was to set the variable on the mask's timeline... good luck.
- sajets_v20
Of fucking course...
thanks man :)
- PatDC0
Hi dude,
Not to sure from your explanation exactly what you are trying to do but:
- have you declared this destination variable at the start of your clip?
- Add some traces to your movie to help debug it
- try using _root or even _level0 in your mask movie clip OR if that does not work maybe try using listeners - I'll try to find you an example...