THANK YOU!! 2010/5/2 Cor <[email protected]>: > btnAbout.mouseChildren = false; > > HTH > Cor > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of natalia > Vikhtinskaya > Sent: zondag 2 mei 2010 14:03 > To: Flash Coders List > Subject: [Flashcoders] Event Listener on MC with dynamic text field > > Hi > I convert some AS2 code to AS3 and found one thing that works well for > AS2 but I cannot find solution for AS3 > For example: > There is mc btnAbout on the stage with dynamic text field > Code in frame > > btnAbout.deepLink = 'about'; > function btnClick(e:MouseEvent) { > trace(e.target.deepLink); > } > btnAbout.buttonMode= true; > btnAbout.addEventListener(MouseEvent.CLICK, btnClick); > > trace(e.target.deepLink) show "about" if text is static and gives > error if text is dynamic > > Error #1069: Property deepLink not found on flash.text.TextField and > there is no default value. > > Also buttonMode does not work for mc with dynamic text. If I > trace(e.target) it also gives error. So it looks like I can not add > Event Listener on mc that has dynamic text field inside. > How to do that correctly? > Thanks in advance. > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > Geen virus gevonden in het binnenkomende-bericht. > Gecontroleerd door AVG - www.avg.com > Versie: 9.0.814 / Virusdatabase: 271.1.1/2848 - datum van uitgifte: 05/01/10 > 20:27:00 > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

