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




OnLoadError Issues With External Swfs



Hi everyone,

I've been bashing my head against a wall with this one for the past couple of weeks, and I think I'm starting to do some permanant damage.

What I have is this... I have a blank movieclip and on the first frame is the following:
this.attachMovie("adspace_mc1", "adspace1", 1);var adspace_mc1:MovieClipLoader = new MovieClipLoader();
var listenerObject:Object = new Object();
listenerObject.onLoadError = function() {trace("an error occurred.");};
Now, the 'adspace' movieclip which is loaded with attachMovie contains the following actionscript attached to its instance on the stage:
onClipEvent (enterFrame) {
if (counter == null) {
loadMovieNum("file1.swf", 1);
counter = 2;
} else if ((_level1._totalFrames != undefined) && (_level1._currentFrame == _level1._totalFrames)) {
filename = "file"+counter+".swf";
loadMovieNum(filename, 1);
counter++;
}

}As you can see, the movieclip loads a whole bunch of external swf files once by one, starting from file1.swf and going up (file2.swf, file3.swf, etc...). My problem is this. I'm trying to get the onLoadError command to tell me when we get to the end of the files that have to be uploaded, so I can set the counter back to 1. There's no way of me knowing how many file.swf files are going to be in the directory, so what I'm trying to do it to get Flash to start the counter again once there's an error (i.e. there are no more files to load).

Perhaps I'm going about this completely the wrong way, but it's driving me insane. I'd be really hapy if someone can help me out at all.

Thanks in advance,

Stu



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-04-2006, 11:12 AM


View Complete Forum Thread with Replies

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

Issues With Loading External Swfs
Hello all,

I've been having a tough time getting as3 to do things as2 had no problem doing. So many listeners ahhh! I love how fast it is, but just seems like it takes a lot more code to do some things.

So basically my issues is I see inconsistent behavior live, across browsers in my app which has a parent swf, which loads a child swf, which also loads a child swf inside it.

This all seems to work fine in the ide. And with the default flash activeX javascript it works perfect in Explorer as well as chrome, but the same default export halts when i have a Event fire in my child to the parent.

I tried using the latest swfobject as well, and then get this - my app didn't work at all just blank in ie and chrome. Firefox actually did load it with the new swfobject but then halted at the same spot.

Anyone have any experience with inconsistent behavior between browsers with as3 projects loading external swfs?

I really can't believe how complex it is to do something that happened so simply in as2.

Does anyone have a concise way to load external swfs and have that child load a child? Note, the swfs being loaded here contain complex as3 code, they are not just timeline stuff. I have listeners on the child movies which wait for them to be added to the stage before initing:

Quote:




if (stage){
onAddedToStage();
} else {
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
}
}





Any help is much appreciated!

Cheers!

External Swfs Issues[renamed]
I am trying to load an external swf into a main one. I think I may have cracked it but I would like it to load in a specific frame name or number.


for example I am using this code: loadMovie ("homepage.swf", "_root");

This links back to the main page from one of the external pages, however I wish it to bypass the intro so that anytime I return to the homepage, browswers are not bored with the same intro.

so if the frame for intro is named "intro", and the post intro, homepage frame is labelled "home",

how can this be achieved.

Hope somebody can help. Thanks in advance

'counter' Issues - How To Go Back To Start Once All External Swfs Are Loaded?
Hi, I have the following code which loads various external swfs and plays them. Once each swf has finished playing, it goes to the next swf. Each swf is named file1.swf, file2,swf, file3,swf, etc.
onClipEvent (enterFrame) {
if (counter == null) {
loadMovieNum("file1.swf", 1);
counter = 2;
} else if ((_level1._totalFrames != undefined) && (_level1._currentFrame == _level1._totalFrames)) {
filename = "file"+counter+".swf";
loadMovieNum(filename, 1);
counter++;
}But my problem is this:

They'll never be any way of knowing how many external swf files they'll be in the directory at any one time, because it will change regularly. How can I get the code to loop back to the beginning after the counter has reached how ever many external swfs there are in the directory? Does that make sense? Basically, I need the code to go back to the start when it can't find any more swfs to load.

My actionscript is terrible, and I've been hitting my head against a brick wall for a long time with this. I REALLY hope someone can help me!

Thanks so much,

Stu

Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow
http://www.kirupa.com/developer/mx2004/transitions.htm

regarding this tutorial I started my site (http://technoportsolutions.com/technoflash/) to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions. If anyone ever did something better or how can I use some transition effects (like intro and outro) without using external SWFs ? is my current problem.

Transitions Between External SWFs - Close Button For External Swfs
I recently created a site using the "Transitions between External SWFs" tutorial for Flash MX 2004. I use this to load the sections of my site into the main movie file. Each section is an External SWF file. When a viewer clicks on a navigation button, the specific external swf move will load and play. Currently, a viewer would need to click on another navigation option to close the current external swf file. I would like to add a close button to each of the external swfs so that a view has the option to close the window without clicking on a naviagtion link. Anyone have any suggestions? I am fairly new to actionscript and not quite sure how to accomplish this.

Thanks in advance for you help!
-RhynoDesign

Loading External Swfs Into Externally Loaded Swfs.
ive got some buttons on my main timeline that im using to load external swfs into an empty mc. the buttons are coded with the following:

on(release){
if(_root.currMovie == undefined){
_root.currMovie = "1";
emptyMC1.loadMovie("1.swf);
} else if (_root.currMovie != "1") {
if (emptyMC1._currentframe >=
emptyMC1.midframe) {
_root.currMovie = "1";
emptyMC1.play();
}
}
}


1.swf also has some buttons that load external swfs into a second empty mc. those buttons are coded with the following:

on(release){
if(this.currMovie == undefined){
this.currMovie = "2";
emptyMC2.loadMovie("2.swf");
} else if (this.currMovie != "2") {
if (emptyMC2._currentframe >=
emptyMC2.midframe) {
this.currMovie = "2";
emptyMC2.play();
}
}
}


1.swf loads into emptyMC1 ok, and 2.swf loads into emptyMC2 ok.

when i press any of the buttons on the main timeline, the outro animation of 1.swf plays correctly, but the outro animation of 2.swf does not. is there a way to the buttons so that the emptyMC's unload sequentially?

Alt To OnLoadError
Is there an alternative to onLoadError, as I don't want to publish in player 7?

Or perhaps it would be better to explain what I am trying to accomplish.

My main movie is made up of smaller external swf's that are loaded as needed.

I would like to preLoad the smaller swf's as the main movie is playing. Easy enough. Except, I am trying to keep my main movie as dynamic as possible, so my thought is to have a looping preLoader that looks for a sequentially numbered swf. That way, I don't have to type the names of all the smaller swf's in by hand. When it no longer finds one, it has reached the end of the smaller swf's needed to preload.

Does this make sense? Does anyone see how this may cause problems? And finally, does anyone know of an alternative to onLoadError, which would basically tell my looping preloader to stop searching for smaller swf's to preload because it has reached the last one?

Thanks in advance.

_t

OnLoadError
Hi there

Im building an application that loads a list of other swfs into it. Im using a class to handle all the loading and to allow the user to switch between swfs. Ive created an empty movieclip on the stage for each swf to load into ( ib code ), each clip has seperate MovieClipLoaders and Listeners. I want to attach a fallback clip from the library if a swf doesnt load properly.

However im having trouble attaching the fallback movieclip, screenLoadingErrorMessage from within the onLoadError event.

Here's my code

class ContentLoader
{
private function createContentArrays()
{
//create a movie clip for every swf thats loaded
//create MovieClipLoader for every swf thats loaded
//create Listener for every swf thats loaded

// create an on load error event to attach error message
contentListeners.onLoadError = function(target_mc:MovieClip)
{
var screenLoadingErrorMessage:MovieClip = target_mc.attachMovie("screenLoadingErrorMessage","screenLoadingErrorMessage",100);

trace("target_mc: " + target_mc); // ok
trace("screenLoadingErrorMessage: " + screenLoadingErrorMessage); // undefined
}
}

Can anyone tell me where im going wrong?

Thanks

OnLoadError Help Please
In the response to an onLoadError during a sequence of loadClip(targetSWF, targetMC) calls I want to replace the targetMC with a default symbol from the library using attachMovie. Because I want the attached clip to replace targetMC I store its name and parent before deleting it. The code below seems simple enough but newTarget traces undefined, while the other traces are fine. I've checked the symbol id etc in a simple version of the attachMovie statement that doesn't use the mc from the onLoadError event and it works ok. Is there a reason why this can't be done?









Attach Code

mainLoaderLstnr.onLoadError = function(target_mc:MovieClip) {
loadDefault(target_mc);
};

function loadDefault(target) {
var targetName:String = target._name;
var targetParent:MovieClip = target._parent;
// delete target_mc which is to be replaced
target.removeMovieClip();
trace("loadDefault(): target: "+target+", targetParent: "+targetParent);
// attach defaultPane symbol
newTarget = targetParent.attachMovie("defaultPane_id",targetName,2);
trace("loadDefault(): newTarget: "+newTarget);
}

Trouble With OnLoadError
I'm using onLoadError, pretty much right from the Help example. I want to do nothing when a URL is not available. Instead I still get "Error opening URL ..." in the Output window. I am loading about 60 images from Web cameras. When one can't be loaded I want to ignore it. Here is the code.










Attach Code

var loadListener:Object = new Object();
loadListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
//trace(">> loadListener.onLoadError()");
//trace(">> ==========================");
//trace(">> errorCode: " + errorCode);
//trace(">> httpStatus: " + httpStatus);
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
var mc5_4:MovieClip = this.createEmptyMovieClip("mc5_4", this.getNextHighestDepth());
mcLoader.loadClip("http://213.243.80.55:8383/", mc5_4);

OnLoadError Question
ok so i have this code:


ActionScript Code:
for (i=0; i<_root.pages; i++) {    slideMC_mc.duplicateMovieClip("slide"+i, i, {_x:i*234});    this["slide"+i].loadMovie("pics/"+i+".jpg");}


basically i want to trace("error"); if one of the pictures in the /pics directory isnt there.

I know I have to attach a listener and do myListenere.onLoadError = function(); but i dont know how to attach a listener to the dynamically created movieclips.

Sound.onLoadError?
I'm loading external mp3 using the loadSound method of the sound object. But it seems there's no onLoadError method (like the MovieClipLoader class has), which would be useful. Is there any way to take action if an mp3 isn't found?

Movieclip Loader OnLoadError
hi i have movieclip preloader with onLoadError function :

function onLoadError(mc:MovieClip, errorCode:String, httpStatus:Number) {
error_display = "Error: " + errorCode + " httpStatus: " + httpStatus;
}

error_display is dynamic text variable to show the error.when i try to load a.swf i got these error msg
Error: LoadNeverCompleted httpStatus:200

did anybody know what httpstatus 200 mean ? and how to handle this error so the swf can completly loaded. is it the problem on my a.swf(the file that being loaded) ?
any response will be very appreciated,thanks before

Issues With Loaded SWFs
Hey I am building my first full Flash website and I came across an issue with the actionscript. The preloader I use refers to the _root frame. That is also how I refer to the mcHolder that holds the images in my photo gallery.

So each SWF works perfectly when it is independent from the other. When I load one into the other, anything with the root frame becomes useless. Any thoughts how I can fix this? Thanks

Cache Issues And Swfs.
This have never happened to me before but I am now experiencing cahcing issues when I upload new swfs to my site space and go to view them. Can anyone recommend how to correct this? I have deleted my temp. internet files, history and cookies, but it didn't seem to help.

Thanks in advance!

OnLoadError For Checking File Exist?
Hi Everyone...
Just wondering if there is a easy way to dynamically check if a file exist, if not, then go do something. So far the only way I have found was to use the onLoadError of mclListener but not sure if this is the best way to tackle this.

Thanks

MovieClipLoader Class, OnLoadError Event Handler
Hi everybody,

In some part of my code, i am using the MovieClipLoader Class.

In order to test it, i have use name of file that don't exist so i could test the onLoadError event handler.

The problem is that this event is called 2 time for each file and with the same errorCode and target mc.

Can someone tell me why this event is called 2 time. Only one time would be better since i am executing code when i get error.

Thanx,
SimonBoris.

Multiple External Swfs With Other Swfs In Them
Hey guys,
I am probably the newest guy here to use flash so please bear with me.

I am making a site for myself and my buddies. Well I want to have a music player on the site at all times. All im going to do for now is just play one mp3 so its not that complicated but while reading Kirupa's tuturial about adding music it said that you need to have more than one swf for the player to work.

My question is...how can I load multiple swfs in one main swf.
so this is what i want:
music player loaded at all times, and other swfs loaded whenever a person navigates through the site.
please help me out.
Thanks in advance.

p.s.Sorry if this is a dumb or simple question.

Multiple External Swfs With Other Swfs In Them
Hey guys,
I am probably the newest guy here to use flash so please bear with me.

I am making a site for myself and my buddies. Well I want to have a music player on the site at all times. All im going to do for now is just play one mp3 so its not that complicated but while reading Kirupa's tuturial about adding music it said that you need to have more than one swf for the player to work.

My question is...how can I load multiple swfs in one main swf.
so this is what i want:
music player loaded at all times, and other swfs loaded whenever a person navigates through the site.
please help me out.
Thanks in advance.

p.s.Sorry if this is a dumb or simple question.

Generic Preloader For External Swfs From Within An External Swf
Hi,

I have a full flash site that has a main interface.swf that loads in external swf's as holders for their relevant page contents. E.G. using loadMovie I load portfolio.swf into the mainLoader (movieclip) within interface.swf. Within portfolio.swf I load in a further series of external swf's based on button click events, for these I want to use a generic preloader to prevent having to put a preloader in each individual swf.

I have found some code on O'Reilly (http://web.oreilly.com/news/action_0501.html) which seems to offer what I need but I'm having problems implementing this, I'm pretty sure this is down to incorrect targeting due to the fact I am not preloading from _root.

This is what i've been working with:

code:
// ON THE MC I'M LOADING INTO
onClipEvent (enterFrame) {
// If the host clip contains an external .swf file...
if (this._url != _root._url) {
// ...call our preload() function, which displays the
// loading .swf file's download progress.
_parent.preload(this);
}
}

// AND THE PRELOAD FUNCTION ITSELF
function preload (theClip) {
if (!theClip.doneLoading) {
// If we have all the frames, make a
// note that download is complete.
if (theClip._framesloaded > 0
&& theClip._framesloaded == theClip._totalframes) {
theClip.doneLoading = true;

// Optionally start the clip once it's done loading...
// theClip.play();
} else {
// Optionally pause the clip until it's loaded...
// theClip.stop();
}

// Display loading byte counts in text fields.
bytesLoadedOutput = theClip.getBytesLoaded();
bytesTotalOutput = theClip.getBytesTotal();

// Strip out the file name of the .swf loading into the
// clip and display it in a text field.
var lastSlash = theClip._url.lastIndexOf("/");
clipURLOutput = theClip._url.substring(lastSlash + 1,
theClip._url.length);

// Set the width of the loading bar.
var percentLoaded = (theClip.getBytesLoaded()
/ theClip.getBytesTotal());
preloadBar._width = preloadBarBG._width * percentLoaded;
}
}


When testing the preloader never seems to get started, my movies just play and seem to ignore this code.

Any ideas would be much appreciated.

Loading External Swfs From An External Swf
im building a site that uses a simple AS to load "contact us.swf" into the main movie. my question is how can i code it that from "contact us.swf i can load another external swf such as "form.swf"? i cant get it to load the form heres the code im using
from the mainmovie
on (release) {
_root.contents.loadMovie("contact us.swf");
in the contact movie
_root.contents.loadMovie("formswf");

any suggestions?

External Swfs
Is there a why to load external swfs, while the main movie is playing, so that there is no delay when the external swf is loaded.

I would rather not load them all at once in the preloader for the main movie. Basicly load them "behind the scenes" so that the user does not event know about it.

External Swfs
Hello

This should be simple but I can't find a way of doing it
I'm loading swf's into the same empty mc on button releases.
The first swf needs to load itself when the main site/swf (the
one containing the empty mc) loads initially.

on load main movie > load "first_external_swf.swf > into placeholder

thanks in advance

Paul in sunny Manchester

External .swfs
I am loading external .swfs into my movie and the importing works fine and so does everything else. I can't seem to figure out though why, when I load a freakin' 5kb movie it makes my main movie lag and go slower..any ideas? It's like it's lagging or something and I can't figure out why..But when I haven't loaded the movie everything runs dandy, and even when I'm not loading a external .swf file, and I publish my movie and look at in a browser, the whole clip is slowwed down and is jaggity..can anyone help me or is this just some kind of glitch?

External Swfs & Nav
So I have an empty movie clip on the stage on the main timeline. I have an external swf (call it "movieOne") that loads into the empty movie clip. So far so good. But then I want to have a button in the external swf load a different external swf (call it "movieTwo") into the same "empty movie clip" on the stage of the main timeline.

So I figure that I have to put a loadMovie action on the button in movieOne telling it to load movieTwo into the same container (empty movie clip) on the main timeline. Looking for any help, please and thank you.

External Swfs Necessary?
If I create a scroller for text, images, etc do I have to use external swfs for the content? I ask because I see this so commonly with the swf movies for creating scrollers.

External Swfs
Hi, i'm using loadMovie to load external swfs and jpgs into a target movieclip on the stage, and I really want to get the loaded images to move across the screen. I've animated the target movieclip into which the external swfs and jpgs are being loaded, and this works fine for jpgs (ie, they move across the screen). But the swf files don't move, they just appear and stay put. Any thoughts why?

thanks, jon

Help With External SWFs
i have everything working correctly, but one problem. when you go to my site and you load an external SWF, everything is fine - works just how i want to. the preloader comes in, counts and the bar works. but if you navigate away from that scene after it has been completely downloaded and go back to the previous scene, the external SWF has to reload again. it is a huge pain in the ass for my site goers to have to sit through that again.

is there anyway that i can tell my movie to not reload once it is already loaded?

here is my preloader scripting...myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*200;
myText = Math.round(myPercent*100);
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}

any help would be greatly appreciated...
thanks in advance





























Edited: 04/07/2007 at 08:44:06 PM by jessem1985

Gap Between External Swfs
Hello. I currently have a website built that is very large in size, so I plan on breaking up the background animations and saving them as separate swfs. This works fine, but causes a second or 2 gap when there is no image in the background. What I tried: when you click a button that goes to load the next bakground image, it plays a transition out of the current movie and then plays the new one. This works, but the gap between swfs is still there. Does anyone have a solution for this...can I load all the swfs while the rest of the site is playing, or have the new swf begin loading as soon as the button is clicked so after the transition out of the first one, the second one is ready to play?
Thanks in advance for any help on this...

Help With External Swfs
Hi all!

Just hit a roadblock-- I've got my main timeline with a nav that opens up external .swfs in an empty movieclip on the main stage, and that works wonderfully, but WITHIN those .swfs I'm trying to loadMovie separate .swfs for each button that opens up an input text box that dominates the screen.]

When I loadMovie, I load it into an empty mc not on the main timeline, but on the loaded swf's timeline, so when I test the .swf, not the main timeline, it plays the nested .swf within this swf, but then when I test the main document, when I click the button it doesn't pull it up.


I initially tried to just do it with movieclips inside the swf, but they didn't overlap one another and I couldn't figure it out so I thought loadMovie would work better.

I'm assuming it has something to do with levels, and I've been scouring the forums for something that helps but I can't pinpoint it. ANY HELP IS APPRECIATED!

External SWFS From Within MC
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.

here is what the button would call for if outside the movie clip:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}

the only AS that is in the button movie now is:

on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!

External SWFS From Within MC
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.

here is what the button would call for if outside the movie clip:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}

the only AS that is in the button movie now is:

on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!

External Swfs
I want to display an external swf across multiple scenes

whether it is in the background or whether i put one code on the first scene for the movie clip to load it and a different code for the same movie clip on the other scenes.

thank you

Getting AS On External .swfs To Work
OK here is the scoop.

I have multiple swfs that I am loading into my main movie and I want each one of them to be totaly independant of the main time line.

The method I used to load the movies looks like this:

_root.movieHolder.loadMovie("external.swf");

My problem is that I am running some AS for a scroll bar in that external swf that works fine when I test it by itself but when I actualy load it into my main movie nothing works. I was thinking that I might have to load the swfs into their own levels so the AS would work on that timeline, but I want to still load it into their individual holders for management reasons. Any suggestions? Thanks

Bye the way the script that I am trying to get work on the main timeline looks like this:


// This script will load only once in this movie, although every time the frame header hits
onClipEvent (load) {
// These variables will calculate the placement of the up and down button and calculate the distance to scroll in order to place the scrollbar
up_button = Math.abs (getProperty ( up, _y ) );
down_button = Math.abs (getProperty ( down, _y ));
difference = down_button- up_button -6;
setProperty ("", _y, "");
}
onClipEvent (enterFrame) {
// initiate script with text value
if (ini_clip<>1) {
// this is the scrolling text
text = "WorkPlace Technology provides companies with .";
barscroll.drag = 0;
ini_clip = 1;
}
// To see If the text is scrollable
if (text.maxscroll>1) {
barscroll.drag_ok = 1;
}
// ************************************************** **************************************
// If the user clicks on the scrollbar to scroll down
if (barscroll.drag == 0) {
// sets the Y position of the scrollbar accodring to
setProperty ("barscroll", _y, (text.scroll-1)*(difference/(text.maxscroll-1)));
// dir = 1 or dir = -1 according to which button you pressed
text.scroll = text.scroll+dir;
} else if (barscroll.drag == 1) {
text.scroll = barscroll._y*(text.maxscroll)/difference;
}
// ************************************************** **************************************
}

[Edited by theG on 07-02-2001 at 12:24 PM]

Preloading External SWFs All-At-Once
Here is the Premise:

I have a series of 20 or so unrelated SWF files which all need to somehow be preloaded up front. They cannot be linked internally to each other (via ActionScripting) as their individual cueing must correspond to their related video streams which run automatically. The cueing for all intents and purposes is handled by the indivdual Video Streams.

Here is the Question:

I know how to preload an existing timeline, but is there a way to preload (into cache) these 20 or so individual SWFs without actually running them until they are called by the external programming?

Hope this is an easy one.

Thanks in advance.
Brian

Preloading External .swfs
How can I set my preloader to know when my external .swfs
are loaded? Right now my preloader waits for my base movie to load and on the base movie there are actions to call several external movies. But the user still has to wait for those movies to load once the base movie has loaded.

Much thanks

Preloading External Swfs
I have 1 main swf and 10 external swfs that will be loaded and unloaded onto a mainstage at separate times. How do I load all the movies (while a preloader is playing) before the main swf starts.

Thanks

Loading External Swfs
I have two questions

1) Is there a way to set the main movie at some other level, instead of it being at level_0 all the time?

