I have produced a bunch of swf files.
Positions and dimensions of interface elements
in these swf files is inside stage resize 
event listeners functions... 
alone they work really fine.

Now I'm loading these swf files
as external files in a 'hosting' file to make a sort
of gallery of all my as3 attempts and works...


Initially received some errors because they 
don't see the stage object anymore...
it's simply 'null' also in flash debugger.
I've commented out all the stage related calls and
references just to make them appear without errors in
the swf that loads them. 
Problem is that all of them react badly
on being hosted inside another swf file...
All the positioning and dimensioning code isn't
there anymore because it's now commented out.



I must obviously found a way to 'reactivate' the
positioning and dimensioning code...
all this considering that also the file that
is loading them use dynamic positioning 
and resizing of his elements...


I thought it was possible to change all the 
stage resize event references to something like 
root resize event references but all I've tried 
doesn't work... (there is no documentation around
speaking of a resize event for root so it was just an
'act of desperation')

^_^


Is it possible that all my work is just gone like
that...
:-(

Is there a way to get those 
stage listeners function to work again without
rewriting them all in the new containing swf? 
(it'll be a nightmare, change all references, change
all dimensioning and positioning code because they are
inside another swf).
The MovieClip that holds the external files inside
the hosting file creates a bounding box
with dimensions matching the original width and height
dimensions of the external loaded swf file.
This MovieClip is also dynamically resized if
the hosting stage becomes not wide and tall enough
to visualize the currently loaded swf entirely.
So, the MovieClip hosting the loaded files it's acting
in a manner similar to the original stage of the
surrently loaded swf.
...this was done to manage the dynamic positioning of
some loaded swf that have fixed dimensions. But (don't
know) maybe someone could see this useful to help me
in managing the "elastic loaded swfs" issue.



Any suggestion???
Thanks
giovanna


















 
changing the behaviour of the stage listeners
in the big containing swf based on every single file
loaded seems a little bit ugly...












 






      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to