ActionScript 2.0 :: Controlling Order Of Loading External SWFs

Mar 22, 2004

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie? For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Controlling The Order Of Loading External Swfs?

Mar 22, 2004

It could be that using loops is the only way to do what we want, however ever the optimist I'll ask the question anyways.

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie?

For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies

ActionScript 2.0 :: Load Order In External Swfs

Nov 13, 2008

I was wondering if there was a way to specify the order in which I load in external swfs. I have my main swf which loads in music, navigation and content, they all load at the same time, say i wanted to load in the music swf after the content has finished loading, how would i do that?

View 1 Replies

ActionScript 2.0 :: Loading 5 Different SWFs In Order Then Display In Loop?

Aug 13, 2010

Currently I am trying to load 5 different swfs in order. Everytime a button is selected I want to move to the next swf. And once I reach 5 the next image should be 1 (again - loop). I started with a code like this on frame 1 in "scene 1":

Code:
gotoAndPlay(50);
Stage.align = "T";
Stage.scaleMode = "noScale";
_root.j = 1;
where "_root.j = 1" ----- "1" is the first swf loaded. But it was stuck on 1.

My newbie skills figured this out so to avoid zero, but it's random. And things repeat too closely.
Code:
gotoAndPlay(50);
Stage.align = "T";
Stage.scaleMode = "noScale";
_root.j = random(4)+1;

My Question: What can "_root.j" equal so that 1,2,3,4,5 cycles? I have to work within these parameters cause this template is deep.

View 1 Replies

ActionScript 3.0 :: Loading 2 Ext Swfs Into Master File Need To AddChild In Order

Mar 28, 2010

loading 2 external swfs into one main file using 1 preloader, I have figured out how to get the preloader to handle the correct # of bytes loaded and such but my 1st swf I want to load onto the stage is a video file and I want it as the background but I don't want it to start until after they are both (the video and main file - 2 external swfs) loaded and then I want to start the video and place it on the stage first, then place the main swf on the stage.

I can get the order right if I place them into my load complete function but then my buttons don't work on the main file.
 
Here is the code:
 
var bytesLoadedVidBG:Number = new Number();var bytesTotalVidBG:Number = new Number();var loader0:Loader = new Loader(); // load video BGvar loadedSWF0:Object;loader0.load(new

[Code]......

View 3 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 2.0 :: Attaching/controlling External .swfs?

Mar 11, 2003

load/attach and 'control' external .swfs, i.e. loading them into a MC and then applying actions, masking, etc.

View 2 Replies

ActionScript 2.0 :: Controlling External Swfs Loaded Into An MC?

Mar 23, 2005

what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky

View 2 Replies

ActionScript 3.0 :: Controlling Slideshow From Withing External SWFs?

Jul 27, 2010

What I have is a SWF file that calls out to 3 different SWF files via the following code:

// Array of external clips to use. Variable index refers to next clip to be displayed.var clips:Array = ["page1.swf", "page2.swf", "page3.swf"];var index:int = 0;
// Stuff to load swf filesvar thisLoader:Loader = new Loader();

[code].......

View 11 Replies

ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

Sep 11, 2009

I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf

View 3 Replies

ActionScript 3.0 :: [CS3] Flash Interface For Client To Control Play Order Of External Swfs?

Jan 14, 2009

My client has approx 12 different presentation .swf's all with a beginning, middle and an end (phew!). I need to build an interface that views those 12 individual presentations as thumbnails on a single page and allows my client to click and drag whichever ones they wish to use into a separate little container above and in-doing so create a new required running order (left to right) each time they use my interface... so that once they have decided that running order they can somehow use the result for their required presentation. They will be using this interface ongoing throughout the year for various presentations all that will require maybe just a few of those individual swf's in different orders.

View 6 Replies

ActionScript 2.0 :: Loading SWFs Into Scenes - Controlling Position On Screen

Dec 4, 2002

I have several buttons, that link to several scenes, containing swf files. Using the loadmovie command I can get these swf's playing on-screen. That's good.

