  | |  | MovieClipLoader - preloading in MX04Pro | MovieClipLoader - preloading in MX04Pro
2004-02-24 - By Eight Media, D. Spronk
Back well no one replied to my question but we finally figured it out but i
thought i 'd reply for the archives.
heres an article that delves into this issue
http://whatdoiknow.org/archives/001238.shtml
cheers
Daniel Spronk
EIght Media
On vrijdag, feb 20, 2004, at 16:12 Europe/Amsterdam, d wrote:
> I 'm becoming some sort of square faced frustrationalist trying to
> crack a preloader,
> so please help me to not grab the golf club and smash my lovely mac to
> pieces.
>
>
> Here 's the deal. I 'm trying to create a preloader that will load a
> large swf into the root.
> I 've created a stubb swf that should do this for me while showing the
> user the progress of the load.
> Simple enough and it works great.
>
> ...untill I actually try to load the movie as _root (or _level0 for
> that matter)
> This will stop the preloading progress bar and will cause Flash MX
> 2004 Professional to crash on my mac.
>
> Any suggestions?
> thx
> Daniel
> Eight Media
>
>
> Here 's my actionscript on frame 1:
> /*****************************************/
> stop();
>
> // first set of listeners
> var bookright_mcl = new MovieClipLoader();
> myListener = new Object();
>
> myListener.onLoadStart = function (target_mc)
> {
> trace( "load started ");
> }
>
> myListener.onLoadProgress = function (target_mc, loadedBytes,
> totalBytes) {
> _root.pBar.setProgress(loadedBytes, totalBytes);
> trace( "setProgress: "+loadedBytes+ " / "+ totalBytes);
> }
>
> myListener.onLoadComplete = function (target_mc) {
> _root.pBar.setProgress(100, 100);
> }
>
> myListener.onLoadInit = function (target_mc) {
> trace( "Movie clip = " + target_mc + " is now initialized ");
> }
>
> bookright_mcl.addListener(myListener);
>
> //Now load the file -large dummy used as target, once the pBar (27k)
> has loaded
> pbarLoad = new Object();
> pbarLoad.load = function(eventObject) {
> _root.bookright_mcl.loadClip( "large_dummy.swf ", 0)
> }
> _root.pBar.addEventListener( "load ", pbarLoad)
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104852
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to: Normal Mode:
> flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105085
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |