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




Making Preloader Bar For External Swf Files



please from you, can someone make a preloader bar for this swf preloader. http://64.182.62.176/files/swfPreload.zip this is the toturial of www.gotoandlearn.com I mean if someone can add a preloader bar for the percents that has already there thanks



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-05-2006, 06:58 AM


View Complete Forum Thread with Replies

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

Making Preloader Wait For External Files To Load
Hi there, I've had a search around and can't find what I'm looking for, so I come to you guys in my hour of need (ok, not so melodramatic, but I'd appreciate some help )

Here's the site I'm working on www.savethebarrels.co.uk

Which has basically been put together from tutorials from here (thanks guys) and from experience and experimentation, the only real problem I'm having is that if the user is max'ing out their bandwidth, or is on a low bandwidth connection then when they click to go to one of the other sections, then sometimes the externally loaded txt file won't load in time, so the scrollbar goes squiffy, and also there is no text displayed until you click it again.

So my question is this: Is it possible to place into my preloader, something to make it wait for the external files to load, i'm not bothered about it contributing to the %age loaded, I just want to make sure it'll wait for them to load, so in pseudo code I'm looking for:


PHP Code:




this.loadVariables("news.txt?nocache=" + new Date().getTime);  
this.loadVariables("nands.txt?nocache=" + new Date().getTime);  
this.loadVariables("faq.txt?nocache=" + new Date().getTime);
if txt files loaded  
and if (_root.getBytesLoaded() == _root.getBytesTotalgetTime)  
then gotoandplay next scene







any help would be much appreciated, ta

Making External Text Files Expire?
I'm loading an external text file into my MC, I can get that to work perfectly... but the problem lies in the the browser caching the text and thusly not displaying changes made to the file.

How do I make my text files expire in the browser cache, or failing that force the browser to either reload the file or not cache it in the first place?

Making External Text Files Expire?
I'm loading an external text file into my MC, I can get that to work perfectly... but the problem lies in the the browser caching the text and thusly not displaying changes made to the file.

How do I make my text files expire in the browser cache, or failing that force the browser to either reload the file or not cache it in the first place?

Help With Making Content For Pages On External Swf Files And Loading Them
I'm currently making my first flash website. I do have some knowledge in flash, but I wanted to make a swf file for each content of a page so it will only have to load page by page instead of a huge big single swf file.

this is the layout:

_______________________________________________
.
. Header
.
_______________________________________________
.
.
. Content
.
.
_______________________________________________
. Footer
_______________________________________________

I want to have a main swf with the header and layout and all and I only want the content part to load in and out. So how would I set it up so when a button is clicked in the navigation, it plays animation of the current content part of the page unloading and then loads the swf of the page that was clicked? I hope what I said makes sence.

If anyone has a fla file of this or know any good tutorials on this or would like to explain, I would really appreciate it!!!!!!

Thanks guys!!

Making An External Preloader..?
Hi all,

I have a website which contains a component on it's frame, therefore, I'm unable to place a preloader at the beginning of the movie. So, I have to put the preloader in a separate movie which then jumps to the main movie.

I have this code form a tutorial but, it dosen't seem to be working, maybe someone could suggest a better way of working this problem out, or help me form a code that works.

I really would appreciate any help!

Thank you

Help Making Preloader Into A External Preloader
Hey Flash Gurus

I need some help changing a preloader I have into a preloader that can be used for loading external swf.

Now the code for the preloader is

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

Ie the preloader and steps through a preloader animation filling the logo (ie loader)

Now I have tried changing a few things but having problems tried loading into a container and a level

Help would be awesome

Thanking you in advance
jacko

Help Making Preloader Into A External Preloader
Hey Flash Gurus

I need some help changing a preloader I have into a preloader that can be used for loading external swf.

Now the code for the preloader is

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

Ie the preloader and steps through a preloader animation filling the logo (ie loader)

Now I have tried changing a few things but having problems tried loading into a container and a level

Help would be awesome

Thanking you in advance
jacko

Making A Full Flash Site - Buttons Calling In External .swf Files?
I've just created a full flash site in which every page is a different .swf file with different buttons which in turn point to another swf file. The code i use in the buttons to open up the next .swf into the window is:

on(release){
loadMovieNum("externalfile.swf",1);
}

it is a very graphic/arty website and there is no main menu that stays all the time, the buttons are in different places on each page.

My problem is, after the home page loads up and i click on a button to view another page, the cursor is still able to detect the buttons from the home page in the new page and click on them, even though they shouldn't be there and you can't see them.

Is there a way around this, or a different way of loading the .swf files into the site?

Thanks in advance. This is driving me crazy!

Preloader & External Swf Files
Hi all,

anyone know how to include external swf files (load movie ...) into a preloader? Just including the frame with the load movie action script in it doesn't seem to do the trick.

buzzbuzz

Preloader For External .swf Files
Hi,

I've got a projector that loads a large .swf file (135mb).

Its going on a CD so i've made the project display a message saying 'please wait...loading'. It then loads the 135mb movie using 'loadMovieNum'.

I need my 'please wait' message to have an animation looping while the .swf file is loading.

I've set the 'please wait' to loop and do a simple animation. The only problem is, as soon as the projector gets to the frame that loads the movie, the animation stops.

Can anyone help?
My deadline is getting very close!

Thanks in advance,
Phil

Preloader For External Files
Hi, I have a site versatilecomputers.com All of the content loads external, I have Cable so I can't really see how long it takes for dial up, but I know there is a little lag between buttons, so I want to make one preloader and call it when the user clicks on the buttons so their not steered away wondering when the content will pop up. I know its simple and there was a good tut on it but I searched and couldnt find it. If you have the link or would like to assit me that would be great, Thanks
PCRIDE

Preloader For External Swf Files
Hi there,

I have made a website with a main movie and navigation in there, then when you click the buttons for the different sections it should preload the content of other swf files I have put online and then stop at the first frame of that loaded content. Now all the swf's for the website as well as the external ones have preloaders and they work fine for the seperate files but once combined they do not function. They just don't preload anything and just immediately jump to the first frame of the content to be loaded, without waiting for the entire swf to load into the website! I have tried several different preloaders but they all tend to just jump to the content and not wait for everything to preload when everything is uploaded online. Would anyone know what the problem is or what could be the most easy way to make everything preload and then when everything is preloaded jump to the first frame and stop there? I'm not a wizard with action scritping so I could really use a detailed description of what to do! I am pulling my hair out by this point and could reaaaaaaally use some help!!!

Have a great day!!!

ROB

Preloader With External Files?
Hello,
I want to be able to preload everything in my movie. I have external movies loading in to it, in a different scene. Which is causing the problem. At the moment the preloader preloads everything apart from the external files.
How do I get it to preload with the external files??

This is my structure

Scenes:
Preloader

Login

Controller Page
'Loadmovie – maincontent.swf'
'Loadmovie – menu.swf'


This is the code for my preloader
1st frame
// initialize text fields
loadpercent = "0%";
loadBytes = "0 of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb";


2nd frame
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
// Check for finished loading
// If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
gotoAndPlay("Button");
// Where to go once your movie is loaded
}



3rd Frame
gotoAndPlay(2);
// Loops back to continuosly update text fields


Many thanks
Kaan

Preloader With External Files?
Hello,
I want to be able to preload everything in my movie. I have external movies loading in to it, in a different scene. Which is causing the problem. At the moment the preloader preloads everything apart from the external files.
How do I get it to preload with the external files??

This is my structure

Scenes:
Preloader

Login

Controller Page
'Loadmovie – maincontent.swf'
'Loadmovie – menu.swf'


This is the code for my preloader
1st frame
// initialize text fields
loadpercent = "0%";
loadBytes = "0 of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb";


2nd frame
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
// Check for finished loading
// If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
gotoAndPlay("Button");
// Where to go once your movie is loaded
}



3rd Frame
gotoAndPlay(2);
// Loops back to continuosly update text fields


Many thanks
Kaan

Preloader For External Files (mp3)
I realize this theme is known but not for me! Somebody could help me in realizing a preloader that can manage the main movie and an external mp3 attached to it? The problem to resolve is how to "inform" Flash about the size of the external file so it can evaluate the bytesloaded==bytestotal equation.
thanks

Preloader For External Swf Files
I have a movie that contains a movie clip that calls in several external .swf files. The movie has a preloader so that it won't start until the whole movie is loaded. The preloader doesn't, however, take into account the external files in the MC. How can I make sure they are loaded before the movie plays?

Many thanks.

Help....Preloader External Swf Files
Hey Guys

I have a swf that calls in external swf files. The preloader works fine on the main swf.

On the external swf files I have also used the code for the preloader so when the main swf pulls in the external file that file preloads itself.

here is the code:

this.onEnterFrame = function() {
var amount:Number = this.getBytesLoaded() / this.getBytesTotal() *100;
preloader._xscale = amount;
if(amount == 100) {
this.gotoAndPlay(3);
delete this.onEnterFrame;
}
}

The issue im getting is that the preloader on the external files dont seem to work at all. I get a black screen until the movie loads.

Any ideas anyone?

Thanks

PRELOADER For EXTERNAL XML Files
im loading images into flash from different external XML files.

it takes time to load images into the flash- how do i create a PRELOADER for EXTERNAL XML files. any ideas? please help.

External SWF Files Preloader
I am building ( more like running full speed with my eyes closed through) a website. In the site i have a flash movie (movie A). Movie A has a button that dynamically loads another movie (movie B). Movie B contains a empty movie clip and 3 buttons. Each of the buttons loads a movie into the empty movie clip in movie b. I hope this makes seance so far. This is where i am at an impasse. I would like the first of the 3 movies to begin playing when movie B loads into Movie a, in addition to loading off the button. Also i need a preloaded for for the 3 movies relative to the button being released. The problem is the 3 movies loading into movie b are mpgs converted to .swfs so i have no source files for them. Any help you could give me on this would be greatly appreciated

This is the script i am using to load movieb into movie a

on(release){
_root.emptyclip.loadMovie("tv.swf");
}


This are scripts I am using on the buttons

on (release) {

emptyClip.loadMovie("Kitchen.swf");

}

thank you very much uin advance for any help anyone can provide.

Preloader And External Swf Files
hi there,
please check out this website:
http://www.indiagarden.co.nz/

There's a preloader on the first page, but it just loads the first swf file(index.swf).
What I want is to load all the swf files(which are all external files, load them by clicking the menu) all at once, but only use one preloader in the front page.

Is there any way I can calculate the total size of all my swf files and put it into the preloader? I will be so appreciated if anyone could help.

Preloader For External Files
I want to preload 5 swf files in the preloading bar and use it later on, how can I do the loading bar for external files?

Also, if the external files r not swf, is it possible to do it?

PRELOADER For EXTERNAL XML Files
im loading images into flash from different external XML files.

it takes time to load images into the flash- how do i create a PRELOADER for EXTERNAL XML files. any ideas? please help.

Preloader For External Files In Mc
I have a movie which has 10 buttons each button loads in an external swf into a container onRelease.

The swf files have a preloader already built in but only works properly offline.

Online it seems to miscalculate the file size of itself and only loads part of itself in.

on second click of button the swf files load in fine....


Any suggestions would be a great help.

This has been wrecking me for 24 hours now......

.http://www.kirupaforum.com/forums/ne...ead&forumid=7#

Preloader For External Files
I want to preload 5 swf files in the preloading bar and use it later on, how can I do the loading bar for external files?

Also, if the external files r not swf, is it possible to do it?

Preloader For External .swf Files
I haven't been able to find any tutorials/help with my specific preloader needs. This is what I am trying to do:

I have an entire website in Flash. When the user clicks on one of the navigation buttons, it jumps to a specific frame, which has an action to load an external .swf file into a movie clip holder. Some of these .swf files are rather large (lots of graphics), so I would like to have a preloading animation run. The thing is, I only want to preload them (run the animation) when the user clicks on the button, not at the beginning of the main .swf file or anything.

I have tried putting a preloader movie clip in my external .swf file, and telling it to go to frame(2) when getBytesLoaded == getBytesTotal (code is not exactly as shown, but you get the gist).

The problem seems to be that my preloader (the first frame of my external .swf file) won't run until the whole .swf file is loaded into the main movie, and therefore is not really necessary. How do I get a preloader to run once the user clicks the button, and only stop running once the entire .swf file is loaded into the main movie? If you could point me to a tutorial that addresses this exact issue, or give me some help yourself I would be grateful.

Thanks.

Preloader For External .jpg Files
im trying to create a preloader for external jpgs. tried with onEnterFrame and setInterval, but no luck.
then i tried the simplest way i can think of, as following.
i have images p1,p2,p3.jpg to load. each jpg is loaded to a new empty movie clips, and these movie clips are contained by another movieclip "PF" , which is then placed on stage.
so the hierarchy is _root.PF.new_empty_movie_clips

------------------
frame1:
arrayHolder = ["h1","h2","h3"];
i=0;
-------------------

frame2:
this.createEmptyMovieClip(h[i], i);
x=i+1;
this[h[i]].loadMovie("p" + x + ".jpg");
------------------

frame3:
if (_root.PF[h[i]]._height > 5)
{
_root.PF[h[i]].onPress = function () {trace(this._name)};
if (i<arrayHolder.length-1) {
i++;
gotoAndPlay(2) ;
}
else {gotoAndStop(5);
}

else gotoAndPlay(4) ;

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

frame4:
gotoAndPlay(3);
--------------------

frame5:
stop()
----------------


the jpg is loaded and button works. problems are:
1. as i tried to capture the loading progress but putting
_root.PF[h[i]].getBytesLoaded() anywhere on frame 3, it will only traces once with the end result, which is the total loaded size...and didn't keep tracing with the progress.

2. it doesn't appear to enter frame 4 at all, tried to put a small box on frame 4, but this box never shown while movie played

i know probably this is a stupid and wrong method, so you have any idea or any other ways to work this out?
i know that we can use MovieClipLoader() class from FMX2004/FPlayer7, but i really want to do it without using that class.
thank you.

How TO Make Preloader For External Files ?
HELP!

How can i make a preloader (like a preloader bar or a simple "loading" preloader) for external files?

Like i have a .swf that i wanna load from another .swf, how do i make a preloader for it in the main .swf?

Would Really Really appriciate any help.

Thank you in Advance!

/delivertrend

Preloader External Swf Files + Statusbar :-(
i have one mainmovie in which i load some other
swf files. they are supposed to show up together
when everything is loaded. so far i managed this
to work. as i´m a newsbie this took me ages! but
there should also be a statusbar to show the
loading progress and this does not work at all.
i tried this:

if (LoadedBytes != TotalBytes) {
tellTarget("loadingbar") {
gotoAndStop(Percent);
}

loadingbar is an instance of a 100 frame movieclip..

please help! i don´t know what to do anymore!

if you need to see the fla, i zipped the preloader.fla
and 4 swf´s to be loaded.
http://www.7thsense.net/kunden/7thse.../preloader.zip

or have a look at my result - well you will not see much :-(
http://www.7thsense.net/kunden/7thse...preloader.html

Preloader External Swf Files + Statusbar :-(
HELP!

i have one mainmovie in which i load some
other swf files.they are supposed to show
up together when everything is loaded. so
far i managed this to work. as i´m a newsbie
this took me ages! but there should also
be a statusbar to show the loading progress
and this does not work at all. i tried this:

if (LoadedBytes != TotalBytes) {
tellTarget("loadingbar" {
gotoAndStop(Percent);
}

loadingbar is an instance of a 100 frame movieclip..

please help! i don´t know what to do anymore!

if you need to see the fla, i zipped the preloader.fla and 4 swf´s to be loaded.
http://www.7thsense.net/kunden/7thse.../preloader.zip

or have a look at my result - well you will not see much :-(

http://www.7thsense.net/kunden/7thse...preloader.html

External Swf Preloader (multiple Files)
I need to create an action script that at the insertion of the CD-ROM im creating it loads all needed external swf files.
However, I do not want this to be evident to the user.

For instance. while distracted with other crap the CD-ROM is preloading:
a.swf to level 1 when finished it preloads
b.swf to level 2 and so on.

kind of an when load (a.swf) complete (play)


let me know if anybody understands this.

Transitions Between External Swf Files Vs. My Preloader
hi everybody!
i'm using transitions between external swf files (from kirupa tutorials: http://www.kirupa.com/developer/mx2004/transitions.htm) and i'd like to add my preloader to these swf files... i have been triying to do it, but i can't
can someone help me, please?

my preloader code:

first frame: "loop"
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int(byteloaded/bytetotal*100);
load_bar.gotoAndStop(loaded);

second frame:
if (byteloaded == bytetotal) {
gotoAndPlay("end");
} else {
gotoAndPlay("loop");
}

third frame: "end"
gotoAndPlay("go");

load_bar is a mc with an animation of 100 frames, and i added to it a code:
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}

onClipEvent (unload) {
Mouse.show();
}
once the swf is loaded, it has to show the default mouse cursor again...

well, that's all...
i'm gonna appreciate your help
thanx in advance
cheers!

(sorry, i know my english isn't good)

Gparis I Tried Your Preloader And It Still Does Not Preload External Files
I,m trying to preload external flash files and I can't seem to get it to work why?? someone has to know a effective way to do this out there?

Preloader When External Text Files Are Involved
I am pulling text from external text files in a movie. It does not seem like my preloader works in regard to the external text. I tried using "If Frame Is Loaded" to see if the frame where the load text is called is loaded. That frame contains: loadVariablesNum ("quotes.txt", 0);

I thought that perhaps since this is called, it maybe outside the realm of the If Frame is Loaded command. If so, is there a way to make sure the text is loaded?

Thanks

Preloader For Master.swf Which Loads All External Swf Files.
Hi all-

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

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

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

master.swf

Frame 1

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

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

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

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

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

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

Frame 1:

Code:
stop();

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

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

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

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

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

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

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

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

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

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

Problem With My Second Preloader, When I Load External Swf Files
I have a main preloader it works fine.

But the problem is when i want to load my external galleri.swf file into my main.swf then the preloader in galleri.swf wont work.

I have loaded the galleri.swf with my following hand made code.. the preloader in galleri.swf works as long I only test it from gallery.swf and not testing it from my main.swf file.

on(release) {
this.createEmptyMovieClip("holder_mc",1);
holder_mc.loadMovie("galleri.swf");
holder_mc._x = 0;
holder_mc._y = -406;

//Movieclip GotoAndPlay Behavior
_parent.kort.gotoAndStop("start2");
//End Behavior
}

Really need a hand here.. have now tried for hours and with different preloaders.

Loading External Files In Mx Showing A Preloader
Hi,

I have hacked one of your files on the tutorials : 6 kirupa.com - Preloader and Transition for Dynamic Files
Learn how to create preloaders and transitions for externally loaded files.

Anyway I ahve modified it to load in jpegs but I need to put a preloader in somehow so I can show how long till the jpeg loads. SOunds easy!!! But I am well stuck

I have kept the same basic stucture as the original file but am usure where to stick the preloader... On the loader movie or the transition one. And then how to configure it. I tried turing my jpegs into swfs and outting a preloader but that did not work either...?

Loading External Files In Mx Showing A Preloader
Hi,

I have hacked one of your files on the tutorials : 6 kirupa.com - Preloader and Transition for Dynamic Files
Learn how to create preloaders and transitions for externally loaded files.

Anyway I ahve modified it to load in jpegs but I need to put a preloader in somehow so I can show how long till the jpeg loads. SOunds easy!!! But I am well stuck

I have kept the same basic stucture as the original file but am usure where to stick the preloader... On the loader movie or the transition one. And then how to configure it. I tried turing my jpegs into swfs and outting a preloader but that did not work either...?

Does Anyone Have Any Examples Of External Flash Files With A Percentage Preloader
I'm trying to preload external flash files if you have experience doing this please reply. all the preloaders i have tried just flash the preload bar and move onto the image.

Can I E-mail Someone My Preloader For External Files Somethings Wrong With It
I have a preloader that preloads external files. Its not working and I have given up....

Thanks for your help

Preloader To Also Preload External F4v Files In Main Movie?
n00b alert... I did search the forum (and several others online), but either the code got too complicated for me to even attempt to adjust it, or I didn't find a relevant answer.
So I really hope someone here can help me out.

I've found a preloader code online that works like a charm. I don't really know what half of it actually means/does, but it preloads and then plays the mainfile.swf . Me happy.

But the "mainfile.swf" calls external f4v files, and the problem is that they do not get preloaded. (And that kinda was why I needed a preloader in the first place...)

I gave all the f4v files instance names within the mainfile (assume: video01.f4v, video02.f4v etc), and the f4v files themselves are in the same folder as the mainfile.swf.

What do I need to add to the code to get it to preload everything?
Thanks in advance!!


ActionScript Code of my preloader is attached.







Attach Code

var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("mainfile.swf"));

function loop(e:ProgressEvent):void
{
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString() + "%";
}

function done(e:Event):void
{
removeChildAt(0);
percent = null;
addChild(l);
}

Preloader And Transition For Dynamic Files AND Transitions Between External SWFs
HI, IM SORRY FOR MY ENGLISH..

ANYONE KNOW HOW TO Preloader and Transition for Dynamic Files AND Transitions Between External SWFs MIX TOGHETER...

Targeting External Files To Text Files In Flash
Gooday all

I am developing a flash site for a movie company and it needs to be 100% dynamic! and must be flash 5 compatible

To put things as simply as I can here goes.

I have a directors page - on this page I have two text fields.
The first text field pulls all the directors names from an external file called directors.html, In this external file I have html hyperlinks which link to each directors bio text (in another external text file), what I want to do is basically target the second text field in flash. i.e. when you are in flash and click one of the directors names his info must appear in the adjacent text field.

you follow?

THIS DOESNT LOOK LIKE A COW!

Loading External Text Files With Links To .swf Files
i am loading a external text file with html links. I would like to know if anyone out there know how to make those links load .swf files, that would work with the levels hierarchy of the original level0 file. I tried passing a variable that would be detected by a movie clip on EnterFrame but no success, maybe I had written something wrong. Loading just the swf file will replace the html page on the browser.

Making A CD Rom With Mov Files In MX
I want to make A cd rom with a Flash MX projecter ion it. The projector file will be A simple menu. I want to have a list of Quick time files and when you click on the file name the the quick time player opens and plays that file. Is this lay out possible in flash MX? How would I script the buttons to do this?

Thanks for you help.

Multiple External Text .txt Files In Different Swf Files
I'm trying to have several external files (txt or html) attached to a several swf flash files, loading in different levels of one main movie, for easy updating.

Example is: loadVariablesNum("ext-track.txt", 0);
This I can do, partly working.

Say you click the button for "about" that loads that flash file (in a layer), it fails to load in the relevant external file (the movie loads just not the external text file).

When you open up the "about.swf" on its own, it loads up the external file no problem. It just fails to do it when I am loading it from the main swf movie file that then loads this in a layer.

I can get all the text files working by putting in all the loadVariable parts in the main movie but I need them put into their relevant swf movies.

Does that make sense?

How do you correct, something to do with layers or targetting? I'm sure it'll be easy for you guys, Actionscript ain't my thing.

Thanks.

FLASH - Flv Files & Importing External Files
Note: this is trying to be done all in Flash... please be patient as I have to explain it...

Here's the scenario... I am currently building a website for a coffee company, and as an introduction to their website, they want to play a short clip of 16 seconds, size 350x250 - fine... The real problem is that I have been asked to make it appear as if it was actual footage on TV - in effect, at super high quality with NO (and I mean, NO) Pixelation... very stringent, but they think I can somehow push the boundaries and work something out!! Also they wish for it to play as soon as the website begins (no chance of preloading!!) - without an option for the user to control the film (as in no play/stop/rew buttons, etc.)

In order to create this, I had to use Final Cut Pro - as this was the only program that passed the 'test' for what was asked... the client has a major issue with the 'fade' to black sections of the film - believing them to look as if they are shimmering (this also being the initial problem with building it directly in Flash). I passed this through all types of compression to achieve the smallest possible file (12MG) - and then from Quick Time Pro - I came up with an immaculate looking, but incredibly large flv file - using the export feature. Total... 82MB, yes MB...

Please note, I am fully aware of compression, but have to iterate this incredible request!!

Rather than attach it to the timeline in Flash, I placed the created FLV file in the same folder and requested on the first line of the timeline - through Actionscript - that it plays the FLV 'progressively'. To my understanding, this file should play whilst not having to load up before hand... (learnt of this from Macromedia website.)
I have seen this method used in a few tutorials, but admittedly the file sizes are approximately 5MB...

After uploading the file (took over an hour), I tested the film and it began to play extremely slow and choppy. After 16 seconds (the expected duration of the clip) the next scene in the timeline began !! The film had actually only progressed about 3 seconds into itself....

I don't think I am necessarily doing much wrong as it is the best solution that I could come up with in terms of keeping the final 'SWF' file to a minimum size so a user will not have to wait it to load up (got Flash files to 24MB - but still too long to load up!!!)

Can anyone think of an alternative method to playing an 82 MB file, or is this just plain ridiculous??

I am at a loss because I am still curious to see if this is actually feasible... if so then maybe you will help me push the boundaries of Internet viewing!!!

ALL comments/suggested will be highly appreciated and definitely considered

Okolom

Making Save Files
g'day all u flash fanatics...i'm relativley new to this (i know quite a bit but not enough).
anyway...i was hoping that someon could help me by tutoring me in how to send variables to an external file so that when u get back into the game...it will load them.
i already know how to load variables form a text file but i dont know how to make flash write variables to any external file...
any help at all would be great
thnx

Making Links To Files
Hi,

I have created a flash webpage with images(3). I would like link these images to 3 files. These files are flash files. So when the user clicks these images, they will automatically start the files they are linked to.

I am new to actionscript. What is the code to do this? can someone tell me how to link these files, which will start the flash files.

thank you.

Making Dowloadabl Files...
hi,
does antone know how i can have a music file that's dowloadable from the website? to have a dowload button or something of the sort...
does anyone know what i have to do for that?
thanks

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