ActionScript 2.0 :: Loading Movie In Another Movie?
Sep 11, 2009
I have a main movie (called: "team.swf") with several buttons. When I click a button, it loads an external movie (called: "lampe.swf") and plays in my main movie. Now, what I want to do is this: when the movie "lampe.swf" is done with playing, it loads another movie (called:"description_lampe.swf") onto the main movie. So what i do is ad a script to load the "description_lampe.swf", but it opens in the same window... This is my code
Code:
_root.loadMovie("description_lampe.swf", "description");
I guess it has something to do with the "_root"... how can I show to that movie that it has
[code].....
View 1 Replies
Similar Posts:
Mar 11, 2010
I was wondering about the flexability of loading movies into a movie clip. Currently, I am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
i shot from the hip and tried this code, but didnt have any luck:
mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1); mc_LCD_loader.g._x = 0; mc_LCD_loader.g._y = 1000;
mc_LCD_loader.X._x = 0; mc_LCD_loader.X._y = 1000;
[Code]....
View 9 Replies
Feb 25, 2003
My _root movie is nothing more than a interface with navigation buttons. When someone clicks a button another swf is loaded into an empty movie clip on _root.
My Problem:I understand loaders and use them all the time, however, I still to this day have never gotten a loader to work with loading an external movie into a currently playing movie. (ie: in my _root movie you press the "Searching" button and searching.swf is loaded into _root.contents --> contents is the empty movie clip)So anyways... where does the loader go? The only results I've ever had is as SOON as the loadMovie method is called the movie hangs until the entire movie clip is loaded. Then the loader runs... thus making it totally useless.
View 1 Replies
Jul 2, 2006
I would like to set height after I load an external movie into a movie clip.
For example,
this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;
I always get height as 0, because body_mc is an empty movieClip.
how to access the body_about.swf height as soon as loaded the movie into the empty movie clip?
View 2 Replies
Apr 15, 2003
I have a button ( 3 buttons ) and each button is assigned to Load a movie. When you click one of the buttons, the LoadMovie on Level 1 is good. Now here is my problem, how will I unload the current movie before Loading the next one. I want to UNLOAD the CURRENT MOVIE first before loading another MOVIE.
View 2 Replies
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
Jul 5, 2010
I'm loading movies into a container loader BUT when I load in one of my games it runs real slow. Is it because I should have removed other movies first ie: They seem to be all in there and stacked on top of each other.
import flash.net.URLRequest;import flash.display.Loader;import flash.events.Event;
MyButton.addEventListener(MouseEvent.CLICK, this.startLoad);function startLoad(e:MouseEvent){ var mLoader:Loader = new Loader()
[code].....
View 15 Replies
Nov 16, 2011
I have and SWF file I created from a PDF through Print2Flash. I am trying to bring it into another SWF file which is my navigation shell.
I am trying a simple test to load it and it work fine all the way up to when its time to resize. This is AS3 and this is the code I am working on:
[Code]...
This seems to work as long as I dont try to resize the container. repositioning the containg alone the X and Y works....but when I add the resize of the container to 800 x 800, I get nocompiler errors but the SWF doesnt seem to load either. Can someone let me know why this would be the case? I have found other threads concerning this but still the SWF I am bringing in just will not show when I add the width and height resize.
View 11 Replies
Mar 21, 2011
My scenario is that i have host swf that is of as3 and need to load an as2 movie into it.Now I need to control the as2 movie for keeping the host as3 swf and the as2 swf in sync. To do that I am using a local connection. But the problem i'm facing is that, when as2 loaded via as3 movie, I don't see as2 events being fired. For example, I kept a trace in onEnterFrame in as2 movie. Stand-alone I could see the traces. But when loaded from as3 movie, I could not see any of them.
I have 3 movie clips Loader as3 movie AS2 wrapper movie (Generic for all AS2 movies that will have local connection code.this will get msgs from as3 and internally does what ever we wanted) the actual as2 movie to be loaded into as3
View 1 Replies
Jul 15, 2004
I have a main movie (called: "team.swf") with several buttons. When I click a button, it loads an external movie (called: "lampe.swf") and plays in my main movie. Now, what I want to do is this: when the movie "lampe.swf" is done with playing, it loads another movie (called:" description_ lampe.swf") onto the main movie. So what i do is ad a script to load the "description_lampe.swf", but it opens in the same window.[code]
View 2 Replies
Mar 2, 2002
I have a problem where I have 2 movies on a page (each in their own frame). I want the second movie to start after the first one has finished, but right now they both start at the same time.Is there a way to check if movie1.swf _framesloaded = _totalframes and if true start the next movie?
View 5 Replies
Jul 15, 2004
I created a Flash movie (header.swf) that did some animation then at the end, loaded another into it using this command: loadMovie ("scrolling3. swf","_root.dropZone");It loads and plays just fine. Then I created another movie (video2.swf), that loads a movie in the same fashion: loadMovie ("tom2.swf","_root.mcTom");By itself, this movie (video2.swf) runs just fine.But now, when I wanted header.swf to load video2.swf it loads it, but the movie clip tom2.swf does not run. It just shows up as a white square in the corner. What am I doing wrong?I have tried many of the examples from threads that I have read hear and cannot get it to work.
View 1 Replies
Dec 3, 2009
I'm currently making an animation which will eventually exceed the 16,000 frame limit (don't ask haha), so, short of making two movies and having to just start up the next one, what is the code for loading a movie? I presume they need to be in the same directory? So basically all I want is on the last frame of the movie the code executes and the second movie file opens up and starts. I guess I'd want the current movie to close, too.
View 1 Replies
Feb 18, 2009
I've been trying to load a movie clip from a movie clip that has been loaded. I am trying to provide a simple means to change the look / feel of the flash application by placing the graphics and controls into a second swf. Each different screen is represented by a different movie clip that is in the second swf. So I've got app.swf loading ui.swf. I want to load screen1_mc from ui.swf.
The app.swf is loaded by a master swf. There may be multiple copies of the app.swf that can be loaded by the master.swf and each app.swf could be configured differently. For each "unique" app.swf it is stored under a unique folder that is not known to me in advance. Since I don't know the unique folder in advance, I can't use import / export for runtime sharing. Is there any way to load the movie clips from the loaded movie clip? (Basically, I want to treat the ui.swf as an extension to the library.)
View 0 Replies
Oct 30, 2009
i have movie clip x (which is blank), and movie clip y, but movie clip is only on the timeline
how do i play movie clip y in movie clip x ??
View 1 Replies
Mar 16, 2005
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it.
View 5 Replies
Feb 12, 2009
I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.
View 6 Replies
Mar 16, 2004
I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player
View 3 Replies
Aug 4, 2003
i am making a site with transitions that loads external .swf files(exactly like the tutorial). after the first part of the transition plays it uses:
[Code]...
So i guess my questions is should i add the load movie code before this code or what. how do i make this apply to loading the actuall external swf files??
View 5 Replies
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
Mar 30, 2009
A flash movie that is embedded in a web page I've created refuses to play in IE.
View 2 Replies
Aug 2, 2009
I'm using an SWF handler to load my pages(MovieClips) into the Main Movie. I'm using Actionscript 2.0. My problem is when I click the button the swf is loaded into the handler but my actionscript is not executing its _x axis move.(graphics should slide in from the right), Here is the code I have applied to the sliding graphic:
//OLD SKOOL
xTargetOSM = 30;
OSM.onEnterFrame = function() {
[code]....
-this code works when the SWF is played alone, but fails when it is loaded into the SWF handler in my main movie.
View 1 Replies
Jan 10, 2010
I have a MovieClip that has a button inside of it with an animation, this button takes me to a determined labeled frame that is on Scene 2...and also I want it to load a movie there but I cant seem to do it right...heres my code in the button:
PHP Code:
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
[Code].....
I placed the empty MovieClip in the Scene 2 and is called "container"...the one im trying to load inside is "intentos.swf"
View 1 Replies
Apr 15, 2010
[code]How do i do that Load a movie clip at the same time it stays on the same frame after the movieclip plays.. It returns to the last frame?
View 1 Replies
Apr 12, 2011
I have a SWF that i am loading in another movie using
container.loadMovie("football.swf");
Now in this SWF (football.swf) I have a MC that when it hits the last frame, I need it to make the main timeline (of this movie clip (football.swf), not the main movie it is loaded in) goto and stop on frame 2.
I was using this
_root.container.gotoAndStop(2);
but that doesn't seem to be working (it works sometimes but sometimes it does not). Is there a better way to targer the timeline just one level back of this embedded swf without having to reference it from the root through the container that is loaded to the 2nd frame of that main timeline?
View 2 Replies
Dec 12, 2009
My movie not loading[code]...
View 5 Replies
Apr 16, 2010
have a new problem, this time the logo, which should always appear at the bottom left corner, is not loaded in my movie (irrespective of the width & height of the movie)...see the attached file (ori.swf is being called in as2 code in fla)
View 1 Replies
Sep 20, 2010
I have a flash movie, but it is not loading when the page loads. Instead, I have to right click and click "play".This is the code I am using:
PHP Code:
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="850"
[code]....
View 1 Replies
Feb 16, 2011
I am loading a movie from another movie with this:
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("link"));
addChild(my_loader);
The movie I am loading need another file to work (xml), how can I load that other file so the movie I am loading inside the main movie can read it?
View 0 Replies
Mar 17, 2003
I created a movie in my library, and i want to load it using actionscript. is loadMovie(); just for external SWF files?
View 5 Replies