Yes I've actually attached them to a "holder" clip and placed the holder clip 
off stage or hidden, with some of John Grden's research to do with 
hiding/showing I've found placing stuff OFF stage to be more efficient.

The nice thing is if you attach clips to symbol and then remove them, the next 
time you ask for them the browser has already downloaded the swf to the browser 
cache so they load very quickly.  I have to do a lot of caching in my current 
site I'm working on as we have over 200 pieces of music, 200 thumbs and a lot 
of video so obviously I can't load all this at once :)

The asset manager is something I wish I'd written a long time ago, the 
interface is really nice as I give it an individual asset to load or give it an 
array of asset names and it loads them all and fires and event when they are 
ALL loaded, this is particularly useful to me when loading the intial site as I 
want all the main pages loaded, the menu, status bar etc... and don't want 
anything to happen onscreen until they are all loaded so the code that depends 
on the assets is very simple as it just displays the pre-loader and then tells 
the asset manager to load all my assets, once done I receive the "done" event 
and can initialize the app and hide the preloader.

Grant.

----- Original Message -----
From: Marcelo de Moraes Serpa [EMAIL PROTECTED]
To: Open Source Flash Mailing List [email protected]
Sent: 1/7/06 3:33 PM
Subject: Re: [osflash] ARPX advice

> That really helped me a lot Grant, thank you very much, that´s something 
> I hadn´t thought of before.
> 
> Just a final question: You said the asset manager would load any assets, 
> on demand, but lets say I would like to "cache" an asset, I don´t see a 
> way to do it with flash other than loading them into "dummy" hidden 
> clips while I don´t need them and them they would be avaiable at the 
> Player cache after that. Is that the right way to do it?
> 
> Thanks again for your help,
> 
> - Marcelo.
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >I have a couple of things.
> >
> >1) A MoveClipLoader class than will load a swf and bind the symbols to a 
> >class
> >2) An asset manager class that can ondemand load any asset, swfs, images, 
> >audio etc.. It also supports a list of assets to be loaded at the same time, 
> >e.g. list of jpegs.
> >
> >I've found that I tend to load all my assets at startup unless they are very 
> >large (audio etc).  For example In my own site has the following "areas", 
> >music, services, contact, news and interactive.  Each area has its own swf 
> >and its own symbols, font embeds etc.  The main.swf file starts up, sets up 
> >my logging, creates an asset manager and tells it what assets to load 
> >(music.swf, services.swf, contact.swf, news.swf, interactive.swf) and each 
> >of those swfs has a main clip on the stage (natural entry approach) and they 
> >all have the same symbol name "mainSymbol" and I have navigation classes 
> >that then hide/show and tell those swf to animate etc... 
> >
> >I want to release the asset manager into the arpx package but right now its 
> >a bit project specific.
> >
> >If you have a lot of forms that you need to load and unload I'd write an 
> >asset manager, tell it what assets you have, their name, their location, 
> >filename etc.  The asset manager should be able to load them and unload them 
> >based on your commands.
> >
> >Grant.
> >
> >----- Original Message -----
> >From: Marcelo de Moraes Serpa [EMAIL PROTECTED]
> >To: Open Source Flash Mailing List [email protected]
> >Sent: 1/7/06 10:11 AM
> >Subject: Re: [osflash] ARPX advice
> >
> >  
> >
> >>Thanks for the explanation Grant!
> >>
> >>Could you tell me how do you manage the dynamic loading of forms on your 
> >>ARP apps? I recently sent a msg to the ARP list stating my ideas on how 
> >>to do that and seeking for some help ("Multi-movie based ARPX 
> >>application strategies" is the msg subject).
> >>
> >>Thanks again,
> >>
> >>Marcelo.
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>    
> >>
> >>>Its my accent isn't it, coming through in the blog and throwing you off ?  
> >>>:)
> >>>
> >>>The arpx extensions I've built extend the orignal ARP package, they don't 
> >>>replace it.  
> >>>
> >>>There are 2 things I needed, a system event management system and a 
> >>>command mapping system.
> >>>
> >>>With ARP out of the box events are between forms, not at a "system level" 
> >>>so lets suppose you have a system wide event like "session expired" you 
> >>>can't publish it at an application level, with my extensions you can.
> >>>
> >>>secondly the command mapping was done in code, so if a "login" event is 
> >>>supposed to cause a "Logincommand" to fire it has to be done in your code, 
> >>>this again is not something I like so the commandController is a class 
> >>>that uses an XML file to map an event to a command and registers with the 
> >>>systemController, so when an event like "loginUser" is fired from 
> >>>somewhere in the system, the system controller knows to tell the 
> >>>commandController about the event and the command Controller dynamically 
> >>>instantiates a LoginUserCommand object...
> >>>
> >>>I'd suggest building some stuff with vanilla ARP first and then look at 
> >>>extensions, Christophe Christophe Herreman also has some very nice 
> >>>extensions and some recent stuff with a model locator. I have some more 
> >>>extensions that I have not released yet, need cleaning up and re-factoring.
> >>>
> >>>Grant.
> >>>
> >>>----- Original Message -----
> >>>From: Marcelo de Moraes Serpa [EMAIL PROTECTED]
> >>>To: [email protected]
> >>>Sent: 1/5/06 4:27 PM
> >>>Subject: [osflash] ARPX advice
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>Hello friends,
> >>>>
> >>>>I really would like some adive on arpx, the extension developed Grant 
> >>>>Davies. As it´s the first time I´m using ARP, I find the explanations on 
> >>>>his site (the post) a bit confusing. Is arpx so different than the 
> >>>>original one? How does this extension relate to the dynamic donwload and 
> >>>>registering of Arp Forms (swf)? Is this really a extension or there are 
> >>>>ARPX classes I should use over the ARP ones?
> >>>>
> >>>>Thanks,
> >>>>
> >>>>- Marcelo.
> >>>>
> >>>>  
> >>>>
> >>>>  
> >>>>          
> >>>>_______________________________________________________ 
> >>>>Yahoo! doce lar. Faça do Yahoo! sua homepage. 
> >>>>http://br.yahoo.com/homepageset.html 
> >>>>
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>osflash mailing list
> >>>>[email protected]
> >>>>http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>> 
> >>>
> >>>------------------------------------------------------------------------
> >>>
> >>>_______________________________________________
> >>>osflash mailing list
> >>>[email protected]
> >>>http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>> 
> >>>
> >>>      
> >>>
> >>    
> >>
> >>    
> >>            
> >>_______________________________________________________ 
> >>Yahoo! doce lar. Faça do Yahoo! sua homepage. 
> >>http://br.yahoo.com/homepageset.html 
> >>
> >>
> >>
> >>_______________________________________________
> >>osflash mailing list
> >>[email protected]
> >>http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>    
> >>
> >
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >osflash mailing list
> >[email protected]
> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >  
> >
> 
>       
> 
>       
>               
> _______________________________________________________ 
> Yahoo! doce lar. Faça do Yahoo! sua homepage. 
> http://br.yahoo.com/homepageset.html 
> 
> 
> 
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to