all groups > flash (macromedia) > december 2003 >
You're in the

flash (macromedia)

group:

Can't stop the Movie



Re: Can't stop the Movie Rob Solberg
12/31/2003 7:04:53 PM
flash (macromedia): On the last frame of your movie put the follwing code:

stop();

-Rob



[quoted text, click to view]
(http://www.mokillustration.com/NaviMatrix.html ? PUNCH the Hitchhiker
button) the movie plays through just fine - its a little jerky because it's
slowed down animated still frames, but it more or less does what I want for
now.... BUT IT WON'T STOP!
[quoted text, click to view]
works, because when I punch it before the movie ends, it jumps back to the
first frame. When I test it or export it to swf, it runs fine, BUT IT WON'T
STOP! I've tried everything I can figure out to do, but i can't make this
movie stop at the end.
[quoted text, click to view]
tried "Synch: Stop>Repeat>0" tried "Synch: Event>Repeat>0" BUT I JUST
CAN'T MAKE THAT MOVIE STOP.
[quoted text, click to view]

Can't stop the Movie mok
12/31/2003 10:07:07 PM
I have made a 355 Frame movie with soundtrack for insertion in my website (http://www.mokillustration.com/NaviMatrix.html ? PUNCH the Hitchhiker button) the movie plays through just fine - its a little jerky because it's slowed down animated still frames, but it more or less does what I want for now.... BUT IT WON'T STOP!

I put an invisible button at the end for replay, and I'm pretty sure that works, because when I punch it before the movie ends, it jumps back to the first frame. When I test it or export it to swf, it runs fine, BUT IT WON'T STOP! I've tried everything I can figure out to do, but i can't make this movie stop at the end.

I've tried "stop(MovieClip);" and "stop(0);" in the Properties Panel tried "Synch: Stop>Repeat>0" tried "Synch: Event>Repeat>0" BUT I JUST CAN'T MAKE THAT MOVIE STOP.

The fla file is 29.6MB.

I have the only vaguest understanding of action code.

Anybody got a clue?

Re: Can't stop the Movie pazzoboy
1/1/2004 1:43:26 AM
When you hit the hitchhiker button, does it gotoAndPlay to a certain frame, or does it playMovie(hitchhikerMovieClip) or something like that? I guess the second. If so, then you need to go to your library and edit your hitchhikerMovieClip (or whatever it's called). On its main timeline, go to the last frame and put stop();

If you're loading a Movie from an external source, then you need to open up that movie and put stop(); on the last frame of its main timeline.

Re: Can't stop the Movie mok
1/2/2004 7:39:31 PM
When you hit the hitchhiker button (which is in the navigation bar), it opens an html document in the frame next to the navbar and the movie begins to play.

Hooray - your suggestion about "stop()" worked. I had tried "stop(0)" and that didn't work.

But now the button to repeat doesn't work.

I tried creating a new button in the button timeline which appears only in the last few seconds of the movie. I used the behavior:

on (release) {
//Movieclip GotoAndPlay Behavior
Octet.gotoAndPlay("1");
//End Behavior
}
where Octet is the name of the movieclip

But now the movie will not repeat on command.

Although the help files declare that the use of the Behaviors Panel allows you to make scripts without knowing the scripting language, that is utterly not true. It took me a while to figure out that (click) was illegal action, even though that was the recommended action in the example. (click) always returns an error in the Syntax checker, whereas if a (down) or (release) is used, no error is returned.

I am trying very hard to learn this program, but MX Suite came with no manuals and, while there is online help, it is not very clear and the learning curve is very, very steep.

Re: Can't stop the Movie pazzoboy
1/2/2004 8:29:03 PM
I think using gotoAndPlay("1") and gotoAndPlay(1) are two different things to flash. With quotes causes flash to look for a frame "named" 1.


Re: Can't stop the Movie mok
1/2/2004 8:48:22 PM
Quotes or no quotes, it still don't repeat on demand.

Re: Can't stop the Movie pazzoboy
1/3/2004 1:51:12 AM
zip and upload the fla so we can take a look.

Re: Can't stop the Movie mok
1/5/2004 4:49:22 PM
Well... after trying to intuit for hours, I redid a tutorial on buttons and figured it out. You can't just attribute a behavior to a button... it has to be done in a certain particular way!. It has to be done while the button itself is selected in a mode I don't quite understand (but can replicate). Additionally, the behavior doesn't work if it is applied to the Keyframe. I believe that some thoughtful indexing and code writing, with more of a Mac and less of a PC attitude, could make this function (and probably many others) less of a sleight of hand and more user-friendly.

But then - what do I know? I just want to use the software, not obsess about it. Thanks for your help. You really got me to thinking and re-thinking things and I believe you were key in helping me solve the problems.

But I must insist that at this point the "dictionary" for defining arcane Flash MX terms and behaviors is written using equally arcane definitions.

AddThis Social Bookmark Button