ActionScript 3.0 :: Adding Unload On Main SWF And 12 Other Files

Mar 6, 2009

I have a main swf that loads 12 other swf files. The loading works. What I need is closing what just loaded. I created a close button Btn1 on all 12 other loaded files. It looks fine but if you keep clicking in a different names the speed of the main swf slows down each time.

Code for Btn1 in all 12 files :
Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndStop(16);
};

I am not sure if I need to add an unload on my main swf or on the 12 other file instead of the gotoAndStop. Here is the url to the project. [URL].

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Unload Image Rather Than Adding Another Button On Main Flash File

Mar 12, 2011

I can load the image by pressing the green button (see attached file). However, How do I UNLOAD the same image by clicking onto the image, rather than adding another button on my main flash file. This means that as soon as the image is loaded, the user can click on the same image to unload it.

View 3 Replies

Actionscript 3 :: Unload Content - Main Menu?

Mar 31, 2011

i am new to flash actionscript 3 and trying to learn. I have a made a simple menu that has "start game" option. When the uses preses "start game", i hide the menu and the game starts. Now if i want to go "quit" and go the menu screen, how can i do this? How do i erase/stop the game that the user just played?

View 1 Replies

ActionScript 3.0 :: Main .swf To Load And Unload Scene.swfs

Aug 11, 2009

