I ve a Flex application which loads a Flash swf via SWF loader; the Flash swf is in AS3. the flash swf has code to dispatchEvent a Text Event
闪电代码:
var re:TextEvent = 新的文本Event(TextEvent.TEXT_INPUT,true,true);
弹性代码:
<mx:SWFLoader source="menu.swf" id="mnu" complete="menuLoaded(event)" />
private var mySwfMve:MovieClip;
function menuLoaded(event:Event): void {
mySwfMve = mnu.content as MovieClip;
addEventListener(Event.ENTER_FRAME,enterFrameHandler);
mySwfMve.addEventListener(TextEvent.TEXT_INPUT,textInputEventHandler);
}
private function enterFrameHandler(eft:Event):void {
trace(eft.toString()); /* This works fine , I can see enter frame events in Flex builder debug trace */
}
private function textInputEventHandler(tme:TextEvent):void {
trace(tme.toString());/* NOT WORKING, I ve a dispatchEvent in Flash Swf
}
我看不出从闪电中发来的任何文本通风。 他们没有见到 de。 然而,我可以抓住进入框架的活动。
任何想法?