Groups | Blog | Home
all groups > flash (macromedia) > april 2005 >

flash (macromedia) : Problems with frame navigation in Flash MX


LD1984
4/30/2005 12:00:00 AM
Hey everybody. I'm having a HUGE problem getting a flash animation working, and
I don't know what to do.

I have three scenes: One is an animated menu, and the other two are cartoons
(One named Mario, the other named Movie). For some reason, I cannot direct the
movie to a specific frame. The function simply doesn't work when testing or
exporting the movie. Rather then go to where I tell it to go, it goes to a
random frame in the middle of the scene.

For example: I cannot set an action in the Mario scene that controls the movie
to frame 400. When I attempt to do so, the movie moves to frame 800 and plays
from there.

Through a BUNCH of experimentation, I've found that the Mario movie works
absolutely fine with movie controls working flawlessly when I delete the menu
scene. The Movie scene works fine when I delete both the Menu scene and the
Mario scene. The menu works just fine.

I've also tried copying all of the frames into a new fla file one at a time,
having somebody import it into Flash MX 2004, then exporting it back to Flash
MX and deleting numerous items from the library to see if something is having
an effect on something else.

I made some images to help me explain the problem a bit more.

http://www.seagulldance.com/luke/flash1.JPG
In the "Mario" scene, I have an action set to frame 1 with the code
"gotoAndPlay("here");

http://www.seagulldance.com/luke/flash2.JPG
This is where the frame labeled "here" is located (about frame 230).


http://www.seagulldance.com/luke/flash3.JPG
When I test the scene, the movie doesn't take me to frame 230. It goes to
somewhere out in the 470's.

If it helps, I started animating the movie in the trial version of Flash MX
2004. The program was lagging my computer pretty baddly, so I went back to my
copy of MX.

Thanks in advance!
arseniq
4/30/2005 12:00:00 AM
try using

gotoAndPlay("marioscene", 1);

LD1984
4/30/2005 12:00:00 AM
Thanks for responding so quickly.

arseniq
4/30/2005 12:00:00 AM
can you post the fla file so i can understand your problem more clearly...

LD1984
4/30/2005 12:00:00 AM
http://www.seagulldance.com/luke/Problem Flash.zip

Here you go.

Keep in mind that I'm not trying to get the movies to play from the beginning.
I can do that just fine. I'm trying to get the movies to go to a specific frame
later on in the movie.

In the Mario scene, I'd like it to go to frame 230. The frame is labeled "HERE"

In the Movie scene, I'd like it to go to frame 140. It is labeled "HATE"

Thanks.
arseniq
4/30/2005 12:00:00 AM
i am looking to your fla again and again but everything seems working just like
you wanted...

you are directing the movie to the scenes first frame from the main menu and
then directing to the labeled frame from there, this is a bit confusing but
nothing wrong with the scripting.. I am using mx 2004 pro. i dont think so but
maybe its related with your version of flash.

Did you try to direct it like this gotoAndPlay("mario", 230) from the main menu
LD1984
4/30/2005 12:00:00 AM
The problem isn't in the menu. Go to the Mario or Movie scene and test that
scene (ctrl-enter). Either movie won't go to the scene that I'm directing it
to. I found out that everything works fine from the menu, but as I'm working on
a movie, I like to see different parts of the movie without having to watch the
entire thing (which is why I'm directing the movies to different, akward
frames).

Thanks
LD1984
4/30/2005 12:00:00 AM
Problem solved! A friend told me to put _root. before my scripting, and everything worked out.

AddThis Social Bookmark Button