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








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.




FlashKit > Flash Help > Flash General Help
Posted on: 11-14-2003, 06:13 PM


View Complete Forum Thread with Replies

Sponsored Links:

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.

View Replies !    View Related
Preloader Multiple Swf Files
hello out there,

can anyone tell me how to build a preloader which
loads about 10 movies into one main movie at once.
i also need to show the loading process in with a
loading bar.
i tried this (if u ned a fla file just tell me!):

frame 1:
stop();
this.createEmptyMovieClip ("a", 1010);
this.createEmptyMovieClip ("b", 1005);
this.createEmptyMovieClip ("c", 1001);
this.createEmptyMovieClip ("d", 1004);


a.loadMovie ("a.swf", 1);
b.loadMovie ("b.swf", 2);
c.loadMovie ("c.swf", 3);
d.loadMovie ("d.swf", 4);
this.onEnterFrame = function(){
TotalBytes = a.getBytesTotal()
+b.getBytesTotal()
+c.getBytesTotal()
+d.getBytesTotal();
LoadedBytes = a.getBytesLoaded()
+b.getBytesLoaded()
+c.getBytesLoaded()
+d.getBytesLoaded();
Percent = Math.round(LoadedBytes/TotalBytes*100);
if (LoadedBytes != TotalBytes) {
_level0.progessbar.gotoAndStop (Percent);
}
//progessbar is a movie with 100 frames to show the progress..
if (loadedBytes == TotalBytes && LoadedBytes > 0) {
_level0.nextFrame();
}
}
frame 2:
stop();
loadMovieNum("a.swf", 1);
loadMovieNum("b.swf", 2);
loadMovieNum("c.swf", 3);
loadMovieNum("d.swf", 4);

View Replies !    View Related
One Preloader With Multiple Files
Hello

Just wondering if its possible to have a preloader in a separate swf file and play it in the a main movie while another movie is loading. Blimey, did that make sence?

Let me try explaining again, with a structure:

--Main movie.swf
|--preloader.swf
|--section1.swf
|--section2.swf
|--section3.swf


Sections 1-3 will be loaded into the main movie (using Loadmovie). I would like to use the preloader.swf to play whilst the sections are loading, instead of having a preloader for each of the sections.

I hope that makes sence now.

Is it also possible to have a detailed preloader (ie with a progress bar) using that technique

Cheers

Neel

View Replies !    View Related
One Preloader Bar For Multiple Files....
I've looked around like crazy to find sometning what http://www.flashlevel.com does on their site. One preloader for multiple files that shows the file beeing loaded and the progress in regards to the total of all the mutiple files beeing loaded. Does anyone no of a tutorial or code for this...

Thanks, Niklas

View Replies !    View Related
Preloader For Multiple Files
I know how to make such preloader for loading one file after another. But I need preloader that will be able to preloade many files/movies at the same time and show percentage of each one. Let’s talk about 3 movies. How to do that? I remember that I have seen such thing somewhere on the net before.

View Replies !    View Related
CS3 Multiple Files Preloader
Hi All
this is my first post in the kirupa forum.
i just started to learn as3 with flash cs4. i have couple of doubts.

1. how to create a preloader which need to show by loading a bunch of jpg,mp3,xml and swf files one bye one. the problem face is to get the file size to find the totalbytes before loading a file.
2. how stop loading of a file while loading in progress.

regards

View Replies !    View Related
Preloader For Multiple Swf Files
I'd previously set up my presentation as a single swf with "scenes"built in. but realized that was not the best method.

Problem is now I'm not sure how to deal with preloading the 19 swf's I saved the scenes into.

I want to preload the first few swfs and then start the presentation, but have the rest of the swf's continue to download while the first plays so once the user calls for the next chapter, its already in memory.

I'm not advanced in actionscript. I know how to load a movie to a level in the composite swf (the swf I'm loading the rest into), but not how to preload one without it playing.

I also need a visible preload to show progress as first few swf's download.

View Replies !    View Related
Preloader Controling Multiple .swf Files
I have 3 seperate flash .swf files on one page at the moment they all load seperatly, idependantly of each other


the client wants the page to appear all at the same time , so these flash files to come in together os to speak lol

I have one preloader for one of the swf. files but not the others,

how can I make a preloader for one of the files that controls the others also

if this makes sense

as I am sure it must ot a guru

this is the addy I am trying it at

http://homepages.slingshot.co.nz/~mj77/cyl/index.htm

View Replies !    View Related
Preloader For Multiple Swf Music Files
ok i guess i didn't eplain well enough the first time, here it goes again, bear with me i typed it for an email so excuse the "you's"

i am very stumped with a problem i have and i was hoping you could help. My dilema is that i am making a music player with around 51 songs, but the songs are about 2to 5 mb each so i wanted to add a preloader for them, the first part of this prroblem is that i am using a swiftmp3 equalizer so i am pretty sure that you have to use a loader.loadmovie function to make the equalizer work, correct me if i am wrong, secondly i am trying to make a preloader for multiple .swf's so that all can use the same one, as you can see it would get very time and space consuming with 51 songs but it is hard to interpret all this coding as i am a complete noob when it comes to action scripting. I don't even know what a MyCache is. I have a preloader made but i can't seem to get it to work for what i am trying to do. Here is what i want to happen:
Click on a number >
Display Loading Bar for external swf >
Once loaded display song info and have working equalizer

So basically i want a version of your external preloader that works for 51 songs that also work for the SwiftMP3 equalizer bars. Since i am such an idiot when it comes to hand coding i was hoping you could help me out alot,

View Replies !    View Related
Preloading Multiple SWF Files Into One Preloader
I'm trying to load multiple swf files, in one preloader, such as the navigation, BG picture and so forth. For the Contact Page, Warranty and so forth, they will be independent, but I can't seem to preload the base swf files into one preloader.

View Replies !    View Related
Loading Multiple .swf Files In 1 Preloader
My flash movie consists of a few SWF files piled on top of each other (Levels). But the preloader I'm using loads only the base layer (Level 0). How do I load all the SWFs in one preloader, and please provide tutorials links regarding this too... Thanks

View Replies !    View Related
Simple AS 3.0 Preloader For Multiple .swf Files
I have been able to find some good examples of AS 3.0 preloaders that load an external .swf file. I even think I got mine to work properly, but what I really need I can't find. One that loads multiple .swf files or even better a way to stagger the loading of other .swf files until one has loaded and played. If there is a good tutorial please let me know or even a .swf file I can re-engineer. Forgive my ignorance if this seems easy I am very new to this.

View Replies !    View Related
A Preloader That Loads Multiple Files All At Once
I have a website that starts out with an index.swf

and all the links are sepperate swf files. How do I have them preload all of the files at once at the beginning of the index.swf, and show the progress of all the files preloading?

View Replies !    View Related
Preloading Multiple Swf Files With One Preloader
I have a swf file that I am using for transitions in a flash site. The site will use multiple swf's and I want to be able to use this transition file over repeatedly to preloader the various levels. So, my question is where do I start to code this as the transition swf file is in a level too? I just want to be able to preload all the levels above the transition. I hope this makes sense.

View Replies !    View Related
Multiple External Files Not Loading On First Try
I need some help, I have 2 swfs being loaded. One is the sound player with a music playlist. The second is the homepage with some text. Each swf loads two separate external text files through LoadVariables. When a user first hits the page, the playlist always loads. But the text for the homepage screen doesn't. If they refresh, both load fine. I'm assuming it's because the playlist is already cached, and now the homepage screen text can load ok.

Can we not load 2 LoadVariables external files to the same Parent timeline at the same time?

I've tried using onClipEvent(load) & onClipEvent(data), and I've tried using the new MX Load component. The behavior repeats under everything I've tried.

Please help!!!

View Replies !    View Related
Multiple External Files Not Loading On First Try
I need some help, I have 2 swfs being loaded. One is the sound player with a music playlist. The second is the homepage with some text. Each swf loads two separate external text files through LoadVariables. When a user first hits the page, the playlist always loads. But the text for the homepage screen doesn't. If they refresh, both load fine. I'm assuming it's because the playlist is already cached, and now the homepage screen text can load ok.

Can we not load 2 LoadVariables external files to the same Parent timeline at the same time?

I've tried using onClipEvent(load) & onClipEvent(data), and I've tried using the new MX Load component. The behavior repeats under everything I've tried.

Please help!!!

View Replies !    View Related
Loading Multiple External Txt Files
Here is the problem I'm having. I have a page that has multiple txt files loaded into a dynamic box. When I load a file, I can scroll down and read the entire thing. Problem is, when I load the next file, it doesn't load it at the top of the file but rather 1/2 way down. Is there any way to fix this? The example can be seen here:

http://www.thegoheens.com/flash/main.html

It is the "buyers" page. Links on the left, text on the right.

Thanks for the help.

View Replies !    View Related
Multiple External Video Files
Ok so here is my question. I would like to create a flash movie player that calls FLVs from an external location (mainly a streaming server), secondly I want it to be able to select from any of the videos (in no specific order).

For instance if I had:

Flash Movie 1
Flash Movie 2
Flash Movie 3

I would want to be able to lets say watch Flash Movie 1 and then Watch Flash Movie 3 and then Flash Movie 2, or whatever other orders there may be.


Thirdly I would like to be able to change the playlist (add/delete) videos from the web page without changing the Flash.

I understand that I may have to go into the Flash file and add one line of Actionscript to call on that file, but I want to try and not do that at all.

Does anyone have any idea how to do this or know of a link or a tutorial where I can find something of this nature.
So I guess I would need a little bit of a skin and be given the ability to to customize a bit.

View Replies !    View Related
Best Way To Load Multiple External Mp3 Files
I have several mp3 files I would like to load into an fla. What is the best way to do this with the least amount of code. Would I use the NetStream class and an Array? Using AS 3.0.

View Replies !    View Related
[CS3] Load Multiple External Swf Files
I built a loader with three buttons, each of which loads a different external swf. The code works, and all three buttons load the correct swf, but when I click the second button before the first swf is finished playing, the two movies overlap. If I click all three buttons in succession, all three swfs play, one over the other.

How do I code the buttons so they first stop the swf that is already playing, and then play the swf they are meant to load? Here is my code:

var imageRequest:URLRequest = new URLRequest("scene1.swf");

var imageLoader:Loader = new Loader();

welcomeBtn.addEventListener(MouseEvent.CLICK, loader);

function loader(event:MouseEvent){
imageLoader.load(imageRequest);
marker.addChild(imageLoader);
}

var imageRequest2:URLRequest = new URLRequest("scene2.swf");

var imageLoader2:Loader = new Loader();

designBtn.addEventListener(MouseEvent.CLICK, loader2);

function loader2(event:MouseEvent){
imageLoader2.load(imageRequest2);
marker.addChild(imageLoader2);
}

var imageRequest3:URLRequest = new URLRequest("scene3.swf");

var imageLoader3:Loader = new Loader();

sponsorBtn.addEventListener(MouseEvent.CLICK, loader3);

function loader3(event:MouseEvent){
imageLoader3.load(imageRequest3);
marker.addChild(imageLoader3);
}

Thanks!

View Replies !    View Related
Preload External Multiple SWF Files
hello-

this is how im trying to preload external swf files:


Code:
var Count = 5;
for (var i = 1; i<Count; i++) {
var fileLoad= this.createEmptyMovieClip("fileLoad"+i, this.getNextHighestDepth());
fileLoad.loadMovie("swf/page"+i+".swf");

}
i am loading first four swf files from swf directory (page1.swf, page2.swf, page3.swf, page4.swf) - However, I WOULD LIKE THEM TO BE INVISIBLE WHEN THEY ARE PRELOADED TO THE STAGE.. how should i do that.. "fileLoad._visible = false;" does not work- please help!!!!!!!!!!!

View Replies !    View Related
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....

View Replies !    View Related
Loading Multiple External Files
I have a timeline where I have external swf files that play in sequence. I need to know how to preload a few of these files at a time so that there is no break between them.

View Replies !    View Related
Preloading Multiple External Swf Files
Hi Guys,

I'm working in Flash MX

I made a site completly in flash.

But to lower file size I made the each section a different swf file

when you click a link you will have to wait for that section to load, it would be good if peoples can see the loading progress while they r waiting.

And i hav added a preloader in each of the external swf file.. and then i realise that if i wanna change or modify the preloader, i will have to change all the preloader too.. this is really kicking axx..


is there a way where on the main page there is only 1 preloader needed to show all the external swf files loading progress? i am using an empty mc as container to load thoose external swf files..

hope you guys can give any ideals or show me some similiar tutorials,

Thanks

View Replies !    View Related
Print Multiple External Files
I am trying to find a way that I can print a range of jpgs that aren't currently loaded in my movie.

I have a list of thumbnails of photos (with correlating larger version residing externally)each with a number. I want the user to be able to specify a range they would like to print. I think I've gotten close by trying to create a new cast member and load the jpg into it for each one in the range. However my movie keeps hanging and not responding why I try that method.

Any help would be greatly appreciated.

Also, the movie is currently using AS2.

View Replies !    View Related
Navigation On Multiple External Swf Files.
Hello everyone,

I have a file (main.fla) which loads external movieclips on it,using an empty movieclip as loader (loader_mc).Now,I want to create a navigation,with two buttons (previous / next) which will allow me to navigate through the external movieclips.
So,I have created these two buttons.For the "next" button I am using this code,to load the first external swf file (example1.swf):

Code:
on (release) {
if(this._parent.loader == Number(this._parent.loader_mc)){
loadMovieNum("example1.swf",this._parent.loader_mc);
} else {
this._parent.loader_mc.loadMovie("example1.swf");
}
}
This is a simple code,taken from the behavior.
So,everything is fine till now.The first ext.swf loads correctly.
Now,what code do I need to use,in order to be able to load the second ext.swf file (example2.swf) when the "next" button is clicked?

Thanks in advance

View Replies !    View Related
Loading Multiple External .jpg Files
Hi All

I want to load multiple external jpg images in one frame.
This works for one image, i want to load at least 6 images.

_root.createEmptyMovieClip("container",1);
container.loadMovie("photo.jpg");
container._x = 50; container._y = 350 ;

I have created 6 layers and changed the x & Y fot each layer, still i only see the last one.

How to do this right ?

Thanks for any input.

View Replies !    View Related
Preloading Multiple External SWF Files
hello-

this is how im trying to preload external swf files:


Code:

var Count = 5;
for (var i = 1; i<Count; i++) {
var fileLoad= this.createEmptyMovieClip("fileLoad"+i, this.getNextHighestDepth());
fileLoad.loadMovie("swf/page"+i+".swf");
}
i am loading first four swf files from swf directory (page1.swf, page2.swf, page3.swf, page4.swf) - However, I WOULD LIKE THEM TO BE INVISIBLE WHEN THEY ARE PRELOADED TO THE STAGE.. how should i do that.. "fileLoad._visible = false;" does not work- please help!!!!!!!!!!!

View Replies !    View Related
[mp3] Loading Multiple External Mp3 Files . . .
Last edited by KenNiles : 2003-12-05 at 10:47.
























ADMIN ---> I'm trying to delete this post. Problem solved.
Sorry!!

View Replies !    View Related
Preload Multiple External Files Beforehand...
Hi all,

I'm an advanced actionscript, to begin. So feel free to answer in as technical a way as possible. This is merely a situation I've yet to work with.

I haven't begun this phase of the project I'm working on, so there's still time for me to figure this out. Still, I figure I'll ask now just in case.

I'm developing a flash web site. I'd ideally like to load about 15 SWF files of varying file size (no more than 20kb at worst) BEFORE the site actually launches...but only one will be viewable at a time.

My experience shows that once a SWF is replaced in a movieclip via loadMovie, it has to completely redownload in order to work. Or does it cache and I'm just mistaken?

Shared Objects MAY be the answer, though I've yet to work with them. Can I only store text variables with them, or do I have the option of storing SWF files if I choose?

Or do you think just creating everything within movieclips in the one FLA file is the solution? This is not ideal, as I'm often moving to different computers at different locations and like the versitility of multiple SWFs.

Thanks in advance.

View Replies !    View Related
Multiple External Text Files In The Same Movie
Hi,
I hope you can help me out :-)
I have a main movie with a container clip and a scrollable area that refers to an external .xml file. It uses this code which works fine:
"_root.loadVariables("factstext.xml", "");"

BUT
When I push a button in my main movie and a new movie is loaded in my container clip, which also has an external .txt file, it doesn´t take the specific .txt file from the new movie, but the old one from my main movie.

Has it something to do with my instance names of the textfields or...?

Hope you can help me out.

Thanks,
Thomas

View Replies !    View Related
Loading Multiple External Files - PROBLEM
i am trying to create a preloader of sorts.

i have a mx file that has many "screens" - each screen loads in both an external jpg and mp3. in addition we are loading an internal movie clip that has some animations that occur on top of the jpg file.

the problem is that the audio is streaming in and the internal movie clip is going threw its movements, but the jpg file is not always fully loaded by the time the audio and animations start.

i am trying to create a function that checks to see if the jpg is fully loaded and displayed on the screen before the other two parts start playing.


does anyone have any ideas??


thanks in advance!!

View Replies !    View Related
Loading And Unloading External Multiple Files
Could you please help/advise on the best way to ensure smooth fuctionalitty and continuity. I have a number of external .swf files that I want to call at various times. I've created a button with an "on release load movie" e.g. Hello.swf into level 0. It works up to a point, but then ceases to respond. We think its a caching issue. So what would be the best way of going about getting external files. I have just tried assigning each one a different level, and unloading all others when I call the one i want, but that's not working at all. help....help!

View Replies !    View Related
Load Progress Of Multiple External Files
here's a brain twister.. at least for me:

how would one create ONE load progress bar for MULTIPLE external images? The idea is that the site would load multiple images at one time (or one after another) and the viewer would be able to see the progress via a load bar (but only one load bar.. not 50 if there were 50 images).


I know I've seen other sites do this before.

any ideas?

-Pez

View Replies !    View Related
Problem With Loading Multiple External Xml Files
I have an array named 'source' which consists of external xml file names whose content i am trying to load into another array called 'content'. I tried with following:


Code:
.....
for (i=0; i<source.length; i++){
XML_URL = "http://localhost/temp/" + source[i];
myXMLURL = new URLRequest (XML_URL);
myLoader = new URLLoader (myXMLURL);
myLoader.addEventListener(Event.COMPLETE, xmlLoaded);
}
....
function xmlLoaded(evt:Event):void{
content.push(myLoader.data);
}
The problem is that this way i only get content of the last xml file and other 'content' elements are 'undefined'. Does anyone know solution to this problem or maybe have another way of doing this?

thanks in advance

View Replies !    View Related
External Interface & Multiple Class Files
I'm still a bit wet behind the ears with AS3 & hoping someone can help out.

I'm trying to use external interface so that a javascript function can run on the page and tell my flash carousel to start playing a video.

I have a few class files though, there is the document class that builds all of the assets in the swf. Then another class that controls the video playback.

I'm wondering if I have to import the ExternalInterface at the document class level or if it can be within the video playback class (VidPlayer.as)?

I tried it from both but think I'm also missing something all together here.
As I encounter this error:
ReferenceError: Error #1065: Variable sPlayVideo is not defined.
at com.billboard.marquee::SWFLoader$cinit()
at global$init()

my code looks like this which is not within the doc class constructor function (but have moved it around to a few places to no avail):
private function sPlayVideo(){

//args

}
ExternalInterface.addCallback("autoPlayVideo",sPla yVideo);

Are there rules about where within the package def or class def that this can be called or referenced, or how it can be shared with other class files?

I read through the flash help files and some examples online and can get it working within a self contained test .swf but once I try to bring it into my whole project with multiple .as files it doesn't work....

thanks

View Replies !    View Related
Play All Button For Multiple External .swf Files
I am trying to play multiple external swfs in sequence, like a play all button for my menu, however I want the rest menu to still function normaly.

I tried declaring a variable and having the external swfs check it to see if they should stop or play the next one

in the root file I had the play all button

myNum = 1;

then the external file setup looked like this

if (_root.myNum == 0){
stop();
}
else if (_rooy.myNum == 1){
loadMovieNum("DrainageSolutions.swf",1);
}

this does not seem to work, the external files can replace themselves using the loadMovieNum() function but they can not seem to read the variable. does anyone have an idea what I can do to fix this?

View Replies !    View Related
Import Multiple Swf Files From External List
Ok, I'm pretty new to actionscript. I can't seem to find help on what I need to do by searching in Google. Perhaps I'm using the wrong keywords in my search?

I need to load multiple .swf files into a master .swf file. Sounds easy, just use the loadMovie function right?

Here's the hard part, I need to import a .txt or .xml file which specifies what movies to load and what order they load in.

After an imported swf has played to the end of its timeline, the main master .swf would look to the .txt or .xml file to see what files comes next.

Any help with this would be great or at least a point in the right direction.

Thanks.

View Replies !    View Related
Loading Multiple External Movie Files
Hello,

I have been working on this script that currently loads 2 external files into two separate areas inside my application. the 2nd file loaded is supposed to have several buttons that control the 1st movie clip. Like go to next frame, etc. My problem now is the 2nd file loaded, is not controlling the 1st anymore ( i had this all sitting in one file before).

So the action script to load the files is;


Code:
this.myBtn.onRelease = function() {
//load render 1 into viewer
this._parent.viewer.createEmptyMovieClip("clipHold", this.getNextHighestDepth());
this._parent.viewer.clipHold.loadMovie("render1.swf");
this._parent.imageName = "3600 RIO";

//load panel swatches
this._parent.panel.createEmptyMovieClip("clipPanel", this.getNextHighestDepth());
this._parent.panel.clipPanel.loadMovie("panel.swf");
};
and in the Panel, are a series of buttons, which shold affect the render.swf. This code is;


Code:

//panel color swatches

this.one.onRelease = function() {
this._parent.viewer.clipHold.gotoAndStop("gray");
};
this.two.onRelease = function() {
this._parent.viewer.clipHold.gotoAndStop("purple");
};
this.three.onRelease = function() {
this._parent.viewer.clipHold.gotoAndStop("brown");
};
I have tried to point the panel colors to the main movie, but its still doesnt work. Any ideas?

Cheers

View Replies !    View Related
Problem With Multiple Instances Of External Files
Last edited by shartwig : 2003-01-14 at 13:05.
























Hello All.

Subject:
A portfolio project with a master portfolio.swf file, which pulls in 6 instances of project.swf and thumb.swf into targetClips (projectClip[1-6] and thumbClip[1-6], respectively). A variable (projectNumber) is passed to the project.swf and thumb.swf movies through the loadMovie URL so that they know what project they are associated with. The projectNumber variable is also used by each projectClip instance to pull in the right external JPG image files for the portfolio also using loadMovie.

Issue:
As the portfolio.swf file loads, the project instances and thumbs are all preloaded in order (1-6) into their targetClips. Each projectClip loads its associated .jpgs as well. The issue lies in the performance of the different instances of the projectClip. They seem to slow down depending on load order (projectClip1 is snappy, projectClip4 is noticably slower, etc.). The more noticeable issue is that projectClip5 and project Clip6 completely choke: they don't play the tween that exists at the label that they are supposed to go to, and they seem to load the external jpgs on the fly, even though they should be preloaded (the thumb.swf file waits to show up until the project images are completely loaded).

Would somebody be so kind as to take a stab at what might be going wrong? It would be greatly appreciated. Caveat: the jpg files suck - they are only placeholders.

URL:
http://bsbdesign.electricpulp.com/fl.../portfolio.swf

View Replies !    View Related
External Interface & Multiple Class Files -Help?
I'm still a bit wet behind the ears with AS3 & hoping someone can help out.

I'm trying to use external interface so that a javascript function can run on the page and tell my flash carousel to start playing a video.

I have a few class files though, there is the document class that builds all of the assets in the swf. Then another class that controls the video playback.

I'm wondering if I have to import the ExternalInterface at the document class level or if it can be within the video playback class (VidPlayer.as)?

I tried it from both but think I'm also missing something all together here.
As I encounter this error:
ReferenceError: Error #1065: Variable sPlayVideo is not defined.
at com.billboard.marquee::SWFLoader$cinit()
at global$init()

my code looks like this which is not within the doc class constructor function (but have moved it around to a few places to no avail):
private function sPlayVideo(){

//args

}
ExternalInterface.addCallback("autoPlayVideo",sPla yVideo);

Are there rules about where within the package def or class def that this can be called or referenced, or how it can be shared with other class files?

I read through the flash help files and some examples online and can get it working within a self contained test .swf but once I try to bring it into my whole project with multiple .as files it doesn't work....

thanks

View Replies !    View Related
Loading Multiple Variables In An Array From External Files
hi !
i've got a question
i'd like, for a news page, that it updates itselfs when a file is uploaded on the server, keeping the old news at the bottom and the new one at the top, so i thought i could use text files with the date as name (ex:220604.txt) holding variables (date,title, txt) as strings so that i could store them in an array that would sort each time the swf is loaded.
then the news could displayed in order where i want them to be

first:
does this seem right to you, will it work ??!!

second:
if i ask it's because i'm stuck between the loadVars and the Array and i'm not the super pro of the array so if you understood what i'm trynig to say please help me !!

Thanks a lot !

View Replies !    View Related
Loading Multiple External Swf Files Into One Final Swf File
Hello all!

I have several .swf files created from different flash friendly programs. I want them to all play in order without stopping. Each swf file has a different frame length. I can't seem to grasp the concept of loading multiple swf's and playing them one by one from one single .swf file.

I have the following scenario:

8 swf files:

external.swf (using to load external swf files only)
file1.swf
file2.swf
file3.swf

Each of the file[x].swf files has a stop(); action at the end.

From the external.swf file, I want to:
1) load file1.swf..........play, unloadMovie(?) when done goto step #2
2) load file2.swf..........play, unloadMovie(?) when done goto step #3
3) load file3.swf..........play, unloadMovie(?) when done goto step #4
4) Etc...

I am using CS3 so I can script in any version, just very new to scripting. Any help and information sharing would be greatly appreciated.

Thanks in advance,

Travis

View Replies !    View Related
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

View Replies !    View Related
Code For Loading Multiple External SWF Files In Sequence?
Hello! I have a fla file that I've created to load 7 external swf files. I am able to create the code to load one swf file without any trouble but I can't figure out the code to get it load swf #2 when #1 is done, and so on. My code for one is below:

