Preloaders For External Swf's
I am creating a site which will load an external swf file into a blank movie clip for each category on my menu.
I was wondering if anyone has any advice on setting up the preloaders for when each section loads, similar to the miniml site (http://www.miniml.com/flash/index.html).
I've done preloaders before, but never one for each section of a site. Thanks for any help.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-15-2002, 04:56 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
External Preloaders
Hey need the theroy behind and external preloader, cause ive been trying 4 a while but it loads the file but there is no preloader for it at all can any one help nad send a good demo external preloader or something ok thanks in advance
External .swf Preloaders Help
hey all having troubles with making a
preloader for an external .swf file
which loads into my main page.
I'm trying to have a preloader come
up when i'm loading a movie with a
bunch of pics on my portfolio site.
I think it has something to do with getbytesload
and getbytestotal, but i'm not really sure what to do with it.
To get a better idea of what i mean, Check out my site at www.jessboy.com
if you go to the portfolio section you'll see what i'm talking about.
NOTE: When you click on the artwork button, it does load the .swf, but the movie is about 1mb, so it takes a little while to load,
I know i'm asking a lot, but if anyone has seen a tutorial or knows of something, i'd appreciate it.
Preloaders For External Swf
I am making a website in flash in which thumbnail images set off external movies on the main movie. I am having trouble making a preloader for my external movies. I cannot find anything in the movie section or the tutorials that will help with this problem. please help.
Help With External Flash Preloaders
k, this is the problem i need to no how 2 load 10 movies or more at once but all the movies are external and i want them loaded before they enter the main site, look @ this:
http://rachelstevens.web1000.com/(NOT PORN)
so the first page is where i want the preloader 2 be and then when u enter the site (flash) it will be all loaded and be much quickier, got it?
ne way, thanks for ne help
Preloaders For External .swf Files?...please Help
ive got a main movie which loads 15 different swf movies at level 1...ive then got another 15 swf movies which load at level 2. ive created a preloader in a seperate scene for 1 of the movies at level 2 and this works fine. im now trying to duplicate this for the other 14 on level 2 but it doesnt work (even though ive copied the script exactly)
heres the script for the button:
on (release) {
loadMovieNum ("luckybreak/luckybreak_stills.swf", 2);
}
heres the script for the preloader:
ifFrameLoaded ("Scene1", 14) {
gotoAndPlay ("Scene1", 1);
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
am i missing somthing here? i dont understand why it doesnt work if its exactly the same as the one that does?
[Edited by boonos on 09-20-2001 at 11:35 AM]
Preloaders And External Swfs
I have two questions about preloaders:
1. When I load an external .swf file, will the preloader that is set up to work as regular, stand alone file, work when it is loaded into another file?
-I assume that this will work and is what is happening when you see the 'loading' for a specifically called part of a site. I am just asking because when I have set that up, all I see is a flash of the preloader bar, then the swf is loaded.
2. How do you set it up to load sequentially? Where you have a list of thumbnails that are loaded and you want the large images to load, but to load them as they become available (with a 'please wait'), and not all at once. Here's an example:
http://www.richardprescott.com/ and
http://www.chris-bailey.com/
- the latter example loads each section of the site in order, making the first part viewable while the rest is loading. Kind of like loading in the background while something is playing. Can anyone help me? : )
Much thanks.
Please Help External Byte Preloaders
Hello everyone!
I was wondering how to make a bytes preloader file that can serve as preloader for an external movie.
How do I do this?
Thanks everyone!!!!
Any Suggestions For External Preloaders
Can anybody out there suggest where I can find a preloader with a loading bar that will work on and externaly loaded swf file or one that will load into a target in the main movie.
I have found several tutorials but none for loading external swf. I have tried converting several preloaders but can never get the damn bar moving.
I'd be grateful for any help.
Seperating Preloaders From External SWF
In my Main Movie I have a Movie Clip which acts as a preloader for an external SWF file. My preloader is 11 frames long and I want it to loop until the external SWF file is loaded and then stop. This Movie Clip has 2 layers - one for the preloading graphic and the other layer for the script. In the first frame of the Script layer I have put the command:-
loadMovie ("image1.swf", "_root.container");
At Frame 9 of the movie clip I have the following command:-
if (_framesloaded >= 11) {
gotoAndStop ( 11 );
}
At frame 10 of the movie clip I have a simple gotoAndPlay(1) command.
THE PROBLEM is that the preloader only plays once - it doesnt loop over and over until the external SWF is loaded and then stop. Am I putting the loadMovie command in the right place?? The External SWF does eventually play but the preloader stops before it is loaded.
How can ensure the preloader loops until the external SWF is loaded?
Essentially, what im trying to do is keep the preloader in the Main Movie and the External SWF separate from each other.
I think im nearly there but I just cant figure it out. Any help is greatly appreciated.
Preloaders For External Swfs
Hey there, i'm building a website that has a randomly loading external background image thats in a swf file what i'm trying to do is add a preloader to this but every time the external file loads it sends the main movie back to the start of the scene its playing - also i need to find out how i can get the preloader to start without the time delay.
heres the preloader script at the moment its help in the external swf file
onClipEvent (enterFrame) {
framesLoaded = (Math.ceil (( _parent.getBytesLoaded() / _parent.getBytesTotal()) * 100));
gotoAndStop (framesLoaded);
info.text = framesLoaded + "% completed";
if (framesLoaded >= 100) {
info.text = "COMPLETED";
_root.gotoandplay(2);
}
}
any help on this will be awesome as this is doin my head in big time!!
cheers
ant
FrustratedComponents In MCs And External Preloaders?
Can't seem to figure this one out! I've looked at I don't know how many preloader posts, but can't find anything that works for me. I'm still figuring this actionscript thing out....
This is what I have.
Main movie with buttons which load swfs into MC on _level15 into MyMC1.
Each swf has components inside it, so the preloader needs to be outside in the main movie.
How do I set up a preloader inside my main movie, which fires when a button is pressed?
I have this code on the buttons at root level:
AS on button:
on(press) {
_root.createEmptyMovieClip("MyMC1",15);
_root.MyMC1._x = 165;
_root.MyMC1._y = 70;
_root.MyMC1._xscale = 100;
_root.MyMC1._yscale = 100;
_root.MyMC1.loadMovie("FAQ.swf");
}
This is the code I usually use for my preloaders inside the imported swf.
AS in timeline:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"% complete";
if (bytes_loaded == bytes_total) {
this.gotoAndStop(3);
}
So, If I want the preloader to appear when the button is clicked,what preloader code do I use, and where does it go?
Any help would be greatly appreciated!
External SWFs And Preloaders?
I am curious about preloaders.... and which are best in these instances..
for a big file like this do you think the swf is an external swf being loaded?
http://www.elizabeththegoldenage.net/site.html
http://www.thingswelostinthefire.com/
For big swf movies like this is it best to load an external SWF and if so next question is how do you use a preloader to load an external swf? simple example?
Thanks
External Movies And Preloaders?
I am curious about preloaders.... and which are best in these instances..
for a big file like this do you think the swf is an external swf being loaded?
http://www.elizabeththegoldenage.net/site.html
http://www.thingswelostinthefire.com/
For big swf movies like this is it best to load an external SWF and if so next question is how do you use a preloader to load an external swf? simple example?
Thanks
Preloaders Again (loading External Swf)
I looked everywhere (in forum and out) for a satisfying answer, so posting here!
I want to make a preloader that loads external swfs to browser cache invisibly in the background, while the preloader plays. Now I have tried here:
http://www.actionscript.org/forums/s...d.php3?t=74988
but alas Im pretty much noob to actionscript and only know basics. I did try what Fg says in there, but I dont seem to understand what Im doing.
I did this:
Code:
host.loadmovie("movie1.swf");
setProperty("host", _xscale, "2");
setProperty("host", _yscale, "2");
setProperty("host", _alpha, "0");
for the external swf to load, but dont know how to play preloader WHILE it loads.
Because I also didnt know where to put the getBytesLoaded () and getBytesTotal () so I can tell when to play next frame!
If anybody can just show me, and more than that, explain to me what Im supposed to do, I will very much appreciate it.
Thanks,
Zex
Preloaders In External .swf Not Working
Hi people.
I have built this website to showcase our work
http://www.perfectmarketing.co.uk
All the movie clips shown in the centre of the screen are external .swfs with their own preloader.
But when the site is live, the preloaders don't seem to be working, it takes a while for the movie clip to load and the preloader doesn't show. I want it to show so people know something is loading.
anyone have any ideas.
Thanks,
Paul
Preloaders In External .swf Not Working
Hi people.
I have built this website to showcase our work
http://www.perfectmarketing.co.uk
All the movie clips shown in the centre of the screen are external .swfs with their own preloader.
But when the site is live, the preloaders don't seem to be working, it takes a while for the movie clip to load and the preloader doesn't show. I want it to show so people know something is loading.
anyone have any ideas.
Thanks,
Paul
External Movies' Preloaders
Hi,
I'm using empty movie clips to load a few particularly large external swfs into my website. Each external swf has its own preloader. I've tested these and work perfectly normal - independently.
Once I load them into the website, the preloaders appear not to function and the external swfs load in really choppy and slow. I'm using getbytesloaded preloaders so this shouldn't be happening.
Anyone know what is up? should I change the preloaders in the external swf from _root commands to something else?
Thanks
External Movies And Preloaders
i dunno if anyone's had this problem or knows how to solve it but any help would be greatly appreciated! here goes...
my movie resides completely on the first frame and i have external videos (quicktime movies converted into swf files) that are loaded in when the user clicks a button. this is all groovey and works fine; however, the size of the project is such that it now requires a preloader. i moved the movie to frame 2 and built a bog standard preloader in frame 1 but whenever the external swf movies load in, the playhead jumps to frame 1 and the whole lot starts again. i have added a stop() command to the first frame of the main movie but still no joy. if anyone has any ideas, please, please let me know...
chees
Preloaders Within External .swfs
I have a .swf file that uses a basic percentage preloader:
loaded = Math.round(this.getBytesLoaded());
total = Math.round(this.getBytesTotal());
getPercent = loaded/total;
this.Text = "Loading file... " + Math.round(getPercent*100) + "%";
if (loaded == total) {
this.gotoAndPlay(3);
}
which works fine. However, when I put the file within another .swf, it doesn't work. What could the problem be? I apologize if this question has been asked a million times before. Thanks
Preloaders For Loading External Swf.
Hi!
I have a few swfs loaded into the 'main' swf file through 'load movie'. As each of the independent swfs are quite big files, I need a preloader for each of them. However, when I include the 'load movie' in the 'main swf', the independent swfs have not finished loading yet, and the movie bounces back to the begining, which is not my intention. Am I using a wrong type or preloader? I'm actually using the preloader I got from Kirupa, the one which is load with percentage.
Can someone help me out here? The 'main.swf' will display a blank white wall if I take off the preloaders.
Also, I originally created the flash in MAc, and the 'load movie' command links to, say...painting.swf. But when I transfer the files to PC, it automatically changes to painting, without the swf. extension. As a result, the link could not be read. I modified the url in the load movie command to 'painting' without the extension. I have yet to test on a mac, but I think it would not work. Any ways out of this?
Thanks!
Preloaders And External Images
guys, i am currently working on a flash file so that its re-useable.
Currently a string of images are passed in via flash vars
Code:
flashvars: image1=db.jpg, image2=db1.jpg
the movie currently loads these into blank movie clips on a timeline with
Code:
_root.image.loadMovie(imageFilename);
_root.image2.loadMovie(imageFilename2);
_root.image3.loadMovie(imageFilename3);
_root.image4.loadMovie(imageFilename4);
_root.image5.loadMovie(imageFilename5);
now are these going to load into as they have an animation (fade in and out first image, fade in and out second image and so on)
my theory is that these wont preload and will just appear halfway through the animation or such like due to the fact they are external files being loaded in and arent factored in to a preloaders calculations as such?.
External Movies' Preloaders
Hi,
I'm using empty movie clips to load a few particularly large external swfs into my website. Each external swf has its own preloader. I've tested these and work perfectly normal - independently.
Once I load them into the website, the preloaders appear not to function and the external swfs load in really choppy and slow. I'm using getbytesloaded preloaders so this shouldn't be happening.
Anyone know what is up? should I change the preloaders in the external swf from _root commands to something else?
Thanks
External Movies And Preloaders
i dunno if anyone's had this problem or knows how to solve it but any help would be greatly appreciated! here goes...
my movie resides completely on the first frame and i have external videos (quicktime movies converted into swf files) that are loaded in when the user clicks a button. this is all groovey and works fine; however, the size of the project is such that it now requires a preloader. i moved the movie to frame 2 and built a bog standard preloader in frame 1 but whenever the external swf movies load in, the playhead jumps to frame 1 and the whole lot starts again. i have added a stop() command to the first frame of the main movie but still no joy. if anyone has any ideas, please, please let me know...
chees
Preloaders Within External .swfs
I have a .swf file that uses a basic percentage preloader:
loaded = Math.round(this.getBytesLoaded());
total = Math.round(this.getBytesTotal());
getPercent = loaded/total;
this.Text = "Loading file... " + Math.round(getPercent*100) + "%";
if (loaded == total) {
this.gotoAndPlay(3);
}
which works fine. However, when I put the file within another .swf, it doesn't work. What could the problem be? I apologize if this question has been asked a million times before. Thanks
Preloaders For Loading External Swf.
Hi!
I have a few swfs loaded into the 'main' swf file through 'load movie'. As each of the independent swfs are quite big files, I need a preloader for each of them. However, when I include the 'load movie' in the 'main swf', the independent swfs have not finished loading yet, and the movie bounces back to the begining, which is not my intention. Am I using a wrong type or preloader? I'm actually using the preloader I got from Kirupa, the one which is load with percentage.
Can someone help me out here? The 'main.swf' will display a blank white wall if I take off the preloaders.
Also, I originally created the flash in MAc, and the 'load movie' command links to, say...painting.swf. But when I transfer the files to PC, it automatically changes to painting, without the swf. extension. As a result, the link could not be read. I modified the url in the load movie command to 'painting' without the extension. I have yet to test on a mac, but I think it would not work. Any ways out of this?
Thanks!
Loading External Swfs With Preloaders
i'm trying to load a swf file which has its own preloader into my main swf movie. Its fine when u test the streaming from its original file, but as soon as u test the main swf. when u activate the external swf to be loaded it skips the loading actions all together.
Is this because it's using the main timeline and not the one in the external swf?
Is it best to have the preloaders in the main movie and not the external ones?
Is it better to use the levels instead of targets?
give us a break someone
How Do I Make External Byte Preloaders?
Hello everyone!
I was wondering how to make a bytes preloader file that can serve as preloader for an external movie.
How do I do this?
Thanks everyone!!!!
Preloaders-external Movie Clips
o.k. I have issues with preloaders, i have read the board for answers to my question but it does not seem to help my particular situation. I'm inept at actionscripting so I am getting rather confused.
Hopefully someone can help me!!
I have a main movie. The preloader is a component I copied from another flash file. It is a component you cannot edit via actionscripting. In fact there is nothing in the actions. It is just a component you can edit colour of font, loading bar, etc.
Preloader works fine for main movie. Problem is I create a blank movie clip where I can load external swf's. I point the external swf to the "target" empty movie clip. This also seems to work fine. The way i load an external swf is in the actionscripting it will go something like this
on (release) {
unloadMovie("printframe");
unloadMovie("videoframe");
unloadMovie("webframe");
loadMovie("photography.swf", "photoframe");
Now: the exteral swf's are getting large and need a preloader. I have used the same preloader and put it in the beginning of the external swf. But this does not seem to work smoothly. In fact when i try to load an external swf the main movie seems to start over.
I know my method is not the most reliable but it seems to work out fine until i put a preloader in the external swf's. The thing is it works fine about 75 percent of the time......I of course need it to work 100 percent of the time.
Help would be appreciated. I will include the preloader i use.
Using External Swf Or Using Internal MCs For Insite Preloaders
Hi,
I'm designing a site wiht five sections in it, and I'd like each section to have it's own preloader as the user clicks on the menu item. If I'm doing this loading five external swf files for each section then it isn't a problem.
If I want to do this with all the MCs being internal how would I go about this, as I don't want the use to have t wait for the whole site to load when it launches.
Loading External Preloaders Are Driving Me Mad
Hey here is the problem.
I basicaly understand what i have to do - yet cant get it to work.
I have a page i want to have multiple preloading sequences for each section.
My "start-up" preloader works - this preloads my main movie-clip.
Now i have a button and a blank movie-clip with a instance name attached to it inside this main movie-clip.
the instace is: "container"
the external .swf is: "test"
I would like on the press of my button for the external .swf
to load into my blank movie-clip.
Here is the code i placed on the button:
on (release) {
loadMovie("test.swf","container");
}
It kind of works - on the press of the button i see my preloader from the test.swf... but it dose nothing.
Yet when i test my .swf alone - if works fine.
Can anyone see what i have done wrong. Itis driving me mad.
Cheers Werglum
External Movies' Preloaders Problem
Hi all,
I've set up a website to load external .swfs to save load time up front. Each of these swfs has their own preloader. The idea being, when the user clicks on one of those links, a preloader would display loading the external movie.
These movies do load in, but no preloader runs and the screen is left blank for quite sometime until they partially load in.
What's up? I have a getbytesloaded preloader on my maintimeline and each of the external movies uses getbytesloaded.
I'm using a simple loadmovie command to call them.
Help........would be greatly appreciated
thanks.
Preloaders And External Movies, Best Practise?
Hi everyone,
What's the best way use preloaders with external movies in terms of getting the preloader up onscreen as fast as possible. Hate having a blank screen hanging for a few seconds before the preloader appears!
I'm building a dynamic flash site that loads content (external movies) on demand. I've built the preloader (also an external movie) into the first frame of the other external movies, but there remains a lot of lag. The preloader is common to all the movies and is only 2kb but takes a few seconds before is appears.
Should I be building the preloader into the main movie?
Thanks
Rob
Preloaders In External Loaded .swf Files
Can anyone help me with the following problem:
In my flash site (Flash 5), I want to load several .swf files into a pictureholder, that's no problem, but how can I make a preloader into that external files? Because he only shows the external files until they're fully loaded, the preloader script I use for normal preloaders doesn't work in external loaded files! Does anyone have a solution for my problem?
Thnx in advance!
Centering Preloaders To External SWFs
I have a preloading script from the Flash MX 2004 Bible to use on external swfs and I'm trying to figure out how to center my preloader to the external swf. I am able to position both the loaded clip and preloader by setting the _x and _y values on each but when I tried to use the width and height of the external file my preloader is placed at 0,0.
I tried obtaining the center point as such:
_root.holder_mc._x + _root.holder_mc._width/2;
I did the same with the height and I can post code if it is needed.
m/
Problem With Preloaders In External Files
OK i figured out my problem. all works now. Thanks anyhow!
I prepared 3 swf files - each with sound in it- tested in browser they work "fine", preloader shows up, then music began to play.
problem when i link them into a movie - that movie has a preloader itself, since includes attached sound(perhaps would be better replace attached with another swf playing onLoad), and that movie has 3 music buttons - on click 1,2,3 should downlad track 1, 2, or 3 (each on different swf file).
Problem: after a click - preloader shows up - frozen, and uncomplete - and no sound plays.
main movie - each button (purple if sound button):
on (release) {
stopAllSounds();
_root.contents.loadMovie("sound_2_mov.swf");
}
main movie preloader (when main movie opens it works just fine):
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(4);
}
In that movie i have another empty movie with another group of buttons to load external text files. They have no preloaders and work fine.
external movies:
I tried to replace _root with _parent in external swfs ,
where in main movie:
on (release) {
stopAllSounds();
container.loadMovie("sound_2_mov.swf");
and preloader in external too... etc
Inconsistant Preloaders For External SWF's...odd Problem
I have a flash website that I have tested on multiple machines and received various results...from my preloaders that is.
I have a main SWF file (which the preloader for that ALWAYS works) and I have external SWF's that load into sections of the main SWF. I used loader components on my main SWF to load the external SWF's.
Each external SWF also has their own preloaders and that is the part that is so inconsistant! When I post everything online and test the site, the preloaders for the external SWF's usually don't appear and the space is left blank until the content loads. However, I have tested this on some machines and the preloaders DID work...that is some preloaders work while others don't; and I get different results each time I test it. So its just a very confusing problem.
I doubt that its the actionscripting that needs to be fixed because it does, theoretically work, but rather I was courious about any/all export settings and any other factors that may be the cause of this inconsistancy.
My goal is to have the preloaders work EVERYTIME. I mean I have been to flash sites that preload something (an image for instance) and even if I visit another part of the site, and come back to that image, the preloaders still appear, no matter how many times I've been back there. An example is from this (very well done) site:
http://www.dreamstudiodesign.com/
In that site the preloaders appear everytime. That's what I want. Can someone help me out? If you need a better understanding of what I'm asking, please let me know. Thanksabunch!
Multiple Preloaders For External Files
I have designed this site with few external swf. I was wondering how can I preload all the externals swf's file in the same preloader of my first frame and scene. I have this code :
onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = percent + "%";
gotoAndStop(percent);
if (loaded == total)
{
_root.gotoAndPlay(2);
} // end if
}
and I wanna have the name of the swf that is been loaded showing up on the text box with the bar of progress moving especifically for the progress of that external.
Thanks guys....
Do Preloaders Take External SWFs Into Account?
I am loading external SWF's into my main movie to act as different "pages" when each button is clicked.
The main movie has a preloader. Will this preloader taking into account the fact that the main movie is calling/loading other movies or will each of the movies being loaded require their own preloader?
Many Thanks.
Centering Preloaders To External SWFs
I have a preloading script from the Flash MX 2004 Bible to use on external swfs and I'm trying to figure out how to center my preloader to the external swf. I am able to position both the loaded clip and preloader by setting the _x and _y values on each but when I tried to use the width and height of the external file my preloader is placed at 0,0.
I tried obtaining the center point as such:
_root.holder_mc._x + _root.holder_mc._width/2;
I did the same with the height and I can post code if it is needed.
m/
Riddles Smiddles External Preloaders Flash 5
Can anyone tell me what the heck I'm missing here please!!!
Okay. I have a Main movie for which I am loading another swf(RIDDLES) into a movie clip called---FINAL(MC) located on the main movie's timeline.
RIDDLES,(loads into FINAL (MC)), has several buttons and an external preloader function on it's main timeline, which will load other swf's into an Movie Clip on RIDDLE'S stage--- called---ONE(MC)
My text box and bar graphic is in it's own movieclip-- LOADER(MC) because I want to be able to set the visibility on the clip to show when it's loading something into ONE(MC) and not show when It's not.
When I test RIDDLES BY ITSELF(not from the main movie that I load RIDDLES in) I can see my text reading bytes loaded and the preload bar moves as it should. When I press any one of the buttons, the preloader works fine loading into ONE(MC). When I play the movie from the intial MAIN MOVIE the preload bar deosn't work at all. It sits there and I can no longer see the text in my text box. It deosn't even respond to any button clicks that load a movie into ONE(MC) anymore!!!
I know that this is a targeting problem, but I can't seem to figure out where! I've tried everything!
Please help!
The code:
In MAIN MOVIE : loadMovie ("RIDDLES", FINAL);
Now keep in mind that Riddles is already set to load something into ONE(MC) initally. When it loads into Main.But, I want it to load a new movie into it when you press a button in Riddles.
The code in RIDDLES.
On the ONE (MC):
onClipEvent (enterFrame)
if (this._url != _root._url) {
_root.preload(this);
}
}
THE FUNCTION:
function preload (ONE) {
if (!ONE.doneLoading) {
if (ONE._framesloaded>0 && ONE._framesloaded ==ONE._totalframes) {
ONE.doneLoading = true;
loader._visible=0;}
else if (ONE._framesloaded<ONE._totalframes) {
ONE._doneloading = false;
loader._visible=1;
}
totalbytes =ONE.getBytesTotal();
percentLoaded = Math.floor(ONE.getBytesLoaded()/totalbytes*100);
loader.OutputLoaded = _root.percentLoaded+"% completed";
loader.Bar._width=loader.barborder._width*percentL oaded/100;
}
}
I know that last piece of code is pretty lame, but it works and it's the least of my worries.
Can anyone solve this riddle!!!!???
I'm using Flash 5.:-)
Using External Preloaders For Attached Sounds And Other Problems
I have a flash 5 movie (main.swf). In that movie, there is a movie clip that sits on the stage called "window". Window contains a simple sound player using attached sounds from the library. (Incidentally, there are four sounds, with linkage names "sound1 - sound4).
When I test this movie, everything works very nicely.
However, as happens with attached sounds, the first frame is very large, and nothing loads, including the preloader, until 70%.
So, I've been working and searching and doing trial runs for days now, trying to use various methods to have a preloader show up before these attached sounds load in, including: loading the sounds in from an external swf combined with a preloader (from sonify.org), and following various threads here with suggestions of using an external preloader, where main.swf would be loaded into level 1 of a new "loadintolevel.fla" movie, and that new movie contains a 1 (or 3 , depending on the thread) frame preloader that should show the loading progress of main.swf.
The problem I'm encountering with all of these is that, while main.swf loads up successfully in every case, I cannot get my sounds in the "window" movie clip to play.
I'm convinced that it is a target path issue, but I can't solve it.
I have a graveyard of about seven fla files that I've been attempting to get working, using those various methods, but I could create striped down fla's of the latest attempt and post them, if it would allow anyone to help me out of this horrible jam.
Preloaders (Multiple External .swfs + 'hidden')
Hey peoples,
I don't think I was that clear in my last thread, so I'll try and clarify things a little better.
I have several different .swf files that are my 'scenes' for a walk-through role-play game. (So they're basically pictures of rooms)
These are loaded into my Interface .swf, in a movie clip called 'container' following Voets tute. This works! The buttons inside each .swf relate back to the parent, or level 0, to 'replace themselves' with the next room.
My problem:
Some rooms have large file sizes. I find games that have many pre-loaders throughout them irritating in the extreme, so I was wondering if there is a way to pre-load multiple external .swfs in one preloader, before the interface.swf starts to play. I'd like to be able to specify which ones as well.
Preloaders (Multiple External .swfs + 'hidden')
Hey peoples,
I don't think I was that clear in my last thread, so I'll try and clarify things a little better.
I have several different .swf files that are my 'scenes' for a walk-through role-play game. (So they're basically pictures of rooms)
These are loaded into my Interface .swf, in a movie clip called 'container' following Voets tute. This works! The buttons inside each .swf relate back to the parent, or level 0, to 'replace themselves' with the next room.
My problem:
Some rooms have large file sizes. I find games that have many pre-loaders throughout them irritating in the extreme, so I was wondering if there is a way to pre-load multiple external .swfs in one preloader, before the interface.swf starts to play. I'd like to be able to specify which ones as well.
Loading Images From An External Folder/Preloaders And Testing Help
Hi,
Just a quick question, haven't looked at Flash for a few years now and am trying to finish off a website for my business that I started but never finished.
I have always had the problem with loading in external images dynamically and getting them to work with a preloader. Now I think my problem is that I never upload the swf to the internet to test and from what I know to test dynamic anything in Flash it must be uploaded to the net?
Now my question is this, as I haven't had anything to do with Flash and its progession for quite some time, has this changed, ie. do I still have to upload my files onto the net to test, or does the new Flash 8.0 let you test it without having to put it on the net (if so I will get Flash 8.0)...
... or is there any software that will test my Flash file without having to put it up on the net everytime.
I am loading images in dynamically into an external SWF, I am using a preloader and a mask for each image.
Also if I do have to load it up onto the net each time I make a change, what is the best procedure. I have to delete my temp net files each time I do the test don't I?
Any advise would be appreciated.
WB
How Can I Set Up Multiple Preloaders To Load External Files On Demand (AS3)?
I've been looking for AS3 preloader tutorials, but haven't found what I'm after.
I'm trying to make a Flash-based portfolio. Since there may be a lot of images, rather than having one progress bar for all of them I want to load the external image files for each category only when the user goes there: Paintings, Pastels, Drawings, Logos, etc.
I've seen examples of how to load an external file from an xml file, and various other tutorials about the Loader and LoaderInfo classes, but nothing that explicitly explains how to make multiple preloaders.
I have some thoughts but before possibly going down the wrong road, might someone be able to suggest some sample code for a simple preloader that would load the contents of one of three xml files based on what icon was clicked? I've made a progress bar preloader for the main swf file, so I understand how to make the progress bar itself; but I'm wondering if someone knows a (relatively) simple way to set up multiple progress bars. There seem to be so many parts, classes to import, etc., that a simple template would be a real help.
In lieu of actual code, any suggestions would also be appreciated.
Thanks a lot in advance for your time.
Darrell
Trouble Loading External .SWF Into My Main Page With Preloaders
Dear All,
I am working on my first Flash project with AS3.
The structure of the flash site is pretty simple. I have a stage 1165px wide x 710px height
Inside my Stage I have an horizontal bar with a menu followed by a container right under.
**** My goal is that whenever I click on one of the button on the menu, that the related external .SWF loads into
the container with a preloading bar and %. *****
I already did all my .SWF files and it is pretty frustrating at this point to be stuck at this point of development.
Please help.
-Alex
Attach Code
// In my actionscript layer, I First I add the default Page to the container:
var CurrentContent:String = ("/broadcast.swf");
// Variable that hold the current external .SWF
var ChateauContent:URLRequest;
var ChateauLoader:Loader = new Loader();
this.ChateauContent= new URLRequest (CurrentContent);
this.ChateauLoader.load(ChateauContent);
addChild(ChateauLoader);
setChildIndex(ChateauLoader,0);
// ------------------------- This code to put it under my menu.
this.ChateauLoader.x=0;
this.ChateauLoader.y=168;
// When I click on a button from the menu I would like to call a function and //pass the value of the External .SWF to load and show a % and loading bar.
// i know this works without a preloader. but how can I add one ?
// I know I'll need 1 dynamic text and a MC rectangle.
this.ChateauLoader.unload();
removeChild(this.ChateauLoader);
{CurrentContent=("/store.swf");
this.ChateauContent= new URLRequest (this.CurrentContent);
this.ChateauLoader.load(this.ChateauContent);
addChildAt(this.ChateauLoader,12);
this.ChateauLoader.x=0;
this.ChateauLoader.y=168;
|