I've just recently made the leap from AS2 to AS3 and after several days of reading the CS4 help and searching posts here, I'm still at a loss how to get my first AS3 project off the ground.I'm working on an illustrated choose-your-own-path story with each step split into seperate swfs to speed up loading time.I've got a main file loading a scene swf using.[code]The loading works fine (although I've just found a post that suggests I should wait until the swf loads before adding it as a child), but how would I then get the buttons in the loaded swf to tell the main swf which swf to load next?I'm stumped firstly by that, and additionally by how I should then UNload the swfs. Is it not common practice to refer to objects by their '.name' in AS3? Should I be loading the swfs into an array?

View 1 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 :: Unload Main-menu Then Loading External Swf?

Feb 11, 2010

My project is PC software and not related to web.It contains of Main menu and 3 external SWF (Total 4 Files).Inside the Main-Menu 3 buttons , when the user click on button # 1 or # 2 or # 3 I want a code to unload the main menu first then open external swf # 1 or #2 or #3 depending on which button user click.I use this code to load the external SWF:

Code:
var myLoader:Loader = new Loader;
addChild(myLoader);
var url:URLRequest = new URLRequest("f1.swf");
myLoader.load(url);

Its working fine but the problem it load the external swf with the main menu in the same time! what I want a code first unload Main-menu then loading external swf. and another code in external SWFs to exit to Main-Menu with ofcorse unload the swf first then exit to main-menu.

View 5 Replies

ActionScript 2.0 :: Load/unload A Movie Located On The Main Scene?

Feb 25, 2003

How can I load/unload a movie located on the main scene, from a movie clip, or vice versa. Right now I can only load/unload a movie if located in the same timeline.

View 2 Replies

ActionScript 2.0 :: Load And Unload .swf Files?

Dec 16, 2002

im working on this wesite and I can't seem to get the pages which are all individual swf files to do what i want them to do. here what I have so far. www.jcgsolutions.ca/fever/index.html. the pages move in from the right and disappear when the another button is pressed. i would like each page to scroll out the same way it scrolls in. I not sure how to accomplish this with actionscript because for one i'm not the best programmer and two I'm not that comfortable with Flash yet.

View 6 Replies

ActionScript 2.0 :: Clear Memory Or Unload A Swf File Through Html Or Through The Main Menu Swf?

Jan 21, 2004

I have a menu and each button reveals a hidden layer which includes it's submenu (another swf).The submenus have sub-submenus in the same swf.When I take the mouse away from these layers the submenus hide again.All these work.The problem is that when a sub-submenu is opened and then the layer hides, when it's shown again the sub-submenu is still opened.Is there a way to clear memory or unload a swf file through html or through the main menu swf?

View 2 Replies

ActionScript 3.0 :: Swf Files To Unload When An Different Buttons Is Clicked?

Jul 28, 2009

I recieved some help earlier with actionscript 3.0 and buttons. I wanted my buttons to load in a swf file into the main flash document when clicked. I can't seem to figure out how to get multiple swfs files loaded into the flash document. I also need the swf files to unload when an diffrenent buttons is clicked.

[Code]...

View 18 Replies

ActionScript 3.0 :: Load And Unload External Swf Files?

Jul 11, 2011

I have a site that loads external swf files using the loader in AS3:

Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("myexternal.swf");
myLoader.load(url);

this works wonderfully, but what I need to do is have a button in the this SWF, when clicked, unload itself, and load a different external SWF.

View 9 Replies

ActionScript 2.0 :: Unload The .png Files W/o Killing The Loader?

Jan 7, 2007

I have several thumbnails in my portfolio that dynamically load a .png file into the Loader component called myLoader.Followed the tutorial from Kirupa. Simple enough.

Code:
on(release){
myLoader.contentPath = "1-0.png";
}

When I (user) goes to click on a different client to view different work, artwork from the current client is still loaded, or being shown. I have the same myLoader Loader spread through the frames.I tried to put this

Code:
on(press){
unloadMovie("myLoader");
}
on each client button to clear the Loader before you go to each section, but that makes it disappear all together, than when you go to click a thumbnail, nothing happens because the Loader is gone.Is there a way to unload the .png files w/o killing the loader? Should I use a separate loader for each client? or will that just get messy.

View 2 Replies

Flash :: Ruby Server - Unload Previous Files And Eliminate The Garbage Build Up?

Feb 19, 2010

I have a working TCP/IP socket server that loads 3-flash files in succession. How can I unload previous files and eliminate the garbage build up? 2-Flash clients are active, 1-the loader, 2-the next Flash file being loaded, however "the Flash files don't unload." Maybe there's a "put - kill" method or something similar to addChild removeChild in as3.

[Code]....

View 2 Replies

ActionScript 3.0 :: Adding An Intro MC To Main Timeline?

Jun 30, 2010

I created an intro_mc on frame 1 of my main timeline that I want to play before loading the rest of the site. I have nothing else on the first frame except intro_mc, and actionscript.Script on main timeline is: intro_mc.gotoAndPlay(1);top();The timeline inside intro_mc has this actionscript on the very last frame:gotoAndPlay(2, "Scene 1");So right now, the it just stops on the first frame. If I take out the stop(); action, it just skips over my intro_mc and loads the whole site.

View 2 Replies

ActionScript 3.0 :: Adding Child And Stopping Main Timeline?

Sep 3, 2010

So I am loading in external swfs and once loaded in I want to stop the main timeline. so I do the following.

var swf : MovieClip = e.target.content ;
swf.stop();

which doesn't work, because I have trace statements in the external swf which fire off after that command is called. Which, here is another weird thing, When I trace through the loaded swf, it says it has two children, a shape, and a Loader. The shape is weird because what I have is another movieclip on stage so I should get instaceXX, and I dont know where that Loader class is coming from.

which also brings me to another question which is everytime I add the swf to the stage it duplicates the instance, and I run out of memory really fast after I keep removing and re-adding it. all I call is.

targetMC.addChild(swf);

then after the swf dispatches an event saying its done.

targetMC.removeChild(swf);

View 1 Replies

ActionScript 3.0 :: Adding Objects To Main Timeline With Code?

Jan 13, 2011

I need to find out how i can add those same movie clips on the main timeline with code..So i need to figure out how to take objects from the library and add them on stage (main timeline) using code..

View 8 Replies

ActionScript 1/2 :: Adding Submenus To An Xml Driven Main Menu?

Sep 10, 2010

I have been following and bastardising a computer arts tutorial for a dynamic flash site, its a really good tutorial and I'd like to keep going with that format/style, but I'm pretty new to the whole scripting thing and am finding it a bit of a headache, so was wondering if any kind souls would help me work out how to add submenus to the code below.the main menu button is a movie file(btn_projects_main) consisting of a button (button) and a text box(txt) and is 3 frames long to allow for the different states: What I'm looking for is a set of sub menus which load horizontally below the main menu buttons, here is the code which has been altered slightly (thanks to Ned Murphy for his help and patience with that)

// Setup some initial variables
// Hide the button that will display a web link_root.theUrl._visible = 0;
// Hide the image icons in the project loader// The image icons are simply there to make

[code].......

View 4 Replies

Flex :: Adding MXML Component As Child Of Main App Using AS

Apr 26, 2010

How can I add an MXML component as a child of the main application using ActionScript. It's not possible to instatiate it, is it? Assuming that behind every mxml file stands an actionscrpt3 class, I tried to import it but id didn't show up.

View 1 Replies

Professional :: Adding Xml Or Other Files?

Aug 12, 2010

i was woundering at the moment my website only has flash objects like navigation bar and ive just madea post saying il pay 20 pound for people to fix my errors

but while i wait for people to reply to that. i was woundering, on my flash site i want a login page relam status but i have been told i can't make them in flash, cause flash just isn't good, its only good for website images etc, not for login details etc

so how would i go about mnaking my realmlist status and login on there?

View 1 Replies

ActionScript 3.0 :: Adding URL With XML Files?

Sep 18, 2010

i want to add getURL() to flash xml gallery images. at present my script is loading external images fine. but i need to give images hyperlink. how is it possible.

[Code]...

View 1 Replies

IDE :: Adding Icons To Swf Files?

Jul 11, 2011

Is there a way so that I can add icons to my swf files? Or can I convert them to .exe and then add icons to them?

View 8 Replies

Professional :: Adding Music - Stop And Play Buttons On Main Page

Nov 9, 2010

I have my mp3 audio clip and made my play and stop button. I am using cs4 and as3. I want to have the play and stop button on my main page but still have the music play when the users clicks onto one of the buttons which takes them to a new page.

View 6 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 3.0 :: Loading 2 Swf Files Into A Main Swf?

Dec 30, 2010

I have created a main movie which I would like to load 2 external swf's in succession.I would like that when the 1st swf is finished playing, it should be replaced by the second swf. I would also like that there be no blank screen in between the unloading of the 1st swf and loading up of the 2nd swf.

View 12 Replies

Externally Loading 5 Swf Files Into Main Movie?

Sep 2, 2010

Im have 5 swf files that I want to play one after another on my home page.

I would like to have the first movie load and play and while that is going on have the others downloading in the background so they are ready to start when the first movie finishes.

After the 5th and last movie has played I would like it then to return to the first movie and just loop this process continually.

I have attached what I have at the moment which is a file called demand.fla that uses buttons to load in demand001, demand002, deamd003 etc.

Ideally i would like demand to load in each slide automatically and then have flashmove onto the next one after 5 seconds or so.

[URL}

View 2 Replies

Professional :: Load Swf Files In Main Movie?

May 27, 2011

I have the following to load swf files in my main movie. The first swf files that loads has a movie FLV file in it. When I unload that swf file, with the below, the swf seems to get removed, but the audio of that flv keeps playing. What do I have to do, to completely remove that swf file.  

private function loadNewSection(e:ProjectEvent):void
{
while ( content_mc.loaderClip.numChildren > 0 ) {
content_mc.loaderClip.removeChildAt(0);

[Code].....

View 3 Replies

ActionScript 2.0 :: Loading Several Swf Files Into Main Movie?

Apr 7, 2002

Im loading several swf files into my main movie, How do I load the swf's and have them display like:

swf1 | swf2 | swf2.. and so on?

View 4 Replies

ActionScript 2.0 :: Unload Movie Stuff - Current Swf To Unload And The New One To Load Only After A Transition Occurs

Jun 16, 2003

I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?

View 2 Replies

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 :: 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







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