If you find it in pure actionscript post it in this thread, that would be awesome.
And no, the Stage (if that's what you're meaning) can't be resized dynamically with actionscript, the width (and height also) property is read-only, so you can't change it's value.
You can try to resize it with javascript, but I don't think it's going to help much, because when the html object is larger than the swf the movie, if it doesn't stretch, leaves a wide margin at the left side.
But there's a workaround. With a JavaScript/ActionScript integration using the ExternalInterface class.
With the ExternalInterface you can communicate with JavaScript and it's really easy. You can make a javascript function to return the window's width and redraw the embed flash, and in flash you can make a function that depending on the window's width you adjust some movieclips.
IMPORTANT: allowScriptAccess (in the embed element) must be set to "always" in order to communicate properly with JavaScript, or it won't work at all.
I'm thinking about writing an article about using the ExternalInterface, if I do it, I'll post it in the flash articles forum.
Best regards,
The_Nephilim
ok, thanks. I was sure i had seen an example yesterday of exactly what i was trying to achieve but cant find it today! I will post it when i do though. Do you know can the canvas be dynamically resized? this may help me to get the exact effect i am looking for.
Cheers