ActionScript 3.0 :: RemoveChild Between External Movies?

Jun 18, 2009

I am having some troubles to remove the movieClip from the current Loader (from the main FLA) at the external movies...

Check out how the external movie loads..

Code:

// -- FUN��O NAVIGATE -- //
function navigate(event:MouseEvent):void{
if(event.target.name == "fotos" ){
carregaFotos();

[Code]....

I have the external swf with some Tween Classes instaled and codified.. But I don't know what to do to CLOSE the external swf loaded at "meuCarregador" and it back to the BEGINNING OF THE ANIMATION on MAIN FLA.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Using RemoveChild Function In Different Movies

Jun 22, 2009

I have a website that contains an INTRO and OUTRO animation.. The main movie has an intro animation and depends which item of menu is clicked it runs an "outro" animation then it loads the external MOVIE. On this external Movie I have a close button that closes the external movie, check this:

Code:
Select allremoveMC.addEventListener(MouseEvent.CLICK, removeMovie);
function removeMovie (e:MouseEvent) {
this.parent.parent.removeChild(this.parent);
}

How do I replay the intro animation from MAIN movie Clip after the external movie is Removed?

View 12 Replies

ActionScript 2.0 :: Preloader For External Swf's - Doesn't Work For The External Movies?

May 22, 2005

... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:

[Code]...

View 5 Replies

ActionScript 3.0 :: RemoveChild For External XML?

Oct 18, 2011

I'm loading content into my .fla from an external XML file using URLLoader. Once the XML has loaded, I'm looping through the XML to create an XMLList for certain elements. I'm then creating a text field to contain those nodes. Each node gets its own text field so that I can easily create text links. Here's my code (with non-pertinent lines removed)[code]...

View 2 Replies

CS3 AS3 - RemoveChild After External Swf Finished Play?

May 28, 2010

I am making a title sequence to a flash site. I load the sequence with addchild. After the title is finished I want to unload the title and play a function.

How can I unload the title movie once its finished? I know I should use removeChild, but I only want to unload the movie after a certain time.

View 1 Replies

ActionScript 3.0 :: RemoveChild With Button In External SWF

Sep 11, 2008

I am currently working on a project that uses URLLoader and addChild to load a external SWF. The SWF that is being loaded is going to be the same size as the first SWF that is loading it, and is being centered on stage, therefore I cannot removeChild with a button on the original SWF. Is it possible to load a external SWF and then give it the ability to remove itself when I click a button inside of it?

View 2 Replies

ActionScript 3.0 :: Fade Out External SWF Before RemoveChild?

Feb 3, 2010

I am so stuck on the simplest of transitions! I've just started using AS3 and and doing alright so far, but have been looking for days for a solution to this..I have a simple gallery with 3 buttons.Each button calls in a different SWF. The SWF fades into place, and when you click on a different button it is removed and a new one fades into the same position.All done with AS3 (below). What I just can't manage is how to fade the SWF out before the removeChild(gallery);[code].....

View 11 Replies

Actionscript 3.0 :: RemoveChild Won't Get Rid Of Audio In External Swf

Apr 16, 2009

I have a container swf which is used to load multiple external swfs into a blank movie clip. Done as follows:

blank_mc.addChild(externalSWF);

This works fine, however I've got a weird issue with audio. Some of my external swfs have audio clips in them and for some reason the audio doesn't go away when a new external swf is loaded. So say the user loads a swf with audio in it and the user switches to another page, the audio from the previous page keeps playing even though a new external swf has been loaded into the blank movie clip.

I tried using removeChild before the new external swf gets loaded, but that didn't seem to do the trick. Audio is loaded to the timeline like so:

var audio:Nasdaqbell = new Nasdaqbell();
audio.play();

also tried the audio on the timeline as "stream" and "event" and got the same results.

View 4 Replies

ActionScript 3.0 :: Flash RemoveChild For External XML?

Oct 17, 2011

I'm loading content into my .fla from an external XML file using URLLoader. Once the XML has loaded, I'm looping through the XML to create an XMLList for certain elements. I'm then creating a text field to contain those nodes. Each node gets its own text field so that I can easily create text links. Here's my code (with non-pertinent lines removed):

[Code]...

View 2 Replies

ActionScript 3.0 :: Unloading External SWF Files (RemoveChild)

Dec 25, 2010

I am able to successfully load two of the swf game files (Shooting.swf and Butterfly.swf). I will be playing this game swf in full screen mode. As in it will Occupy the entire area. I want this swf file to be unloaded upon clicking "homeShoot" which is in the library. Thus, when loading the swf files, at the same time I will addChild this button "homeShoot" from the library. So that when I press this "homeShoot" it will unload the swf file. But i am having problem with this part. The following is my code.

ActionScript Code:
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;
var loaderShoot:Loader = new Loader();
var loaderButterfly:Loader = new Loader();
[Code] .....

View 4 Replies

ActionScript 3.0 :: Use RemoveChild And RemoveEventlistener In External .as Files?

May 13, 2011

is it possible to use removeChild and removeEventlistener in external .as files? It rejects these functions in the main as file.

View 1 Replies

ActionScript 3.0 :: RemoveChild() And External SWFs - Get A Gray Screen

Nov 11, 2009

When I addChild(<external swf - p2>), I also want to removeChild(<swf that loaded it - p1>). I can't seem to make that work. In p1, I've tried removeChild(this) or removeChild(this.parent), but I get Error #2025: The supplied DisplayObject must be a child of the caller. If I try stage.removeChild(this), it removes everything and I get a grey screen. If I try MovieClip(parent).removeChild(this) I get Error #1034: Type Coercion failed: cannot convert flash.display::Stage@1cd94461 to MovieClip.

In p2, I don't know how to reference it properly because when I trace(this), I get Object MainTimeline and when I trace(this.parent), I get Object Loader. If I try stage.removeChild(this.parent), I get Error #1009: Cannot access a property or method of a null object reference. at allproducts_fla::MainTimeline/frame1().

View 7 Replies

ActionScript 3.0 :: Loading External SWF Files - Placing RemoveChild In Code

Apr 27, 2009

I've got a file that loads 4 external swf files. I've got everything correct as far as how it's listening for when each one is finished loading and then the next one knows to play. So I can get each one to play right after the other just fine. My problem is that they don't all have the same number of frames so in between the movies, there's a blip of a previous movie showing up (atleast I think it's due to varied movie length). I want to put in a removeChild function when it's listening for each movie to finish loading. But when I put in: removeChild(myLoader);, it says myLoader is undefined..

Code:
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf", "movie4.swf");
var iArray:Number = a.length; // number of movies
var iCount:Number = 0;
function manageMovies(){
loadMovie(a[0])
}
[Code] .....

View 1 Replies

Actionscript 3 :: Error #1006 RemoveChild Is Not A Function. Timer Delay RemoveChild

Mar 29, 2010

I'm trying to build a conditional statement that will addChild and removeChild at different Timer Delays. Before I go any further, I thought, I should mention that I'm usinig TweenMax to ease the alpha of ease Child from 1 to 0 and back during the process to imitate a fade-in/out.

I'm getting issue with only one line - inside a conditional statement.It's running "OK". The movie runs as I want it, but the remove/addChild transitions are not at the speed I want it at. I am getting an error message in the output, but other than that, the movie runs fine.

stop();
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;

[code]....

View 2 Replies

Loading External Movies Or Not?

Oct 31, 2009

I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
 
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
 
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc

View 6 Replies

ActionScript 2.0 :: Loading External Movies In Mx?

Feb 17, 2003

i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up

View 3 Replies

ActionScript 2.0 :: Loading The External Movies?

May 30, 2005

I got some movies loading in a container, but the movies stay open, I want to be able to "close" the container, or hide it when I click on other navigation buttons that are included in my main timeline.

View 3 Replies

ActionScript 2.0 :: Preloading External Movies?

Jan 22, 2006

how can i make a preloader in my main movie that preloads external movies

View 1 Replies

ActionScript 2.0 :: Loading External Movies In MX

Jul 17, 2003

I read the tuts on dynamic loading etc (the one about external stuff like mp3s, jpgs, swfs; and the one with the transitions). I'm messing around with it in MX and all works fine, except the problem I have is I cant check it locally! the bandwidth simulator and profiler doesnt seem to work with loading external content, the movie appears immediately.

So I tried loading the swf from the web (i.e. URL = file://[URL]) that gave errors "opening file" (the movie is there though). my only solution so far is to keep uploading my movie everytime I wanna check it!!! which is CRAP! I dont have a network at home, so cant really use those bandwidth simulators I saw on the sticky. basically I juz wanna load an external movie, and see how the parent movie handles it (i.e. progress is kept track of correctly, loaded notifications work etc.) how can I check all this locally?

View 6 Replies

ActionScript 2.0 :: FMX - Debugging External Movies

Jul 21, 2003

how do you debug external files if they have functions that can only be executed when inside the main movie? I hope this makes sense...so the thing is that a movie just exported shows you the values of the traced items (undefined, numbers,..whatever). When that same movie is published and viewed in the flash player within the main movie, the traced items don't show in the output window.

View 3 Replies

IDE :: Keep Buttons From Loading External Movies?

Nov 5, 2009

I got this tutorial about external movie loading. It works but it seems that their is a little problem with it. How do you keep the button from loading an external movie once it's loaded already?

[URL]

Let's BUTTON-1 loaded MOVIE-1, now when you click on BUTTON-1 again it will load the movie even if it's loaded. How do you do it like only when another button is clicked will it load the movie for that button.

View 2 Replies

ActionScript 2.0 :: Controlling External Movies?

Sep 30, 2002

I have a movie (movie1.swf) which loads "movie2.swf" onto level 2. What is the scripting to make it go right to a specific frame in "movie2.swf"? What if I wanted it to go to a specific scene in "movie2.swf" right away upon load?

View 5 Replies

ActionScript 2.0 :: Controling External Movies?

Nov 18, 2003

Is it possable to load an external swf file, that is a rotating movie into another file and still control it??example:I have a rotating object which I want to pause and play. I have loaded the rotating object into a window using the loadMovie command. I now want to be able to use the play and stop buttons to control therotation.Because the movie has been loaded into the window from a different location it does not have a path to target the play and the stop command to also tried adding the play and stop buttons on the rotating object movie swf file. They load and are pressable, but dont do anything?

View 1 Replies

ActionScript 2.0 :: Loading External Movies (under Same Domain)?

Sep 24, 2010

I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.What I did was, on the first frame of my movie, I declared 3 variables; namely:

PHP Code:
var portfolio = false;
var aboutme = false;

[code]......

View 8 Replies

ActionScript 3.0 :: Positioning External Load Movies

Mar 24, 2011

I have made a flash player that loads in two external flash movies this is all now workign fine with a little extra help, however the problem i have now is that when the movies load in they both show in different places, for example the external movie called new_products loads perfectly in places, for example one of the movies loads into place where i want it to but the second loads in to position starting at the top left.When i add x, y for the loader it affects them both, but they still originate from differnt start positions.[code] URL...

View 5 Replies

ActionScript 2.0 :: 3 External Movies - Play In Order?

Sep 12, 2008

I have 3 external movies that I would like to play in this order.

first time someone visits the site they get 1.swf

second time they visit the ste they get 2.swf

third time they visit the site they get 3.swf

and everytime after that they get the same pattern 1, 2, 3.

View 8 Replies

ActionScript 3.0 :: Access Functions On External Movies?

Jun 23, 2009

I have a doubt about access functions between an MAIN fla and his external Movie.

All I need is to return a variable to the MAIN.fla function as TRUE.[code]...

View 0 Replies

ActionScript 2.0 :: Loading External Flash Movies

Mar 24, 2010

I'm quite new to flash and got stuck on a problem involving: loading external movie clips and file paths.I have 5 swf files and want to access them from one main navigation screen.[code]It fails after a few click because the file paths get duplicated..[code]Can any of you Flash gurus point me in the right direction?

View 2 Replies

ActionScript 2.0 :: Load External Movies Seamless?

Nov 30, 2005

I want to be able to load a movies, wait till it finishes, unload that movie and then load a new movie. Kinda like a slideshow using external movies. My problem is understanding how to determine when a loaded movie has reached its last frame. I currently have this action on at the end of every movie, but it pops or gives a white flash in between movies which is not so smooth.

movie1: loadMovieNum("/media/flash/one.swf",0);
movie2: loadMovieNum("/media/flash/two.swf",0);
movie3: loadMovieNum("/media/flash/three.swf",0);

View 2 Replies

ActionScript 2.0 :: Loading Pics Into External Movies

Jun 4, 2003

I have a Main Movie with four buttons {about us, services, portfolio, contact}. When you click on Portfolio the Portfolio movie is loaded into the main movie to an instance called "load". This Portfolio movie has four buttons in it the first one being "print", now when I click on this link it loads another movie with the "print slideshow" in it.

In this slideshow there are thumbnail images which when pressed opens up another movie showing a bigger image which works fine. But what I would like to do instead of having separate movies for each thumbnail is to have just the one and load in the picture and any copy into a target depending on which one is pressed. I have tried doing this with this script, but it doesn't work (I've only tried loading the pic up to now)

on (press) {
loadMovie("print/view_file.swf", _root.view);
setProperty(_root.view, _x, "445");
setProperty(_root.view, _y, "25");

That part works OK, but it is replacing the slideshow movie. I've deleted the next part of the script and it no longer replaces the slideshow, so I think that is where my problem is, but I'm still not sure why

loadMovie("print/mdc-large.jpg", _root.view.pic);
setProperty(_root.view.pic, _x, "445");
setProperty(_root.view.pic, _y, "25");
}
This part isn't loading the pic at all. I know I've made it a bit difficult for myself by doing it all in separate movies, but I only want to load what is necessary depending on where people are browsing.

View 2 Replies







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