Sorry I should have been more specific. [Bindable] public var myImage:Class;
myImage = functiontoGetImage(someparam); //obtained via CSS [Embed(source="ui/nicePngImage.png")] myImage.width = 10; // no code hinting for height for type Class. myImage.height = 10; // no code hinting for width for type Class. or myImage.scaleX = .2; myImage.scaleY = .2; //if I size them anyway I get no errors but then nothing happens. the trick is, from my implementation is, you eventually have to do something like this. DisplayObject(displayIconObject).height = 10; DisplayObject(displayIconObject).width = 10; --- In [email protected], "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > 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" <flexaustin@> 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'. >

