Yes, although its painful, and requires some fairly complex AS code that
requires deep knowledge of how Flash runs a SWF.  I'm working on some
code to post to Labs that will make it much easier, stay tuned!

(Quick summary: Flash 8.5 SWFs have a "root" class that corresponds to
the entire "movie".  In a normal MXML application, this is a subclass of
SystemManager.  In order to start code execution before the entire
application is downloaded, we partition the application into multiple
"frames", where the first frame contains SystemManager and the preloader
and download progress bar.  It then watches the rest of the application
stream in, and hands off control to what you think of as your
application class once its ready.  By implementing a different root
class other than SystemManager, its possible to create other sorts of
SWFs that aren't quite full-fledged applications... I call them
"modules".  Mix in the "externs"/"external-library-path"/"load-externs"
functionality, and you can build some code that expects the main app to
provide services.  Then, use loaders (read up on ApplicationDomain) to
pull these "module" SWFs on demand.  Ok, so that wasn't so quick.)

-rg 

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Rita Lee
> Sent: Friday, February 17, 2006 7:18 AM
> To: [email protected]
> Subject: Re: [flexcoders] Flex Application with several Forms
> 
> 
> hi Roger, 
> 
> I'm interested in "partitioning your application into 
> multiple separately downloadable modules", can you elaborate it ?
> can we do it now in flex 2 beta 1 ?
> 
> thanks.
> 
> rita.
> 
> 
> On 2/17/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
> 
>       one problem with viewstacks is that if the 
> creationpolicy is set to auto it creates all the children in 
> it. (i take it thats why you say large full viewstacks are bad).
>       so when building your app that has a lot of forms, make 
> certain that you control creationPolicy from the word go so 
> you don't have to retrofit it.
>       
>       
>       
>       On 2/16/06, JesterXL < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> > wrote:
> 
>               Large SWF's aren't bad.  Large, full ViewStacks are.
>               
>               1. You can use createChild to load them on 
> demand, or pre-compile to their
>               own SWF's and load via a Loader.
>               
>               2. I like ViewStacks.  You can put a bunch of 
> forms in them, and toggle 
>               their visibility.
>               
>               
>               ----- Original Message -----
>               From: "mvbaffa" <[EMAIL PROTECTED] >
>               To: <[email protected] >
>               Sent: Thursday, February 16, 2006 4:34 PM
>               Subject: [flexcoders] Flex Application with 
> several Forms
>               
>               
>               I am new to Flex and I want to convert a 
> .NET/Delphi Application to
>               Flex. This application has a lot of forms and 
> if I include all the 
>               forms in one Flex Application I will have a huge swf.
>               
>               I have two questions:
>               
>               1. How can I construct an application in Flex 
> with several forms and
>               load them on demand ????
>               
>               2. If I decide to put all forms in one 
> application how can I show 
>               them, for instance when a menu item is 
> selected. Maybe this is a very
>               simple problem, but I could not find a way to 
> Show a form, like we do
>               in Delphi and dismiss it from the screen when 
> it is not needed.
>               
>               Thanks in advance
>               
>               
>               
>               
>               
>               
>               
>               --
>               Flexcoders Mailing List
>               FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.t
> xt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
>               Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>               Yahoo! Groups Links
>               
>               
>               
>               
>               
>               
>               
>               --
>               Flexcoders Mailing List 
>               FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
>               Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> <http://www.mail-archive.com/flexcoders%40yahoogroups.com> 
>               Yahoo! Groups Links
>               
> <http://groups.yahoo.com/group/flexcoders/> 
>               
>               
>               
>               
>               
>               
>               
> 
> 
> 
> 
>       -- 
>       j:pn 
>       
>       
>       --
>       Flexcoders Mailing List
>       FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>       Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>       
>       
>       
>       
>       SPONSORED LINKS 
> Web site design development 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+developme
> nt&w1=Web+site+design+development&w2=Computer+software+develop
> ment&w3=Software+design+and+development&w4=Macromedia+flex&w5=
Software+development+best+practice&c=5&s=166>
&.sig=L-4QTvxB_quFDtMyhrQaHQ>   Computer software 
> development 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+develop
> ment&w1=Web+site+design+development&w2=Computer+software+devel
opment&w3=Software+design+and+development&w4=Macromedia+flex&w5>
=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfW
udJSe1lLjHw>    Software design and development >
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+devel
opment&w1=Web+site+design+development&w2>
=Computer+software+development&w3=Software+design+and+developm
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5>
&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>     
> Macromedia flex 
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+si
te+design+development&w2=Computer+software+development&w3>
=Software+design+and+development&w4=Macromedia+flex&w5=Softwar
e+development+best+practice&c=5&s=166&.sig=OO6nPIrz7> _EpZI36cYzBjw>
Software development best practice 
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best
+practice&w1=Web+site+design+development&w2>
=Computer+software+development&w3=Software+design+and+developm
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5>
&s=166&.sig=f89quyyulIDsnABLD6IXIw>     
> 
> ________________________________
> 
>       YAHOO! GROUPS LINKS 
> 
> 
>               
>       *        Visit your group "flexcoders 
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>                 
>               
>       *        To unsubscribe from this group, send an email to:
>                 [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> 
>                
>               
>       *        Your use of Yahoo! Groups is subject to the 
> Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/>  .
> 
> 
> ________________________________
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> Web site design development 
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+developme
> nt&w1=Web+site+design+development&w2=Computer+software+develop
> ment&w3=Software+design+and+development&w4=Macromedia+flex&w5=
Software+development+best+practice&c=5&s=166>
&.sig=L-4QTvxB_quFDtMyhrQaHQ>   Computer software 
> development 
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+develop
> ment&w1=Web+site+design+development&w2=Computer+software+devel
opment&w3=Software+design+and+development&w4=Macromedia+flex&w5>
=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfW
udJSe1lLjHw>    Software design and development >
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+devel
opment&w1=Web+site+design+development&w2>
=Computer+software+development&w3=Software+design+and+developm
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5>
&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>     
> Macromedia flex 
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+si
te+design+development&w2=Computer+software+development&w3>
=Software+design+and+development&w4=Macromedia+flex&w5=Softwar
e+development+best+practice&c=5&s=166&.sig=OO6nPIrz7> _EpZI36cYzBjw>
Software development best practice 
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best
+practice&w1=Web+site+design+development&w2>
=Computer+software+development&w3=Software+design+and+developm
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5>
&s=166&.sig=f89quyyulIDsnABLD6IXIw>     
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders 
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! 
> Terms of Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to