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





See Related Forum Messages: Follow the Links Below to View Complete Thread

Preloaders Between Files
I have been trying to create preloaders in between SWF files but nothing seems to work. I am trying to create a flash website and I want to have doors close when a person clicks on a button to go to another section. While the other section loads the doors will remain close, once the SWF file loads the doors will open. Please help me!!!

Preloaders For Big Files
Hi,

I would really appreciate any help on this matter.

I have an swf file where the first frame is about 120K which I can't change because it is due to action script and linkage from the library(I think).

I have tried a preloader using "getBytesLoaded" method but it still takes ages for the progress bar to come up due to the size of the first frame. I have also tried loading it as an external swf but then half of my functions don't work.

Is there any other way of preloading methods I could try?

Any suggestions would be really well received.

this is the code I used for the preloader

mask_mc._height = 1;
this.onEnterFrame = function():Void {
var loadedData:Number = this.getBytesLoaded();
var allData:Number = this.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
mask_mc._yscale = percent;
percentage_txt.text = percent + "%";
if (loadedData>=allData) {
gotoAndStop(2);
delete this.onEnterFrame;
}
};


thanks

celine

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 To External Files
is there neway to add a preloader to an externally loaded xml or .txt file?

Preloaders Don't Work In Seperated Swf Files
Hi,

I have a site built in a few linked swf files. I use loadmovie command to load different movies when needed. The reason of doing this is that I don't want to preload one big 800K plus swf file. Breaking it into a few smaller swf files are better for fast downloading. I use a preloader in each of those smaller movies.

if (_parent.getBytesLoaded() != _parent.getBytesTotal()) {
gotoAndPlay (1);
}


However, they don't seem to work as they suppose to. The preloading bar fills instantly, the playback jumps to the actual scene and keep on loading the rest of the movie. So what's going on? Can anyone help me here?

Are there any better way to load different movies fast?

Thanks in advance.

Shaun
[Edited by shaun_au on 04-18-2002 at 02:32 PM]

Preloaders For Dynamically Loading Jpg Files
does anyone know of what code I would need to use if i wanted a message like "Wait a minute, file is Loading..." displayed in a movie called text, before a jpeg called -"blood.jpg" is displayed in that same "text" movie.

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!

Flash Preloaders And Sound Files
Hi there

I'm having a problem that I can't seem to find a solution to despite my best efforts searching through Google.

The problem is that when I create a flash movie and add a preloader to it, the sounds that I added to the movie load first causing the preloader to pop up only when the sound files have finished loading ending up with a preloader that starts, for example, at 30% instead of 0%.

Does anyone know how I can solve this or perhaps have a link to a solution?

P.S. Hey to all you South Africans

Putting Preloaders On Dynamic Files
Hiya,

I've got myself a Flash site, with a main movie, a tumbnail gallery, and a set of image clips.

The gallery loads into the main movie, and so do the images, once the thumbnails are pressed.

I'm trying to put preloaders on all these files, but everytime I do, something goes wrong and the files stop from being loaded into the main clip.

I'm guessing there is a way around this problem. But how?

If anyone's interested, here is one of my image files, on which I am trying to put a preoader.

http://home.iprimus.com.au/robertkp/pic14.fla

Any help appreciated.

Cheers

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

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....

Putting Preloaders On Dynamic Files
Hiya,

I've got myself a Flash site, with a main movie, a tumbnail gallery, and a set of image clips.

The gallery loads into the main movie, and so do the images, once the thumbnails are pressed.

I'm trying to put preloaders on all these files, but everytime I do, something goes wrong and the files stop from being loaded into the main clip.

I'm guessing there is a way around this problem. But how?

If anyone's interested, here is one of my image files, on which I am trying to put a preoader.

http://home.iprimus.com.au/robertkp/pic14.fla

Any help appreciated.

Cheers

Large Files, PreLoaders And Cranky Clients
Okay, first post in this forum...

A little background. I don't do a lot of flash work. When I do, I use SwishMax.

I have a customer who asked me to do a gallery for him. "My customers are all top end and I do not ever expect to have people on low bandwidth connections looking at my online portfolio..." he assured me. Then 6 mos. after go live, he sold the company. He's still working with them, but the new owner complains that several clients have mentioned that the gallery files take a while to download. And on top of it, he feels the pictures are too small, so he'd like the size increased.

I put a preloader on a a test version of one of his galleries to show him (as I should have done in the first place). You can see it here, by clicking the "water" link (so it opens in a properly sized window).

I'm thinking that I might get some additional benefit by breaking the gallery into a couple of movies and chaining them together. Download the first via preloader, while that runs, download the second, as the second prepares to start, double check with the preloader, etc.

What are best practices here? Obviously my spec got changed 180 degrees, but I can't control that, and I want the guy to be happy. Thoughts, comments, cries of outright indignation at my stupidity? Let's hear it...

Thanks in advance.

Mark

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

Two Seperate SWF Files Preloaders - Not Loading When Embedded And Uploaded To Server
Hi All,

This is my first post and would very much appreciate any help I can get. Basically I have to SWF files embedded using the swfobject (dynamic) method.

The link is as follows:
http://www.mseventservices.com/T28/

Both preloaders on the two SWF files don't seem to want to load in the first instance, and after refreshing maybe only one file will load. However, if I went to the direct path of the SWF file, it would load (maybe after refreshing, but would load) - e.g. http://www.mseventservices.com/T28/Flash/MS_Menu.swf

Any ideas why this is the case?
The code for the preloaders is similar, but is still slightly different from one another, it is as follows:

-------------------------------------------------------------------------------------
import flash.display.*;
this.stop();

function Loading_Player(event:ProgressEvent):void {
var Percentage_Loaded:Number=event.currentTarget.bytes Loaded/event.currentTarget.bytesTotal*100;
Bar_MC.scaleY = Percentage_Loaded/100;
Text_Box.text=int(Percentage_Loaded)+"%";

if(Percentage_Loaded==100){
this.gotoAndStop(2);
}
}

-------------------------------------------------------------------------------------

I think the two SWF files might be confused because they're talking to each other? Does that make sense? but not sure.

Thanks in advance,
Kam

Targeting Multiple Preloaders For Multiple Files...
Hi there!

I just can't figure out how to use a preloader script for multiple loaders displaying at the same time. And I also just don't understand the target movieclip parameter for onLoadProgress. What is this parameter suppose to be?
The movieclip beeing loaded according to Macromedia but if you put mc.swf it gives you an error so it should be mc then or what? I thought I could use this parameter to kind of target and tell flash what file it was suppose to listen to and then control what preloader to start but it just doesn't work. Also what is the function of this parameter - I just don't get it... When I use the script below the loader starts for every file loaded into a listener called myMCL but I would like to have different preloaders that can be seen at the same time.
For example a preloaderbar for background loading and another one for content loading etc. How can I achieve this using something similar to this code...


myListener.onLoadError = function (target){
bkgMCL.loadClip("error/error.swf", bkg);
_root.gotoAndPlay(28);
};

myListener.onLoadStart = function (target){
this.bkgPreloader._visible = true;
}

myListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number){
var preloadPercent = Math.round((loadedBytes/totalBytes)*100);
_root.bkgPreloader.gotoAndStop(preloadPercent);
};

myListener.onLoadComplete = function(target){ //loading contents after bkg loaded
this.bkgPreloader._visible = false;

};

Preloaders, Preloaders Everywhere But Not A One That Fits
I have an introduction for a site that consists of 3 files index.htm intro.swf intro2.swf Index.htm forwards on to intro.swf which contains a preloader (not a percentage on just one I cobbled together) Once intro.swf has loaded it begins to play and on the first content frame of intro.swf is an action to load movie intro2.swf.
Unfortunately intro2.swf loads before intro.swf has finished and starts to play prematurely So what I need if it is possible is a command to load intro2.swf and then get it to sit there and wait for the call from the last frame of intro.swf to play.

The reason I have two swf files is that I needed to change the background color of the movie and the easiest way I could find to do that was make two different movies

Just farting around with this, to see if i can figure it out so any resolution doesnt have to be pretty.
I have no php, asp, cgi support for the hosting space so i need to do it with action script

any help will be greatly appreciated.

Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.

Which FLASH** guru out there can lead me in the right direction?


greatly appreciated...

*g.guru.

.bat Files Start From .swf Files But Not From .html Files ?
I tried to use fscommand to execute certain batch files on my system. It worked fine while I tested the swf file, but didn't do anything when I published the movie and tried the same in the .html file ?
Any clues ?

-Shreeram

PRELOADERS
can you make preloaders for movies which you ara going to load?? i belive u can can anybody tell me how or just say if this subject has been threaded so i can try to find it.
SO it is, i want to load some swf in some other swf but want to make a preloader
how to do that??

PreloaderS:(
Help! i need to know how to get one! My thing takes so long to load that il;l eed a preloader! Make it simple please!

Preloaders
where's the "end frame loaded" action in 5?

Preloaders
i was wondering if anyone would be as so kind as to give me a fla file with a preloader in it?

Preloaders In Mac?
Im having problems with my preloader when i view it on a mac, im using netscape an internet explorer on the mac and the loading doesnt work. What should i do to meke it work on the mac, in PC works great using netscape and Explorer. If you know what can i do or if you know where can i get one that work on both platforms you will make me very happy!!!

Preloaders
OK. I finally got a preloader working. I tried putting the preloader in the same scene as my movie, so this is how it goes

first ten frames = preloader
11th frame "if frame loaded (current scene), goto and play 13"
12th frame "goto and play 1"

works just fine.

what I'm wondering is, how can I do that with multiple scenes?

I've tried "if frame loaded (main movie), goto and play (putting this action in the preloader scene)

it doesn't work? y?!

Preloaders
Are there any tutorials on pre-loaders? Because I need to find out how to use the one I've made effectively...

Thnx

Preloaders
Hi, just a quick question ..

i have a preloader that works fine with frame labels, i'm trying to do a similar thing with the buttons

putting a go to command to an action saying

ifFrameLoaded ("web") {
gotoAndPlay (75);
}


i've just been reading the posts one saying that flash wont recognise the flag until it comes across it

is there a better way of doing this ??

thx in advance

BP

ps the first loader works but the button (with go to and stop) goes to the waiting frame but ignores the

ifFrameLoaded
gotoAndPlay (75);
}


Mmmmmmmmm

Preloaders......................................
i've got a movie with 10 scenes and i want to load them all before the movie starts. can any body help with a preloader for this? please?

Something Regarding Preloaders...
Just wondering if my preloading animation be placed in a different scene from my main animations, which is in scene 1. Or must my preloader be placed in the same timeline?

Thanx...

About Those Preloaders
Where do u put em?
In front of the film and how do I make em not a part of the film....I meen how do I make em work corecly?
Je I hope u understand
Shorten: Where do I put the preloader?

Preloaders And A Whole Lot More
my web page is set up in two different flash movies. first is the main page, which i have pretty much done. then there are links to another flash page which actually displays the projects and items i want. the second (project page) is set up so that i have a one-frame movie clip on the main timeline for each project i have done. i have the first page set up so that when i click a link it will open a new window. in this new window i want to only call on the frame that has the respective project from the first window. i also believe i will need a preloader for some of these movie clips. first question: how do i call on one specific frame in my second page? second question: how do i preload for just that frame? any help would be friggin awesome right now as i am about to pull out my hair. i hope i explained this well enough, it seems pretty tough for me still to comprehend, ahhh whatever, smoke em if you got em
thanks
SchmidyUC

Preloaders
HI everyone. I've started to make long flash animations to post on my website, the only problem is they take forever to load then there really blocky. I know that preloaders wont solve this problem but at least they'll stop it from being blocky and keep stopping once loaded. I went to the tutorials and i have got all the information on them, great, but im a bit confussed on where the preloader should go. In a new scene, just before my animation, under my animation or anywhere else so its fist to be displayed when i load the animation up.
I hope you can understand what im on about.
Thanks in advance
Tom

Preloaders
How do u do preloaders? Please Explain and dont lead me to a link!

Um..Preloaders?
I'm having trouble making a preloader for my website. The condition goes like this:

(In scene 2)
ifFrameloaded(Scene1,200<number of my frames>) {
gotoandplay(Scene1,2)
}

I have graphics in scene 1. Even though the graphics aren't loaded yet, it still proceeds to scene 2 (the beginning of the presentation).

What should I do?

Kin Preloaders
help

i have done umpteen preloader tutes and added mine to my site but it just wont work properly. My main movie is 96 frames long (scene2) and my preloader 3 frames (scene1).

i have the actions if frame loaded scene2 96
goto and play scene2 1 on frame 2 of my preloader

on frame 3 of my preloader i have the action goto and playscene 1 frame1.

when i use show streaming on test movie it stutters like a pig and even though it shows the preloader for about 3 secs it is as though it is not loading the whole movie before it starts playing . i have tried using frame labels but it seems to make no difference

Preloaders
hello there,

i am currently making a pretty big flash in filesize. around 1 MB. only one preloader at the beginning would take too much time for some ppl and so i would like to insert more preloaders for e.g. my picture gallery inside the main movie.
when i tried that with loadmovie actionscript, the hole movie loaded completely new, but i want only the content of the pic gallery loaded. background and menu.. should keep on screen while the preloader for the gallery is loading and the gallery comes up finally.
how do i have to manage that? maybe any opensources known?

thank you for reading. hopefully someone can help..´

Bori

Preloaders
ok i have a preloader and i know u r supposed to copy your movie and paste it onto the preloader?right?ok. i just wondered wat layer co u paster it onto???or am i wrong about copying and then pasting the movie???

Preloaders Please?
Really need a good preloader tutorial that will help me to make my graphics for a preloader play while I wait and do the countdown thing also. I am using flash 5. Thank you everyone who helps me out in here

Preloaders
Ok, I'm looking for a few opinions on preloaders, personally I love the idea of knowing if I'm going to have to wait a week or a few minutes to see a site. I've been working on a site for some old UO buddies, (MMORPG type game), I'm reasonably new to flash, but I love it so far.
As I expand the site, I've broken parts into dif .swf files, with the belief that it will make it more 'bandwidth friendly'. So far the main/first .swf is up to 160k in size, and the sub .swf files range from 5k to 30k in size. Ok, here's my question:
At what point (file size) do you feel a preloader should be implemented?
Knowing that 99% of my target audience is sporting broadband, im not entirely sure what to do.

I feel I've 'graduated' from pure newbie, to well, pure novice. The site is LAME compared to most of the sites I've looked at in the Flash Site forum, but If you feel you need/want to see it to answer better..... *grimaces*
http://members.cox.net/piaso2/cdtest/

please, tell me should I put up a splash with a preloader in it?

PreLoaders
Hey all,
I'm new to all the flash stuff... Is there anywhere that i can download PreLoaders?

Preloaders
I have looked at the tutorials on this website and on the offisial macromedia flash 5 site, but i cant understand how to make a preloader. Is there a simlple way of making one?

Preloaders
Hi

I'm doing a website for a band, but I'm having trouble with preloaders. Or, well my preloader works, but when
I try accessing the site all I get is a blank flash movie, and after a long time my preloader appears. I want my preloader to appear right away.
My preloader and my mainmovie is on the same scene. I use some actionscript for the prealoder, and labels so the actionsscript now what to loop and so on.
The link to the site is http://www.epicenterband.com/flash/preview.html

Please help me.

Thanx

Jackie

Preloaders
i need help my movie plays befor it is fully loaded and the stops and goes all jumpy half way throught how do i stop this

PRELOADERS
preloaders!!!! If anyone who is reading this knows how to preload their movies..... PLEASE help me... I have tried EVERY tutorial on this site and they all dont work..... I have followed EVERY direction there and nothing ever works. I tried a bar preloader and that one seemed to work but after it preloads and **** it sends you to the last frame of the movie. I have put it to go to the 1st frame on scene 1. I will ONLY go to last frame of the entire movie... PLEASE help me or send me your preloader code.
Thank you

By the way, this is the script:
key frame #2

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1);
totalkbytes = Math.ceil(totalbytes/1);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}

keyframe #3

gotoAndPlay ("preload", 1);
// loop until last frame if loaded

Where Do Preloaders Fit In....?
Hi all,

i have a movie that contains buttons, when you press a button, it loads an external swf into a blank MC...how do i introduce a (much needed) preloader before the swf loads....

this will be the case for each button, hence, each swf..

cheers!!!!

Help With PRELOADERS ?
1)How to build a preloader with a simple animation, and a moving bar?

2)Can this preloader be reusable, say a movie clip or smart clip?

3)Where do I place the preloader? On the main timeline or at the beginning of an external swf.

I guess I'm just trying to understand how to build and use a preloader correctly. I've looked over tutorials, but have really not found explanations on there use in a fully interactive site.

Preloaders...
Hi all

My preloader never gets past 1% before the movie loads... this is the script:

perc = Math.round((_parent.getBytesLoaded()/_parent.getBytesTotal())*100);
xperc = perc/100;
barlength = 200;
if ((perc == 100) and (bar._width == barlength)) {
_parent.gotoAndPlay(2);
} else {
nperc = perc+"%";
bar._width = barlength*xperc;
bar._x = -100+(bar._width/2);
}


is anything wrong wit it?

Cheers

MX

Preloaders Again
I have a 2 scene movie, 'intro' and 'scene 1'. 'intro' is my preloader for 'scene1' which is a 20mb video clip (this will be on a CD-ROM one day!)

I have built my preloader (Eddie Carrol one and it seems OK) but when I test the movie the movie begins at the start of 'scene1' and not with 'intro'.

'intro' is the first scene in my scene folder and 'scene1' is the 2nd.

Can anyone tell me what I may be doing wrong?

Copyright © 2005-08 www.BigResource.com, All rights reserved