Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Preloader That Loads An External Movie


Is there a way to have one movie with a preloader on it that loads another movie? Is so, how would I go about doing that?

Thanks




FlashKit > Flash Help > Flash ActionScript
Posted on: 10-06-2003, 07:25 PM


View Complete Forum Thread with Replies

Sponsored Links:

Preloader W External Swf Loads Movie Too Early
Hi all,
I've been tearing my eyes out trying to figure this one out. I have a game in a swf file, and I have another swf file which only contains my preloader. The preloader file has only 1 frame and 3 layers wich controls progess bar etc. My problem is that the movie is played before the actual movie has loaded 100%. Instead, when my loader reaches around 50% it disappears and the game swf is played which isn't good since every game component hasnt been loaded yet. Any ideas on why this is happening?

I'm using the tutorial
http://www.lukamaras.com/tutorials/p...preloader.html



Code:
siteLoader.loadMovie("game.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
}
}
I have also tried using loadMovieClip but I get the same effect. Why is my preloader exiting before the entire swf is loaded? Any help would be greatly appreciated.

View Replies !    View Related
External Movie Loads, But The Dynamic Text That Loads With It Won't Render HTML?
I have a set of SWFs that load when a button is pressed on the parent SWF file...they all load into an empty placeholder, and each contains it own dynamic text field. the problem i'm having is, the text loads, but the HTML won't render, so i get plain text and html tags

the script in my external SWF files is as follow.


var lv = new LoadVars;
lv._parent = this;
lv.onLoad=function(success){
if(success)this._parent.home.text = this.guide;
}

lv.load("guide.txt");


everything is filled out correctly in the Property menu, someone PLEASE help

View Replies !    View Related
Preloader Loads External Swf
Hi!

My problem is that I want my 200x200 px preloader to be centered on the page and then load a flash movie which is 1200x900 px.

I can do it by centering the preloader on a page, and then using navigateToUrl to the main movie, but this obviously isn't very seamless.

so any ideas? Would I use JavaScript to alter the dimensions?

thanks!

View Replies !    View Related
Preloader For Master.swf Which Loads All External Swf Files.
Hi all-

I'm having a bit of a problem. I have a flash site that I'm making (my first one) and I want to have a preloader load my master.swf file. My master.swf file loads all other external .swf and .jpg files with a nice progress bar etc. However, when I first vist master.swf in my browser I have to put a not so nice "LOADING PLEASE WAIT" ugh. All my code is below for you to take a look at.

Is there any way to load my master.swf file with a nice preloader like I want or should I go about doing this a totally different way?

I have export frame for classes set to 1.
trigger.swf - my shared library and probably the largest file size since it has all the fonts I use in it.
preloader.swf - the preloader the master.swf file uses when loading external .swf and .jpg files.
mainmenu.swf - my navigation for my site.
splash.swf - the splash page for my site.
music_player_fin.swf - my little juke box that I made.
To see the swf in action visit http://spazio.dvdfuture.com/flash/master.html

master.swf

Frame 1

Code:
stop();
// ------------------ MCL ------------------ \
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
var preloaderPercent:Number = Math.round((loadedBytes/totalBytes) * 100);
_level50.preloader.gotoAndStop(preloaderPercent);
}

myListener.onLoadComplete = function (target_mc) {
_level50._visible = false;
}

myMCL.addListener(myListener);
// ------------------ /MCL ------------------ \

myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);
Frame 2:

Code:
stop();
myMCL.loadClip("splash.swf", 5);
myMCL.loadClip("mainmenu.swf", 20);
myMCL.loadClip("music_player_fin.swf", 10);
Below is the code in my mainmenu.swf

Frame 1:

Code:
stop();

//----------------<changeOptionColor options>-----------------\
var overFrame:Number = 2;
var outFrame:Number = 1;
MM_Button1._alpha = 20;
MM_Button2._alpha =20;

function changeOptionColor (myOption:MovieClip, myFrame:Number) {
myOption.gotoAndStop(myFrame);
}

//----------------</changeOptionColor options>-----------------\

//----------------<re-enable menu options>-----------------\
function reActivateBtns() {
MM_Button1.enabled = true;
MM_Button2.enabled = true;
MM_Button1._alpha = 20;
MM_Button2._alpha =20;
changeOptionColor(MM_Button1, outFrame);
changeOptionColor(MM_Button2, outFrame);
};
//----------------</re-enable menu options>-----------------\

//----------------<Button1 option>-----------------\
MM_Button1.onRollOver = function () {
this._alpha = 100;
changeOptionColor(this, overFrame);
};

MM_Button1.onRollOut = function () {
this._alpha = 20;
changeOptionColor(this, outFrame);
};

