Does anyone know of any additional useful writeups or docs for 
working with Sprites directly? Most of the documentation available is 
for working with UIComponents & the Flex framework.

I am currently drawing my UI controls in Gimp, using AS3 to embed 
them as assets and give them behaviors. The small apps I am writing 
end up in the 30k range vs 100k+ when done using Flex.

I want to take the next step where I use AS3 to draw 
components directly using the Drawing API and not by embedding assets 
& wrapping them in Sprites. It should make the apps even smaller.

My original question was answered by the postings below found thru 
Google. I'd like to find additional sources of info if available.

http://thefactoryfactory.com/wordpress/?p=188
http://thefactoryfactory.com/wordpress/?p=191

Thank you for your help,

Sean

--- In [email protected], "sjacks36" <[EMAIL PROTECTED]> wrote:
>
> I am attempting to learn using Sprites for AS3-only apps and how to
> work with them best. I have an app that extends a Sprite and it
> contains another Sprite within it. How do I make it so the inner
> Sprite fills up the outer Sprite?
> 
> The outer Sprite generates a swf that is placed within an embed of 
any
> size. I can use the graphic object of the outer Sprite to draw a
> rectangle that takes up the available space. If I move that drawing
> code to an inner child Sprite the rectangle drawn is 50% smaller in 
size.
> 
> So if the embed is of dimensions 200x250 using the outer Sprites
> graphic object
> will draw a 200x250 rectangle. I move it into the inner Sprite and 
now
> the rectangle is 100x125. This is always the case even if I 
explicitly
> set the dimensions of the inner Sprite and the drawing code to use
> 200x250 dimensions.
> 
> Can someone explain this to me? I have read the Drawing API but I am
> having trouble drawing using inner child Sprites. The examples 
always
> use the outer Sprite to do the drawing. I am trying to write AS3-
only
> components that draw themselves.
> 
> Thank you,
> 
> Sean
>


Reply via email to