Created
April 23, 2010 02:52
-
-
Save sugamasao/376107 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> | |
<mx:Button label="hgoehoge" click="click(event)" /> | |
<mx:Script> | |
<![CDATA[ | |
private function click(e:Event):void { | |
if(ExternalInterface.available) { | |
var location:Object = ExternalInterface.call("function(){return window.location;}"); | |
trace(location) | |
} | |
} | |
]]> | |
</mx:Script> | |
</mx:Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment