SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hyperlink to a scene?

    Hiya, is there a way that you can hyperlink to a scene in a flash movie?

    tia

    regards
    garz

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool, thanks those should get me on track..

    regards
    garz

  4. #4
    SitePoint Zealot webQS's Avatar
    Join Date
    Oct 2002
    Location
    Sydney : Australia
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use asfunction...

    <a href=\"asfunction:doSceneMove,3\">go to scene 3</a>

    This will access an actionscript function on the same timeline called doSceneMove

    Code:
    function doSceneMove(sceneNum)
    {
    gotoAndStop(sceneNum,1);
    }
    If you want to jump to a certain frame in a certain scene
    <a href=\"asfunction:doSceneMove,3|4\">go to scene 3 frame 4</a>
    Code:
    function doSceneMove(params)
    {
    gotoArray = params.split("|");
    gotoAndStop(gotoArray[0],gotoArray[1]);
    }
    HTH
    james


    Edit
    ---
    This is for inside Flash... if you want to hyperlink from outside use javascript, the Flash player 6 "flashVars" param element or append the scene number required to the swf filename (e.g index.swf?sceneNum=2). Then gotoAndStop(_root.sceneNum, 1);
    Last edited by webQS; Mar 31, 2003 at 18:22.

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah once inside I don't care much its a flash radio. so they will click on a certain station and be dropped into thats scene. thanks james., I hope it'll work.

    regards
    garz


Bookmarks

Posting Permissions

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