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


Similar Posts:


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 :: 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 :: Flash - Loading External Content On Top Of Main Content?

Jan 28, 2011

I'm loading one SWF into another but the internal one is coming over the main content and that can't happen.here is the part of my code where the external content is being loaded anyone hason what I can do to fix this? here is my code:

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;

[code].....

View 2 Replies

ActionScript 1/2 :: Finding Content On One Of The Pages In The Content Menu?

Oct 29, 2009

I am a designer working in a flash file on the navigation part. The web site (is not yet posted) works fine but I need to change the contents when the menu is clicked (contact us, etc. ..). I need to find where the information is so I can change the address, phone number, info. but I have looked everywhere and cannot find it. Where could it be hiding?

[Code].....

View 4 Replies

ActionScript 2.0 :: Can't Unload XML Content

Feb 1, 2005

I'm having issues unload links that are brought into FLash using XML.What i want to do is have the xml info load for the first frame but unload for all other 4 frames.URL...

View 8 Replies

ActionScript 2.0 :: Can't Unload XML Content?

Feb 1, 2005

I'm having issues unload links that are brought into FLash using XML.What i want to do is have the xml info load for the first frame but unload for all other 4 frames. I know this is possible because i saw it done, but i have no idea how to do this.

View 11 Replies

ActionScript 2.0 :: XML Drop Down Menu - Get The Submenus To Push The Rest Of The Main Menu Down On Rollover?

Mar 10, 2006

I have created an XML driven Drop Down menu using the kirupa tut by Senocular found here. I am trying to figure out how to get the submenus to push the rest of the main menu down on rollover kind of like this. Not sure where to start to get the AS to get the button created fromt he XML nodes to move down.I haven't changed the code found int he tut too much and the menu works fine except that the rollovers just go over the main menu.

View 1 Replies

ActionScript 3.0 :: Unload Content In A Loader?

Feb 9, 2010

I have a URLloader that load an xml file, what i need is to be able to clear whats in the loader once the data of my xml has been loaded, is it possible to use unload in the on complete function? for example[code]...

View 3 Replies

ActionScript 3.0 :: Unload Content Of One Xml File?

Apr 11, 2009

I have a loaderIt loads xml files, which are like galleries (each has many image paths inside)I loop over the xml nodes to get all the image pathsI create a new loader for each image (called imageLoader), and dump each one within a movieclip which is on the stage (called _storage)I need to switch between galleries so I need to unload the content of one xml file, then load a different one Does that make sense? My problem is this - currently I am simply removing _storage then creating it and loading into it again when I want to switch galleries. It works, visually. The galleries switch...but I don't think the images are actually being removed.[code]....

View 13 Replies

ActionScript 3.0 :: Creating A Menu With Three Movieclip Buttons On A Main Menu?

Nov 12, 2008

I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.

View 4 Replies

ActionScript 2.0 :: Get The Sub Menu To Jump Back To The Main Menu?

Sep 8, 2002

I'm working on a web menu, that has sub menus. I'm currently trying to get the sub menu to jump back to the main menu if the mouse is no longer inside the submenu zone.

It works if I move the mouse quickly to another part of the Flash area, but if I quickly move it out of the Flash area and onto say the html document, it doesn't update fast enough, and thus still thinks the mouse is hovering over it.

I know I can simply update the movie frame rate which does work, but I was wondering if there is any way to get Flash to check to see if the mouse IS ACTUALLY ACTIVE over it, and if not close the submenu?

View 4 Replies

Actionscript 3 :: Unable To Unload Content In XML Gallery

Mar 26, 2010

I have an XML gallery and I want in the next button function to "unload" all content and load new XML file.[code]...

View 1 Replies

ActionScript 2.0 :: How To Get First Sub-menu To Unload

Jan 2, 2009

Does anyone know how to, or of any tutorials that have drop down menus like this:[code]I don't mean the way it moves around, but how the sub-menus load underneath.I want to create a horizontal navigation where you click on a main button, and a sub-menu loads underneath the main navigation. Then I want the same for the other buttons. But I can't figure out how to get the first sub-menu to unload when the new sub-menu loads.

