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.
|
|
|
|
|
![]() |
||
PreLoader Problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
|||
|
Re: PreLoader Problem
Just put the preloader on it's own layer.
|
|
|||
|
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. |
![]() |
| Thread Tools | |
|
|
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 |