Hi,
It's more like you have to create an instance.
The Class is an actionscript type like Boolean or String. This is like
asking can you write Boolean.value = true;
Try;
override protected function createChildren():void
{
super.createChildren();
instance = new myIcon();
instance.width = 25;
addChild(instance);
}
Mike
On Mon, Oct 20, 2008 at 10:20 AM, florian.salihovic <
[EMAIL PROTECTED]> wrote:
> Why don't u want to create an instance?
>
> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "flexaustin" <[EMAIL PROTECTED]> wrote:
> >
> > Is it possible to resize a Class file? Say you embed a swf or png. Can
> > you then resize it by casting is as something else?
> >
> > [Bindable]
> > [Embed(source="ui/nicePngImage.png")]
> > static public var myIcon:Class;
> > myIcon.width = 30; // won't work
> >
> > TIA
> >
>
>
>
--
Teoti Graphix, LLC
http://www.teotigraphix.com
Teoti Graphix Blog
http://www.blog.teotigraphix.com
You can find more by solving the problem then by 'asking the question'.