AS3: How to simplify Action Script 3 Code ?!
Posted
by funny_pete
on Stack Overflow
See other posts from Stack Overflow
or by funny_pete
Published on 2010-05-07T10:36:08Z
Indexed on
2010/05/07
10:58 UTC
Read the original article
Hit count: 244
Here's a example that I've to use when I want to create a button with mouse-over effect:
this.buttonExample.buttonMode = true;
this.buttonExample.useHandCursor = true;
this.buttonExample.addEventListener(MouseEvent.CLICK,myaction);
I'm new to AS3 - is there any way, to simplify this code like this:
this.buttonExample.buttonMode = true;.useHandCursor = true;.addEventListener(MouseEvent.CLICK,myaction);
why does it not works ?
© Stack Overflow or respective owner