ActionScript 3.0 :: Unload The External .swf File When Move On To Other Section?

Nov 21, 2011

The following code provided by Mr. kglad works great in loading an external .swf file onto stage. Now, when I click on Contact (Button), the external .swf file to be removedcompletely. How to code on contact (Button) to work it out.

Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){

[code].....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Play A Section On The Timeline And Then Move Onto Another Section Or Scene

Mar 9, 2009

I have a button that I would like to use with the basic actionscript as follows:

on (release) {
this.gotoAndPlay("15");
}

What I would like it to do is play a section on the timeline and then move onto another section or scene.

[Code]....

I know this is incorrect, so would anyone know how to write an actionscript button that plays a section then goes somewhere else?

View 4 Replies

ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

ActionScript 2.0 :: Unload Movie When Moving To Different Section Of Site?

Nov 26, 2004

On my site I have 5 buttons for navagation along the top, when you go to the Photos section there is a button that appears on stage and, when clicked, loads an external swf onto the stage, no problems so far.If I or the user clicks this button to load this external swf onto the stage and then clicks one of the other navagation buttons to go to a different section of the site, that external swf doesn't disappear.

View 1 Replies

ActionScript 3.0 :: Load The External Swf File And Unload The Parent Swf File?

Aug 17, 2011

i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose file1.swf is the main content file, but as i load file2.swf, i want the file1.swf get replaced by file2.swf. How could i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.

View 13 Replies

ActionScript 3.0 :: Unload External SWF File

Apr 17, 2010

I loaded an external SWF file, now I need to understand how to unload the external SWF file. Is it possible to add the code to the last frame of the external SWFs internal timeline, so when it exits the last frame, it unloads itself.The script to load the SWF is below. Can I add the unload code to the last frame of timeline of the SWF?[code]

View 3 Replies

ActionScript 2.0 :: Completely Unload External .swf That Loads An Xml File?

Feb 6, 2010

I have three AS2 swf files main.swf - very simple swf file with three buttons (home,btn1, btn2)

1.swf - an swf file that is launched by the pressing of btn1

2.swf - an swf file that is launched by the pressing of btn2

Home button simply removes the loaded swf and shows btn1 and btn2.

If I launch main.swf and click btn1, then 1.swf loads fine. I click home and click btn2.. 1.swf still loads! When I close main.swf and reopen, click btn2, then 2.swf loads fine. I click home and click btn1.. 2.swf still loads! WTSDLFKJ@##@$

This is why I ask how to completely unload the swfs? I've tried every different way to unload Google could show me.. unload, unloadandstop, etc. I've tried loading 1/2.swf as a movieclip and URLRequest. I've tried using two separate containers and loaders. Still the same thing.. the first opened swf is the only one that will open unless I close main.swf, reopen and then click the OTHER button.

I should note that 1/2.swf are flip book style applications that load external .xml data.

View 8 Replies

ActionScript 3.0 :: Load And Unload An External .swf File At Specific Frames Using LoaderMax?

Mar 8, 2012

I'm actually creating a pretty simple banner that needs to stay under 40k size. I'm trying to load and unload an external .swf to my main swf file. So far, I only managed to load my external .swf, without finding a way to make it appear and disappear at specific frames (the external .swf shows up directly at frame 1, then when the animation loops over, it stacks over and over).

I read some things about onEnterFrame and counters but still wasn't able to solve my issue.

Here's my actual code. It makes the "horse.swf" file (located in the same folder as my main swf) fades in into my main swf after it has been loaded.

By the way, I used The LoaderMax system from greensock. because it seemed lighter and easier to manage than the native Adobe Loader one.

Code:
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;

[Code].....

View 6 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

Actionscript 3.0 :: Make An Object Grow And Move To A Different Section Of The Stage When Click On It?

May 26, 2009

I have a mini-project where I want to make an object grow and move to a different section of the stage when I click on it. I know how to do this part, but what I want is for it to "move" there as if it were a tween, but I want to do it with code instead of with the timeline. I want it to function exactly as it does now, but with a motion tween. I also do NOT want it to jump back to the beginning when another button is clicked, but rather play from where it is. I've also attached the FLA with this.

Code: Select alllearn.addEventListener(MouseEvent.CLICK, learnClick);
learn.buttonMode=true;
act.addEventListener(MouseEvent.CLICK, actClick);

[code]....

View 1 Replies

ActionScript 2.0 :: Move Clip With External File?

Dec 15, 2004

If i have a clip on the stage with an instance name, can it be moved its x,y position with an external .txt file?

View 2 Replies

ActionScript 2.0 :: Target A Certain Section Of External Swf

Feb 27, 2005

I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.

View 2 Replies

ActionScript 2.0 :: Target A Certain Section Of External Swf?

Feb 27, 2005

I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.

View 2 Replies

ActionScript 2.0 :: Loading External SWF Clicking On Section Of Menu?

Dec 27, 2009

Let me descibe the method of my website fuctionality first, The hole website builded with AS2, The menu of this website call external swf files with xml (each section have swf file and xml file). When I click on the first section of the menu the external swf file loaded perfectly but when I call the second one the first one appear again. I tried to clear the cache between each selection but the same problem exist.

View 3 Replies

ActionScript 2.0 :: Load External Swf Files Into The Middle Section?

Sep 30, 2003

i have a movie and want to load external swf files into the middle section. my navigation allows users to access from 10 buttons. i can load the swfs either thru createEmptyMovieClip, or loadmovieNum. but i can't seem to control the levels. that is previous movies can be seen underneath the new loaded movie... i need to clear previous movie clip before loading the next, here is createEmptyMovieClip code.

this.createEmptyMovieClip("generic_mc",2);
generic_mc.x=0;
generic_mc.y=62;

[Code].....

View 6 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 :: What Is The Word 'section' In _root.section

Dec 17, 2003

on [URL] what is the word 'section' in _root.section? I assume it is a movie clip instance, but can't seem to find it on the timeline.

View 2 Replies

ActionScript 3.0 :: Use The Same XML File For Each Section

Jan 28, 2010

I have a function that loads and XML file. Which populates a scrollbar with images. I have three sections in my application Education, Hospital and Retail. The images being loaded differ in these 3 sections only by there placement. So for example, in education the image order is 1, 2, 3. For Hospital the image order needs to be 3,1,2 and of course Retail is say is 2,3,1. I might add that more then 20 images are being loaded and it is only the first 3 that need shuffled.

I want to use the same XML file for each section. Rather than duplicated the code 3 times and write 3 different XML files, can I move the images to the correct position say using a if statement like if(education == true); then image order = this; or if(hospital == true); then image order = this. Does that make sense? Is that even doable?

[Code]...

View 2 Replies

ActionScript 3.0 :: Load External SWF And Unload External SWF

Jun 13, 2010

I'm sure this question has been answered but I have been looking everywhere and all I can find is how to load an external SWF but not how to unload it. I come from a basic knowledge of AS2 and it was easy for me to load using levels but I have run into a wall. I have a main swf and to keep the initial filesize small I would like to split some image intensive sections out and load them when needed.

View 6 Replies

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

ActionScript 2.0 :: Create A Dynamic News Section That Works Off Of A XML File?

Aug 2, 2006

I'm trying to create a dynamic news section that works off of a XML file and I'm running into some problems. Here's the code I'm using right now

Code:
//load XML
xmlContent = new XML();[code]....

It seems to duplicate the movies correctly, but it won't load the XML into the corresponding text boxes I've created. I've included a link to the source files as well if anyone has a minute to take a look.http:[url]....getting the date from the attributes of the news item I'd like it to go in the "date_txt" box within the news module clip.

View 3 Replies

IDE :: Unload External Swf?

Apr 12, 2009

My index page has two buttons... 'about' and 'portfolio' which loads each respective external swf into a holder.When 'portfolio' is loaded there are another 8 buttons which again load 8 external swfs into a holder in the portfolio.swf. Each of the 8 external swf files load fine, but is there anyway to have a back button instead in each of the 8 external swf to go back to the portfolio.swf without having to click the 'portfolio' button?i have tried _root.unloadMovie.... but it just clears the stuff on my index page and loads the portfolio.swf

View 1 Replies

IDE :: How To Unload External Swf

Mar 18, 2010

i am trying to create a file where a mc hittest another object(using keyboard arrow) it loads an external swf and when keypress to leave the object, it will unload the external swf. my problem is the external swf did load but it wont unload. attached herewith my fla file for reference. script as below,

mcMain.stop();
var leftArrow:Boolean = false;
var rightArrow:Boolean = false;
var downArrow:Boolean = false;

[Code]......

View 1 Replies

ActionScript 3.0 :: Unload An External Swf?

Jan 20, 2010

I have a movie wherein on the stage I have a empty MC with the instance name of mainImage.

There is a menu with listeners that load in different swfs externally into this 'mainImage' clip. The problem I discovered is that I cant seem to unload the old swfs upon the loading of a new one.[code]...

View 2 Replies

ActionScript 3.0 :: Unload External Swf Self?

Jan 17, 2011

I am migrating to AS 3.0 from AS 2.0 and I am unable to unload a loaded movie self.In AS 2.0 i simply used "unloadMovie(this);" have also tried "removeChild(this);" but it doesn't work.

View 1 Replies

ActionScript 3.0 :: Unload The External Swf

Nov 16, 2008

I am loading 5 external swf's into 5 different "buttons".Right now they all load, but they load on top of each other.

View 2 Replies

ActionScript 3.0 :: Way To Unload External SWF's

Mar 22, 2009

I was finally able to work out a way to attach and preload external SWF files - now I am on the hunt to understand how to unload the external SWF file on a mouse event so that a new SWF file can be played.

View 20 Replies

ActionScript 3.0 :: How To Unload External Swf

Mar 7, 2008

I have a main SWF (=Homepage) which displays contents that are external SWFs. Now I have figured out how to load external SWF in my Homepage (when you click a button - see code below), but I don't know how to unload them according to my needs... See, I have a "close button" in every external SWF and with AS3, I'm a little lost on how I should proceed to make this button unload the external SWF displayed on the Homepage...

[Code]....

View 9 Replies

IDE :: Unload External Swf And Load New One?

Jul 29, 2008

I'm creating my portfolio in Flash CS3. I have five buttons in website.swf. I also have five external swf files.If you click a button, it loads an external swf. If you click another button, it unloads the first swf and loads the next one. Is there anyway to unload it and load the next?

stop();
function loadMain(e:MouseEvent):void{
var loadMain:Loader = new Loader();

[code]....

View 14 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







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