View Full Version : A few Flash questions

01-15-2006, 06:55 AM
1. How can I pass variables to Flash, for example, something like movie.swf?var1=something. -ANSWERED-

2. Is it possible to stop a Flash movie on a particular frame? Like stop on frame 44.

3. Can I use the current frame number as a variable?

01-16-2006, 02:21 PM
Yes it is possible to stop the movie on a given frame.

I generally created an "Actions" layer to keep this kind of stuff on.

On layer 44 create a new keyframe. Click on that keyframe and go to your actions. Enter in


This will stop it until you set something to make it continue.

01-16-2006, 06:33 PM
I figured it all out myself since I'm impatient. But what I meant was I wanted it to stop on a certain frame, but I wouldn't know which frame. It would be like "movie.swf?stop_on=44" and then stop on that frame.

01-30-2006, 07:21 PM
Yes you can use a _global for that ...

one Frame 1 in the actions layer

onEnterFrame = function(){
if(_global.frameToStop == _root._currentframe){
delete this.onEnterFrame

Then all you do is set what frame to stop on with a

_global.frameToStop = 38 // This will stop _root on frame 38

I have attached an example of how ti works.

Did you need it to read from the URL?

Or will a run time variable work?