ActionScript 3.0 :: Code A Menu With Buttons That Can Go Back ?

Apr 5, 2012

I have a project I've been working on that, when properly coded, has a "main menu" with 4 "doors" (buttons). When the corresponding buttons to these "doors" are clicked, it should go to and play an external .swf file.If that doesn't make sense, think of a DVD menu. You click play movie, it plays the movie. When the movie is over, there's two buttons on that swf file to either play the movie over or go back the main menu, which is an external .swf file (Remember, we go to the movie from the menu, which is a seperate file). So far, the buttons work. The menu works. However, from the movie, at the conclusion, when I click the button to go back to the main menu, it displays the movie clip and the buttons, but none of the buttons work. I'm starting to think it has to do with the fact the main menu was written in AS3 and the movie was made in AS2. If anyone can assist me in being to able to keep both files and still navigate between the two, being able to bring up the menu from the movie and be able to play the movie again, and so on and so on. Here's the code for main menu, which I guess acts as the parent file, and the movie. If I get this to work, I essentially would duplicate the same actions for the other 4 doors, once I complete the environments for them.

Main.Fla/Swf (written in AS3)

(This is the action on the first frame, that has all the buttons. For this question, I'm just trying to properly code for 'Door4', which is the "door" to the movie.)

import flash.display.Loader;
 stop();
 var myLoader1:Loader=new Loader ();[code].....

View 6 Replies


Similar Posts:


AS3 :: Code For Next- And Back-buttons

Mar 28, 2011

I am building a image presenter in Flash with as3 but i need a piece of code to make the two buttons work correctly. The code i have is as2 and i get 10 errors using it.[code]

View 3 Replies

ActionScript 2.0 :: Particular Menu Script - Buttons Come Back To Original Place?

Sep 3, 2003

[URL] I need to know the script they have used for the 'when , how' buttons. I know its controlling movie clips using buttons. How do the buttons come back to original place?

View 5 Replies

ActionScript 3.0 :: Buttons To Navigate Forward And Back But Gets Stuck In Back?

Dec 4, 2010

Anyways I am using action script 3.0 and I created multiple layers using just one scene.  I created a layer with lables on them to mark where I want my buttons to point to and go to.  I have the stop (); on the first frame.  And I made my buttons mostly interactive with movie symbols and tweens.My first scene I have 2 doors, the user can pick which door to go to and it takes them into a different path.I made the buttons that are clicked to go forward, and then I tried to make an invisible button on the button edge of the scene to go backwards However, the PROBLEM is when I click my button to go backwards I am stuck on the first page and can't move forward.

function gotoOne(evt:Event):void{  gotoAndStop("one")}backbutton1.addEventListener("click",gotoOne);
function gotoFour(evt:Event):void{ 

[code].....

View 11 Replies

ActionScript 2.0 :: When Roll Out That Menu It Slides Back To The Pressed Menu?

Sep 10, 2004

i built this navigation bar where there is an arrow and menus - when u roll over a menu the arrow slides to it....now what i'm trying to do is that when u press a menu and then u roll over another menu and when u roll out that menu it slides back to the pressed menu - like a magnet affect..

View 9 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 2.0 :: Hierarchical Drop Down Menu - Make Every Sub Menu Item A Movie Clip And Insert Them Into Buttons?

Feb 12, 2004

I need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?

View 1 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 :: Buttons Within Movie Clip - Sub-menu Won't Stay Open In Order To Click On Buttons In It

Jul 25, 2007

I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?

[Code]....

View 2 Replies

ActionScript 1/2 :: Make A Menu That Has OnRelease Buttons On Top Of OnRollover Buttons

Mar 20, 2011

I'm trying to make a menu that has onRelease buttons on top of onRollover buttons (the onReleases are on a separate layer from the onRollovers). The onRelease buttons take the user to different urls, and the onRollover buttons are supposed to allow different parts of the menu to appear.

The onRelease buttons work fine, but I can't get the onRollover buttons to work consistently. Sometimes the onRollover buttons will correctly advance to a different frame, and sometimes they "stick" and do not advance. The script has no errors and I've tried changing the sizes of the onRollover buttons (in case they were too large and the cursor was hovering over more than 1 at the same time), changing the order of the code for the onRelease and onRollover commands (in case the onRollovers were being superseded by the onRelease commands), and countless variations of the layers and frames.

I'm sure that you'll want to see the script, but I don't think that pasting it all on this post would be reasonable? So I've put the .fla and the .swf on this page for reference: [URL]

View 6 Replies

ActionScript 3.0 :: Go Back To The Menu After The Flv Ends?

Jan 7, 2010

I have set my flash to full screen mode. It has a menu with several different flv movies. When I click on the flv it then goes full screen and I no longer see the custom buttons I created for it and at the end of the movie I have to hit the esc btn to get out of it. but when it is not on full screen i have it programmed to go back to the menu after the flv ends.

View 1 Replies

ActionScript 3.0 :: Send To Back Code?

Mar 18, 2009

I need to write actionscript for a code so that when I place two graphics on one another when I click them they go to the back, that way I can click them and they will alternate. How do I do this?

View 19 Replies

ActionScript 3.0 :: Back To Main Menu Button

Jul 16, 2009

I'm working on a little project where I have a list of working text I converted to buttons and scituated vertically along the left hand side of the stage. Each button when pressed, triggers a different image with some text. This all works great. The problem is that I have a "Back to Main Menu" button located at teh bottom center of the stage. When depressed, I want this button to clear out the image and text on the stage and leave the user looking at just the original list of buttons along the left hand side of the stage.
 
I can easily get the main menu button to do this for my first image and text. Here's the code for that:
 
gbtext_btn.addEventListener(MouseEvent.CLICK, playGearbox);
menu_btn.addEventListener(MouseEvent.CLICK, stopGearbox);
function playGearbox(event:MouseEvent):void {    gearbox_mc.visible = true;   

[Code].....

View 1 Replies

ActionScript 2.0 :: How To Close Menu Or Reset It Back

Jan 29, 2009

I have a movie clip that sits just of my stage. When clicked the mc slides out based on the _x,_y position. The problem I have is how do I close my menu or reset it back to it;s original position as to appear closed. Heres the code I've placed in the timeline:[code]indicate what code would I use within the 'else statement'. I have this cmmon problem when I want a button to provide a loop type function. I.e toggle sound on and off with one button.I want this menu to be available all the time so it would sit in the _root (index swf file). The rest of the pages are called using loadMovie as external files.

View 1 Replies

ActionScript 2.0 :: Menu - Snap Back To The Location

Nov 17, 2004

I made it so when the user clicks on a link the menu moves to a new location...that works fine. If I make it so the user can also drag it, the whole thing gets messed up because the menu is always trying to snap back to the location.

View 2 Replies

ActionScript 2.0 :: MX04 Button Drop-down Menu That Goes Back Up

Mar 28, 2009

I have a menu for a website I'm making that consists of buttons that play a drop-down menu movie clip when the mouse moves over them. The problem is, if the user moves the mouse off the button the movie clip stops playing and disappears. I would like it so that if the user moves the mouse away from the button, the drop-down movie clip will reverse itself from its current position and move back up into the button.I've been trying to use the on (rollout) condition, but it doesn't seem to do anything.

View 1 Replies

ActionScript 3.0 :: Roll Over A Button In The Menu It Scrolls Back Up?

Dec 18, 2009

I've got a slight problem with a drop down menu.. Obviously ha. Whenever I click to drop down the menu that works fine; however, when I roll over a button in the menu it scrolls back up..

[Code]...

I've also attached the fla to view in cs4 and cs3 formats.

View 2 Replies

ActionScript 3.0 :: User Goes Back To The Menu And Tries To View The Larger Swf?

Jul 23, 2009

I have a large swf that needs a preloader. With a normal preloader it took a couple seconds and then came in loaded halfway through. To solve this I created a small swf that loaded first and then loaded the larger swf through this one.

[Code]...

My problem: when the user goes back to the menu and tries to view the larger swf again the script that checks if it has loaded (and it has been loaded completely already) does not fire and therefore the file will not play again.

View 1 Replies

ActionScript 2.0 :: Write A Code That Switches Back And Forth Between A Certain Color?

Apr 6, 2005

I just had a quick stupid question. I'm trying to write a code that switches back and forth between a certain color. If you click it, it turns green, if u click it again, it turns back to its normal color and so forth.

I tried just using a function in the timeline but it doesnt seem to be working:

Code:
function colorSwap() {
switcher = 1;
btnn.onRelease = function() {

[code]...

View 4 Replies

ActionScript 3.0 :: Creating Drop Down Menu When AddEventListeners To Check The Clicks On The Invisible Buttons On Frame 19 Of The "menu" Movieclip

Nov 10, 2009

I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]

View 2 Replies

Professional :: Click Onto Another Menu Tab And Then Switch Back To Home The Swf Has Dissapeared

May 11, 2010

I've created an swf file in After Effects and uploaded it to my website. It works fine, HOWEVER. when you click onto another menu tab and then switch back to Home the swf has dissapeared.To see for yourself look at [URL]

View 9 Replies

ActionScript 3.0 :: Handle Back, Menu And Home Button On Android?

Aug 15, 2011

I'm developing an Adobe Air 2.6 app for android tablets (using ActionScript 3.0 and Flash Builder 4.5).I want to know how can I handle user back key press.

View 1 Replies

ActionScript 2.0 :: Stery Code - MC Moves Back And Forth Once It Reaches It's Destination

Jan 15, 2009

[Code]....

instead of moving to 'distance' and staying there, the MC moves back and forth once it reaches it's destination. this is because even when _x = distance, the first if statement (_x<distance) keeps executing. At first I thought this didn't make any sense, and there has to be a reasonable explanation. I've managed to isolate and even solve the problem, but the mystery remains:

[Code].....

View 1 Replies

ActionScript 2.0 :: Looping Menu - Go Back To Frame And Play From There So It Would Loop All Until The Button Is Clicked

Apr 10, 2010

I've got an intro for a movie,and a single button appears around frame 58,and I've tried giving it a function so it will skip to fram 478 and play the whole movie from there on:

PlayCompl_btn.onRelease = function() {
gotoAndPlay(478);
}

but it keeps saying "statement must appear within handler" and I've got the same problem when the movie reaches frame 477 I want it to go back to frame 58 and play from there so it would loop all until the button is clicked:

PlayCompl_btn.onEnterFrame = function() {
gotoAndPlay(58);
};

View 9 Replies

ActionScript 3.0 :: Creating Global Values - When I Go Back To Main Menu Errors Keep Showing Up?

Nov 8, 2011

I'm a begginer flash game developer-ish individual working on my first project - An economic game with RPG elements, I'm mixing AS 3.0 with Flash CS5 (for the graphics, buttons, tweens and the simple stuff in general since it's easier for me atm than scripting it). The trouble started when I had to script in variables. I've sorted out a couple of issues but a few still remain:

1. I need to limit three of my main skills to 0-100. Only managed to stumble across tutorials for AS2,

2. Each character will have 3 main skills, and then the 18 secondary skills will be calculated from those 3 values. This works fine, when I modify existing variables directly in the code. The thing is that I created those buttons that add or subtract from a certain skill value, but when I press them the var changes but all of the 18 skills remain unchanged (as if they do not refresh themselves - i was thinking about an eventListener waiting for a change in skill value but if I would have to do one for every one of the 18 skills in conjunction with the 6 buttons to change levels - so 144 functions - im thinking maybe an array...but I'm such an actionscript newb that I can hardly translate the tutorials into my ideas.

3. Also wondering how to create a pool of unused skill points so when I add points I can't max it out right off the bat but rather take it from that value instead and once it's 0 you can't add points anymore.

4. Last but not least, I'm having trouble creating global values. My main menu is in scene1 and when I press Newgame it goes to scene2, the problem starts when i go back to main menu errors keep showing up (since scene 1 has no information about statistics but a function probably keeps asking )which means that the program can't get access to an attribute or a method of reference for the null object at MainMenu_fla (don't be fooled by the file name, I have everything in 1 fla file)Of course an error pops up for every skill, main or secondary.

View 2 Replies

Get Back Action Script Buttons?

Aug 4, 2009

One if the reasons I used Flash 5 for my personal company website was the really simple programming through action script buttons an fill-out-forms (you know: Gotoandplay, fill out this, click there and so on ...).Im a good artist but im terrible att programming! Anyways now I got one of the latest versions of Flash and action Script is definatelly still there but in soooo many versions and and those action script buttons and fill-out-windows are not there any more, so Im lost! I dont have Flash 5 anymore otherwise I would use it.

Is there a button somewhere so I can get back my "useless newbie action script buttons"? Or what should I do?

View 6 Replies

ActionScript 3.0 :: Next And Back Buttons Not Working

Nov 8, 2010

I am making a test that when you hit next it goes to a specified frame and if you hit back it goes back to the previous specified frame. The code works when I go through the code once all the way forward and back but once I try to move forward again it skips over all the inbetween pages and ends at the final page. The back button code works fine it is only the NextBt code that isn't working right.

[Code]...

View 9 Replies

ActionScript 2.0 :: Adding Back And Next Buttons?

Sep 3, 2009

I am working on the tutorial [URL]

The tutorial uses a multiline textbox to display data from MySQL but I wanted to know how I would code if I used a SINGLE LINE textbox and added a BACK AND NEXT BUTTONS to show one record at a time.

View 0 Replies

ActionScript 2.0 :: Use Back / Foward Buttons In IE?

Feb 23, 2004

I need to know how to use the Back/Foward buttons with IE. I have a movie that has several frames. Each frame is a section of the page. If you go to a different section of the page, I want to be able to use the back button to go back to the previous section you were at. I have searched around and found this, but it is of little help to me. I don't know anything about how to use Javascript and flash. URL] I have heard rumors that there is a way to do this with named anchors?

View 2 Replies

ActionScript 2.0 :: How To Create Back Buttons

Sep 14, 2006

How to create a back button, like you see in all the flash games instruction pages. I am using Flash Professional 8

View 7 Replies







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