Hi,

Which version of Flash are you using? I tried this on Flash CS3 and it
worked out seamlessly.

package {

        import flash.display.Sprite;
        import flash.system.Capabilities;

        public class Test extends Sprite {
                public function Test() {
                }
                
                public static function getInfo() {
                        return(Capabilities.version);
                }
        }
}

.fla
trace(Test.getInfo());

Cheers,
Petro

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Dave Mennenoh
> Sent: Friday, April 27, 2007 6:13 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Random Error
> 
> Once in a while, when compiling, I get an error from one of my
classes. The
> error is something like: 'property System not found', and it is thrown
from
> this function:
> 
> public static function getPlayerVersion()
> {
>   return(System.capabilities.version);
>  }
> 
> 
> I only see the error once out of 20 compiles or so... thoughts?
> 
> 
> Dave -
> Head Developer
> http://www.blurredistinction.com
> Adobe Community Expert
> http://www.adobe.com/communities/experts/
> 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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