ActionScript 2.0 :: Loading 4 External SWFs Into An Empty MC On The Main Stage For Each Of The 4 Projects?

Feb 12, 2010

The problem is this: I am loading 4 external SWFs into an empty MC on the main stage for each of the 4 projects.So you press a button on the main stage for a project, and it loads that specific SWF.These SWFs contain an opening text for each project, a button to "continue" to the gallery, then the text fades out and the gallery loads.That's all within the SWF itself.The SWFs work fine on their own, but the problem is that when I load the SWFs into the empty MC on the main stage, the "continue" button doesn't work correctly The SWFs load fine, it's just the button At first when I pressed the button it would send my main stage back to the first frame, so I thought it was because the AS for the button in the SWF was probably conflicting with the main stage and confusing it. I went back into the SWFs and tagged part of the SWF timeline with the name "togallery" so that when you click the "continue" button, in theory, Flash knows specifically where to go within the timeline of the SWF and not the timeline of the main stage.

That hasn't worked either. The button just doesn't work at all now, at least not when the SWF has been loaded onto the main stage. Again, it works fine on its own. So what can I do? How can I get a button within an external SWF to reference only it's own timeline and not that of the main stage?

View 1 Replies


Similar Posts:


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 2.0 :: Loading Multiple External .swfs Into Random Empty Movieclips

Aug 14, 2008

I have 20 external .swfs im trying to load into 20 blank movieclips . i am trying to load them randomly into each blanck movieclip without the external .swf's duplicating.

so far I have this code

[Code].....

Im trying to load all the movieclips with all the external .swfs without any
of the .swf's repeating.

View 2 Replies

ActionScript 2.0 :: Loading External SWF In Empty MC On Main Timeline

Jul 8, 2004

I'm loading an external swf into an empty mc called "emptyMC" on my main timeline. That loaded swf loads another swf into an empty mc called "view2" when a button is pressed. Code:
on (release) {
loadMovie("tabletennis.swf", "_root.emptyMC.view2");
}
The above code isn't working right. I'm not sure how to target each empty MC in sequence in order for this to work.

View 4 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 :: Position External Swfs On Main Stage?

Jan 3, 2011

figure this out I am using this code inside my nav movieclip to load external movie clips on the main stage

Code:
var Xpos:Number = 110;
var Ypos:Number = 180;

[code].......

View 3 Replies

ActionScript 3.0 :: Loading Multiple External SWFs Within A Main Swf

Aug 31, 2009

I'm building a website that loads multiple swfs within one main swf. I would also like some swfs to unload when i click on the button situated on it. Currently I'm only able to load one swf with this code, can I somehow load more that just one swf by default? you can see the code below:

[Code]...

View 3 Replies

ActionScript 2.0 :: Loading External Swfs With Buttons (that Are Not On Main Timeline)

Aug 7, 2008

I just don't know how to target it. I'm trying to load an external swf, when releasing a button. The problem is the button is not on the main timeline, but instead nested in a movie clip. I just don't know how to target that button. I tried loading the swf with a button on my main timeline and it worked, so I know the problem is not with the movie clip loader class or the actual swf itself. I actually learned this from a note midway down the page in one of your tutorials..... [URL] how can i target that button that is nested in that movie clip?

[Code]...

View 2 Replies

ActionScript 2.0 :: Buttons And Transitions - Load In External Swf Files Into An Empty Movie Clip On The Main Stage Called Container

Jan 11, 2004

I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following

[Code]....

I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.

[Code]....

View 4 Replies

ActionScript 3.0 :: Load External Swfs As Pages Onto The Main Stage On The Click Of A Button

Jul 20, 2011

I have created a website which loads external swfs as pages onto the main stage on the click of a button. I am using Flash CS3 and Actionscript 3.0. Here is my code:

[Code]...

View 6 Replies

Professional :: Multiple Fla Projects - When Loading Main Swf File 3 Other Swf Files Are Also Loaded

May 31, 2011

I am new flash developer, and inherited a project which has 4 fla project files. When it runs inside a browser, it appears "window" which occupies whole browser. This project is write in Flash CS3. I have few questions:

1). When loading main swf file, 3 other swf files are also loaded. These swf files are communicating with each other through message. When debug the mail swf with CS3, I can set breakpoint and the program can stop only at limited AS files. My questions is how to debug other AS files in other swf file?

2) I used CS5. It seems that I can stop at more AS files, which does not belong to main swf file. Why?

My questions is should I use CS5, which might makes debugging easier? Is it right direction to go to debug multiple swf? (For CS5, I need to fix some code in order to make the program fully working as CS3)

