A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: html to flash timeline label

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212

    html to flash timeline label

    i have a flash site that has to load 3rd party html content. so the way im doing it having a button that goes to and html page with my header in the top frame and the 3rd party content in the main frame. I want to make it so when they click on the buttons in my header it not only goes to the flash site but also the correct label. Is this possible?

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    you could put a variable in the URL string and when your flash movie loads it will read it and go to the correct label.

    example:

    the button in the header got to:
    Code:
    on(press) {
        getURL("http://www.yourflashsite.com");
    }
    you want it to be something like:
    Code:
    on(press) {
        getURL("http://www.yourflashsite.com?frameName=whatever");
    }
    in your flash movie/page you'll have to make some changes in the embed code alittle (to be able to read the string var)....and then inside the flash movie you'd have to make something like an 'IF' statement that says if (frameName==whatever) { //do this;}

    there is link in my footer called urlVar > flash 1 2 thats what you'll want to do if this solution seems correct for you.

  3. #3
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212
    thanks for ur help whispers. ive looked at the other post but im still having troube (im a huge rook) do u have the .fla file for this example u made? http://www.dmstudios.net/urlTest/url...?frameNumber=2
    i usally learn best by taking things apart and seeign how they work

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    sure... I'll post the .fla.. however the code yoru looking for to DO this..is the HTML source code (its basically some extra code in the object embed code that lets you grab vars from the URL... these will ALWAYS be available to you on the _root timeline.

    the only AS I have in the .fla is an "IF" statement..

    if (frameNumber == 2) {
    gotoAndStop(2);
    }


    anyways..

    www.dmstudios.net/urlTest/urlTest.zip

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