ActionScript 3.0 :: Unload Loaded Swf Through Button

May 23, 2010

I use the following code to load a swf on top of main. Is there a way to have a button in the loaded swf then close the loaded swf?

[Code]...

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

ActionScript 2.0 :: Unload Clip With A Button In The Loaded Clip

Jan 1, 2008

So I want to Unload a clip with a button placed in the loaded clip.

First I have this code for my preloader and movieclip loader:

var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {

[Code].....

View 1 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

ActionScript 2.0 :: Unload Swf Once New Swf Loaded?

May 29, 2010

I have been able to get the external swf files to load and unload from my holder mc no probs. Now I want to complicate things a little.

There are individual background images for each of the eight menu buttons. When a button is pressed I want the new background image to fade in over the top of the previous background image, unloading the old image once the new one has faded over it. Not unloading the bg image and leaving the screen blank and loading a new bg image.

View 8 Replies

ActionScript 3.0 :: Unload Song That Loaded?

Mar 19, 2012

I have a function called "CallSound" that load sound to a movie clip and play it.I want to create new function that remove/unload the sound from the movie clip, because I want to load another sound to me clip and dont want the the new sound will play with the old one.How can I create a function called removeSound() that remove the sound that loaded before

View 1 Replies

ActionScript 2.0 :: How To Unload All Loaded Layers

Jun 6, 2005

Here is the code that I am using for my button
on(release){
loadMovieNum("CG/images/houseGroups/1fs.swf", i);
i++;
}
And then on the first frame of the timeline I am putting i=10

So every time the button is clicked it keeps loading on top of the last. This all works fine. My question is: How do I unload all of the layers that have been loaded. It seems like it should be an unload i< but that does not work.

View 2 Replies

ActionScript 2.0 :: Can A Loaded Movie Unload Itself

Feb 27, 2004

can a loaded movie unload itself, ive tried but nothing positive this is the thing, i have a sectiion tha i loaded, and i want a close button in that loaded movie, not in the actual main movie

View 3 Replies

Automatically Unload Movies When A New Movie Is Loaded?

Apr 30, 2009

Is there a way to automatically unload movies when a new movie is loaded? eg: 5 buttons, 5 bit of art. At the moment they overlap instead of unloading before the new one loads.

View 4 Replies

ActionScript 3.0 :: Unload Previously Loaded Clips?

Mar 23, 2010

I am creating a 40 slide presentation with soundtracks, narration, and animations.Each slide is a separate swf clip).I have noticed that when I load a new clip, the previous clip is still loaded (I wasn't using any background so I could see through the first clip and see the second).This tells me that I should consider unloading the previous clip or use backgrounds.Putting on a background is easy however if I should want to unload the previous clip, how do I do that?Here is how I load the next clip:

mmBtn.addEventListener(MouseEvent.CLICK,loadMM);function loadMM(event:MouseEvent):void {trace("Main Menu Button was Pressed")var loadMain:Loader;loadMain = new Loader();addChild(loadMain);loadMain.load(new URLRequest("mainMenu.swf")); }

Some slides will have many navigation options and others will only have one or two.I have AS in each slide to keep each slide self contained. This makes it easier for me to develop and test.Is there a way to remove the current slide contents (from the stage and memory) and load the next slide? I'm really concerned about the memory usage.

View 3 Replies

Actionscript 3 :: Unload Dynamically Loaded Swf After Displaying It?

Jul 8, 2011

I am doing a presentation on which I need to use a lot of video clips. I load all these videos dynamically using Loader. [code]...

View 2 Replies

ActionScript 2.0 :: Unload Dynamic Text Loaded?

Sep 29, 2009

I have my dynamic test field working where it loads my external text by the following

[Code]....

how would I go about unloading the text after it has already been loaded?

View 2 Replies

ActionScript 3.0 :: Loaded Swf Telling Parent Swf To Unload Itself?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 3 Replies

ActionScript 3.0 :: Unload Externally Loaded Swf Which Contains 3D Carousel?

Aug 17, 2010

I came across a lesson on [URL]titled "Vertical 3D Carousel with AS3 and XML".
 
I completed the tutorial and all worked fine so I then wanted to load the swf into a existing project. The loading of the swf goes fine and when I unload my loader it is removed but only visually as in my output panel in flash CS5 I get an error as follows
 
TypeError: Error #1009: Cannot access a property or method of a null object reference.at carousel_c_fla::MainTimeline/moveCarousel()
 
this error repeats over and over again slowing my swf movie.
 
So does this mean my main flash movie trying to still play / find my unloaded 3D Carousel?
 
If so how do I unload remove all the AS3 that is trying to run from the 3D Carousel?
 
I have included the AS3 below from the tutorial page and I understand that this is what I have to remove to "break free" from the 3D Carousel swf when it is unloaded. This is where I am stuck as my knowledge of AS3 is limited
 
//Import TweenMax
import com.greensock.*;
//The path to the XML file (use your own here)

[Code].....

View 2 Replies

ActionScript 2.0 :: Can't Remove , Delete / Unload A Loaded Swf

Sep 19, 2008

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?

View 1 Replies

ActionScript 2.0 :: External SWF Tween Can't Unload After Loaded

Jun 23, 2010

I have a gallery with tween effect which allows the photos to change size.

However, after loaded photos work but i can't unload it!

If i change the 1 to _mc, it's able to unload but then tween won't work.

Feels like i am missing something basic and it's driving me mad.[code]...

View 3 Replies

ActionScript 3.0 :: Unload/remove A Clip Loaded From The Library?

Mar 4, 2009

i have created a colour picker that loads movieclips from the library onto the stage.however i need to create a "start over" button that will remove all these added clips.my code is as follows:

Code:
startover.addEventListener(MouseEvent.CLICK, removeallFunction);
function removeallFunction (event:MouseEvent):void

[code].....

View 3 Replies

ActionScript 2.0 :: Unable To Unload Loaded Movie (Slideshow)

Aug 7, 2009

I am trying to unload a movie I loaded like this
PHP Code:
loadMovie("slideshow-endsample.swf",movieContainer);

But
PHP Code:
unloadMovie("slideshow-endsample.swf");
Doesnt work?

View 4 Replies

ActionScript 3.0 :: Unload External Swf That Was Loaded In A Previous Scene?

Jul 1, 2009

i have designed a flash projector using as3 in which I have successfully loaded an external swf onto frame 2 of my first scene called "start". i want to include a Restart button in a later scene called "intro", which will unload the external swf as well as restart the entire presentation from frame 1 of my "start" scene. my problem is that I can't figure out how to tell my Restart btn, located in the "intro" scene, to look in the "start" scene to unload the external swf - i need to eliminate the "1120: Access of undefined property..." error when working in multiple scenes.

View 7 Replies

ActionScript 2.0 :: Externally Loaded Flv-movie To Unload Itself When It Is Done Playing

Aug 10, 2009

I want my externally loaded flv-movie to unload itself when it is done playing. I read something about cue-Points but didn't find anything useful.

View 3 Replies

ActionScript 2.0 :: Code In On Loaded Movie Won't Stop After Unload

Oct 8, 2009

This is a PAIN. I always get grief if i try to use 'pause timline' code of any sort.[code]...

The 'CLOSE' button under it, unloads the level the vid sits in plus the butterflies swf just incase this devil code is still lurking. So go ahead and close it. And wait a few seconds and the WHOLE site loops.

View 9 Replies

ActionScript 3.0 :: Unload Externally Loaded Swf From Mc With Load Function?

May 20, 2010

I'm not new to flash as2 but as3 is a whole other animal to me. What I have is on button click my script will load a swf movie into a movie clip (videoLoader_mc). What I'm trying to do but can't seem to get is when the parent swf gets to a certain point in the time line I need it to unload what ever movie is in that videoLoader_mc. I've gone through ever tutorial I can find to no avail. [code]...

View 0 Replies

ActionScript 3.0 :: 3 Main Buttons Doesn't Seem To Unload Loaded .swf?

Jun 12, 2009

I'm trying to create app. that has 3 main buttons that goto 3 pages each with 15-30 buttons that each load external .swf that covers most of primary swf xpt 3 main buttons. Clicking on those 3 main buttons should unload previously loaded .swf and each loaded .swf should have preloader in its start.

1.) preloader works fine when i launch file separately, but when i load it from main .swf, it just shows "100%" at once...

2.) 3 main buttons doesn't seem to unload loaded .swf...

Main .swf code:

PHP Code:[code].....

View 2 Replies

ActionScript 3.0 :: Unable To Unload Content Loaded By Loader Class

Dec 16, 2008

I am unable to unload content loaded by loader class.

View 4 Replies

ActionScript 2.0 :: Unload The Button.swf?

Apr 24, 2003

how to unload a mc with this

on (release) {
loadMovie ("button.swf",_root.dropzone);
{

how to unload the button.swf

View 3 Replies

ActionScript 3.0 :: Unload Swf When Another Button Is Pressed?

Jan 16, 2010

i have a menu, that works with a xml file.the xml has the specific code that triggers the .as file:

HTML Code:
<buttons>
<button name="HOME" linkType="custom" link="home.swf" />

[code].....

View 5 Replies

Unload Gallery SWF By Clicking Button

Jan 21, 2010

I created a flash site and on the gallery page I load a gallery .swf and I want to be able to click on the "about" and "contact" buttons and have it go to there page and unload the gallery swf. This is the code I have on the gallery frame

import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad(){
var mLoader:Loader = new Loader();
[Code] .....

View 1 Replies

ActionScript 2.0 :: Trying To Unload External Swf With Button

Nov 30, 2010

im using the [code]function to load files into my fla .im trying to put a button in each of the loaded swf files that will tell the main fla to unload the swf and gotoAndStop(1)i have 3 buttons on the first frame of main fla. the first button has [code] different game.so i need a button to unload the game and gotoAndPlay(1) i know how to do this in as3 but im not to familiar with as2.

View 1 Replies

ActionScript 3.0 :: External SWF Unload Itself Using Button From Within?

Mar 15, 2011

Everything works perfect except for one problem I just can't figure out. On the homepage, called "home_page_swf", I have three buttons at the end of three paragraphs that say "Learn More" and need them to trigger the "home_page_swf" to unload itself and replace it with one of the other external swf pages. I basically want the three buttons within the "home_page_swf" to perform the same function as the "Services", "Portfolio", and "Team" buttons that are located in main swf. I've been trying to read up on it and I keep finding something about "Dispatch Even" but can't figure out how to apply it to the code I am using for the website I'm working on. I'll post the code below for the main navigation swf and what the labels are for the buttons that are inside the external swf called "home_page_swf".

Main SWF with main navigation buttons:
var Xpos:Number = 0.0;
var Ypos:Number = 0.0;

[code]....

View 1 Replies







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