A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How can swf check what page its loading on an switch to the correct page.

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    1

    How can swf check what page its loading on an switch to the correct page.

    Google has indexed my .swf file, so it’s loading by itself in the browser.
    ( http://example.com/FL_map_page.swf )

    I need for the .swf to check to see if it is loaded on the .asp page and if not switch to the correct page.
    ( http://example.com/Florida.asp)

    I am don't know much scripting so any help would be great....thx

  2. #2
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    Hm. My first instinct would be to rename the .swf, create an .htaccess redirect for the old filename to take people back to your html page, and then add the new .swf filename to your robots file so google passes it over...
    There are other ways, but that's probably the quickest.

  3. #3
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    You can use

    if (flashvars!= yourValue)
    {
    getURL{"http://yoursite.com/link","");
    }
    http://www.nunomira.com/tutorials/lo...s.php#htmltags



    And then assign flashvars in your object embed.

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