Skip to main content
Participating Frequently
February 2, 2015
Question

Is there any way to change the document size from scene to scene?

  • February 2, 2015
  • 1 reply
  • 284 views

I'm building a portfolio site, but I need the document size to be different from each scene.  I'd rather not create a separate swf/html file for each page since that would disrupt the transition between scenes (not to mention all the wok I went through to get the dropdown menus working).

For instance, the "home" scene is structured for 1200x670 px, but the portfolio scene labeled "published" needs to be at 1200x1500px.

Is there any way to change the document size from scene to scene?  OR; If, for instance, I made the universal document size 1200x1500 for the entire flash file, is there a script that would restrict the "home" scene to only show the first 670 pixels?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 3, 2015

not in flash alone.

you may be able to do what you want using javascript in your html document and using the externalinterface class to communicate between your actionscript the embedding html javascript.

Tic_TocAuthor
Participating Frequently
February 6, 2015

Thanks, kglad.

I'll do a bit of research on javascript and repost my progress awhile down the road.  In the meantime (and to save on production time), I may just restructure my Flash document so that everything fits within the same pixel resolution.