If you load a Flash 9 SWF into _level0 the SWF won't be contained in the 
Flash 8 (or previous) SWF, it will be the main movie.

So, technically you could use a SWF published for a previous version and 
detect the version of Flash Player installed, then display a message or 
load the Flash 9 SWF into _level0 (loadMovieNum).

However, if the user doesn't have the Flash Player installed at all you'll 
have to use another solution anyhow. SWFObject or another would be a 
better option.


Derek Vadneau

----- Original Message ----- 
From: Joe Cutting
To: [email protected]
Sent: Wednesday, May 23, 2007 10:48 AM
Subject: SPAM-LOW: [Flashcoders] Detect Flash version in AS3


Hello,
   I'm building a web project in AS3 using Flash CS3. Originally my idea 
was
that the swf would do a version check at the start of the program and
if the user wasn't running
Flash 9 they would be redirected to download the upgrade.
Now, I've done some thinking about this and realised that if the user
isn't running Flash 9 then they
won't be able to run the swf at all so it wouldn't be able to run the
version check.
Can anyone confirm that this is the case? If so it looks like that
the only ways to check if
users can run AS3 swfs are:
- use some kind of javascript like SWF Object
- use another version detection swf written in AS2. My understanding
is that this would have to call the
AS3 swf rather than wrapping it.

I'd be interested to know how other people have got on with this issue.

Cheers

Joe


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to