Hi, I want to use LocalConnection to send Data between to Flex-Windows.
I tried it with these two Files: listener.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="CC();"> <mx:Script> <![CDATA[ // Code in the receiving movie public var receivingLC:LocalConnection; private function CC():Void { receivingLC = new LocalConnection(); receivingLC.methodToExecute = function() { myText.text="ok"; } receivingLC.allowDomain = function() { // Any domain can invoke methods on this LocalConnection object return true; } receivingLC.connect("lc_name"); } ]]> </mx:Script> <mx:Text id="myText" text="----"/> </mx:Application> ---------------------------------------------------------------------- sender.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ public var sendingLC:LocalConnection; public function ButtonClicked():Void { sendingLC = new LocalConnection(); sendingLC.send("lc_name", "methodToExecute") ; } ]]> </mx:Script> <mx:Button click="ButtonClicked"/> </mx:Application> First I opened listener.mxml in one browser, then I opened sender.mxml in another broswer. After clicking on the button in sender.mxml nothing happened. Has anybody an idea, why it doesn't work? best regards reini ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12haek7ii/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124288353/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/