-
passing variables?
Hey,
I have an animation I want to play then send you to another page...how can I pass what page I want the flash animation to go to after the tween?
EX:
Home button, Members button, link button
When you click members...a little banner comes out via a tween. When I click one of the other 2 buttons(home, link) I want the tween to go in reverse, and put the user at the page they selected. Know what I mean?
Thanks,
Josh
-
Senior Member
Just put a getURL action in the last frame of the tween..
getURL("myPage.html");
For the backwards tween make a new movieclip and reverse the frames.
-
Hey,
but the buttons link to a differant frame in my swf.so how do I let the lat part of the tween know where to send you to be on the home page when u click home instead of the links page?
Thanks,
Josh
-
Senior Member
If you are using the same tween for everything you can just set a variable with the buttons that the action in the last frame of the tween will perform. Like.....
on(release){
whereToGo="membersPage";
myTweenMC.play();
}
... at last frame of tween MC....
_root.gotoAndPlay(_root.whereToGo);
This will work if you have a framelabel in the main timeline called memberspage, for instance.
-
THANKS!
Josh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|