Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts

    A few Flash questions

    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?
    Last edited by Digger3000; 01-15-2006 at 06:11 AM.
    If you're reading this, it may already be too late!

  • #2
    Registered User
    Join Date
    Jan 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    stop():

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

  • #3
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.
    If you're reading this, it may already be too late!

  • #4
    Regular Coder
    Join Date
    Apr 2005
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes you can use a _global for that ...

    one Frame 1 in the actions layer

    Code:
    onEnterFrame = function(){
    if(_global.frameToStop == _root._currentframe){
     _root.stop;
    delete this.onEnterFrame
    }
    Then all you do is set what frame to stop on with a

    Code:
    _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?
    Attached Files Attached Files


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •