External Swf Loader Percentage Freezes
hey peeps,
I have attached the preloaders to the externals swfs all loads fine, but when the movie is tested the percentage bar freezes. i noticed a few other people had the problem but no answer found. If you could help me in any way it would be much appreciated.
Cheers flasturbation
FlashKit > Flash Help > Flash General Help
Posted on: 10-29-2003, 09:10 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Percentage With Loader Bar.
Hello,
I read a tutorial on here about makinf a loader bar and i have now installed my loader bar and know how to do it. I'm extremely new to flash at the moment but i would like to have the percentage displayed along with my bar. There is a tutorial for an advanced preloader with a bar, bytes loaded and total byte plus the percentage but i'm not ready for that yet for i am only half way into The flash 5 Bible. I just getting into web design with flash and action scripting. I have a basic background because of using javascript a little but i'm still not ready for that because i was lost on the second or third page of the tutorial. Anyway i basicly just want to have the percentage along with my bar. You can download my source file(.fla file) by clicking the folling link: http://www.geocities.com/reterdz/download/tut.zip
If you have the time it would be great if you could download it and insert this for me and explain how it works. I kind of understand how my loader bar works but not fully yet so maybe you could explain that a little too. Thank you all. I love this site. So far help has been just around the flashkit corner. Peace out Sorry about the corny joke there
Percentage Loader Help
Can anyone tell me how to change something here.
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)+"%";
gotoAndPlay("Intro", 1);
I only want to preload 25% of the site, so how do I change the bytes_loaded to equal 25% of the byte total.
I want the loadBar and the text to show 100% still
Help please!
getPercent = bytes_loaded/bytes_total
Percentage Loader
i am making a preloader with 100 different frames and different jpegs on each frame, im trying to figure out how to have that mc go to each frame as the percentage goes up towards 100%
(the preloader is a tree that blooms leaves as the percentage increases, then the tree is full grown at 100%)
anyone know any tutorials on such a thing or if anyone could tell me proper action scripting would be great thanks
Simple Percentage Loader Bar
How do I create a simple percentage loader? It seems whenever I look for an FLA or tutorial, there's a bunch of other useless crap the guys adds on to it, making it uglier and harder to understand. I just want a bar or masked graphic, and text with a percentage. So how do I create this?
Simple Percentage Pre-loader ?
Can anyone point me in the right direction of a simple preloader which displays the percentage of the movie loaded ?
I've tried and failed to add one (yes I know its supposed to be simple but I cant get one to work).
A siple cut and paste job would do ???
Cheers.
Pre-loader With Percentage Thats GOOD
Hi there---
I would like to be able to find a pre-loader. Something that looks nice though, like on 2advanced or rockstargames.com - - I checked out the ones in the Movies section and they either had way too too much going on, or were very ugly.
Please let me know if know where I can find a source file. All I want is a working percentage bar and the number below it to be in the font of my choice.
Thanks!
=Dave
Percentage Loader Going Up In Increments Of Ten....
Hi
I'm just making a percentage loader and when I publish it it works fine. However when I upload it, the percentage increase goes up in tens?
This is the code I've got....
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.gotoAndPlay(3);
}
Any ideas?
Thanks
Percentage Bar Pre-loader Problem...
I have made a flash projector movie which is gonna be for a CD presentation. It is a very large file and takes ages to load from CD.
Because nothing happens until the whole movie is loaded, and it takes about 3 minutes to load, people think that the program has crashed or hung.
To get around this, I made a tiny projector file which then loads in the main file which is now just a .swf file not an .exe file.
This works great because I instantly get an image on the screen so it looks like something's happening, but it still takes 3 or so minutes to load in the main file and people still think taht it's crashed.
Is it possible to have a percentage bar on my intial 'tiny' projector file which shows the percentage loaded?
I've been trying various ideas for ages, but have not been able to get it to work!
Any ideas?
Cheers. Rob.
Percentage Preloader Without Loader Bar
I have been scouring every message board on earth to find out how to simply create a preloader that just shows percentage loaded. That is all! No bar, no flashy animation, just numerals and a %. Please, oh please, help me!
Percentage Preloader Without Loader Bar
I have been scouring every message board on earth to find out how to simply create a preloader that just shows percentage loaded. That is all! No bar, no flashy animation, just numerals and a %. Please, oh please, help me!
Percentage Preloader Without Loader Bar
I have been scouring every message board on earth to find out how to simply create a preloader that just shows percentage loaded. That is all! No bar, no flashy animation, just numerals and a %. Please, oh please, help me!
Percentage Pre-loader Problem ...
Hi,
I have made a pre-loader for my site which shows the file size, kb's downloaded and percentage downloaded - I use this to load an interface which then loads other .swf's into itself (each using the same pre-loading method) - when I preview this directly out of Flash, the pre-loaders works perfectly. However as soon as I put it on the internet the pre-loader reads that 100% of the file is loaded and then seems to wait to download the .swf.
I have posted an example here:
http://www.exitgraphics.com/loader/holder.html
and I have posted the 2 .fla movies here:
http://www.exitgraphics.com/loader/holder.fla
http://www.exitgraphics.com/loader/content.fla
I need these movies to be Flash 5 movies to ensure compatibility with my other projects.
If anyone has any ideas why these pre-loaders are not working it would be great to hear from you - any advice would be great!
Thanks for your time,
Best wishes
Tim
timowest@yahoo.com
How Can I Create A Percentage Bar Loader That Does
Here is the issue.
I'm using a loader that gets bytes loaded and then based on that plays the loader. But the result is that the loader jumps and doesn't animate in a smooth way the way I want it to.
The animation is simple, it's just a red bar of color that gets bigger. HOw can I make a percentage bar loader that doesn't jump?
Thanks, I appreciate the help.
Movie Clip Percentage Loader
Does anyone know how to find the size of a movie clip, in order to make a percentage loader specifically for that clip?
I have tried using the command:
variable = _root.getBytesTotal();
with '_root' replaced by the mc's instance name. This seems straightforward but isn't working. Has anyone tried to do this before and had any joy?
Any solution appreciated
Denty.
Jpeg Percentage Loader (not Preloader)
The script below loads a random jpeg dynamically onto my site..
picTotal = 18;
// adjust per total pics, img1.jpg,...,imgN.jpg, where N=picTotal
name1 = "img"+Math.ceil(Math.random()*picTotal)+".jpg" ;
loadMovie(name1, _root.BG);
// use loadMovie when loading into a target movielcip
preloadI = setInterval(preloadF, 10);
function preloadF() {
if (_root.BG.getBytesLoaded()>=_root.BG.getBytesTotal ()) {
// you must reference the target level or clip.
_root.BG._x = 0;
// try 0, 0 first. see if that lines up your background pics.
_root.BG._y = 0;
clearInterval(preloadI);
}
}
how could i adapt it to show percentage of the jpeg loaded? as some jpegs take long to load and it would be nice for the viewer to see what happeneing (the jpegs are small and making them smaller would be difficult.
How Can I Create A Percentage Bar Loader That Doesn't Jump.
Here is the issue.
I'm using a loader that gets bytes loaded and then based on that plays the loader. But the result is that the loader jumps and doesn't animate in a smooth way the way I want it to.
The animation is simple, it's just a red bar of color that gets bigger. HOw can I make a percentage bar loader that doesn't jump?
Thanks, I appreciate the help.
How Can I Create A Percentage Bar Loader That Doesn't Jump.
Here is the issue.
I'm using a loader that gets bytes loaded and then based on that plays the loader. But the result is that the loader jumps and doesn't animate in a smooth way the way I want it to.
The animation is simple, it's just a red bar of color that gets bigger. HOw can I make a percentage bar loader that doesn't jump?
Thanks, I appreciate the help.
Percentage Loader For SWF Loaded Into Movie Clip
I've been trying to figure this one out for a while. I'm using a percentage preloader at the beginning of my movie lets call it movie1. Once its loaded "Scene 1" will play. When I click on a link I have a swf called movie2 loading into a blank movie clip on the movie1 stage. The problem is that if I try and use a preloader on movie2, then movie1 will just reload.
Is there special code needed to use a loader inside a movie?
Preloader For External SWF Freezes On LoadMovie
Ok, I have my main fla/swf and one external swf that I am trying to load into an emptyMovieClip that I created in my main. It was working just fine yesterday, but I wanted to change the preloader that I had in the external so I used the same one that loads my main swf and now it is not working.
All I did was take the preloader clip from my main and copy it to the library of my external swf that I want to load, changed the scene names appropriately and now it won't load.
When I test the external swf by itself, everything works fine, even with I simulate the download, but when I now test my main fla, the preloader of the external swf just hangs. The rest of the main fla loads in just fine, but the external's preloader just sits on the screen.
I tried doing the tutorial for the transition here, but it wasn't what I was looking for. Any experiences or tips?
Jesse
Preloader For External SWF Freezes On LoadMovie
Ok, I have my main fla/swf and one external swf that I am trying to load into an emptyMovieClip that I created in my main. It was working just fine yesterday, but I wanted to change the preloader that I had in the external so I used the same one that loads my main swf and now it is not working.
All I did was take the preloader clip from my main and copy it to the library of my external swf that I want to load, changed the scene names appropriately and now it won't load.
When I test the external swf by itself, everything works fine, even with I simulate the download, but when I now test my main fla, the preloader of the external swf just hangs. The rest of the main fla loads in just fine, but the external's preloader just sits on the screen.
I tried doing the tutorial for the transition here, but it wasn't what I was looking for. Any experiences or tips?
Jesse
Help Doing A Percentage Preload With A External SWf
The first thread was the main button script with a loadmovie button and this is the percentage preloader script why can't pull this in to the main and have it preload
// Specify how many frames to load before playing. var loadAmount = _totalframes; // If the required number of frames have finished loading...f (_framesloaded == loadAmount) {// ...start the movie gotoAndPlay("beginMovie");} else {// ...otherwise, display the load status// then go back and check load progress again.// First, determine the loaded and total kilobytes.loaded = Math.round(getBytesLoaded() / 1024);total = Math.round(getBytesTotal() / 1024); percent = Math.round((loaded/total) * 100);
// Display the loaded kb, total kb, and percentage of / kb loaded in text fields.bytesLoadedOutput = loaded;bytesTotalOutput = total;percentOutput = percent + "%";// Set the width of the loadBar to a percentage of// the loadBarHousing.loadBar._width loadBarHousing._width * (percent / 100);// Now go back and check load progress.gotoAndPlay("loading");
}
External Swf Preloader With Percentage
Can anyone help??
I've been searching for a basic preloader to sit in the main swf and return a percentage loaded for an external swf which needs to be loaded into a target mc.
It needs to be done this way as the original fla's for the external files are no longer accessible.
any pointers would be gratefully appreciated!!
thanks!
External Jpeg, Percentage ?
Hi everybody.
Allright, i am loading an external jpg into a movieClip. No problem there.
I want to show the user the percentage of the image that as been loaded.
here is my code:
onClipEvent (data) {
total_bytes = this.getBytesTotal();
loaded_bytes = this.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
txtfield = percent_done + " %";
}
It works but it only give me "100%" when the image is loaded. I don't see the progression of the percentage... (ex: 5%, 43%...)
What should i do to make it work ?
thx
Percentage Preloader For External Jpegs?
Hi,
I made an image gallery from some tutorial that loads all my jpegs externally. Everything works great, except when I preview it online it takes a while for each jpeg to show up. I'm trying to implement a percentage loader to show how much each jpeg is being loaded when the button is pressed so the users know that there's something happening. I tried to use other codes from other tutorials, but I had no idea how to put them in my particular gallery. Need less to say, it's a mess. Can someone please tell me where to put these general codes in my gallery? I've included the whole working gallery with the .fla in the zip.
Also, does anyone know of a good tutorial that shows loading external jpegs with fade in and and fade out, and shows the progress of the jpegs?
Thanks,
Peter
Percentage Loaded From External Preloader
I am trying to show the percentage of an external swf being loaded.
I have a transition going on as well. I followed this tutorial
http://www.kirupa.com/developer/mx/p...transition.htm
I wanted the percentage to be retrieved in a dynamic text field inside another movieclip.
I attempting to place this code inside the holder of the empty movieclip
Code:
onClipEvent (enterFrame) {
var percent_loaded = Math.round((this.getBytesLoaded/this.getBytesTotal)*100) + "%";
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}
The dynamic text field has the variable percent_loaded
This doesnt work... the dynamic text just shows _level0
Percentage Loading With External File
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loading = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
i am using this. However instead of getting the bytes loaded for the file this code is in. how do you make it get the bytes load of an external file? eg. externam file will be called page.swf
would be be like this?
bytes_loaded = Math.round(this.page.getBytesLoaded());
bytes_total = Math.round(this.page..getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loading = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Percentage Preloader For External File
i'm loading a .swf into my main movie and the file i'm loading is kinda big. so i want a "loading" animation that gives the percentage of the file being loaded and not the percentage of the main movie...
i tried putting the getBytesLoaded stuff into the .swf being loaded but once the main movie starts to load it, it counts the bytes of the main movie (very small filesize) and not the file being loaded...
is anyone not confused enough to point me in the right direction?
THANKS!!!!
External File Preloader WITH Percentage
Anybody finished Claudio's preloader tutorial?? Great tutorial... preloader works fine for me. However, I tried tweaking it a bit and cant get a part to work. Maybe someone can suggest a fix. I'm pretty sure its a simple thing I'm not seeing. Basically, I adapted the design totally, but chose to display a percentage along with the animated "loading..." thing there.
One difference is that my buttons are located in the Transition movie clip and the loadText dynamic text field(where the percentage is displayed) is also in the Transition movie clip.
Here's the code I attached to Content movie clip:
onClipEvent (enterFrame) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadText.text = Math.round(getPercent*100)+"%";
if (!loaded && this._url != _root._url) {
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}
If you visit http://www.brendonblake.com you'll see the busted result.
For a deeper look the fla is downloadable at: http://www.brendonblake.com/bb7.fla
I've spent the past week trying different things and cant seem to fix it.
ANyOne???
Percentage Loading With External File
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loading = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
i am using this. However instead of getting the bytes loaded for the file this code is in. how do you make it get the bytes load of an external file? eg. externam file will be called page.swf
would be be like this?
bytes_loaded = Math.round(this.page.getBytesLoaded());
bytes_total = Math.round(this.page..getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loading = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Preload (with Percentage) External Jpg Images
Hi everybody!!
I need to load external jpg files inside flash mx and preload them (with numeric percentage ranged 0 - 100 %). I tried a few different things but nothing seemed to work. Acctually i can load the images but i canエt make the preloader to work. Iエm using getbytesloaded() and getbytestotal() to obtain the size of the file. I do the operation (loaded/total*100) and save the value on a variable to show it in a text field. But i only obtain NaN% or Infinity%. Eveybody i asked about this told me that the script below must work. But i canエt make it work. Any ideas?
This is a straighforward code (similar to get the info of a swf file), thatエs why i donエt understand why it doesnエt work with jpg. Unless we canエt preload jpg files.
_root.createEmptyMovieClip("holder", 0);
holder._y = 120;
holder.createEmptyMovieClip("dropZone", 1);
holder.dropZone.loadMovie("01.jpg");
holder.onEnterFrame = function() {
var p = (this.dropZone.getBytesLoaded()/this.dropZone.getBytesTotal()*100);
if ( !isNaN(p) and p == 100 ) {
_root.value.text = "loaded"
delete this.onEnterFrame;
} else {
_root.value.text = "Now Loading: "+p+"%";
}
}
When the image is loaded i get the "Loaded" message, but while loading i get a "Now Loading : NaN%"
I donエt want to save images like swf because iエm planning to change them in the future without having to edit any fla file.
Thx, Federico
Percentage Wont Show In External Txt File
Hello i have been trying to figure out why wont flash display the following characters from my external txt file... % + Percentage and plus are out...as if they dont exist...they are in the txt file...but they dont display in the flash file.....
heres the code
var myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this.content;
};
myData.load("price.txt");
could the problem be in te actionscript? or is it a flash problem generally....
Thanks a lot for your time
FLV Player - Percentage Loaded < Percentage Played. Huh?
Hi there,
I have been developing a FLV Player and it all runs smoothly except one little weird bug??
I have a function named checkProgress that is set via setInterval and is run every 100ms. This functions code looks like this:
ActionScript Code:
//Check Load Progress Functionfunction checkProgress():Void { //Calculate Load Percentage var nPercent:Number = (nsStream.bytesLoaded / nsStream.bytesTotal) * 100; trace(nPercent + " Loaded");}
I have a second function named playHead that is set via another setInterval and is run every 100ms.
This functions code looks like this:
ActionScript Code:
//Play Head Functionfunction playHead():Void {//nDuration Variable comes from 'duration' property of nsStream.onMetaData inline Functionvar nPercentPlayed = (nsStream.time / nDuration); trace(nPercentPlayed + " Played");}
Now for the confusing part..
The percentage loaded begins higher than the percentage played.. But as time goes on the equal out and eventually the time played goes further than the percentage loaded..
Within my project I have a bar that grows displaying how much is loaded and a play head that follows.. But as per the previous paragraph, whent he played percentage goes above the load you can see it represented in the project graphics.
Whats wrong?
Please help
Pre-Loader For External SWF
Hi Guys,
i need a percent preloader for an external swf. when the movie is loaded, it should play in _root!
plz help
by(e) SEMBE
External Loader
Hi,
I am looking to make a flash movie that loads another flash movie depending upon the "movieid" prompted in the PHP page.
for example:
domain.com/movie.php?movieid=8
The location of the movie would be pulled from the database, my problem is, once I have this variable in PHP, how do I get it into my flash movie that will preload this other movie?
Any ideas or suggestions are welcome about the overall problem.
Cheers,
W.
External SWF Loader
Hey all,
In the site that I am designing. I am using a Loader to load extenal swf's onto the background of my site.... I created the loader, gave it an instance name, and then gave it a content path to the swf file that I want to load. I previewed the background page, and it all loads, but when the content is supposed to load into the Loader, the loader simply turns opaque white and nothing happens... what am I missing here?
Best,
ken
External Swf Loader
Hey all,
In the site that I am designing. I am using a Loader to load extenal swf's onto the background of my site.... I created the loader, gave it an instance name, and then gave it a content path to the swf file that I want to load. I previewed the page, and it all loads fine in the "mother" file, but when the content is supposed to load into the Loader, the loader simply turns opaque white and nothing happens... what am I missing here?
Best,
Ken
Pre-loader For Loading External .swf
How do I use a pre-loader when trying to load an external (flix .swf) movie into a emtpy movie clip? I can not edit the external swf. The movie loads and plays no problem. I can control the time line with the tellTarget method. I just want the loading...loading...to continue until the majority of the clip has loaded, just like using a pre-loader on the maintime line. THX
[Edited by newFlashRookie on 05-26-2002 at 11:33 AM]
Loading External Swf Loader Bar
I want to load an external swf into my movie, but i want to have a progress bar on it, so i can say something fancy like "loading roster data" and have a progress bar, or percentage. I used the getbytes total stuff for my main preloader, and it works GREAT, but can i use it again in this instance(no pun intended)? Thanks
[Edited by denmark219 on 09-24-2002 at 12:01 AM]
Custom Loader/ External .swf Help
Hey flash experts, I'm trying like no other to get this preloader to work the way I want it to. Im using MX and the fla is at www.toddbeaz.com/runelock.fla
I set up markers for each of the 12 symbols so that when my external .swf (runebeaz.swf) is loading it will light them up in sequence as I have them tweened to do so at their marker. And at the end I have a B button in the middle to open up my site (www.toddbeaz.com) in a unresizable window without all the annoying menu/status bars.
I just need your help getting it to work!
External File Loader (NOT SWF) MX
I am making a Jukebox in Flash MX, eventually to be turned into an EXE for distribution, and I am wondering if there is a way to create a Windows-style file browser so you could load songs, playlists ect. I know how to do this with XML externally and then load it into the movie, but I want to be able to do it internally.
If you have any ideas, please post!
Thanks
External Text Loader
My external text loader stopped working.
The code works on all the old work I have done but can't get it to work now.
I get this message when traced.
Error opening URL "file:///photosetone/1.txt"
Please help.
Loading External Mp3's Using Loader
Hello I have used this script to load external mp3's into flash. It works ok locally (and using flash download simulator) but when on line it doesnt seem to be able to read the bytes total or get bytes loaded and just doesnt do anything? any suggestions? p.s im playing is after 1/5 is loaded.
onClipEvent (enterFrame) {
if (firsttrack == 0) {
vol = 100;
_parent.tckname.text = "buffering";
_parent.tckfrom.text = "";
my_sound = new Sound();
my_sound.loadSound("tracks/track"+1+".mp3", true);
total = Math.round(my_sound.getBytesTotal());
my_sound.stop();
my_sound.setVolume(vol);
_parent.slider.bar._xscale = vol;
startLoader = 1;
my_sound.onSoundComplete = autoplay;
firsttrack = 1;
}
if (startLoader == 1) {
loaded = Math.round(my_sound.getBytesLoaded());
percent = Math.round((loaded/total*100)*5);
_parent.tckfrom.text = percent+"%";
if (percent>=100) {
my_sound.start(0, 10000);
my_sound.setVolume(100);
_parent.tckname.text = my_sound.getBytesTotal();
_parent.tckfrom.text = my_sound.getBytesLoaded();
playnum = 0;
startLoader = 0;
}
}
}
thanks,
Craig
Loading External Mp3's Using Loader
Hello not sure if anyone can help but am having trouble loading external mp3's... works when i do test export from flash simulating download but doesn't work on server... has anyone had a problem like this before? Heres the code I'm using... p.s. im not loading 100% in startloader but thats ok just wanted to load 1/5 before playing...
onClipEvent (enterFrame) {
if(firsttrack == 0){
vol = 100;
_parent.tckname.text = "buffering";
_parent.tckfrom.text = "";
my_sound = new Sound();
my_sound.loadSound("tracks/track1.mp3", true);
total = Math.round(my_sound.getBytesTotal());
my_sound.stop();
my_sound.setVolume(vol);
startLoader = 1;
my_sound.onSoundComplete = autoplay;
firsttrack = 1;
}
if(startLoader == 1){
loaded = Math.round(my_sound.getBytesLoaded());
percent = Math.round((loaded/total*100)*5);
_parent.tckfrom.text = percent + "%";
if(percent>=100){
my_sound.start(0, 10000);
my_sound.setVolume(vol);
_parent.tckname.text = my_sound.getBytesTotal();
_parent.tckfrom.text = my_sound.getBytesLoaded();
startLoader = 0;
}
}
}
External Movieclips Within A Loader?
I have a scene with 4 buttons and a loader. I want to load a movie within the loader everytime i click one of the buttons... I am not that great at actionscripting, so if somebody can tell me what the script to the buttons should be, i would be very greatfull. Mu loaders instance name is "loader"
At ease
J
External JPG Loader Replace
I'm trying to get Flash MX to load in an external jpg, which is pretty simple in itself, but i want it to check that the image is there in the first place, if not then load in another image. I seem to have spent hours getting close to something but never quite there.
I've tried loading the image into a blank movieclip and then using a preloader to check the byte size of that movie clip to see if it's above 4 bytes (which seems to the most an empty movieclip should be) but every script i've found to try and alter either doesn't return the movieclip size properly or is too complicated in the first place (using includes etc). I'm sure it only needs to be a few lines of code as the preloader doesn't even have to do much, just return a value above 4 bytes!!
Any help would be great,
thanks in advance
dave.
Using Loader Component For External Swf And Jpg. HELP
Here is the situation:
I want to use loader for loading external swf and jpg. I found a tutorial how to do that with a preloader component and loader component. however I want to have my own preloader and thus I cant use the script provided in the tutorial. could some please write the script for a preloader (just a bar moving from left to right, no numbers, no nothing) that loads an image in a loader component. by the way please also write the script for the loader as well and where all of those scripts should be writen.
10000000000 thanks!!!!
|