A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: What was the code?

  1. #1
    Member
    Join Date
    Dec 2002
    Location
    Alabama
    Posts
    36

    What was the code?

    I seem to remember there was a code that you could put in the first frame of your clip that upon opening the swf file the code would insure shockwave or Macromedia Flash Player was installed so client could view the clip. Am I imagining this or no? I know there is html code for html pages for shock wave in this format.

    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You can use getVersion();

    v = getVersion();

    ..will get the the OS and veriosn of Flashplayer into variable v.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Member
    Join Date
    Dec 2002
    Location
    Alabama
    Posts
    36
    I will try that, will that actually check the version or check and install the latest?

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    It will only check the version. But you can write an if statement to make it go to a download page if the number is to low.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Member
    Join Date
    Dec 2002
    Location
    Alabama
    Posts
    36
    OK, then that won't work, the file is named the standard index.swf and I can't change the name. Its version is decided by modified date.

  6. #6
    Senior Member
    Join Date
    Sep 2001
    Posts
    178
    No, getVersion() gets the Version of the Flash Player that your user has, not the version that the .swf was made. You don't have to change the name of the .swf, just check the version and make sure that it is at least 6, then if it isn't, open a popup window to http://www.macromedia.com/downloads/
    Duct Tape is like The Force: It has a Light Side and a Dark Side and it binds the galaxy together.

  7. #7
    Member
    Join Date
    Dec 2002
    Location
    Alabama
    Posts
    36
    Now that sounds ok, could you please show me the code?

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