var imageRequest:URLRequest = new URLRequest("burbank_opener.swf");
var imageLoader:Loader = new Loader();

imageLoader.load(imageRequest);
addChild(imageLoader);

I'm fairly new to AS3 but this seems like a pretty basic thing to do. Any suggestions on what to add to my existing code to get it to load in sequence? Thank you!

View Replies !    View Related
Flash 8: How Do I Load Consecutive Multiple External Swf Files?
Hello, all of you brilliant people! I have a question and hope that someone may be able to help.

I have a container .fla movie and would like to load consecutive external .swf files. Right now I have a play button triggering the loading of the next movie, but what I would REALLY like is a smooth transition from .swf to .swf using a listener so that the next .swf will load once the previous one has finished. I have a counter which determines the next .swf in order.

So far, my code is this:

Counter:


stop();
//SETUP OUR COUNTER
var mcCounter:Number = 0;

//THIS BLOCK IS ONLY TO HANDLE THE LOADER AND THE FIRST MOVIE, movie0.swf
var myMCL:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
myMCL.addListener(loadListener);
myMCL.loadClip("movie" + mcCounter + ".swf", 6);
loadListener.onLoadComplete = function():Void {
_level0.play();
}



//-------------------------<CLIP LOADERS>------------------------------\
function loadNextClip():Void {
if(mcCounter < 6) {
mcCounter++;
var nextMCL:MovieClipLoader = new MovieClipLoader();
nextMCL.addListener(this);
nextMCL.loadClip("movie" + mcCounter + ".swf",6);
}

}
//LOADS PREVIOUS CLIP , WON"T GO PAST ZERO
function loadPrevClip():Void {
if(mcCounter > 0) {
mcCounter--;
var prevMCL:MovieClipLoader = new MovieClipLoader();
prevMCL.addListener(this);
prevMCL.loadClip("movie" + mcCounter + ".swf",6);
}
}
//-------------------------</CLIP LOADERS>------------------------------\


Any suggestions? I appreciate ANY help you can offer. I have been unsuccessfully looking for hours online, and can't find any examples, although it doesn't seem as if it should be the hardest thing in the world.

View Replies !    View Related
Preloader For Multiple External Swf's
I've been trying to make a preloader to load the root file and three external swf's onto separate levels. I want the preloader to indicate the progress of the total of all four files (i.e. it will reach 100% only when all four are fully loaded). I don't require a load bar, I just want text displaying the percent loaded.

I am new to ActionScript and have been experimenting with it. I've tried several different scripts from a number of websites and tutorials, and none of them seem to work, or they don't quite do what I want (they only load one file, or they load all files onto one level, or they have a separate progress indicator for each file, etc.).

The site can be previewed at http://www.seducinginternalneeds.com/test/CDBH02.html

It is not completed, but the first three links (Cold, Dead and Black) are linked to the external swf's. Right now the links work by calling the swf to be loaded, which causes a delay in the animation. What I would like to have is for each of these files to be preloaded onto a certain level, so that when a button is clicked it will simply say goto the appropriate level and frame.

Does anyone have a working script for this scenario?

Thanks for your time,

~ RaVeN

View Replies !    View Related
Old Newbie's Preloader For Multiple External SWF's
Trying to load external swf and found OLD NEWBIE's preloader. My only problem is I need to load 3 external swf's at level10, level20, level30. His example is for only one external swf.

Basically I'm trying to preload a site that is structured like this:

content.swf -- on level 10
nav.swf -- on level 20
intro.swf - on level 30

I've looked at his code and am wondering should I just load all three swf's into the same container clip? Here is his code:

// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("sound.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;

if(!isNan(percent)){
// trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
container.stop();
} else {
// trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
loadMovieNum("sound.swf",0);
}
}
stop();

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved