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




Problem With Script From Flash 6 Preloader To Flash 7



Hi, I used to use this preloader script for Flash 6 yet it won't work anymore for Flash MX 2004. What did changed on the language. It would be great if someone can help me or may be point me to a new script.

TIA
Dave

--
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per*1.53;
if (percent>99) {
_parent.gotoAndPlay("main");
}
}



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 12-16-2004, 02:02 PM


View Complete Forum Thread with Replies

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

How To Install A PRELOADER Component To My Flash File (for Flash 5 And MX)
how to install a PRELOADER component to my Flash File (for Flash 5 and MX)?

How To Make A Flash Preloader For An Already Published Flash Movie?
Hi
Someone has sent me a flash movie for my website but there is no preloader. The flash movie is too large to load, how do I add a preloader to the already published flash movie? Does anyone know?
Thanks!!
Mike www.10amps.co.uk

Converting Flash MX Preloader Into Flash 8 Script
i use this script all the time for my preloaders in MX, i just attach it to a load bar graphic and it works fine:



Code:
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
counter = math.floor(_parent.getBytesLoaded()/_parent.getBytesTotal()*100);
_parent.counterpercent = counter+"%";
if (counter>=100) {
_parent.play();
} else {
_xscale = counter;
}
}
{



Can someone please tell me why this doesn't work in Flash 8 and if possible convert it so it will work in Flash 8, thanks in advance

Problem With My Preloader- Working Under Flash Mx But Not In Flash 8
hi guys, actionscript guru! i need your help, ive been using this preloader since flash mx, but now its not working propely under flash 8, im getting an error now, could someone help me fix the code so it will work in flash 8? many thanks in advance guys!!

heres the file:

Flash Preloader -> Flash Movie?
Hi all,

I know this is probably a really "newbie" question, so I appologize up front. I have a flash preloader that I downloaded ... the .fla looks like 2 layers, one frame each. The preloader is a little repeating animation.

My question is ... how do I get OUT of the preloader and get into the actual movie? Right now, it just continually plays the preloader.

Thanks!

Converting Flash 4 Preloader To Flash Mx
I have a preloader that I really want to use on my site but it was created with flash 4. I have looked at the code and have no idea how to convert it to flash mx. Could someone take a look at it? I also think it was written in some other language. I also attatched the file if you want to take a look at it. Also, here is the link where I got the preloader from: http://www.flashkit.com/movies/Scrip...-556/index.php


P = int((100*_framesloaded)/_totalframes);
trace(P);
tellTarget ("/Prozent") {
gotoAndStop(_level0:P);
}

Flash 5 Preloader
Is it possible to see a movie - that has two scenes - a Preload and Intro on a local machine. I have tried to see how is it working but I can't see my "Loading..." text-scene - it takes me only to main movie Intro.
Thanks.

Flash 4 Preloader Help........
I need a preloader that works in Flash 4. It need to display the percentage loaded as it loads. I know there are many like that for Flash 5, but it needs to work in Flash 4. Does any one know where I can find a tutorial for that?

Thanks in advance,
Robert

Preloader Flash 5
i have created a loading bar in flash but how does it works? how do i know the exact time it will take to browse in different computer?? any idea where do i find the tutorial for this perticular task for flash 5??

Flash Preloader?
I'm thinking about building a preloader feature in a flash movie. The concept being, the initial flash movie loads - Then while the user is taking in info or whatever, all the other support .swf's load in the background. This way, when the user decides to view a particular section, the movie has already loaded in the background, hence, no "loading" flasher while it loads up - it's already there.

Now, This initial flash movie is embeded in multiple html pages. I know, in IE at least, flash movies will cache themselves if there doesn't appear to be an updated version (isn't this true?). So, when the user clicks to another html page that contains the same .fla, will all the previously loaded movies remain cached? Or will every movie load up again in the background?

Basically, I'm trying to develop a low-bandwidth friendly flash accessory for an html site. If external swf's can load up while the user is just hanging on a page, that user won't have to wait for any of the flash features to load. The Question is whether or not these loaded .swf's will stay 'loaded' from one html page to another. Any thoughts?

Cheers

Quasi

Flash MX Preloader... HELP
okay, maybe i'm just stupid, but i went here to learn how to do a preloader...

http://www.flashkit.com/tutorials/In...33/index.shtml

and i followed the instructions very carefully, but i do not think that these instructions are kosher for MX. here are the errors in my output report:

Scene=Preloader, Layer=Layer 1, Frame=1: Line 1: ';' expected
If Frame Is Loaded (MovieScene, 181)

Scene=Preloader, Layer=Layer 1, Frame=1: Line 3: ';' expected
Go to and Play; (MovieScene, 1)

Scene=Preloader, Layer=Layer 1, Frame=1: Line 5: ';' expected
End Frame Loaded

Scene=Preloader, Layer=Layer 1, Frame=2: Line 1: ';' expected
Go to and Play (preloadScene, 1)

i tried putting in the semicolons AFTER the close-parenthesis, and it didn't work, so i tried putting the semicolons BEFORE the open-parenthesis and still the same errors.

...AND the preloader blinks on at the END of my movie!please, please help! i'm so frustrated! d'oh!! 8^0

Flash MX Preloader
I am trying to create a preloader in Flash MX. I see that the 'ifFrameLoaded' command is now in a section called "deprecated". So what is the new way of getting that information to set the criteria on when to go to and play the next scene?

Any help would rock.

Robbie

Flash MX Preloader - HELP
My site is complete (my first flash site), but I can't figure out how to do a preloader. I've tried every tutorial on this site and none of them work for me. I don't know if I'm doing something wrong or what, but I'm very frustrated. The site is http://www.blackboxcommunications.net. Someone please help me out of this mess. I need a preloader that works!

Help Preloader Flash MX
I am fairly new to Action Script and I have setup a preloader for my intro.swf which loads as a external swf into a blank movie clip that is on my parent movie. The preloader works fine if I test the swf without loading it into the parent movie, but once it is in the parent movie and it reaches 100%, it just stops and does not go to the next scene of the loaded swf file.

I am learning this all on my own. Anyway, I have spent 3 days trying to make this work and can't figure it out and I am going mad. I even have the book "Advanced Action Script" for Flash and the preloader in that book gives me the same results. What can I do?

One more thing, If I load the swf on level one it works all the way through but is displayed out of place.

I'd really appreciate some advice if you have the time to spare. You can view the problem live at http://www.mygraphicworks.com/atomic/index.html or you can get the .FLA files at http://www.mygraphicworks.com/fla.zip.

Have a good day,
RW

Preloader With Flash Mx, Please Help
I've got flash mx. I've made a flash movie, and here is what I need to do. I need a preloader that will load the full movie, but display what % is done downloading...

I think someone told me a while back I would require two flashes. One for the preloader, and one for the actually movie. Could someone assist me in making that preloader movie?

Thanks again

Preloader In Flash MX
How do you make a preloader in Flash MX, I think the tutorial on this website is for older versions of flash.


Flash Donut

Flash Preloader
Okay, I use one of the best preloaders there is IMO... (the advanced preloader by Programmingart (http://www.flashkit.com/tutorials/Ac...-689/index.php)

The only problem is, I implemented it into my latest design... but it didn't load when I used "Show Streaming", well, it DID load, but it didn't show my preloader... and since it's a pretty big file... I don't think the user will like looking onto a black screen for about 3 minutes...

So could anybody PLEASE help me
I'm getting kinda desperate here

Flash Preloader
I hav 1 preloader scene
and 4 other scenes in my Flash Movie

I want that my Preloader should keep on running untill
4 other scenes are completely loaded

What shud b the code for this scenerio using Flash 5 ??

Preloader In Flash 4.......
Hello everybody!!!
I am designing a demo for my company's software and I have used flash. I want to use a percentage preloader. From what I have checked in all the threads posted is that all the instructions given are for Flash 5 or MX. What about in Flash 4? Probably I am the only one who uses this version, but can someone please tell me what I shall do?
Pleaseeeeeeeeeeeee....
xxx

Flash Preloader
My movie consist of two scenes. One is the preloader and the other is the content. My preloader consist of two layers with four frames that only tell flash to get Total bytes and total bytes loaded, then on the final frame it tells it to goto scene 1. My problem is that my preloader will not display until about 50% of my movie is loaded. Everything works properly and it shows my background. I am using Flash 5. Can anyone help?

Thank you!!!!!!!

Flash 5 Preloader Help
i have a working preloader in flash 6 but don't know how to make it export as flash 5. (i need to save it in flash 5 so it can be read by a mac os 9.2 system.

here's what i am using now...
1st frame:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
myOutput.text = percent + "% is loaded";

2nd frame:
if (percent == 100)
{gotoAndPlay("Scene 1", 2);
} else {gotoAndPlay(1);}

this is the warning i get when exporting:
WARNING: This movie uses features that are not supported in the Flash 5 player
Scene=Scene 2, Layer=content, Frame=1: Flash MX Text Field Instance Name
Scene=Scene 2, Layer=content, Frame=2: Flash MX Text Field Instance Name

help...

Need Flash 4 Preloader (ext .swf) With % Bar
I can find one anywhere that uses v4 (_framesloaded) instead of the the later v5 bytes loaded routine. Can anyone help?
Regards

Flash Preloader Help
HI all, i've jus downloaded some really good preloaders for my site, but I dont know how to get them working. On the main site (www.mossmotorsport.tk) there is a 500kb flash movie, and basically I would like the preloader to play or load untill this other movie has loaded. I do not have a clue how to achieve this! Any comments or suggestions will help. Thanks.Flash Preloader Help

Flash 5 Preloader
You must be fed up answering this question? Anyway, all I want is a preloader with nothing more than a dynamic text box giving a percentage loaded. I have tried a tutuorial which worked but didn't show anything in the dynamic text box. All the movie clips on flashkit have percentage bars which I don't want. Can anyone tell me the code or link to a decent movieclip/tutorial?

Cheers
Lex

Preloader In Flash MX
can anyone tell me the actionscript for creating a preloader in flash mx? i have tried the tutorials but still is not working properly.

thanks for any assistance

dino

Preloader In Flash MX?
My friend told me that there is a new advancement in flash MX that you don't have to make a prelaoder, they make it for you and you just put it into your movie. I was wondering how this works. i searched everything and i can't find out how to make it work, can someone please inform me what my friend meant?

Preloader (flash-MX)
i have tried building preloaders and they never seem to work. Now, is there some way i can make a preloader that only takes one frame?? make a movieclip play untill its loaded, and have the percentage (no loading bar, just the numbers) running in a text field. is this possible, if so, how do i lay it out and what scripting do i use?

Flash Preloader
can anyone give me a good site to find a tutorial to make a simple flash preloader? I did a search on google myself, but couldn't find anything good. Someone helped me before and gave me a great site, but I can't find it...

Flash Cd-rom.. Preloader?
Is a preloader necessary (would it even work) for a flash file being read off of a cd-rom? thanks!

Flash MX Preloader
hi all,

im having a problem with a preloader i have built in Flash MX. Im running the loader from scene 1 and the main body of my flash movie is in scene 2. The loader works fine and it checks if scene 2 has loaded then plays it, the problem is i have loads of buttons in the main body of my movie with commands like :

_root.gotoandplay(2);


this worked fine before i inserted the preloader, but now these buttons now link back my preloader and it starts the flash movie from the start.

any help anyone can give me would be appreciated


thanks a lot


Gareth

Flash Mx Preloader
Is it possible to use getBytesTotal on a jpeg that is being called in with loadMovie ("some.jpg" 1); ?

Preloader Flash Mx
I have been searching the web for a while now, including this site. Can somebody show me a free tutorial on how to make a preloader in Flash Mx 2004. Just give me a link, or if you like post it here. Thank you!

Flash Preloader Help
I made a flash loader and have put in the index.php for a site that takes a long time to load. I thought maybe if I timed the length of the site's loading time, I could set the preloader to go until then and then jump to index2.php, which would be the new name for the old index. I just don't know how to do it.

Flash Preloader For Wmv
I was wondering how they do the flash preloaders for wmv (or other video) files. I mean that at the same time when wmv is buffering there is a flash movie running in same object box and not the basic black screen with "Buffering... (x%)".

Thanks in advance!

Whole Flash Preloader
Hey everyone,

I'm new here. I need to know how to make a preloader to load my whole flash website. But I don't know how. Can someone please give me a simplified version or step-by-step version of how to do one. I don't like the tutorials so don't link me to one of those because I don't understand them. Thanks!

Flash Preloader With MCL
Hi, I'm trying to make a preloader for some content... I have a video tutorial that shows me what code I need for the preloader but I cannot seem to get it to work. Anyway, I have a master file called "master.swf" that all of the other movies load into, here's the actionscript for the 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 preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);
_level50.preloader.gotoAndStop(preloadPercent);
}

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

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

// trigger the MCL to load the assets
myMCL.loadClip("swf/trigger.swf", 5);
Frame 10:

Code:
stop();
myMCL.loadClip("swf/preloader.swf", 50);
myMCL.loadClip("swf/intro.swf", 5);
myMCL.loadClip("swf/main.swf", 4)
If anyoen can let me know what's wrong with this/why it's not working plz let me know. Thanks.

Flash Preloader With MCL
Hi, I'm trying to make a preloader for some content... I have a video tutorial that shows me what code I need for the preloader but I cannot seem to get it to work. Anyway, I have a master file called "master.swf" that all of the other movies load into, here's the actionscript for the 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 preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);
_level50.preloader.gotoAndStop(preloadPercent);
}

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

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

// trigger the MCL to load the assets
myMCL.loadClip("swf/trigger.swf", 5);


Frame 10:

Code:
stop();
myMCL.loadClip("swf/preloader.swf", 50);
myMCL.loadClip("swf/intro.swf", 5);
myMCL.loadClip("swf/main.swf", 4)


If anyoen can let me know what's wrong with this/why it's not working plz let me know. Thanks.

Help With Flash Preloader ?
Hi,

I have created a preloader with SWF Lock & Load. Everything works fine in the application and I have exported it as an swf file and fla.

When I insert the swf into my web page (not online yet) the text animation works and the percent counter, but the loader bar does not. Does anyone know what I'm doing wrong ?

Also, can you point the preloader to load up another htm page as opposed to another swf file ?

Many thanks,

Using A Flash Preloader...
I put a preloader at the begining of my Flash project and put it up on the web but the preloader doesnt come up until the entire movie is up so its basically useless... am i supposed to be calling it movie up seperately from the preloader?

Help With Flash Preloader
Could sombody PLEASE help me how to create a simple fading bar witj fading "LOADING" preloader? Or if I cna just download the simple preloader from somone? I don't know how to do all that coding. Thank you

Non Flash Preloader
Is there any way to preload a Flash page through Javascript or ASP and when it's loaded that page will redirect to the page with FLash in it?

Just wondering

Flash Preloader.
I have some trouble with a preloader that needs to load a movie. Check it out and see if you can get it fixed.

Thanks Orane.
P.S:- Preloader is attached. - http://www.oraneproductions.com/loader.fla

Re: PDF Preloader With Flash...
Hi,

My Flash website (http://www.ToddLernerAdvertising.com) has a button which launches a PDF of my portfolio (it's under "Samples" and it's the "Sneak Preview" button). The PDF is 1.8 mgs and takes a while to load.

Questions:

1) Is there any way to make a preloader so the viewer knows to wait?

2) Any other ideas how to show these samples -- I love the PDF though, because it's simple for me to update it and because everyone is familiar with the PDF document format.

3) No matter how I set my PDF's open options in Acrobat 7 Professional, on some browsers the viewer doesn't get thumbnails, and the PDF is continuous pages instead of each sample on its own page. Any idea how to force the viewer default?

4) Any other advice for the samples PDF or for the site?

Thanks!
-Todd Lerner

http://www.ToddLernerAdvertising.com

Flash 9 Preloader
Hi Guys,

Im new to AS3 and Flash in general. I want to make a preloader but have no idea on how to. Can someone get me started on a newbie tutorial ? Most tuts Ive come across are way to complicated.

Thanks

Flash Preloader
Im hoping that someone can help me. I am taking a picture of like a jester clown thing ok and when you log onto my website i want the picture to show up with just the outline. Then i want the color to load across the way from the left to the right side to fill up the picture. Hope you get what i mean. Please help

[CS3] Flash Preloader
hi

i have made a site in flash that has a logo and text. i would like this site to be a preloader to the main site. but i don't know how to do it, i search google but there was nothing except for the loading procent preloader that i don't want to have. the main site is not in flash but in html.

please help me

thanx

Cat

Help With Flash Preloader
Hey all,

I've written a pretty simple preloader, and it appears to work (albeit very quickly), but it practice it does not seem to be waiting to load everything. Specifically, I want to load an mp3 and an xml file, which together trigger events based on how many milliseconds into the mp3 we are. After the song is over, you get sent to a game over screen. Sometimes you get sent there immediately, and clicking "play again" sends you right back to the game over screen, until you wait a few minutes, after which clicking play again will correctly send you to the beginning of the game, which suggests to me that the preloader thinks everything has been loaded before the song actually has.

Here's the preloader code, which is the actions for a movie clip that is basically a bar that changes width as things are loaded:


Code:
onClipEvent(load) {
this.maxWidth = this._width;
this._width = 0;
this.isLoaded = false;

_global.song = new Sound();
_global.song.loadSound("zombie.mp3");

//xml stuff
_global.song_xml = new XML();
_global.song_xml.ignoreWhite = true;

_global.song_xml.load("song.xml");

this.totalBytes = _root.getBytesTotal() + _global.song.getBytesTotal() + _global.song_xml.getBytesTotal();
this.loadedBytes = 0;
}

onClipEvent(enterFrame) {
if (this.loadedBytes >= this.totalBytes) this.isLoaded = true;
else {
this.loadedBytes = _root.getBytesLoaded() + _global.song.getBytesLoaded() + _global.song_xml.getBytesLoaded();

this._width = this.maxWidth * (this.loadedBytes/this.totalBytes);
}
}


The frame with the movie clip then has actions based on the state of the load bar, like so:


Code:
if (theLoadBar.isLoaded) gotoAndPlay(3);
else gotoAndPlay(1);


This all seems pretty straightforward to me... Anyone know where I'm going wrong? Thanks!

Preloader : Flash 7 On AS 2
I got a Preloader with the following action on it -

It used to work fine with Flash 6 on AS1.

Now when i try to publish it in Flash 7 on AS 2.

It does not work. Any idea how to get it working guys ?

Thanks in advance !


onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = Math.round(percent);
PP = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}

Flash 6 Preloader
I have a preloader working online but when I try and play it from my desktop to show the client it won't work. Its loading an external swf into a a movieclip on the main stage. The problem is when it checks for percent loaded it then calls a start function which fails to read the movieclips in the external movie. it shows them as undefined.

ActionScript Code:
loadMovies("test_anim.swf", mainClip);
function loadMovies(url:String, target:MovieClip) {
    target.onEnterFrame = function() {
        var percent = (this.getBytesLoaded()/this.getBytesTotal())*100;
        if (!isNan(percent)) {
            //LOADER BAR IF NEEDED
        } else {
            trace("0% loaded");
        }
        if (percent >= 100 && this.getBytesLoaded()>1) {
            delete this.onEnterFrame;
            startAnim()

        }
    };
    loadMovie(url, target);
}

As I said above it works online but not from the desktop.

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