This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2006 > Need Help navigating from scene to scene using Movie





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need Help navigating from scene to scene using Movie
pdcraft

2006-03-26, 10:29 pm

I am relatively new to Flash 8 and need some help.

First, Flash MX has a "Normal mode" within the Actions Panel which makes
things easier for a Novice like me..does Flash8?

Next, I am designing a website that has animated MovieClips with ActionScript
assigned to each for rollOver and rollOut events.
I originally created one MovieClip with dynamic text on a layer in it and then
copied that MovieClip 3 other times to the stage.
After that, I assigned Instance names for each of the copied MovieClips i.e.
b1, b2, b3, b4.
And wrote the following code in the actions layer:

b1.onRollOver = over;
b1.onRollOut = out;
b1.buttText.buttonText.text = "Services";

b2.onRollOver = over;
b2.onRollOut = out;
b2.buttText.buttonText.text = "About Us";

b3.onRollOver = over;
b3.onRollOut = out;
b3.buttText.buttonText.text = "Contact Us";

b4.onRollOver = over;
b4.onRollOut = out;
b4.buttText.buttonText.text = "Request";

function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(4);
}

Up to this point I have it working nicely.

What I need to do is have the user click on one of these navigators and then
redirected them to a different scene cooresponding with that button within the
movie. What do I need to do?

Please help.

Thx.

pdcraft

dsartain18

2006-03-27, 3:40 am

For the first question...If you go to Windows>>Behaviors in flash 8, it gives
some basic ActionScript options to select from, assuming that the object
selected can have AS applied to it....such as a button, movie clip, or some
other kind of symbol...as for the second question....in the main AS editor, if
you don't have script assist on, there is a button that looks like a plus sign
if you select Global Functions>>TimeLine Control>>gotoAndplay that should give
you a way to navigate to the appropriate scene...

b4
on(press){
//gotoANDplay ("scene x", frame)
gotoANDplay("scene 4", 1)
}

or something to that effect should allow you to jump to the 1st frame of the
4th scene...if my syntax is wrong, just look in the help file...hope this helps!

Wolf van Ween

2006-03-27, 6:44 pm

Can I just add that this is thread #umpteen this week on scene navigation. People please please please use the search function before posting.
Thank you
Wolf
pdcraft

2006-03-27, 6:44 pm

thank you. this worked.


p.s. sorry wolf, I will next time :)
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews