Flash Draw API?
- Started
- Last post
- 3 Responses
- ncobler
How do you do a background like this using actionscript?
www.dunwoodie-architectureanddes…...
*I'm not interested in the bouncing or repositioning of the content, just the full browser window gradient fill.
Thanks in advance,
nc
- jpea0
just make a movieclip with a gradient in it, then use a stage listener to scale it full stage.
then in the html, embed the swf with a 100% scaling
- ncobler0
Cool. I'll try it. thanks.
nc
- Kevin_Sweeney0
i just did this recently. you might run into some issues when you resize it (i did at least). if you do, destroy the gradient, and then create a new one in the function that your onResize stage listener is calling.
of course, if you're just doing a linear gradient, you might just be better off making the background a tiling GIF and having your flash movie export with a transparent background.
but for more complex gradients like radial, reflected, or any of those ridiuculously crazy multi-gradients the flash help files have, this is a really cool method.