A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: odd question: using URL to specify a movie clip

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    21

    odd question: using URL to specify a movie clip

    Is it possible, with AS3, to set up an URL string that will open a Flash page with a particular movie clip showing, rather than having the Flash just start at the beginning of the main movie?

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    If you use php and the url to lead to the php page has a variable at the end

    http://xxxx.com/yyy.php?frameVar=3

    Then in the php page with your movie you get the variable value

    $frameVar = $_GET['frameVar'];

    In your movie in the php page you add Flashvars with the variable

    'movie', 'myMovie?myFrame=$frameVar',

    Finally you need a line in your movie to load parameters to get the Flashvars

    var myFrame:int = int(root.loaderInfo.parameters.myFrame);

    gotoAndStop(myFrame);
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    I believe this does what you're looking for http://www.asual.com/swfaddress/

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center