2) How do i load an external swf into the main movie and have it positioned below the original level? Is that possible or we can only load swfs into layers that are above the original level (0)?

Thanks in Advance,

Shawn

Preload EXTERNAL Swfs
If I need to preload an external swf that I'm loading into a level, what's an easy way to do this?

And if you're on a roll, can you also tell me how to do it for an external swf that is loading into a target (blank movie clip) instead of a level.

Thanks!

HOW Do You Preload External SWFs
I'm have a problem preloading my external SWF files the preloader is not working.

Preloaders And External Swfs
I have two questions about preloaders:

1. When I load an external .swf file, will the preloader that is set up to work as regular, stand alone file, work when it is loaded into another file?
-I assume that this will work and is what is happening when you see the 'loading' for a specifically called part of a site. I am just asking because when I have set that up, all I see is a flash of the preloader bar, then the swf is loaded.

2. How do you set it up to load sequentially? Where you have a list of thumbnails that are loaded and you want the large images to load, but to load them as they become available (with a 'please wait'), and not all at once. Here's an example:
http://www.richardprescott.com/ and
http://www.chris-bailey.com/

- the latter example loads each section of the site in order, making the first part viewable while the rest is loading. Kind of like loading in the background while something is playing. Can anyone help me? : )

Much thanks.

Loading External Swfs
Hmmm.. can't work this one out:

In a game I'm putting together at the moment, I've got a clip called "action", into which I'm loading an external swf ("players.swf") of the player animations.

On the main stage of players.swf, is a clip called "player", which I want to be able to call from the main movie.

I've got it loading in ok, the only trouble is, I can't work out how to call "player" from the main movie, once I've loaded "action" in.

I would have thought that I could do stuff like "action.player.gotoAndPlay(2)" etc, but it's not working.
Any suggestions?

Cheers!

How Do I Load External Mcs And Swfs
I need some clarificication here on a basic problem.
I need to do the following:
* I have a main swf. (main.swf)
* attach an action such as, on release, to a button that will load an external.swf or a movie clips from my main library
* I want this external.swf or movie clip to load in both the main.swf or in a blank movie clip called movieholder. I'd like to know how to both.

Questions, can you use some of the same actionscript to load both swfs and movieclips.

Please help. I know its simple, I just can't figure it out

ScrollPanes And External SWFs
Hey all

I'm trying to load an external swf into a ScrollPane component. The swf loads but half of the content is cut off (I think this has something to do with the orientation of the MC when loaded) and the scrollbar doesnt work. The ScrollPane is 235x335 and the SWF is 225x1375. There should be a vertical scrollbar (no horz) and there is (parameter set to "true"), but it won't scroll the content. Any help? Thanks all.

Loading External Swfs
i was wondering if it is possible to load the external swf files i'm using in the background so that when the links are clicked they are already loaded

thanks for the help

Loading External Swfs In A MC
how do i load an external swf into a movie clip? i just want to do it so that the external swfs, which are not too big, load up while the main movie plays. please help

AttachMovie With External Swfs
Hi all!
I've currently got a problem, we have a number of movies that are vector heavy, as such we don't want them on the timeline unless they absolutely need to be there.
We also need these movies in a seperate swf since they will be updated frequently, we also don't want them increasing the initial load time of our main movie clip.

The problem I'm having is that although the movies are checked to "export for actionscript" we cannot get them to attach from the holding movie. This was a known issue in Flash 5 with no known workaround. Does anyone know of a way to do it in FlashMX?

Getting Names Of External .swfs
Greets, fellow flashers...

The question:

Is it possible to get the file name of the .swf that is playing on a certain level and load it into a variable?


The situation:

What I'm working on here is a "controller" .swf file that will sit on level 1 and control a series of .swfs that play on level 0... let's call them movie1.swf through movie10.swf.

What I'd like to do is enter the file names of the movies into an array in the controller file (ex: myMovies[0]="movie1.swf"; myMovies[1]="movie2.swf", then when the user clicks a "next movie" button, the the controller gets the name of the file playing on level0, checks the array for the file order, and then plays the next file on the list.

I understand that there are much easier methods of accomplishing this same effect, but without writing 50 pages of details, let's just say that if at all possible, this is the way I have to do it.


Thanks in advance!

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