Simple test

Hey guys can someone do me a fav and download the attached file and publish and see if the square will play.
I think i’m going mad. I am in the middle of a project and I think my flash MX is bugging out so I need someone to check this file.
Basically it has a mc with a shape tween for about 30 frames stop(); at the start and stop(); at the end of the tween.

on the first frame of the _root timeline I have simply


sq.gotoAndPlay(1);

For some reason my gotoAndPlay();
method will only work when it is called from a button. or if it is given a one frame on the _root level to play.
Please try it so I am not going mad.
Did it always need this or is this something I am just finding out after 4 years. Or is my flash bugging out.
Thanks

ehmm … remove the stop() action ??

you’re telling the mc to play from the main timeline but also telling the mc to stop from its timeline? me don’t understand :eye: :stuck_out_tongue:

This was just a test. In my working file I have an animation that is about 30 frames long with a stop at the start and at the end. Now when the movie starts it will be loading external files. So I want my mc… Animation to play when you play the movie but when the external files loaded then I want to send the animation in the sq.mc back to stop on frame 1 now if there is no stop() there it won’t stop. I’m pretty sure I have done this before that’s why I thought my flash was bugging out.

If not then so what you are saying is if you have a stop() on a mc when you load the over all movie then it won’t play with the actionScript
targetMC.gotoAndPlay(1); if there is a stop sign on it.
Obviously this is just for when you load the movie.

**
Then please tell me why it will targetMC.gotoAndStop(x);
X being whatever number you want.**

ok … i think your problem is:

since you’re telling the mc to gotoAndPlay(1) and there’s a stop() action in that frame … the stop() is being executed everytime the _root tell it to play

try changing it to gotoAndPlay(2)

No tried that no joy.
Try the file on your flash MX.
I think it’s something to do with mine. I found away around it by giving another frame to the root timeline and moving all my code in there. So when you play the movie it plays through the first key frame then goes to the next key frame where it does recognize my sq.gotoAndPlay(1);
Now this is a crap work around because the file I am working on has about 40 functions and all that shi***t has to be moved now to the second frame.
That’s why I asked for the favor of checking to see if anyone could try my fla. File on their machine and publish it thought their flash just to make sure it’s not my flash bugging out.
I:-)

well … at leats you know it’s not your flash :stuck_out_tongue:

sorry if i couldn’t help more but i’m a little busy with my entry for a battle :-\

well the thing is I don’t really know if it’s my flash or not because you didn’t say or not if you tried to download the file and test it.

I totaly understand if you don’t have the time. thanks anyway

Can someone do this 2 minute test for me.

Very simple download the file.

Publish the fla with your flash and see if the mc plays.

If it does then I do have a problem with my flash. If it doesn’t then MX has a problem with registering the gotoAndPlay() method when you first play the movie.

oh sorry … :crazy:

nope … it doesn’t play !!

Thanks jesu*ss that is the strangest thing.
So who is the MX king out there that can answer why this is.


So when you first play a flash movie it needs that extra keyframe time to register the gotoAndPlay(); method 
is this true.

my last post in this thread … i really need to finish :slight_smile:

i guess that’s because the gotoAndPlay(1) is executed before the stop() … so the mc executes the last action

try changing the stop() to play() and the gotoAndPlay() to stop()
and tell me what happens …

Well you learn something new every day. I guess your right. when I did your test. placing a play() on the first frame of the mc
then placing on the _root timeline
mc.stop();
It played.
Thanks… Maybe everyone already new this or maybe this turned out to be a good test .

ok i lied !! that wasn’t my last post :stuck_out_tongue:

i’m pretty sure that’s the reason … but as always … i could be wrong

[size=1]**PS: **this forum is sooo addictive !! help ![/size]

Thanks maybe we can find a few more people to back up this theory.
:hair: