PreLoader Problem

This is a discussion on "PreLoader Problem" within the Flash & Multimedia Forum section. This forum, and the thread "PreLoader Problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 19th, 2007, 10:34
Junior Member
Join Date: Sep 2007
Location: Bristol, UK
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
PreLoader Problem

Help! I'm having real problems getting a pre loader to work on a site I'm building.

I have a set of images that are on a strip that run under a mask, so that they appear on the right hand side and disappear on the left. This is a separate swf file that is loaded into level 1 of my main movie.

Each of the images on this strip is covered by an invisible button, which contains code to load another swf file. I obviously need a preloader for this swf file, so I have created a bar strip as a movie clip and I'm using the following code on the invisible button;

Code/

on(rollOver){
gotoAndPlay(2);
}
on(rollOut){
gotoAndPlay(11);
}


on(release){

this.attachMovie ("loader","loader_mc",this.getNextHighestDepth( ));
setProperty("loader_mc",_x,96);
setProperty("loader_mc",_y,290);
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener: Object= new Object();
myMCL.addListener(myListener);

myListener.onLoadProgress = function(target,bytesLoaded,bytesTotal){
loader_mc._alpha=100;
var pct=Math.round(bytesLoaded/bytesTotal*100);
loader_mc.bar_mc._xscale=pct;
}

myListener.onLoadComplete=function(target){
loader_mc._alpha=0;
}

myMCL.loadClip("gallery1.swf",1);
}
/code

Problem is,this loader will only fall within the boundaries of the mask I have on the stage, so I can't get the bar above or below the image strip, It just runs across it. How do I overcome this problem? It doesn't matter what I set the x and y values to, if they are not within the dimensions of the mask area, it just disappears. Is there another way to program or place pre loaders? I'm really stuck. Help!

Tom.
Reply With Quote

  #2 (permalink)  
Old Sep 19th, 2007, 13:23
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: PreLoader Problem

Just put the preloader on it's own layer.
Reply With Quote
  #3 (permalink)  
Old Sep 19th, 2007, 13:45
Junior Member
Join Date: Sep 2007
Location: Bristol, UK
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PreLoader Problem

Hi There,

Thanks for the response. I'll try it! Just one question. Where do I put this separate layer? inside the movieclip that has the invisible button or on the stage I am loading into? All of the code I stated is on an invisible button inside a movie clip. I get confused just trying to explain it!

Thanks,

Tom.
Reply With Quote
  #4 (permalink)  
Old Sep 19th, 2007, 17:43
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: PreLoader Problem

Most likely inside the movie clip because what your loading is inside of it right? If not, put it on the main timeline.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
another preloader problem aaaaah ahwell Flash & Multimedia Forum 12 Sep 17th, 2007 18:10
preloader problem alexgeek Flash & Multimedia Forum 6 Sep 5th, 2007 18:23
flash preloader problem sathishbabu Flash & Multimedia Forum 1 Sep 5th, 2007 12:50
preloader problem!!! sipherlucian Starting Out 0 Apr 23rd, 2007 11:48
Help with preloader huminuh83 Flash & Multimedia Forum 4 Jan 6th, 2007 20:10


All times are GMT. The time now is 22:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43