Groups | Blog | Home
all groups > flash actionscript > october 2005 >

flash actionscript : Help with gotoandplay


Chris Goodiel
10/2/2005 9:19:59 PM
I am having a problem with having my movie navigate the timeline correctly. I
am pretty new to actionscripting and the solution is probably very very simple
but I can't seem to get it to work correctly.

Summary --

I have a movie that plays on a button click. This movie take up the entire
flash "stage" as you will see from the below link. I have a button in the
window that would act like a close widow button. Navigate to
http://www.art-a-tac.com/index2.html

Once the Building of the Movies stops Click "Metal" then click the first image
on the left of the screen. You should see a "window" pop up. At this point in
the timeline we are in Scene "metal" stopped on frame 72 and in movie clip
"mailbox".

For me I would think I could onRelease gotoandPlay("metal","72") <--- Code
not to standard just to give the idea what I am thinking. Basically bringing me
to the point before you would have pushed any of the buttons to bring up the
individual art window. I have messed with the code a few ways got it to work
one way but it was sort of a happy accident it just ended up moving the play
head forward from the stopped point in the movie clip "mailbox" and since there
was nothing past that point it disappeared, which I did not leave because it
was no real way to solve the problem.

I am probably make this more complex than it should. I would appreciate your
suggestions if if they are simple atleast I know at that point it was the
correct way to do it .

Thanks for your time

Chris
kglad
10/2/2005 10:10:33 PM
don't use scene information to navigate (use frame labels), use the
gotoAndPlay() method (ie, _root.gotoAndPlay() ) and make sure you use upper and
lower case carefully. you have an error in the code you show.
AddThis Social Bookmark Button