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