I've got a custom component Widget which makes a child "image" in it's
createChildren() method like that:
function createChildren (): Void {
super.createChildren ();
this.image = this.createClassObject (
mx.controls.Image,
"abc",
0,
{source: "rose.jpg"}
);
}
I want to call a rotateImage function when image is clicked.
Is using a Delegate the only way to make it? I made it by adding such
code to createChildren():
var rotateDelegate: Object = Delegate.create (this,rotateImage);
image.addEventListener ("mouseDown", this.rotateDelegate);
Can I make it without a Delegat?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/