I was wondering if there is a way to make the actual stage dynamic to the content loaded in the flash file.
Firstly the method I am using is importing a external swf to the stage into a container called container. The main stage, lets call it index, is still on default size, and I want this to expand dynamically as content is loaded in.
page1 may be 900px width, page2 may be 500px width, and as I load the content the index stage should expand the width to that of the page loaded.
Some steps I have tried but did not work.
- if page1 button is pressed stage.stageHeight = 900; - not working (how do I set stage size in as3)
- made a movieclip in page 1 spanning the page size and called it p1_stage so I can reference the data from there.
trace(container.p1_stage.height);
gives this error:
TypeError: Error #1010: A term is undefined and has no properties.
at index_fla::MainTimeline/frame1()