MM_Button1.onRelease = function () {
reActivateBtns();
this._alpha = 100;
this.enabled = false;
changeOptionColor(this, overFrame);
_level0.myMCL.loadClip("button1.swf", 5);
};
//----------------</Button1 option>-----------------\

//----------------<Button2 option>-----------------\
MM_Button2.onRollOver = function () {
this._alpha = 100;
changeOptionColor(this, overFrame);
};

MM_Button2.onRollOut = function () {
this._alpha = 20;
changeOptionColor(this, outFrame);
};

MM_Button2.onRelease = function () {
reActivateBtns();
this._alpha = 100;
this.enabled = false;
changeOptionColor(this, overFrame);
_level0.myMCL.loadClip("button2.swf", 5);
};
//----------------</Button2 option>-----------------\

View Replies !    View Related
Problems With My Preloader Which Loads External Images
I seem to be having trouble with my preloader. I have 7 categories of pictures with different picture totals for each group. They are to be loaded externally.
1. I made a scene before the main website with an empty movie clip offstage called introHolder.
2.Then I made looping code:

ActionScript Code:
picGrps = ["intro", "acc", "clt", "fd", "fun", "grm", "hm", "luv"];
picTotals = [8, 5, 3, 3, 5, 4, 6, 5];
//
function preloadPics() {
    _root.introHolder.loadMovie("pb_address.jpg");
    for (x=0; x<=picGrps.length-1; x++) {
        for (y=1; y<=picTotals[x]; y++) {
            _root.introHolder.loadMovie("pb_"+picGrps[x]+y+".jpg");
            trace(picGrps[x]+y);
        }
    }
}
This should load intro1.jpg all the way up to 8, then acc1.jpg all the way up to 5, etc. When I trace, it shows all of these names.

Then, about 5 frames later I have the typical preloader script:

ActionScript Code:
total_bytes = _root.introHolder.getBytesTotal();
trace(total_bytes);
//sets a variable equal to the bytes loaded of the movie
loaded_bytes = _root.introHolder.getBytesLoaded();
//sets a variable equal to what's left to load
remaining_bytes = total_bytes-loaded_bytes;
//coverts remaining bytes to an integer in percent
percent_done = int((loaded_bytes/total_bytes)*100);
//makes the bar movie go to the frame equal to the percent done
bar.gotoAndStop(percent_done);
if (percent_done == 100) {
    gotoAndPlay("placeholder", 1);
}
The frame after this has an action telling it to go back to the above script if not loaded.

So, the problem......

The pictures (when traced) say they're loaded, but they don't seem to be really loaded. The movie goes to the "placeholder" scene BEFORE all of these pictures are loaded...what am I doing wrong?

View Replies !    View Related
Keeping An External Swf Visible While Another Swf's Preloader Loads
I have created a swf file that I use just as a container.
This swf just has navigation buttons and an empty mc, called holder_mc.

Each Nav button has the below code but obviously loading in a different external swf into the same holder_mc

menu_mc.story_btn.onRelease = function() {
loadMovie("twoMatesStory.swf", "holder_mc");
}

Every swf has it's own small preloader. So obviously every time loadMovie executes the previous swf is cleared from holder_mc and is replaced by the new swf and you see the next preloader and then the swf content.

I want to keep the loaded SWF in holder_mc viewable until the next requested swf is ready to view. Ive seen many Flash sites that do this, but I havent got a clue how its done.

Please help,

Cheers,

Dave

View Replies !    View Related
Movie Loads Before Preloader Is Done
Have a site which has been working fine until about 5 minutes ago. All I did was add some content to the page that is loaded in and publish to the web.

Now the main preloader loads up fine like it always has but when it reaches about 90% the movie starts playing. It is only loading in one main file.

Any ideas on how it can start playing the swf before its done loading it. I have used the same code for the preloader on several sites and they are all working fine.

How can I make sure that the movie doens't play until it is fully loaded...

View Replies !    View Related
Preloader That Loads A Different Movie
is there a preloader or code for preloader that can load a movie from within a different movie. ex: preloader for "movie2" on the last frame of "movie1"

View Replies !    View Related
Movie Loads Before Preloader Shows Up
hey guys,
i'm getting really frustrated because i just can't seem to get this preloader to work! the preloader pops up on screen when the movie is 91% loaded. i have the publish settings set for top down loading and my script & preloader are on the top levels, first frame.

why doesn't flash show the preloader first?!?!

please help!

View Replies !    View Related
Preloader For Movie That Loads 3 Swfs
I have created one flash movie that loads 3 swf movies at the same time (a common menu bar, common background and page specific content)

It was built like this to make it easy to update any one component.

The problem I am having is that when I add a preloader to the swf that loads these three movies it does not know exactly when all 3 have loaded and it then runs the movies out of sync the first time around. So once one part has loaded it starts playing it right away.

I need to have the preloader run exclusively until all 3 movies have loaded and then have them all start at the same time.

The main movie .fla is attaced here and all files can be found here:

http://www.valencienne.com/test/

To see the current movie go to:
http://www.valencienne.com/test/hometest.swf

Thanks for your help!

View Replies !    View Related
Movie Loads Before Preloader Is Finished
here's what i have in my master.fla on frame 1.

//-------------------------preloaderscript------------------\
myMCL.addListener(myListener);

myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes) {
_level10._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) *100);
_level10.preloader.gotoAndStop(preloadPercent);
}

myListener.onLoadComplete = function (target_mc) {
_level10._visible = false;
}

myMCL.loadClip("preloader.swf", 10);

//--------------------------------------------------\

here what's on frame 2.

//---------------------------------------------------\
stop();
if (percent == 100){
gotoAndPlay(1);
}else{
myMCL.loadClip("splash.swf", 5);
}

//--------------------/preloaderscript-----------------\


It used to work just fine until I added more content to the splash.fla, which you would think would make it take longer. Check it out so you can see what I'm talking about. Thanks.

http://dev.villaparadisonevis.com/

View Replies !    View Related
Preloader Loads Movie In The Middle
Preloader works, although my music from the loading SWF file begins playing right away during the preloading phase. But when the movie does begin playing, it starts in the middle somewhere. (almost as if it is trying to catch up to where the music is at?) Sound event is set at Start and to Loop in frame 11 of the movie. http://welcome.wisnet.com/strukel/www/senior_gallery.iml
You'll only see it happen the first time, after that the file is cached and it will play from the beginning like it's supposed to. Any suggestions? thanks, Julie

View Replies !    View Related
Loads An External Movie
Can someone help me?

im on a proyect that requires an external movie clip to load on a main movie. That's easy, the hard part is that i need that the loaded to be movie loads without adapt the settings of the main movie (main movie: height=100%, width=100%) so if the main movie works as a fullscreen background the loaded to be movie retain the actual size w 500 x h 300. Thanks in advance.

View Replies !    View Related
Loads An External Movie
Can someone help me?

im on a proyect that requires an external movie clip to load on a main movie. That's easy, the hard part is that i need that the loaded to be movie loads without adapt the settings of the main movie (main movie: height=100%, width=100%) so if the main movie works as a fullscreen background the loaded to be movie retain the actual size w 500 x h 300. Thanks in advance.

View Replies !    View Related
Load External Movie Immediatly After Main Movie Loads
I apologize if this is the dumbest question in the world becasue it seems it would be. I know how to load an external movie when you click a button but how do you get it to load immediatly after the main movie finishes loading? I can't figure it out. Is this possible with actionscript 1.0? Thank you.

View Replies !    View Related
Preloader Mc That Loads A Seperate Main Swf Movie
Thanks to C4_Tom for the tip. However, I'm still having trouble with this. I'm trying to use a dummy movie clip in a bare bones swf to preload and open another, complete seperate swf file.
In my bare bones swf I have a one frame dummy movie clip with no art. It just has a loadMovie action that loads the main swf.
I have a preloader in the bare bones movie that uses movieLoader.getBytesLoaded to preload the clip.
It opens the main swf fine and looks good. However, I'm not convinced that it is actually downloading the main swf before it jumps to it. When I look at the streaming profile it looks like it's loading just the 2 KB of the dummy movie, then jumps to the main swf. The main swf is 157 KB and should take at least 18 seconds for the 56.6 modem setting that I'm testing it at. So, why is it just jumping there? When I trace the movieLoader.getBytesLoaded it tells me 0 bytes of 0 KBytes loaded then jumps to the main swf. So I'm convienced that it's not really downloading the swf before it opens it. I need it to be completely loaded before it opens the main swf. What am I doing wrong?

