A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: how to force swf to load via being embeded in html

Hybrid View

  1. #1
    susan
    Join Date
    Jun 2005
    Location
    San Francisco
    Posts
    30

    how to force swf to load via being embeded in html

    I put up a new site that has been indexed by google in a link which points dirrectly to the .swf file rather than to the html page that has the swf embeded.

    Is there a way with actionscript to detect when that is the case and then load the html page instead?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    One option:
    You could send a var from the html to the flash. And check that var's value in the swf. If it has no value, use getURL()

    gparis

  3. #3
    susan
    Join Date
    Jun 2005
    Location
    San Francisco
    Posts
    30
    thanks!

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