ActionScript 2.0 :: Loading External SWF Into Main Movie

Jan 5, 2005

I am a bit new to the world of externally loaded swf's. I am trying to load an swf into my main movie, and then access/control the movieclips within that newly loaded swf, but for some reason it is not working.

Here is a quick example:
this.menu.createEmptyMovieClip("myMovieClip_mc",this.menu.getNextHighestDepth()+1);
this.menu.myMovieClip_mc.loadMovie("\menu\standard.swf",this.menu.getNextHighestDepth()+1);
this.menu.myMovieClip_mc._lockroot = true;
trace(this.menu.myMovieClip_mc.option);
this.menu.myMovieClip_mc.onRollOver = function() {
trace("Hello?");
this.bounce(120);
}

Okay this code does sucessfully create the movieclip but my onRollOver function does not work, and I cannot access any of the movieClips within myMovieClip_mc such as option, it traces out as undefined.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Loading An External Movie Through An External Movie To The Main Movie?

Apr 30, 2003

I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.

View 14 Replies

ActionScript 2.0 :: Loading Specific Frame Of External .swf Into Main Movie?

Aug 3, 2003

how to load frame label "one" of external.swf into main movie.

buton.onPress = function () { loadMovie("external.swf.......??

View 12 Replies

ActionScript 2.0 :: Loading Main Navigation In External SWF Through Container Movie

Dec 30, 2008

I have attached two pictures. Basically I am making a website. The main navigation loads in external swf's through a container movie. For this I have used this tutorial : [URL]. What I want to do is- when you rollover the navigation bar, be it the text or the coloured block- I want it to scroll down and reveal the 'sub navigation'. (pic2) It's like a drop down menu but kind of the other way around. Then, when you either rolloff of the navigation bar or click on a menu button, it slides back up to its original state. (Pic1). I have played around and only managed a sloppy version which doesn't work very well, especially when you resize. I think a simple answer to this is if I could get my buttons to work inside a movie clip. I had tried this but then the swfs wouldn't load properly.

View 3 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 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 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

ActionScript 3.0 :: Loading An External SWF To A Main SWF

Jul 7, 2009

I'm loading an external SWF to a main SWF. The external SWF is a dynamic video gallery. When I test my movie, I click to load my external SWF. It load ok and functions perfect. Then if I click on a back button to return to my inicial view, I have I get an error that says:Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.It's funny because I already used the same code in another project and this problem never came up.The code on my main SWF is:[code]

View 4 Replies

ActionScript 2.0 :: When Click On A Link From The External Movie Won't Return On The Main Movie

Feb 1, 2006

- i have 3 separate movie clips (a,b,c)

- my main movie is (a) and when i click a button there, it will go to external movie (b)

- under external movie (b) there's a movie clip that includes my animation and content button

- if i click on the content button on movie (b), external movie (c) will pop up [ it will not replace movie (b) but will just overlap it, it's like a small pop up ]

i did the actionscript and when i'm testing external movie (b), it's working... it's showing/popping up movie (c) but when i tried it on the main movie (a), the movie (c) is not popping on the (b) err, sorry if it's a bit confusing / how i explained it. but hopefully somebody will get the idea. and it won't also return on the main movie (a) when i click on a link from the external movie.

View 5 Replies

ActionScript 2.0 :: Activating The External .swf Into A Blank Movie Clip In The Main Movie?

Oct 10, 2002

I'm still a rookie in flash and I'm having a little bit of trouble with some actionscript. I've gotten as far as placing the buttons and assign the correct actionscript for them to work. Everything is working fine with the buttons activating the external .swf into a blank movie clip in the main movie. Ony thing is, I would like the external movie assigned to the first button to open once the movie is loaded.

I thought by using the same actionscript i used on the button {and removing the on(release) tag} and placing on the first frame of the main movie would help, but it doesn't.

View 2 Replies

ActionScript 2.0 :: Resize External Loaded Movie To Main Movie

Jan 9, 2010

my problem is that i need to make a reisze, cause the screen resolution for other users. My main and news movie works perfect, but the others movies re-scale everything bigger. The problem of the external loaded movie is: this movie needs the funktion:

Stage.scaleMode = "noScale";
Stage.align = "TL";

If i dont have this code inside the movie is not going to resize fullscreen into the main movie. Inside this movie im scalling photos and some mc's You can take a look what i mean under: [URL]

If you take a look to the bar where the Number of pictures (30) are you will see that the lower bar and the pictures is not going to scale to fill the full screen if i delete the this code;

Stage.scaleMode = "noScale";
Stage.align = "TL";

View 3 Replies

ActionScript 3.0 :: Loading External (3d Gallery) Swf Into Main Swf?

Dec 24, 2011

I have one swf that was made by Wondershare Flash Gallery Factory Deluxe program, and some other files comes with it.

The problem is that when it loads into my main swf doesn't appear into the movieclip that i target to the code but on the stage, on top of all others, i don't know exactly what happens, it seems not to be in the display list!!!
The point is that i'd like a back button showing in front of the gallery in order to be able to close it and go back.

View 1 Replies

ActionScript 2.0 :: Loading And Unloading External Swf Into Main Swf?

Dec 1, 2010

ive been trying to load 3 games(swf's) into a main swf and ive had nothing but problems.

what im trying to do is have three buttons on the main swf, each one loading a different game. im having no problems getting the game loaded into the swf its unloading it and getting back to the first frame of the MAIN TIMELINE, or MAIN SWF.

ive tried loading the swf's into a movie clip and ive tried loading them in there own frame BUT nothing is working and it is SO FRUSTRATING

View 1 Replies

ActionScript 2.0 :: Loading External Swf With Attatched Xml Into Main Swf

Apr 12, 2006

ok so here the problem: i have a dynamically generated menu which is made up of a swf and an xml files, i want to be able to load these into my main swf, now the code i have got for the button is:

[Code]....

yet when is click on the button the swf loads but i get the follwing error: Error opening URL "file:///C|/Documents%20and%20Settings/alex%2Dwork/Desktop/Betatest/Flash/menu.xml" when i place a copy of the xml into the above folder it crashes flash 8 so what do i need to do to correct this problem?

View 2 Replies

ActionScript 2.0 :: Loading External Swf Into Main Swf (PHP Scripting)?

May 12, 2003

First off, here are the files I'm dealing with:

1. guestbook.php
2. guestbook.txt
3. guestbook.swf
4. main.swf

I have a form on guestbook.swf that sends the data to guestbook.php which then reads and writes to guestbook.txt. Guestbook.swf works fine as a standalone movie - it'll read the text file and then display the data in the dynamic text box named 'guestbook'.

However, when I try to load guestbook.swf into a movie clip named 'content' from main.swf the data is not being shown in my dynamic text box ('guestbook'). I'm pretting sure it has something to due with a targeting issue, but I'm not sure how to do this.

Here is the code that I think is causing the problem (action for submit form in guestbook.swf):

on(release){
if(name eq ""){
warning = "You forgot your name!";
}else if(message eq ""){

[code]....

I've tried changing '0' to "_root.content.guestbook" in loadVariablesNum but when I tested it out, as soon as I click on submit it opens up another window with the address guestbook.php. I want the data to load in text box 'guestbook' not in another window.

View 1 Replies

IDE :: Loading An External Swf File Into Main Site

Jan 16, 2004

i am extreemly new to flash / website design ( i made my first site 6 months ago ) i am very interested in making a good looking flash site. I have made a simple flash site before using dynamic text loading it form .txt documents. too bad the site is realy lame and i want to make a better one. here is the url to my site here This came about throught the useage of tutorials on this site. i am using flash MX version 6 now i am in the process of making a new site for my profile which will be totaly flash, using flash movies getting imported into a main site under a certain layer.here is how it is set up.

[Code]....

View 3 Replies

ActionScript 3.0 :: Loading External .SWF Into Main Page With Preloaders?

Nov 25, 2008

I am working on my first Flash project with AS3.The structure of the flash site is pretty simple. I have a stage 1165px wide x 710px height Inside my Stage I have an horizontal bar with a menu followed by a container right under.

is that whenever I click on one of the button on the menu, that the related external .SWF loads into the container with a preloading bar and %. I already did all my .SWF files.

View 1 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 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 2.0 :: Loading An Interactive External SWF Into Main Timeline?

Dec 22, 2009

I'm loading an interactive external SWF into my main timeline. The SWF is a game and when it's completed successfully it plays an animation on the _root timeline. I'm aware that the external SWF _root action is now referring to the the main timeline, but I'm not sure how to make it refer to it's own.

View 1 Replies

ActionScript 3.0 :: Unload Main-menu Then Loading External Swf?

Feb 11, 2010

My project is PC software and not related to web.It contains of Main menu and 3 external SWF (Total 4 Files).Inside the Main-Menu 3 buttons , when the user click on button # 1 or # 2 or # 3 I want a code to unload the main menu first then open external swf # 1 or #2 or #3 depending on which button user click.I use this code to load the external SWF:

Code:
var myLoader:Loader = new Loader;
addChild(myLoader);
var url:URLRequest = new URLRequest("f1.swf");
myLoader.load(url);

Its working fine but the problem it load the external swf with the main menu in the same time! what I want a code first unload Main-menu then loading external swf. and another code in external SWFs to exit to Main-Menu with ofcorse unload the swf first then exit to main-menu.

View 5 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 :: Flash8 : Dim Background Content After Loading An External Swf Into Main Swf?

Dec 15, 2009

dim background content after loading an external swf into main swf. I was told that a dark movie clip placed over the whole site but under the external swf with alpha set to 50% would work. I need the background content to dim when the external swf is loaded and then go back to normal when exiting that page link. How can this be done thru xml or actionscript?My website is an xml flash template that loads the text and pictures for the site Thru xml file. Anyone have sample code? I am newbie to actionscript.

View 7 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 :: 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

ActionScript 3.0 :: Flash Loading External Swf And Controling From The Main File

Aug 13, 2011

I am loading a swf named ball.swf in the main.fla. the swf is loading but not playing the next frame that i want.[code]

View 1 Replies

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

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

MX Loading Main Movie While Intro Plays?

Nov 26, 2009

i want to make an intro swf which is small and loads quickly but i would like the main swf to start loading while the intro is playing. i'm not worried about the intro finishing once the main movie is loaded but i just want to the main movie to START loading while the intro is playing to cut down on load time.

View 1 Replies

Externally Loading 5 Swf Files Into Main Movie?

Sep 2, 2010

Im have 5 swf files that I want to play one after another on my home page.

I would like to have the first movie load and play and while that is going on have the others downloading in the background so they are ready to start when the first movie finishes.

After the 5th and last movie has played I would like it then to return to the first movie and just loop this process continually.

I have attached what I have at the moment which is a file called demand.fla that uses buttons to load in demand001, demand002, deamd003 etc.

Ideally i would like demand to load in each slide automatically and then have flashmove onto the next one after 5 seconds or so.

[URL}

View 2 Replies







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