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 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2004
    Location
    UK
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading Flash GET variables

    Right, I'm sure this is very simple but I'm not sure how to do it.

    I want to load a flash file e.g. "file.swf" but call a variable when loading the file e.g. "file.swf?number=2" and then display that number in flash.

  • #2
    New Coder
    Join Date
    Mar 2005
    Location
    Dallas, TX
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We need a bit more information to give you appropriate help. Are you talking about loading this variable from one flash movie into another? If so, you could just load the movie ( loadMovieNum("file.swf", 1, POST); ) and have a conditional statement on the first frame of the newly loaded "file.swf," which would look something like this:

    Code:
    if(_level0.number==2){
         DoSomething
    }
    This is assuming that the "number" variable exists on level 0 of your original movie (hence, the _level0).

    Hope this helps!

    R y a n M e r r i t t
    Multimedia/Web Designer

    -------------------------------
    M E R R I T T M E D I A


  •  

    Posting Permissions

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