3) What's best tool to use for such project since CS3 is very old. Should I use Flash builder, Flex. Amethyst?

View 1 Replies

ActionScript 3.0 :: Loading An External Swf File On Main Stage?

Sep 3, 2010

I m loading an external swf file on main stage which has some links, I want if I click on any of these links the timeline of the main stage should chenge.

View 1 Replies

ActionScript 2.0 :: Loading An External Swf File/movieclip Onto The Main Stage?

Jan 7, 2009

I am loading an external swf file/movieclip onto the main stage - it is a simple transition and once it has finished playing, I want to jump to a frame in the main stage.I've loaded the movieclip onto the stage, but don't know how to jump to another frame after it has played and stopped...what's needs to be added to this to goto a frame on the main stage........

on (release) {
loadMovie("black.swf", holder);
}

View 2 Replies

Flash 10 :: While In Full Screen, Main Stage Resizing When Loading An External Swf

Nov 10, 2010

My main swf is 960x600 and loads full screen. it is a projector or swf, local. I have the code on frame 1 to ensure full screen and show all:

stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.displayState = StageDisplayState.FULL_SCREEN;

Then I load an external swf into a mc, and it goes full screen as expected. BUT the main swf that loaded that external one, at the time of load, suddenly gets scaled back down to its normal size: 960x600, on the top left corner of the Player Window (or the full screen), so somehow at 0,0. Whn I unload the external swf, I can put the code stage.scaleMode = StageScaleMode.SHOW_ALL; to get it back to where it was. But unfortunately I have some buttons from the Main swf that are supposed to be on top of the loaded one, and should stay where they are. But now they all move because of this scaling down.

the mc that is being used as a container for the loaded external swf is an empty mc located at 0,0. The external swf has the same size as the main one: 960x600

I searched and tried things but could not get it to stay in show-all mode when loading this external swf...

View 0 Replies

ActionScript 3.0 :: Loading Five3d Projects As External Movies?

Jul 30, 2009

I made some banners with Five3d that I am trying to load as external SWF's into another movie. I setup the classes, etc... however when I test the movie it always says "Call to a possibly undefined method... etc, etc" -- (which is making reference to the Five3d external AS file I used for my banners)...

I am new and still learning about Five3d, is there something else required to load Five3d projects as external movies?

View 0 Replies

ActionScript 2.0 :: Call External Swfs In An Empty MC On The Index Page?

May 28, 2008

I am currently building a website and what i need to do is to call external swfs in an empty MC on the index page regarding which buttons of the nav you clicked on.It works, very nicely. But then i need to be able to preload another swf on the index when i click on a thumbnail.

e.g: index load the "who.swf" first. On the who.swf there are 2 thumbnail and when click it must replace the "who.swf" with contact.swf. It works but the only problem is that i cant make the preloader of the index to preload the empty MC which load all the external swf.

Is it because i am using loadMovie and not loadCLip.

View 2 Replies

ActionScript 1/2 :: Set Specific Size And Position Of Preloader's Empty Movieclip On Main Stage?

May 1, 2009

it's possible to script an external preloader's empty movie clip to be of a specific size and position on the main stage? here's the script i've got for the preloader so far:
 
var my_pb:mx.controls.ProgressBar;
my_pb.mode = "manual";
this.createEmptyMovieClip("Portfolio", 999);
var my_mcl:MovieClipLoader = new MovieClipLoader();

[code]....

View 2 Replies

ActionScript 2.0 :: Load An External Swf In An Empty Movieclip And Then Manipulate This Loaded Swf From Main Movie

Jul 29, 2007

i just recently started programming in flash and so far I have learned a lot, but new questions keep coming up

My problem is that I want to load an external swf in an empty movieclip and then manipulate this loaded swf from my main movie. For example tell it to go to a certain frame. Is such a thing possible?

View 1 Replies

Professional :: Switching Between External .swfs To The Main One?

Jan 11, 2010

I have a project where I am externally loading .swfs into my main scene.  However at the end of my external .swfs I want it to go back to the first frame of my main .swf.  I have used this code MovieClip(root).gotoAndPlay("start"); but I get this error
 
ArgumentError: Error #2109: Frame label start not found in scene Scene 1.
 
and I understand why I get the error because the frame label start isn't in that external flash file it is in the main one. However, I just don't know the correct AS3 to get this to work properly.

View 6 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 1/2 :: Preload External Swfs While Playing Main?

Jul 24, 2009

I have made a presentation in flash AS2. I have a main.swf and 14external .swf files and each has its own preloader.

I want that when main.swf plays, the external swf should starts preloading sequentially so that the presentation will run smoothly.

View 3 Replies

ActionScript 2.0 :: External SWFs Interfering With Main Timeline?

