天生我才必有用

使用Flex获取Flash player的版本信息

Posted in Flex, Flash & AS    作者:Ray    2008年三月17日

如何使用Flex来获取Flash player的信息呢:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Label text="Flash Player Version: {flash.system.Capabilities.version},
    Debug Player: {flash.system.Capabilities.isDebugger}"/>
</mx:Application>

以上例子选自”O’Reilly Press – Programming Flex2

运行结果: 

[flash http://ray.imiddle.net/flash/check_player.swf w=300 h=200]

Leave a Reply