localconnection

(as3) Sync data between 3 or more identical flash objects on the same page

放肆的年华 提交于 2019-12-24 08:29:12
问题 I have asked something similar before, but never go to the solution I need. So am starting a new stack to not confuse my issues, and to make a little clearer. What I need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each one queries the timeserver, and gets the time, which works great. BUT what I want to achieve is the first one to load to be the only one that sync's with the time

Why do MovieClipLoader events not fire when loaded into an AS3 wrapper?

被刻印的时光 ゝ 提交于 2019-12-13 02:24:54
问题 While trying to answer this question: Call to an AS2 function from the AS3 container I have come across a roadblock. The setup is an AS3 SWF which loads an AS2 SWF, which in turn loads another AS2 SWF. Communication between the AS3 SWF and the parent AS2 SWF is achieved through localConnection. child_as2.swf - This is a very simple timeline animation of a box moving across the screen with the following code on frame 1: stop(); function playMovie() { play(); } parent_as2.swf - This is the

Error #2084-The AMF Encoding of the arguments cannot exceed 40K

瘦欲@ 提交于 2019-12-10 18:18:13
问题 In my application I am using localConnection object for communication b/w Flex 3 and Flex 4 swfs. But when the size of the arguments ( ArrayCollection ) exceeds certain limit , I am getting following exception:- Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback readyToUpdate. error=ArgumentError: Error #2084: The AMF encoding of the arguments cannot exceed 40K. Any inputs on same will be highly appreciated. 回答1: There's a

Actionscript Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access

点点圈 提交于 2019-11-28 09:48:08
问题 When running flash components that use localConnection within an HTML container, I get the following error in a popup box (flash player is the debug version): Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: 127.0.0.1 cannot access 回答1: Changing the page's URL from http://127.0.0.1/ to http://localhost/ solved the problem. 回答2: // add this line after the instanciation aof the receiver file receiveSwf_lc.allowDomain("localhost"); /

As3 - LocalConnection between SWF and AIR desktop app

扶醉桌前 提交于 2019-11-28 06:21:09
问题 I need to send a text from an embedded SWF (Web browser) to an AIR based desktop app. I did everything like explained in the documentation but I can't establish a connection. Does anybody see what I did wrong or can point me to a working example? From the SWF: function startConnection(e:Event=null):void { var localConnection:LocalConnection localConnection = new LocalConnection(); localConnection.client = this; localConnection.allowDomain("app#com.example.desktop"); var textToSend = "Hello