flash on 2011-2-3 tarot forked:0favorite:0lines:30license : MIT License modified : 2011-02-03 21:46:13 Embed Tweet <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:layout> <s:BasicLayout/> </s:layout> <fx:Script> <![CDATA[ import mx.controls.Alert; private function hoge():void { try { var result:* = ExternalInterface.call("safdsaaaa"); Alert.show("result: " + result); } catch (error:SecurityError) { Alert.show(error.toString()); } catch (error:Error) { Alert.show(error.toString()); } } ]]> </fx:Script> <s:Button label="button" click="hoge()"/> </s:Application> Code Fullscreen Preview Fullscreen