Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


ActionScript 3.0 :: Effectively Remove A Loaded SWF From The Stage?

I can not figure out a proper coding to remove a loded SWF from the stage.Hre is my set up.I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.I specified the variable in the "products" section with the following set up:

var sourceVar_ProductsPopUps:String;
function onClickSumix1PopUp(event:MouseEvent):void {
sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf ";


View 12 Replies (Posted: Mar 9, 2012 9:00 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: Drag And Remove Movieclip - Cant Remove Duplicate Euro's From The Stage?
I'm making a game for children where they have to pay money by dragging it on a square. It al works wel only when i pick the first coin of one euro without going over the coin of 2 euro and then pick up a 2 euro coin the one euro disappears. after then it all works fine.i cant remove my duplicate euro's from the stage when i clic on pay here is my code for the euro's the euro's are in a emty movieclip


Posted: December 20th, 2009

View 2 Replies!   View Related
Effectively Separate Content From Graphics?
I would like to completely separate the content (text,photo gallery,video files, etc) from the web graphics (interface). What is the best way of accomplishing this? The main reason for doing this is so that the client can quickly update the content as if he/she was editing a text document. I want to avoid having to open the flash files in order to change content.

Posted: Oct 14, 2009 10:08 PM

View 2 Replies!   View Related
Actionscript 3 :: How To Effectively Load SWF Libraries
I am making an AS3 project in FB4. In our workflow, we have artists compile art into SWC files which the I then link as 'Referenced Libraries' in FB4. Then I set the "Link Type" of the SWC files to "external" instead of merged into code. This should create SWFs corresponding to the SWC files in the output folder, right?

This doesn't seem to be the case. I am only seeing one SWF file: the main_app's.I was trying to make it so that I can use a library manager to load the files dynamically.I tried extracting the swfs manually, but it seems the main_app still compiles all the swcs to itself. I made sure the Link Type was set to external. The file size for the main_app between "external" and "merged to code" seem to be the same.

Posted: Nov 14 10 at 3:46

View 2 Replies!   View Related
Flex :: Effectively Tavere A Table Column?
I have a table "template" which is used in various "instances". All instances have checkboxes in the second column (for record-delete).

What would be the most effective way of traversing the table and check if at least one checkbox is selected (to enable a "delete" button)?

Posted: May 17 10 at 0:00

View 1 Replies!   View Related
Actionscript :: Control The Fps In Adobe Flash Effectively
I am working on a splash page in Adobe Flash CS4. It is to be used in various flash works - differing in ActionScript versions and framerate. The animation itself contain multiple tweens, even nested ones. If I am to use it with a different framerate, I'll have to alter a lot of frames to make it work smoothly in the new fps.

What are the options I have to do this effectively? Is there a technique by which I can swicth to the animation's frame rate during it's playtime and switch back to the original fps once it is done?

Posted: Feb 19 at 1:56

View 1 Replies!   View Related
ActionScript 3.0 :: Remove The Previous Loaded .swf Before The Next One Is Loaded?
I'm loading an external .swf files for my site.

ActionScript Code:
function whattoload( eye:Number){
var ld:Loader = new Loader()[code]............

This works perfect for loading the said .swf and displaying it on my flash program. However I have a next button which When clicked I want it to increment so that It picks a new swift from the array.

ActionScript Code:
var swiftI:Number = 0;
var maxI:Number = 3;[code]...........

This also works well for my desired effects. However I need to remove the previous loaded .swf before the next one is loaded. How do I do this?When I try to use removeChild(ld); It doesn't work.

Posted: 02-15-2011, 01:26 AM

View 9 Replies!   View Related
ActionScript 3.0 :: Accessing Stage Items, Through A SWF File Which Is Loaded Inside The Stage
- I have A.fla.

- A.fla includes buttons, movie clips and also B.swf is loaded in A.fla using a LOADER

- i want to access elements in A.fla, from the actionscript codes inside B.fla to modify those movie clips and buttons based on actions going on in B.swf

for instance, lets say there is a button X in A.fla, and there is a button Y in B.fla, B.swf is loaded into A.fla, and I want the button Y to erase button X when clicked.

general question: accessing elements in a stage, through a SWF file loaded into that stage.

Posted: May 14, 2011 8:30 PM

View 2 Replies!   View Related
ActionScript 2.0 :: External MC Loaded On Stage - Can Press Buttons That Are On The Stage Through It
An external swf is loaded using this code...


The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie.

Posted: September 26th, 2008

View 2 Replies!   View Related
ActionScript 3.0 :: Load The .swf With The Exact Stage Size So The Graphic Elements Do Not Float Outside The Loaded Movies Stage Area?
I'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...

Actionscript Code:
import flash.display.*;var adLoader1:Loader = new Loader();adLoader1.load(new URLRequest("100828_budlight_texas_fight_728x90_jn.swf"));adLoader1.x = 313;adLoader1.y = 162;addChild(adLoader1);var adLoader3:Loader = new Loader();adLoader3.load(new URLRequest("100828_budlight_texas_fight_300x615_jn.swf"));adLoader3.x = 738;adLoader3.y = 0;addChild(adLoader3);

Posted: 09-07-2010, 01:15 PM

View 3 Replies!   View Related
ActionScript 3.0 :: Loaded Swf Remove Itself?
I'm trying to remove a loaded swf from inside the loaded swf itself. Here's my simplified code:

PHP Code:
// code on the loading swf
var movie_loader:Loader = new Loader();

The removeChild code keeps generating the error: The supplied DisplayObject must be a child of the caller.

Posted: 02-09-2009, 08:52 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove .flv From Externally Loaded .swf?
With the assistance of a very kind member of this forum, I have got as far as getting an .FLV to load into my API via its own .SWF.


click on "Animalia - Verse from the Zoo" to load the VideoPlayer .swf which contains the .FLV

I will add more functionality when I've solved this. Now that I have a Video Player which closes, the next set of hurdles to overcome are these:

Click "Close" with the .FLV playing and the sound keeps playing because the .FLV is still playing. Click "Close" with the .FLV paused and when you call the player back, it plays from the same spot. So, my tiny brain says it's an "add/removeChild" issue. Obviously when happy user clicks "Close" and then re-loads by clicking "Animalia", happy user wants the video to play from scratch. That's what I want, anyway. Not from where it left off after clicking "Close". I've made several attempts at adding a "remove FLV" object to the function and Event Dispatch method, but what I did is wrong because the code I put in removed the .FLV permanently and when you call the player back by clicking on "Animalia", the .FLV does not play at all. I'm going round in circles looking for the correct NetStream/removeChild/unload.nsplay/etc/etc .. AS3 coding and where to put it.

My .FLV video load object on "NewPlayer.swf" is:

var myVideo:Video = new Video(360, 264);
var nc:NetConnection = new NetConnection();


My questions is:- What is the correct coding to get the VideoPlayer .swf to unload its .FLV completely, SO THAT when a user clicks "Close". Either with or without the .FLV playing, everything closes completely and when re-loaded, the video plays from scratch?

Posted: 08-07-2009, 03:13 AM

View 2 Replies!   View Related
Flash :: Remove All Definitions From A Loaded Swf?
I use Loader.unloadAndStop() function on loader which was used to load an SWF, but I can still reach classes using getDefinitionByName. How to remove them from the memory?

Posted: Jun 1 11 at 15:08

View 1 Replies!   View Related
ActionScript 2.0 :: Close And Remove Loaded SWF's?
In my flash movie I have a function that loads external swf's movies based on the file name passed. Here is an example[code]...

Posted: 07-31-2009, 12:09 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove Sound From Loaded Url?
I have a youtube movie loaded (with a loader) on one page which plays with sound. however when i leave the page the loader is removed but the sound continues to play.

how could i mute this?

i have tried several things such as using a SoundMixer or soundTransform, placing the loader in a movieclip and changing the volume of the movieclip

is there no simple code for muting a loader? even removing it or unloading it does nothing.

Posted: 02-08-2010, 08:57 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Remove The Loaded Swf On Rollout?
I am creating an expandable banner, I am able to load the expanded swf upon rollover, however I am trying to figure out how to remove the loaded swf on rollout, and therefore return to the unexpanded state.

Here is my actionscript:

function onOver(evt:MouseEvent) :void {
var photo:Loader = new Loader();
photo.load(new URLRequest("expanded.swf"));


Posted: May 9th, 2009

View 6 Replies!   View Related
Remove MovieClip From Stage?
On the click of a button I am having a movie clip load onto the stage from the library using the _root.attachMovieClip command and that part of my code is working perfectly.I have a close button embeded into the movieclip being loaded in but I am unable to get it to remove the movieclip from the stage when the close button is clicked. The close button has to be inside the loading movie clip so it doesn't interfere with other items on the stage which is why i'm not using _visible to show and hide the menu.

Posted: 04-19-2010, 05:46 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove A Swf From The Stage?
I'm trying to remove a swf from the stage when a button is clicked to go to the next frame.

Below is my code for loading the swf and know I need to use the removeChild function to do it but don't know what to target.

function loadme():void
var l:Loader = new Loader();


Posted: 08-24-2009, 07:44 PM

View 7 Replies!   View Related
ActionScript 3.0 :: Remove MC From Stage
im trying to remove these movie clips from the stage but its not working. Im spawning the movie clip to the stage every time i slide the timeline_slider, which is instance name for a slider component.

I manage to put the spawned movie clip in a array using push, but i don't know how to delete them. Because what i want to happen is that every time i slide the slider i only want a certain amount of movie clips on the stage, but what is happening is they spawn on the stage and stay there.

for example. if i slide 1 across it spawns 5 mc if i slide again to the second increment it spawn 4 so total number on movie clips on the stage is 9.

i want to only spawn the number of movie clips that increment on the slider is set to. i would also like it to work backwards as well, so if im on the second increment it should have 4 movie clips on the stage, and if i go back to the first increment i should only have 5 movie clips on the stage. this is my code for spawning with the slider

this is my arrays of the numbers are now many movie clips i want to spawn to the stage.

var rdCounts:Array = [5516 / 1000,5517 / 1000,5570 / 1000,5585 / 1000,5596 / 1000,5656 / 1000,5804 / 1000,5965 / 1000,8692 / 1000,15194 / 1000,16475 / 1000];
var NewAuspop:Array= new Array();


Posted: 05-23-2011, 03:43 AM

View 1 Replies!   View Related
ActionScript 2.0 :: Remove Mc From Stage?
If i have a MC on stage called 'mc' why will this not work[code]...

what do i need to remove this from stage?

Posted: 07-10-2011, 09:55 PM

View 7 Replies!   View Related
ActionScript 3.0 :: Remove Instance Of Loaded SWF From Memory?
I am loading an SWF file into another parent SWF. I remove the loaded SWF using the unloadAndStop() method and set the loader to null. But the instance of the loaded SWF still remains there in the memory.

Posted: Mar 4, 2010 3:21 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Remove MovieClip With External SWF Loaded
I have 4 empty movieclips called holderMC1/2/3/4 on 4 frames of the main timeline. Each movieclip loads in an external swf with this code:
var swfLoader4:Loader = new Loader();
var bgURL4:URLRequest = new URLRequest("F1_h.swf");
swfLoader4.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete4);
function loadProdComplete4(e:Event):void {
trace("file loaded4");
I have 4 buttons which on click goes to 4 frame labels on the main timeline corresponding with the 4 movieclips. Very simple - works fine - except the swfs don't unload properly, so the video in the external swfs keeps playing in the background when a new swf has been loaded.

Posted: Jun 27, 2011 8:08 AM

View 6 Replies!   View Related
ActionScript 2.0 :: Remove Accsess To Root In Loaded Swf?
I am forced to develop in AS2 for Flash Player 6 with dial-up speeds in mind (client imposed limitations - dark scary limitations *shudders*).The client requires a swf to load into a flash application dynamically.I am worried about this 'cos there are a number of _root objects, movieclips, initiated classes and variables at the _root level.I don't want the client to be able to load in the external swf with code referencing the _root that could potentially interfere with my _root items (potentially exploding my universe!).Is there a way to change the scope of _root and _level0 for the target mc the swf is loaded into?Can I simply disable _root and _level0 for this clip?I would prefer a non-class method to achieve this if possible as I am loading all class scripts at frame 2 and all shared library elements, xml and the offending swf in frame 1 - all for accurate preloading purposes (that whole dial-up thing again ....)

Posted: October 17th, 2007

View 2 Replies!   View Related
ActionScript 2.0 :: Can't Remove , Delete / Unload A Loaded Swf
I am trying to hide an external loaded carousel on button click with the following AS[code]...

I can see the trace ""remove Carousel" but the Carousel.swf is still shown?

When i look in debug mode i can see the _root.holder, but it doesn't hide?

Posted: September 19th, 2008

View 1 Replies!   View Related
ActionScript 3.0 :: Flash Control The Fps Effectively In Flash?
I am working on a splash page in Adobe Flash CS4. It is to be used in various flash works - differing in ActionScript versions and framerate. The animation itself contain multiple tweens, even nested ones. If I am to use it with a different framerate, I'll have to alter a lot of frames to make it work smoothly in the new fps.What are the options I have to do this effectively? Is there a technique by which I can swicth to the animation's frame rate during it's playtime and switch back to the original fps once it is done? ( I'm looking for a solution that also works in AS2 )

Posted: February 18th, 2012

View 2 Replies!   View Related
Copyright 2005-08, All rights reserved