package{
import flash.display.Sprite;
import flash.system.Capabilities;
public class Main extends Sprite{
public function Main(){
trace(flash.system.Capabilities.screenResolutionX);
trace(flash.system.Capabilities.screenResolutionY);
}
}
}
प्रेम watch out, this might be userful to us in detecting the video resolution & laying out accordingly.import flash.display.Sprite;
import flash.system.Capabilities;
public class Main extends Sprite{
public function Main(){
trace(flash.system.Capabilities.screenResolutionX);
trace(flash.system.Capabilities.screenResolutionY);
}
}
}
more useful samples like this can be found here - http://www.java2s.com/Code/Flash-Flex-ActionScript/CatalogFlash-Flex-ActionScript.htm
No comments:
Post a Comment