Feb 4, 2010

I have bought a gallery template that allows me to place content within external SWFs.I have a series of buttons within the SWF templates. The problem is that the buttons are interefering with the main timeline when hit. How would I fix this.

Currently they read:
on (release) {
_root.gotoAndStop(1);

[code]......

View 2 Replies

Actionscript 3.0 :: Control External Swf's MCs From Main Swfs Buttons?

Jul 8, 2010

Is it possible to control a movie clip in an externally loaded swf from a button in your main swf? I have 4 buttons in my main swf. In the externally loaded swf there are 4 movie clips all with their alha set to 0. What i'm trying to do is when the user clicks button 1, movie clip 1 one the external swf changes its alpha to 1. Then if you press button 2, movie clip 1's alpha returns to 0 and movie clip to 2's alpha changes to 1.

The, buttons need to be in the main swf as there are over 20 externally loaded swf all with 4 movie clips and I cant make those four buttons in each swf and also, the 4 buttons are intergrated into the graphics on the moan swf.

View 7 Replies

ActionScript 2.0 :: Opening External Swfs Into Main Movie?

Nov 6, 2003

Anyway, I have a main.swf with a menu that is its own mc. (It needs to pop up when the menu button is clicked), from this menu I need external swfs to open inside my main.swf. I also want my external swfs to play in order. like mod_1.swf plays and then opens mod_2.swf ect.

(the menu is just for the user to jump around)

So I have started with this code... on the main timeline(Scene) I have a target code

_root.createEmptyMovieClip("container",1);
container._x = 0
container._y = 0

[Code]....

View 3 Replies

ActionScript 2.0 :: One Main Preloader For Multiple External .swfs?

May 2, 2005

I've tried to approach this from several angles, employing several of the tutorials, attachments found in various threads, etc, and nothing has worked. So, please bear me as I ask yet another question regarding this subject.I need to preload 2 external .swfs, one containing animation and one containing sound, and I need them to start playing at the same time. As of now I have a general preloader on the main timeline, but as you might expect, after the preloader finishes, there is a lag while the .swf's are being loaded.thought everything was solved, until a friend of mine looked at it in dial-up, and the preloader just kept looping 10 times before the animation started, so now I'm starting over. Part of my complication I believe is that I'm using loadMovieNum into levels as opposed to loading the external .swf's in a separate container MC (that's what I've noticed most people recommend for this problem), but I tried doing that technique several times with no luck. Right now my main movie, index.fla, has a preloader MC in the first frame, with this AS attached to the clip:

Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();

[code].....

View 1 Replies

ActionScript 3.0 :: Control Multiple External Swfs From Main Timeline?

Jun 26, 2011

I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's. I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline

I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it shouldn't be hard to do." but they did not elaborate any further. This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now. I understand pretty much how both pieces of code work, but just can't work out how to combine them.[code]...

View 16 Replies

ActionScript 2.0 :: Load External Swfs Into The Main Timeline Of Movie?

Oct 14, 2003

im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?

bandb.onPress = function() {
_root.createEmptyMovieClip("empty2", 4);
loadMovie("flash/band.swf", "_root.empty2");
container._x = 0;

[Code]...

View 4 Replies

ActionScript 3.0 :: Loading External Swf Into Empty Clip?

Aug 31, 2009

I have this script to load external swfs to the stage. But I want to load them into a empty clip called "emptymc".I know I need this: MovieClip.addChild(Loader);But not sure where to place it.

Code:
package
{

[code]....

View 7 Replies

ActionScript 2.0 :: Preloading External SWF When Loading On Empty MCs

Jan 22, 2010

I've got a flash site where most of the content is loaded with external swf's. Instead of creating a holder, I create a "container" and load the movie onto it. Here's the code for that:

Code: Select all_root.createEmptyMovieClip("container", 1);
loadMovie("swf/print_pfsads.swf", "container");
container._x = 200;
container._y = 150 ;

How do I make a preloader for this? Every tut I see you have to have a physical empty movie clip called "holder_mc" in order to preload. Is there a way, or should I just physically make a "holder"? It'll be a giant pain for me to redo all of this so I'd prefer to know if there's a way of preloading...

View 9 Replies

ActionScript 2.0 :: Preloader - Can't Get Any Of The External Swfs To Load Into The Empty Movie Clip Called "content"

Oct 24, 2003

I went through Claudio's preloader transition tutorial on kirupa ([URL]). I have tried to apply it to my own fla and everything seems to work fine EXCEPT I can't get any of the external swfs to load into the empty movie clip called "content". And yes, I have checked and rechecked to make sure that all MCs have instance names!

View 7 Replies







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