-How can I control where they appear on my document (I'd guess these require some x or y values, but not sure how this is done) as they all appear in the top left-hand corner.
- When I mouse over another button (link to scene/swf) how can I remove the previous swf from the page, then load the new swf -as they all appear in the same spot/all over each other? Is this an unload movie command?

I was hoping to counter this problem by using different scenes (no luck there) and all I really need to do is remove the previously loaded swf, when the new one is loaded.

View 6 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 3.0 :: Order Of Loading External Swf Files

May 7, 2009

I want to play 4 external swf video files so that the first video (intro) plays only once and the rest 3 play in a loop after the first one. So this is the code i'm using in the swf loader file:

[Code]....

View 1 Replies

IDE :: Loading And Controlling External SWF

Jan 20, 2010

I have a flash website in development and I'm using external .swf files for the sub pages. In my main.swf file I have a loading function that works and everything is fine and dandy there. My problem is that when I am loading the external "content" swf files into my main swf file, the actionscript that is embedded in my external .swf is not functional (there are buttons in the content swf with event listeners to control them). I have a movie clip holder set up and placed on my stage in the main swf file and that is what I am adding the content swf's to.

Now in all of my attempts to isolate the problem I have noticed one thing. If I add the external "content" swf directly to the stage of my main swf file, the code works, but if I add it to my container mc (which I have basically set up to control the position that the content is loaded to and to set up boundaries/masks to control the content from overspilling) then the code is not operational.

Code:
The code below is called by my loadContent function on my main swf
contentmc = MovieClip(event.target.content); // the external swf is assigned to a movie clip object
addChild(contentmc); // when using this, code works in the external swf
contentwindow.addChild(contentmc); // when using this, code in the external swf no longer works.

View 2 Replies

ActionScript 3.0 :: Stop .mp3 And .flv In External Swfs When Loading A New External Swf?

Apr 10, 2009

Specifically, I am building a flash page that loads external swf files and inside some of the external swf  files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf

View 1 Replies

AS3 :: IDE : Loading And Controlling External SWF Movie?

Sep 10, 2008

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

I think this is the problem with the code. Casting it to a MovieClip only gives me a 1034 error.

View 2 Replies

AS3 :: IDE - Loading And Controlling External SWF Movie?

Jan 4, 2009

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

View 1 Replies

ActionScript 2.0 :: Loading And Controlling External SWF Files

Jan 12, 2009

What I am trying to achieve is the following:
I have a main file (main.swf)
Within this movie i have 5 buttons; Nos. 1-5.
When released each button will load an external swf movie clip:
e.g: button 1 will load "1.swf", button 4 will load "4.swf", etc.

However, this is where I am stuck; each external swf movie clip has its own lead in animation as well as its own lead out animation. So say for example I release button 1, "1.swf" will load and play its lead in animation before it reaches a certain point in its playhead with a 'stop' command. Then lets say, for example, I then release button 3. What I would like it to do is play the lead out animation of "1.swf" before it plays the lead in animation for "3.swf". Obviously I would want this to happen regardless of what button I press, so therefore I would want it to play the lead out of the loaded movie before loading and playing the corresponding swf file of what button I pressed. Would I use loadMovNum or load the swf within a movie clip container?

View 9 Replies

ActionScript 3.0 :: Loading External Swfs Into Mc?

Jan 12, 2010

how can i load 3 external swfs into one movieclip at the moment i can only get it to load one or it may be loading each clip over the previous one.

View 3 Replies

ActionScript 2.0 :: Possible To Loading External SWFs?

Apr 27, 2006

I'm doing the tutorial for "transitions between external SWFs", but I'm having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use....

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

[code].....

View 5 Replies

ActionScript 3.0 :: Loading External Swfs?

Feb 22, 2009

iv made a flash site using as3 using the actionscript on thefirst frame, this by itself works fine.iv also used an online tutorial tocreate a dynamicslideshow/photo gallery which again works fine, but this time usingan external .as file.When i try to load the external slideshow/gallery into amovieclip in the site it dosnt work and i get this error:TypeError: Error #1009: Cannot access a property or method ofa null object reference.im pretty sure its because the code used in the main flashfile is on the timeline and the code in the external file to beloaded in is in an external as file.

the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));

[code]....

View 2 Replies

ActionScript 2.0 :: Loading External Swfs?

Feb 20, 2010

I am trying to figure out where is the problem with loading external swfs on a site that i uilt..actionscript 2. The site has an intro slide show and buttons underneath. It plays everything But when you go to "works" and click on a gallery, it takes you to that frame and although it looks like it starts loading it bubs you back to the beginning.

[Code]...

View 1 Replies

ActionScript 2.0 :: Loading Var From Javascript To External Swfs?

Mar 31, 2009

I am loading one variable from javascript to one main swf file which does have 2 more links to other 2 external swf files, i want to use the same var to be transfered to those 2 files when they are loaded

This is teh javascript in the header:

function CountryCode(){
document.getElementById('Spotlight_en_gb').SetVari able("ccode", "SU");
}

This script is triggered onLoad when the page loads.

One dynamic text box var name is ccode and instance name countrychk is taking the values and action accordingly, other two files need the same var to use but on LoadMovie they dont get teh value.

Here are the links:
1.

on (release) {
unloadMovie(1);
loadMovie("Movies.swf", 1);

[Code]....

View 5 Replies

ActionScript 3.0 :: Loading And Unloading External SWFs?

May 29, 2009

I have a question regarding the swapping out of swf files in Flash CS3 / AS3.I start my project with a �logo� swf, which has no interactivity.At the last frame, the following code is used to load another swf from the local folder:

-------------------------------------------
//Stop current swf and stop its sound
stop();
SoundMixer.stopAll();

[code]...

How do I remove and/or unload the previous swf when a new one is loaded? and remove that previous swf from memory? Can I give the current swf access to the previous one, then run a �remove� or �unload� function on it?

View 3 Replies

ActionScript 3.0 :: Loading External SWFs With Params From Within A SWF?

Jun 2, 2009

How would I load a .swf from within a .swf with parameters?First, I need to know how to pass the parameters, and second I need to know how the other .swf is going to read those parameters...

View 1 Replies

ActionScript 2.0 :: CS3 Loading External Swfs In The Background?

Aug 2, 2009

As you can see, I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones?

View 4 Replies

ActionScript 3.0 :: Loading Multiple External SWFs At Once?

Sep 23, 2009

I have a game which has various cutscenes. Each cutscene is split up into 3 or 4 seperate swf movie files which can be played (and replayed) by the user.

My question is, I've seen many tutorials on how to load external swfs but how do I load several movie clips into memory, and then clean everything up once the user has finished viewing them all?

View 2 Replies

ActionScript 2.0 :: CS3 : Loading External Swfs In The Background?

Oct 18, 2009

[URL]I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones? Is having an off-stage invisible movieclip with an loadMovie function the best way to do this, or is there a better method?

View 3 Replies

ActionScript 3.0 :: Loading And Unloading External Swfs

Feb 17, 2011

After years of putting it off, I've finally begun the move to AS3.The frustration I've encountered is evidently shared by a lot of other designer/developers. Knowing that the future is inevitable, I have bitten the bullet and forged ahead. There has been one thing, however, that has just been a real quandry and has cost me hours of banging my head against the wall.That would be getting an externally loaded swf to (really) unload in an AS3 file.Before I even begin to post code, let me just say that I've tried a lot of things read in books, posts from this and other forums, and trial and error to no real avail. In my research I've come across many others who are experiencing the same problem and even one reference that suggests you not use AS3.For a project that uses multiple loads and unloads that's due in a month, should I just go with AS2?I'm using CS4 on a PC publishing to Flash player 10. And yes I have tried "unloadAndStop()" and "removeChild()".

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved