?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
private var foo:int = 7;
private function clickHandler(event:MouseEvent,arg1):void
{
trace(foo);
foo.width = foo.width *
That should generate a compile error since there is no .width property
on foo (because it is an int).
I'm guessing you really wanted:
private function clickHandler(event:MouseEvent,arg1):void
{
trace(event.target);
DisplayObject(event.target).width = DisplayObject(event.target).width *
2 matches
Mail list logo