View 1 Replies

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

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 3.0 :: Child Requesting Parent To Unload External Content

Jun 19, 2011

If you haven't met me yet, that's because I'm pretty new around here. I picked up ActionScript just earlier this week, actually. Name's Kate. Nice to meet you. All righty. I'll start by saying that I've been referencing this thread:

actionscript.org/forums/showthread.php3?t=222486
(I'm not allowed to post URLs until I've got at least 50 posts in?! Gasp.)

View 2 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 2.0 :: Unload A External Movie With A Xml Menu?

Mar 8, 2009

i have this menu, that has the general actionscripting on the button, but the characteristics are in the xml file... color, and file name..

in the main movie, the button's actionscript i have:

ActionScript Code:
// On press goes to the link setted in the xml
area.onPress=function(){

[Code]....

what do i do to unload the movies each time another is loaded?

View 1 Replies

ActionScript 2.0 :: RemoveMovieClip - Unload Menu OnRelease

May 10, 2006

I am using this script in the 1st frame to load external XML file

PHP Code:
this.createEmptyMovieClip("container", this.getNextHighestDepth());
var myXML:XML = new XML();
var links:Array = new Array();
myXML.load("myMenu.xml");myXML.ignoreWhite = true;
myXML.onLoad = function (success:Boolean){
[Code] .....

In the same frame I have another button, on release I want the actionscript to unload this menu. I tried using
PHP Code:
_root.myXML.removeMovieClip();
But seems not working out.

View 2 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 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 2.0 :: Add Sub Menu To The Main Menu - Url

Nov 17, 2009

i have template monster in flash an i customizing it i'm trying to add sub menu to the main menu i know how i can add it but my problem is how to direct the link in sub menu to page i want here's the fla file may be can find some [URL]

View 1 Replies

Can't Get Main Content When Load A Swf Which Has TLF Included

May 10, 2010

In one of my project, I will load a swf after a button click. I use Loader and try to access the document class by Loader.content as Movieclip. But I find if the target swf contains TLF and if you set the publish property to RSL instead of "merge into code", the content of Loader will be set to some "__Preloader__".

View 2 Replies

ActionScript 2.0 :: Way To Keep Loading Content To Main?

Dec 9, 2006

i have a main swf with 5 menus and i want to , when i click on one buton the meuns will apear ( they have exactly the same size as the main movie)im trying with loadMovie but i cant make it work cause, when i load the new menu, i cant go back to the main one.

View 6 Replies

ActionScript 3.0 :: Naviation Content In The Menu?

Oct 29, 2009

I am a designer working in a flash file on the navigation part. The web site (is not yet posted) works fine but I need to change the contents when the menu is clicked (contact us, etc. ..). I need to find where the information is so I can change the address info. but I have looked everywhere. I did not create the file so I am stuck. Is anyone able to help? Is there anything in the file I can post that would help solve this?

[Code]...

View 1 Replies

Flash Menu Html Content

Jan 8, 2009

i'm learning flash and I've stuck on a problem. I have web page in php and i wan't only flash menu. The problem is that when i make geturl in actionscript the new page open, but i wan't that only content refresh.URL...

View 14 Replies

ActionScript 2.0 :: Next Button For XML Menu Content?

May 4, 2010

How do I write a function for a next button - to use with the following script:Once you have selected an item from the drop down I want to navigate next/back with seperate buttons to avoid having to use the drop down menu each time.

View 2 Replies

ActionScript 3.0 :: Moving And Running Main Content From Second Or Third Frame?

Sep 5, 2011

I've been able to connect with a DB, use a server side ASP script to check a user name and password in the SQL Server DB and get back a score number.

login_bttn.addEventListener(MouseEvent.CLICK,sendData,false,0,true);
function sendData(event:MouseEvent):void{
var userName:String = username_txt.text;

[code]....

View 3 Replies







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