ActionScript 2.0 :: External Swf - Movieclip Not Functioning In Main Movie?
Oct 18, 2004
I have loaded an external swf into an empty movie clip in my main movie. Movie clip works fine when I test the external swf by itself. Once I test the main movie and load the ext. swf file the movie clip stops working.
This movie clip will act as a button. It is a small folder tab that will move up once clicked and move down when it is clicked again. Will changing the _root to _parent work?
AS for the movieclip:
onClipEvent (load) {
speed = _root.variSpeed;
}
I have loaded an external swf into an empty movie clip in my main movie. Movie clip works fine when I test the external swf by itself. Once I test the main movie and load the ext. swf file the movie clip stops working.
This movie clip will act as a button. It is a small folder tab that will move up once clicked and move down when it is clicked again. Will changing the _root to _parent work?
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?
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.
I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).
It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?
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.
- 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.
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.
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;
Im making a movie with a menu that loads movie clips according to which menu is selected simple enough. However, the newly loaded movie clip also needs to allow the user to load another movie into the main movie effectively swapping the first movie clip with the second. This needs to be done without using the main menu.
I have a main fla, which has some buttons on the stage. When you click on a button an external swf loads(using loadMovie method) inside container_mc which is an empty movieclip.
On that specific external swf, I have created an empty movieclip called content_mc which also loads external swfs.
Is it possible to call the content_mc from the main fla? For example when clicking a button of the main fla, how can I point to content_mc which is part of the external swf?
I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file. (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
eg.
thumbnail1_btn needs to go to main swf and play movieclip1.mc, frame 1 thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
I have a problem with preloading external swf's into my main movie actually I have a a seperate preloader setup for each external SWF and when i click a button to load an external movie its not showing a preloader it anoying to wait while movie loading without seeing a prelaoder.
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.
I imagine that the solution lies in readjusting _root for the fact that the external .swf is now placed inside a parent, but I don't know how to do that.
which work perfectly fine. Now due some reason i had to place the navigation bar in the external movie clip , in external.swf Using the same script how can i control the textBox animation which is on the main.swf??
I`m working on a main swf (Main.swf). There are many seites with many themes. On each site (Frames 1,2,3,.....25) There`s a button to get to an external .swf. If I`m in the external .swf, there is a button too, to get back (back) to the mainmovie. Now what I wanted to do is, go back from the external .swf to the Main.swf to its Frame Nr.5, when i press the button "back". With that Code below I can only get to the mainmovie 1.Frame (its Home).
//Connection to LEVEL1 back.addEventListener(MouseEvent.CLICK,mouseClick3 ); function mouseClick3(event:MouseEvent):void {
I have one swf called main.swf which has a container movieclip that gets external swf's loaded into it.
my external swf is called hosting and it calls an array of data that is loaded into a movieclip that is duplicate for each element from the database. The elements from the database are as follows:
Business Economy Power Standard
Each one of these has a button over it that when press loads information from the database into a movieclip that contains a textbox. My button code is: _root.movieclip.loadVariables("url to database");
This works flawlessly when I run the hosting.swf by itself, but when it is loaded into the contianer in the main.swf the buttons dont work. I believe that it is the _root in the button call that is causing this but I dont know how to fix it. I think the _root variable changes when hosting is loaded into the main.swf.
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........
I have searched the archives here, but cant get a clean answer on this.I am loading an external SWF sucessfully, but I need to manipulate a MovieClip instance within that external SWF from the main file.
Code: // SLIDE 1 IMAGE LOADING var slide1Loader:Loader = new Loader(); var image1:URLRequest=new URLRequest("slides/1.swf"); slide1Loader.load(image1); slide1.slideImage.addChild(slide1Loader);
That is the successful code to bring it in - but now I need to be able to use a movieclip within it called COPYMC
I am trying to load external swf files in a main movie.I have created 3 different movies. Main movie is named "Container". Another 2 movies are named "movie1.swf" and "movie2.swf".Main movie "Container" is having some navigation buttons and template sort of thing in it. On the lowest layer in main movie I have created an empty movie clip in which I am trying to load "movie1.swf".Now problem is when I load "movie1.swf" instead of loading the external movie in target mc, it clears all the contents in main movie.
loading external mac x menu into my main movie. My main movie contains emty mc named "container" to load external.swf's and another emty MC named "menu" to load external "menu.swf" the problem i have once i load menu.swf into a level of my main.swf then the menu functions won't work at all.
When importing external swf's, would it be better to have the preloader code in the external swf or in the main movie? I've seen threads about this everywhere but I don't see the difference. Once the movie pops in it starts preloading right? Is there a faster result when the preloader is in the main movie?
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
I have an external swf, which uses an interval to space out the loading of JPEGs.
This swf is loaded into the main swf using the movieclip loader class. I unload the external swf when a button is pressed - and I am also attempting to clear the interval at this point. However, it's not working for me - when I click on another button to go back to the frame that loads the external swf, it is obviously running additional intervals. The JPEGs start loading faster and faster.
This is my code:
External swf -
PHP Code:
var fadeInterval:Number = setInterval(fadeIn, 750);
Main swf -
PHP Code:
var mclLoader:MovieClipLoader = new MovieClipLoader(); createEmptyMovieClip("external", 3); mclLoader.loadClip("flashElements/pics_home.swf", external);
[Code]....
Now the second bit of code is what I've come up with after trawling the internet for answers. I've come across more than one forum where people are having this exact problem, which is seemingly fixed by the above. However for me, no dice.
holding shift and clicking allows you to drag the scroll panes into a different order. clicking one button in each of the scroll panes works fine. if you try clicking a second button in either of the scroll panes you will notice you have to click twice.