I am embedding a swf, which I believe requires a type of Class.

--- In [email protected], "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> Your looking at the problem wrong.
> 
> You never assign an instance to a Class variable type. You need to
create
> another variable at the class level to hold the new instances that
are type
> Image.
> 
> functiontoGetImage() are you returning an instance or a Class to
> instantiate?
> 
> Mike
> 
> On Mon, Oct 20, 2008 at 2:05 PM, flexaustin <[EMAIL PROTECTED]> wrote:
> 
> >   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] <flexcoders%40yahoogroups.com>,
"Michael
> > Schmalle"
> > <teoti.graphix@> 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 <
> > > florian.salihovic@> wrote:
> > >
> > > > Why don't u want to create an instance?
> > > >
> > > > --- In [email protected]
<flexcoders%40yahoogroups.com><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'.
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> 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'.
>


Reply via email to