View Replies !    View Related
Preloader Loads Half Movie Before Showing Up?
I created a preloader using one of the tutorials on this site ( http://www.kirupa.com/developer/mx/p...epreloader.asp ). Now it works great, however when i use it in my movie which is 120Kb, it loads 60Kb before it even shows up? anyone know why this could be happening? and if it's possible to avoid?

I did edit the code to load some extra levels, but even the un editied code has the same results so I don't believe thats the problem.

This is how I have it to load the levels, Im assuming it will work?

PHP Code:



bytes_loaded = Math.round(_level0.getBytesLoaded())+(_level2.getBytesLoaded())+(_level3.getBytesLoaded());
bytes_total = Math.round(_level0.getBytesTotal())+(_level2.getBytesLoaded())+(_level3.getBytesLoaded());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
    _root.gotoAndStop(3);





Cheers.

View Replies !    View Related
Main Movie Loads Before Preloader Is Finished
Hi, first time posting.

I've created a preloader for this site:

http://pennington.cc/ad/AD_main.html (rough version for client preview)

which basically consists of what you see when the movie first loads, except instead of the row of thumbnails at the bottom there's a progress bar. The preloader AS is here, stored in frame 1:


Code:
progress_mc._xscale = 0;
this.createEmptyMovieClip("holder_mc", 0);
holder_mc._visible = false;
holder_mc.loadMovie("AD_main.swf");

progress_mc.onEnterFrame = function(){
var loaded = holder_mc.getBytesLoaded();
var total = holder_mc.getBytesTotal();
if (total > 15) {
progress_mc._xscale = Math.round(loaded / (total / 100));
if (loaded >= total) {
holder_mc._visible = true;
holder_mc.swapDepths(999);
this.removeMovieClip();
}
}
}
My problem is that, at 10% loaded, AD_main.swf appears in place of the preloader. I tried pointing the preloader to a jpeg image and it works fine; it waits until it's 100% loaded before displaying it. I added
Code:
holder_mc._visible = false;
but it didn't help.

Then I removed all but the background and the progress bar of the preloader swf (remember the layouts of the preloader and frame 1 of AD_main.swf are identical) and with the bandwidth profiler set at 56K I could see the different elements of AD_main.swf loading on top of the preloader, despite the Actionscript. I'm stumped. Somebody please tell me why this isn't working. TIA

Jerome

If you have a dial-up connection you can see the preloader at http://pennington.cc/ad/AD_preload.html

View Replies !    View Related
Main Movie Loads Before Preloader Is Finished
Hi, first time posting.

I've created a preloader for this site:

http://pennington.cc/ad/AD_main.html (rough version for client preview)

which basically consists of what you see when the movie first loads, except instead of the row of thumbnails at the bottom there's a progress bar. The preloader AS is here, stored in frame 1:


Code:
progress_mc._xscale = 0;
this.createEmptyMovieClip("holder_mc", 0);
holder_mc._visible = false;
holder_mc.loadMovie("AD_main.swf");

progress_mc.onEnterFrame = function(){
var loaded = holder_mc.getBytesLoaded();
var total = holder_mc.getBytesTotal();
if (total > 15) {
progress_mc._xscale = Math.round(loaded / (total / 100));
if (loaded >= total) {
holder_mc._visible = true;
holder_mc.swapDepths(999);
this.removeMovieClip();
}
}
}
My problem is that, at 10% loaded, AD_main.swf appears in place of the preloader. I tried pointing the preloader to a jpeg image and it works fine; it waits until it's 100% loaded before displaying it. I added
Code:
holder_mc._visible = false;
but it didn't help.

Then I removed all but the background and the progress bar of the preloader swf (remember the layouts of the preloader and frame 1 of AD_main.swf are identical) and with the bandwidth profiler set at 56K I could see the different elements of AD_main.swf loading on top of the preloader, despite the Actionscript. I'm stumped. Somebody please tell me why this isn't working. TIA

Jerome

If you have a dial-up connection you can see the preloader at http://pennington.cc/ad/AD_preload.html

View Replies !    View Related
External Movie Loads In Netscape But Not IE Help
please help me real quick? I made an eyeball movie for my website that loads after the _root movie loads. There's a button at half alpha of it that loads the eyeball when you rollover it. It works perfect in Netscape but doesn't work at all in IE. i tried it on my Mac IE and on my PC IE too! below is my code:
Code:
on (rollOver) {
loadMovieNum("eye.swf",1);
_root.play();
}
I put the _root.play(); in there so the main movie goes forward one frame and i get rid of the the loader alpha button. below is a link to my site so you can see it, but again, it only works in netscape it seems and i can't figure out why.
http://www.threebrain.com
if the eyeball does work on your IE hollaaa at me too and tell me. I'd appreciated. weird! stuff usually works in IE but not netscape

View Replies !    View Related
External Swf Loads In Photos Movie But No The Main Movie.
Alright, if you look at the photos.swf here
www.e-volutionds.com/lasd/photos.htm
you notice all the images load once you click on them with the following code on the image button

on (release) {
_root.loadPhotosMC.loadMovie("zphoto3.swf");
}


however on the real site photos loads into main.swf, so main-->photos-->scrollimages. and the images don't popup on the main site.

www.e-volutionds.com/lasd/dog.htm

Any ideas? Thanks!

View Replies !    View Related
My Defined, Linked Sound Loads In My Movie Even Before My Preloader
Hi all,

I've got this song in my movie which I have defined and linked within my movie, problems is, the song is the first thing to load, even before my preloader starts I have to wait for the song to load, how can I tell the song to load only on a certain frame?

The code is use in the keyframe for the sound is:

firstSound = new Sound();
firstSound.attachSound("firstSound01");


and in my linkage properties I have tried unchecking the "Export in first frame" option, but then it doesn't load at all and I can't find anyway to specify when it must load.

ideas? suggestions? comments? point fingers and laugh at my stupidity?

View Replies !    View Related
How Do You Create A Preloader Message ?(please Wait While Movie Loads....)
how in the world do you make a (Loading....)message when your movie is loading. YOu know so your screen won't just be blank while the file is loading.

View Replies !    View Related
Preloader That Loads Both The Animation And Sound File Before Starting The Movie
I've made an animation swf file with a preloader.
The animation loads another swf file when it is triggered to start. That swf file is the music that runs in the background.

How can I make a preloader that loads both the animation file and the sound file before displaying the start animation button?

The movie im working with is here: http://home.c2i.net/dhl/oestmoe.swf
And the sound file that should run in the backround is here:
http://home.c2i.net/dhl/loop.swf

DassMario

View Replies !    View Related
Advanced Preloader: Playing A Game While The Main Movie Loads (?)
Hi,
I basically know how to create a dynamic preloader, using "getBytesLoaded", etc. But what I'd like to know is, is it possible (and how) to create a preloader that calls up a little game while the main movie is working (?).
I have a rather large main movie I'm developing for broadband users...
Thanks!
JoyMonkey

View Replies !    View Related
Forcing A Preloader To Play The Intro Before It Loads The Main Movie.
Hi,
I am using a script I found at http://www.sonify.org/home/feature/r...ges/page4.html for preloading my movie, which contains a lot of sound objects located at http://www.speakerson.net/project/start.html. The main movie is loaded into a movie clip holder called "sonicMapHolder".

It works like a treat ...

However I would like to apply one modification, that is to play the whole intro every time before the main movie loads. The intro is located in a movie clip called "textintro".

Can I do it easily?...

Thanks in advance!

Gayeta

View Replies !    View Related
Forcing A Preloader To Play The Intro Before It Loads The Main Movie.
Hi,
I am using a script I found at http://www.sonify.org/home/feature/r...ges/page4.html for preloading my movie, which contains a lot of sound objects located at http://www.speakerson.net/project/start.html. The main movie is loaded into a movie clip holder called "sonicMapHolder".

It works like a treat ...

However I would like to apply one modification, that is to play the whole intro every time before the main movie loads. The intro is located in a movie clip called "textintro".

Can I do it easily?

Thanks in advance!

Gayeta

View Replies !    View Related
Forcing A Preloader To Play The Intro Before It Loads The Main Movie.
Hi,
I am using a script I found at http://www.sonify.org/home/feature/r...ges/page4.html for preloading my movie, which contains a lot of sound objects located at http://www.speakerson.net/project/start.html. The main movie is loaded into a movie clip holder called "sonicMapHolder".

It works like a treat ...

However I would like to apply one modification, that is to play the whole intro every time before the main movie loads. The intro is located in a movie clip called "textintro".

Can I do it easily?...

Thanks in advance!

Gayeta

View Replies !    View Related
External Movie Loads...next Movie Doesn't
Hello to all.

I have a modular movie format. All movies load into a shell/base movie. I have a video intro that loads into the loader component in an external movie. This movie in turn loads into the actual main movie.

What I'm trying to figure out is when the video intro gets done playing, I want it to move to the the next frame (#3) so it can run a behavior I have there to load another movie in its place.

I've tried the "on complete" with several variations to no avail.

I have a button that will move you to the frame #3, but I want to make it happen automatically if I could.

You can see what I mean at Flashbacks Dance Club.

Thanks.

View Replies !    View Related
External Movie Loads...next Movie Doesn't
Hello to all.

I have a modular movie format. All movies load into a shell/base movie. I have a video intro that loads into the loader component in an external movie. This movie in turn loads into the actual main movie.

What I'm trying to figure out is when the video intro gets done playing, I want it to move to the the next frame (#3) so it can run a behavior I have there to load another movie in its place.

I've tried the "on complete" with several variations to no avail.

I have a button that will move you to the frame #3, but I want to make it happen automatically if I could.

You can see what I mean at Flashbacks Dance Club.

Thanks.

View Replies !    View Related
From Mocie Clip To Dynamic Movie External Jpg Does Not Loads
on main time line I've movie clip wiht instance name loadpics.
and in that movieclip their is cmpty movieclip where image and text are loaded through textfile. the text loads but the image does not pls help

I also want the image to resize propotionately when it loads to its height and width.how can i make this work.

here is the file attached..

note: textfilename is

loadvariables.txt
...........copy from here...........

content=welcome to this site.


&image1=image1.jpg
&image_centre=image1.jpg
.......................................
just place this file at root folder of swf
alos one jpg file named
image1.jpg

regards



sabs

View Replies !    View Related
Shared Font Library Causes Pause After Preloader Loads Main Movie
Man I never saw this coming. I finally built my first preloader for a small navigation banner and the shared font library it uses is messing up the preloader. Basically, after the main movie loads, the preloader disappears and there is a pause while the shared font library downloads - the dumb thing is like 21KB*. On a 56K modem, this takes about 8 seconds. What can I do?

*
Code:
Font Name Bytes Characters
---------------------- --------- --------------
Verdana 20479 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ˆ˜–—‘’‚“”„†‡•…‰‹›€™

View Replies !    View Related
Load Movie By Number 1.swf Loads 2.swf Loads 3.swf
hey everybody,

i have a main movie in which i load an externel "1.swf". i've got plenty of swf's to load (2.swf, 3.swf, 4.swf and so on) how can i make a link in 1.swf which automatically loads 2.swf.

i don't want to specify load 2.swf - i want it to load mynumber+1.swf (i think you get the idea). so that i don't have to make every link. i want 1 code for all.

thanks for helping me out on this one

View Replies !    View Related
Large Movie Preloader /External Preloader Question...
I have a fairly large movie (about 380KB) with a status bar preloader in the first frame. The problem is that I load a few of the MC's in the movie into ScrollPanes and then don't work unless I export them on the first frame (these MCs make up about 200KB). Therefore, there is no flash shown until it has loaded up about half way.

I tried to use an External Preloader, but that loaded the MC on level 1, and no buttons or functions within the entire movie worked properly.

My question is, is there a way to either use the external preloader and swap (or reload) the movie on level 0, or does anyone know a way to load the MCs on another frame other than 1, but before they load to the Scroll Pane? Any other ideas would also be appreciated.

Thanks!

View Replies !    View Related
Preloader Says NaN%, Then Loads Okay Why?
Okay,
I have a site which has 5 .swf files. In my preloader I want it to display how much of each .swf file has loaded, one at a time.
To do this I've used 6 seperate frames (the first is to load the actual preloader, very small).
My problem is that my percentage loader is coming up with NotANumber (NaN) below 20%. After that it loads fine.
For example, the 3rd .swf file to load is called in level 3 (specified earlier in the programme)

output = Math.floor((_level5.getBytesLoaded()/_level5.getBytesTotal())*100)

Where output is simply a dynamic text box.
Why would this display NaN and then after 20% start to display the percentage?
Thanks for any help.

View Replies !    View Related
Preloader Loads To Much
Need help, my main movie is fairly small, it calls other movies that are fairly big. In scence1 the preloader loads the main movie and its movies linked to it!!(hope your still with me) this is the code on the preloader clip
onClipEvent (enterFrame) {
ifFrameLoaded (2) {
_root.gotoAndPlay(2);
}
}
how can I load the main movie without the linked movies?? or should I go about this another way....
http://members.home.net/pascalyotis
(it does work, just takes forever, and preloader is basically useless, piece of shyt, jarbig)heelp

View Replies !    View Related
Preloader Loads Everything But Itself
Please have a look-see at:
http://www.perryballard.com/nhh/html...rmishmash.html

This is a very large movie, so I set up a preloader. Everything works great except for the fact that the preloader screen doesn't appear until the movie is over 80 percent loaded. I thought it was a "top-down", "bottom-up" issue (which you checked when you export a movie), but I couldn't tell a difference between the two. ....

Any ideas anyone?

Thanks!

View Replies !    View Related
Preloader Only Loads Once..
Hi all

I'm having a bit of a strange problem with my preloader today. I've made a preloader wich works as any other regular preloader (just a 100 frame loading animation, but with some extra's after those frames) and which is controlled by AS on the main timeline using two EventListeners attached to the loaderInfo.

(Link here, but you'd better read first )

The first one calculates the percentage and tells the preloader to gotoAndPlay that number.

The second one catches the complete event and tells the pop-up text (which I forgot to mention; it's just a MC which start playing when the frame is entered) to continue to play (bounce down again).

At the end of the pop-up text timeline, there's this code:


Code:
MovieClip(parent).pl.play();
which tells the preloader to start playing again (remember the extra frames I mentioned above). At the end of that there's this code:


Code:
MovieClip(parent).play();
which obviously makes the main timeline running again.

PROBLEM: When I upload the swf, the loader works, but when I refresh the window, it shows the full preloader, but then refuses to do anything :s

If anyone needs more code or something, let me know, and thanks for reading my way too long explanation

View Replies !    View Related
Preloader Loads More Than 100%
I have a bar preloader that is growing more than 100% when the movie loads. This looks weird because there is an outline around the bar and the bar goes beyond the outline. The code is below. Can someone help me?


ActionScript Code:
this.onEnterFrame = function() {
    // trace the percentage of the movie that has loaded
    percent = (_root.containerMC.getBytesLoaded()/_root.containerMC.getBytesTotal())*100;
    if (!isNan(percent)) {
        // The following only concern the preloader's displays...
        if (percent == 0) {
            percent_display = "";
        } else {
            percent_display = Math.ceil(percent)+"%  loaded.";
        }
        this.loadbar._visible = true;
        this.outline._visible = true;
        this.loadbar._xscale = percent;
        if (percent>1) {
            }
        // End of preloader's displays...
        _root.containerMC.stop();
    }
    if (percent == 100) {
        // this sends this preloader clip back to frame 1
        // where it awaits the next call to it...
        this.gotoAndStop(1);
        // this deletes this onEnterFrame event...
        // so that the movie clip stops looping...
        delete this.onEnterFrame;
        // preloader's displays handling...
        percent_display = "";
        this.loadbar._visible = false;
        // end of preloader's displays handling...
        _root.containerMC.play();
    }
};

View Replies !    View Related
Preloader Loads At 20%
hi,

i have a problem with one of my mc, the problem is that when the loading text shows, it starts from 20% and not 1%. I attached the file, can you please check what is the problem?

thnaks

View Replies !    View Related
Preloader Loads Other Stuff Before Itself DUH...
My stinkin' preloader loads other stuff even before itself!!!


Here's the smack:

I'm working on a series of tutorials for the software that my company makes, made with Flash 5.

We start with our basic percentage bar preloader screen (first scene in order), and then it launches into the movie (next scene). The actionscript for the preloader is of the standard percent=bytesloaded/bytestotal variety.

Embedded into the main movie is a sound file, the soundtrack to the tutorial (composed by yours truly). It is not attached to the timeline of the "music" movie clip, but loaded as a sound object so that the user can shut off the music at will.

The problem is that the preloader decides to load the sound object first, even BEFORE the graphics that make up the preloader! This means that the user is staring at a blank white window for thirty seconds or so, and suddenly the preloader appears with 65% or so loaded already on the bar.

Watching the movie in "show streaming" mode confirms that everything is loading properly, and the loader bar is accurate.


SO......

How do I tell the preloader to load its own graphics BEFORE it loads the sound so the user isn't looking at a blank window?


I humbly appeal my case to all you FlashGods out there to smile upon me from on high and assist a humble and lowly newbie.

View Replies !    View Related
Preloader That Loads All Scenes
hey,
is there a way i can make a preloader that loads all the scenes before it plays the first scene? and does anyone know how to do it? it would be really helpful.

thanks for your time.

View Replies !    View Related
Preloader That Loads All SWFs
My post got lost somewhere out there. I'm trying to write a preloader that will load all the swf files you need before it starts playing the first one. I really don't care to show kb or percentage progress, just to wait while it loads all of them. All the tutorials are about loading 1 swf in a fancy way, I am looking for all. If anyone can point me in the write direction I'll appreciate. thanks.

View Replies !    View Related
16kb Loads Before Preloader Does...
I have a small animation - that loads a radio commercial for playing. The preloader works fine, however, doesn not begin til about 20 kb has been loaded! I am not sure why this is, is it common?

Cheers,

Nick

View Replies !    View Related
White Bg Loads Before Preloader?
does anyone know how to get rid of the white bg that flashes before you swf preloads?? to see what i mean... please click here

http://avidgraphics.net/CCDesignStudio.html

on slower connections, a white bg flashes before the swf loads. i tried setting the swf to transparent bg and nothing happens. there is NO white bg set in my swf....

anyone have any ideas how to get rid of this?

thanks Tracy

View Replies !    View Related
Preloader: Loads Everytime
First off let me say I've searched theses forums for the last hour for an answer....it doesnt help when people have craptastic subject lines like "HELP! DOESNT WORK!" So i figured mine was a smart one

Anyways. Have a preloader, it shows the loading process everytime, so its not actually working.

FRAME 1

Code:
percent_loaded = 1;
total_frames = 212;
value = 13;
LOADED_FRAME = 3;
FRAME 2

Code:
if (Number(percent_loaded)>=100) {
gotoAndPlay(15);
}
FRAME 3

Code:
ifFrameLoaded (LOADED_FRAME) {
percent_loaded = int((LOADED_FRAME*100)/total_frames);
LOADED_FRAME = Number(LOADED_FRAME)+1;
setProperty("/BAR", _xscale, percent_loaded*value);
}
FRAME 4

Code:
gotoAndPlay(2);

View Replies !    View Related
Preloader Loads Up Late
Hi everyone, Im almost done with a site that Im doing for a client, but i just realized that the Preloader that I have been using all along isn't loading up right away. I know more then 1 person has had this question, i have read alot of those peoples post but just cant seem to figure out the answer. The script that im using is this.

stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
myTextField.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
loaded.text = getBytesLoaded()+" Bytes Downloaded";
total.text = getBytesTotal()+" Total Bytes ";
}

I have my preloader on the 1st frame in scene 1, scene 2 is where the rest of the site is. Is anyone able to help me out and look at that script and tell me why its not working, I would really really appreciate the help.

Thanks
Frank

View Replies !    View Related
Preloader Loads Only First Frame...
Hi all,
in the main movie I have a preloader, which loads external swf files.
But preloader always loads the first frame of the loading swf. Does anybody know how can I do it to load all the frames in the loading swf?
Thanks for every idea.

View Replies !    View Related
Problem With Preloader That Loads Another SWF
I'd really appreciate any advice on this.

I have made a Flash website that needs a preloader. The ActionScript on _root frame 1 sets up a load of functions and variables, then it does goToAndPlay(51) where the content of the website all starts appearing. It's got a lot of nested movieclips in it all with bits of ActionScript, with various functions and variables written in this style:
Code:
_root.movieclip_mc.another_mc.someVar


When I go on it in a web browser, I just get a white box for quite a few seconds, then when it's fully loaded it starts playing. I obviously need something to say "Loading" and a percentage.

I've seen some advice about starting another SWF and using loadMovie to load the other one into it with a preloader. But if I do that, will things like "_root.movieclip_mc.another_mc.someVar" stop working, because their paths relative to _root have changed?

Is there any way to dynamically load and then switch to the new SWF, so it's not running as a movieclip instance in the _root of the pre-loader SWF, but as the main movie? Or will the nested AS paths starting from "_root" still work as if it was running as the main SWF? Or should I just do it all in one SWF, with some AS on the first frame?

If anyone knows of a good example/tutorial on doing this, that would be great. It would be good if I could find some code I can use to show some text saying how much is loaded, and then gotoAndPlay the appropriate frame when it's complete.

View Replies !    View Related
Problem With Preloader That Loads Another SWF
I'd really appreciate any advice on this.

I have made a Flash website that needs a preloader. The ActionScript on _root frame 1 sets up a load of functions and variables, then it does goToAndPlay(51) where the content of the website all starts appearing. It's got a lot of nested movieclips in it all with bits of ActionScript, with various functions and variables written in this style:
Code:
_root.movieclip_mc.another_mc.someVar
When I go on it in a web browser, I just get a white box for quite a few seconds, then when it's fully loaded it starts playing. I obviously need something to say "Loading" and a percentage.

I've seen some advice about starting another SWF and using loadMovie to load the other one into it with a preloader. But if I do that, will things like "_root.movieclip_mc.another_mc.someVar" stop working, because their paths relative to _root have changed?

Is there any way to dynamically load and then switch to the new SWF, so it's not running as a movieclip instance in the _root of the pre-loader SWF, but as the main movie? Or will the nested AS paths starting from "_root" still work as if it was running as the main SWF? Or should I just do it all in one SWF, with some AS on the first frame?

If anyone knows of a good example/tutorial on doing this, that would be great. It would be good if I could find some code I can use to show some text saying how much is loaded, and then gotoAndPlay the appropriate frame when it's complete.

View Replies !    View Related
Preloader That Loads 50% Then Plays
I want to make a preloader that begins my flash movie once it has 25% or 50% of the swf loaded. This is what I have on my first frame of my preloader right now:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadBar_mc._height = getPercent*179;
this.loadText = Math.round(getPercent*100);
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

This works fine and dandy.

I've tried:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal()/2);
getPercent = bytes_loaded/bytes_total;
loadBar_mc._height = getPercent*179;
this.loadText = Math.round(getPercent*100);
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

and I'm getting errors.

Can anyone help??

View Replies !    View Related
Copyright 2005-08 www.BigResource.com, All rights reserved