actionscript-3

calling a Flash ExternalInterface with JavaScript

空扰寡人 提交于 2019-12-18 09:22:24
问题 I'm trying to call a function declared with ExternalInterface in a Flash swf, using JavaScript. It worked once, but all of a sudden, it stopped working. I have a debug version of the Flash Player, but no errors occur in Flash. Not even a "Security Sandbox Error" or something. The only error I get is the following error in JavaScript Error: Error in Actionscript. Use a try/catch block to find error. I'm using AS3, exporting for Flash Player 10 and testing on Firefox 3/Safari 4, on a Mac. Any

Flash APIs for Android Platform

可紊 提交于 2019-12-18 09:20:46
问题 My usage is very limited. All i need to do is to invoke the soft keyboard from within my flash application. Is there anything I can do, without using a textfield or any such editable controls, which will pop up the keyboard. Thanks 回答1: So basically you need to have some sort of object that is interactive (that is, a textfield or something similar) to call up the on screen keyboard. This is probably because flash needs to set the focus for typing to that object. The object needs to be of type

Flex List Scroll Speed With Mouse Wheel

删除回忆录丶 提交于 2019-12-18 09:19:17
问题 I have a custom class that extends List which I am using as a container. However, the scroll speed is too fast on the mouse wheel, as in it scrolls loads even if you only move the wheel a tiny bit. I tried adding an event listener to my list for MouseEvent.MOUSE_WHEEL and setting the value of event.delta but this has had no effect. Does anyone know how I can make it slower? My custom class is nothing special, I just created it so I could have a different itemRenders for different item types.

flash SecurityError: Error #2028: Local-with-filesystem SWF file

99封情书 提交于 2019-12-18 09:04:38
问题 hi my flash app is getting error 2028 when trying to communicate with the internet works fine with flash ide. but when I run swf file with flash player first i get a warning about unsafe operation then I continue and get SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users.... Error I know how to solve this in local but I need it to work everywhere not just in my local I will not upload my swf to any server I just want it to copy it in a flash drive and work anywhere I

Annoying Error #2048: Security sandbox violation from localhost

孤者浪人 提交于 2019-12-18 09:02:13
问题 This is my crossdomain.xml that I put in the same folder of my Web.config : <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*" secure="false" /> <allow-http-request-headers-from domain="*" headers="*" /> </cross-domain-policy> Although I can load using Security.loadPolicyFile("http://localhost:52090/crossdomain.xml") .

Load JSON Faster in Flex 4

心不动则不痛 提交于 2019-12-18 08:59:13
问题 I have a Flex application,I am loading a JSON file with more than 40,000 items. Does Flex provide a way to load this file faster? 回答1: Target Flash Player 11 and use the new native JSON parse: var obj:Object = JSON.parse( value ); http://www.skyript.com/2011/07/json-parsingencoding-with-native-parser.html 来源: https://stackoverflow.com/questions/7816784/load-json-faster-in-flex-4

URLRequest/URLLoader auto-converting POST request to GET

依然范特西╮ 提交于 2019-12-18 08:31:38
问题 When I execute the following code: var urlRequest:URLRequest = new URLRequest("http://somehost/with/some/path?andsomequerystring=true"); urlRequest.method = 'POST'; var urlLoader:URLLoader = new URLLoader(urlRequest); urlLoader.addEventListener(Event.COMPLETE, function(event:Event):void{ trace('sweet'); }); It turns my explicit POST request to GET due to the presence of the querystring. If I remove the querystring (and serialize as part of the POST body), it successfully makes the

AS3 Stop external swf

删除回忆录丶 提交于 2019-12-18 07:57:45
问题 Hi I'm loading an external swf into a MovieClip, and I want it to stop until I choose to play. Currently it plays upon loading immediately. var mc:MovieClip; var swfLoader:Loader = new Loader(); swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, eventLoaded); var request:URLRequest; request = new URLRequest("external.swf"); swfLoader.load (request); function eventLoaded(e:Event): void { mc = e.target.content as MovieClip; // does not stop the clip mc.Stop (); } So I tried adding a

AS3 Stop external swf

爱⌒轻易说出口 提交于 2019-12-18 07:56:46
问题 Hi I'm loading an external swf into a MovieClip, and I want it to stop until I choose to play. Currently it plays upon loading immediately. var mc:MovieClip; var swfLoader:Loader = new Loader(); swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, eventLoaded); var request:URLRequest; request = new URLRequest("external.swf"); swfLoader.load (request); function eventLoaded(e:Event): void { mc = e.target.content as MovieClip; // does not stop the clip mc.Stop (); } So I tried adding a

AS3 Stop external swf

爱⌒轻易说出口 提交于 2019-12-18 07:56:14
问题 Hi I'm loading an external swf into a MovieClip, and I want it to stop until I choose to play. Currently it plays upon loading immediately. var mc:MovieClip; var swfLoader:Loader = new Loader(); swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, eventLoaded); var request:URLRequest; request = new URLRequest("external.swf"); swfLoader.load (request); function eventLoaded(e:Event): void { mc = e.target.content as MovieClip; // does not stop the clip mc.Stop (); } So I tried adding a