Flash AS2 - Preloader for loader? HELP!

  • clbrown
  • Newbie
  • Newbie
  • clbrown
  • Posts: 6
  • Loc: Malta

Post 3+ Months Ago

Hi there,

I wonder if you can help me?

I am building a website using "Flash Screens" but the one thing I need is to have an initial preloader for the whole site.

What I've figured out to do was to make the preloader in the 1 frame - the export classes in frame 2 - and I've placed a "loader component" in frame 3 which would load my whole website I made in screens into this component.

PLEASE PLEASE PLEASE - how can I load the external swf as part of the preload status.

Cause what its doing is showing the preload status up 100% and then it jumps to the "loader component" and the screen go's blank until the external swf is loaded.

Please take note that I am a newbie but will try to understand as much as possible.

Thanks in advance for your help!

Christopher
  • clbrown
  • Newbie
  • Newbie
  • clbrown
  • Posts: 6
  • Loc: Malta

Post 3+ Months Ago

Hi there,

I seem to have found a way around my initial problem.

Instead of using a "Loader component" I made a movieclip container and then used "loadclip" to call the swf file in......but now I have new problem.

If you go to http://www.ifdezine.com/dg/flash/ - the preloader mask moves up to fill the logo.

In the other version I am doing http://www.ifdezine.com/dg/flash3 I can get the % count to work but I cant figure out how to get the mask to work.

Its most probably something in my action script cause I'm using information from 2 tutorials together and inbetween I'm doing something wrong.

Here is the action script...

__________________________________________________
var mcl:MovieClipLoader = new MovieClipLoader();

var mclL:Object = new Object();

var yChange = 142;
var yStart = 70;

myInterval = setInterval(preload, 100);

trace("myInterval");
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);

trace("mask");
loader.mask_mc._y = yStart-yChange/100*pctLoaded;

trace("clear Interval");
if (current >= total) {
clearInterval(myInterval);
}

mclL.onLoadProgress = function(target, loaded, total) {
loader.pct_txt.text = Math.round((loaded/total)*100);
};
}

mclL.onLoadInit = function() {
loader._visible = false;
loader.pct_txt.text = "";
};

mcl.addListener(mclL);

mcl.loadClip("index3.swf",holder);
__________________________________________________

Look forward to hearing from you

Cheers - Christopher

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.