I'd use SWFLoader to load SWFs.  If the SWF is AS2, you can't get clicks and 
let it get clicks.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Guillermo Villasana
Sent: Tuesday, June 24, 2008 10:48 AM
To: [email protected]
Subject: Re: [flexcoders] Problem with click event and Image component

 

Thanks Alex, I had checked the archives, but I just didn't know how to 
look it for, now with this clue I have been able to make it work, but 
now, I have the following problem. I am setting a flash as a button, 
this flash has an action when the mouse is over it, but with the 
mouseEnables/mouseChildren the action does not execute.
Thanks again

Alex Harui escribió:
> 
> 
> Check the archives. I think you have to set some 
> mouseEnabled/mouseChildren flag.
> 
> 
> 
> ----------------------------------------------------------
> 
> *From:* [email protected] <mailto:flexcoders%40yahoogroups.com>  
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] 
> *On Behalf Of *Guillermo Villasana
> *Sent:* Tuesday, June 24, 2008 8:35 AM
> *To:* [email protected] <mailto:flexcoders%40yahoogroups.com> 
> *Subject:* [flexcoders] Problem with click event and Image component
> 
> 
> 
> Hello guys, I am having problems adding a click event to an image, I
> don't know why it just doesn't work.
> 
> I have an app something like this
> <mx:Application ...>
> <mycomponent:myCanvas/>
> </mx:Application>
> 
> in myCanvas component I have
> <mx:Canvas ...>
> <mx:Script>
> <![CDATA[
> ...
> import flash.events.MouseEvent;
> 
> public function myClickEvent(event:MouseEvent):void
> {
> do some stuff
> }
> 
> public function initApp():void
> {
> do some stuff
> img2.addEventListener(MouseEvent.CLICK,myClickEvent,false,0,true);
> }
> ]]>
> </mx:Script>
> <mx:Canvas ...>
> other components
> <mx:Image id='img2'/>
> </mx:Canvas>
> </mx:Canvas>
> 
> I don't know why the img2 doesn't do the click event
> any thoughts
> Thanks
> 
> 

 

Reply via email to