ActionScript 3.0 :: XML Menu - Make Buttons Do Stuff When Clicked

Feb 27, 2009

My teacher in Adobe Flash CS3 is so slow with the teaching (and some doesn't understand what the .alpha = 0; does in my class so he has to teach them and they just keep us at thesame level). We has just taught my class "trace". Anyways, my problem is this: I've made a XML file which gets loaded into Flash and it gets my animation and adds the labels to the buttons, so far so good, but I am trying to make these buttons do stuff when clicked, like (website menu) if you press "contact" it will show "contact" and if you press "home" it will go to "home" etc.

As I said I'm a bit of a noob to AS3 (started to go through it in class 2weeks ago, but as I said he teachs very slow we are better off on ourselves) so I'm not that sure off how to do this. before starting to talk what I've tried I'll give out the code (it's done after one tutorial with some modifications). Tutorial is found here: [URL]

[Code]...

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Unable To Make Some Nice Animations,buttons And Stuff?

Apr 28, 2005

I've only used flash for 5 months now. As you expect, i'm a super novice. I've been trying to follow the books, tutorials i fould on web and was able to make some nice animations,buttons and stuff. But i'm not a programmer, i never been one and i just don't think i got the brains for it. I just know a little bit. Like i said, it's only been 5 months so i only know how to change other's script to suit mine, i can't create any complicated from top of my head. My question is...do I HAVE TO be an expert to make websites with Flash? After all, i'm only learning Flash so I can make interactive websites. I'm not looking forward to making games or drawing boards or anything. Just websites. How much knowledge of Actionscript(or XML) would I need to make a flash only website?

View 4 Replies

ActionScript 1/2 :: Main Window Animation To Fly In When Clicked On Different Menu Buttons

Mar 9, 2010

For a flash website I'm creating, I want my main window box with all the information containing it to fly in when a menu button is clicked. I can't figure out the actionscript to do that. It's the same thing as this website's main window:

[URL]

View 3 Replies

ActionScript 2.0 :: Create A Function That When One Of 'main-menu' Buttons Is Clicked

Nov 23, 2005

I'm currently working on a project were I would like to enlargen some of my menus ( there are wround 30 menus ), and this should be done when the user clicks a on one of the three buttons in the "main-menu".Now, I've been trying to create a function that, when one of the "main-menu" buttons is clicked, are called. This function then defines the menus and makes them scale, however the following code returns: "undefined".[code]Maybe a "for" loop isn't the solution, or maybe I'm just trying to define the items in a wrong way, with the array thing ( "...item[q].sca...").Btw. all the menus are loaded in dynamically through an XML document.

View 3 Replies

ActionScript 2.0 :: Sliding Menu - Buttons Can Still Be Clicked While The Mc Is Easing Into Position?

Nov 25, 2003

I've created a sliding menu that has a left button and a right button. Each button slides a background movieclip to the left or right. The background mc eases into position when one of the buttons is clicked. Problem is that buttons can still be clicked while the mc is easing into position. This throws off my x coordinate positioning of the mc. I've tried disabling the buttons and enabling them again at a few different points in my code. I've also tried using a time delay to enable the buttons but my logic isn't working.

View 5 Replies

Android - Mobile Use The Menu-stuff Provided Or Is It Better Not To Because The Iphone Does Not Have A Menu Button?

Sep 16, 2011

I would not have asked the question if I owned an iphone, but so far I only have an android phone for development.

The question is: Should I use the View.viewMenuItems that are provided by flex mobile? Or should I better embed the functionality in another way? I don't know what possibilities might exist on iphone to open the menu, because it has no hardware button "menu".

By the way: How could I open the menu in the Flash-Builder mobile device emulator - there are no buttons, too..

View 2 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 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 :: Make The Individual Icons Open Separate Menu Once Clicked In The Way The IPhone Does?

Feb 2, 2012

how to make the individual icons open separate menu once clicked in the way the iPhone does i know i would have to use an eventListener and basic tweening to make the new screens appear in the iphone like way but i just don't know how i would use this:

import fl.transitions.Tween;
import fl.transitions.easing.*;
var sliderBind:Rectangle = new Rectangle(2.25, 1.20, 174, 0);
homeScreenInterface_mc.visible = false;

[code]....

View 3 Replies

ActionScript 3.0 :: Make Menu Buttons Have Different Actions?

Apr 27, 2010

I have 2 classes that deal with making my menu. One creates a button and the other creates a menu using the buttons. I have XML set up to set the text in each button. What I cannot figure out is the best way to have each button do something different. I do not have much time to complete the site so the way I thought about doing it was giving each of the buttons a name and setting that to what the text was inside the button. All this is happening in my menu class. [code]...

View 2 Replies

ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 Replies

Actionscript 3 :: Buttons Do Not Work / Make A Screen With A Menu?

Aug 6, 2011

I have the following problem / bug:

I made a custom button-class (called CustomBlitButton) where a button is defined. The roll over-states of the button are defined inside of the class CustomScreen. That's because a custom screen holds one or more buttons. I can create a button when using the createButton-function of the CustomScreen-class.

So if I want to make a screen with a menu, i.e. several buttons I do this like that (this is just an excerpt):

[code]...

View 1 Replies

ActionScript 3.0 :: Make Menu Buttons To Be Dragged To Navigate?

Jul 20, 2010

I wanna make menu buttons to be dragged to navigate, I could drag the menu up and down with the as3 as follow.

but whenever click it to drag again, starting point of the menu move where I click on the board. I want to make the menu start to move from the point the mouse out.

I think this part should be done with something else.

" menu.y = board.mouseY; "

ActionScript Code:
var board01:Sprite = new Sprite();
stage.addChild(board);
board01.graphics.beginFill(0xCCCCCC,0);

[Code].....

View 2 Replies

ActionScript 2.0 :: Make A Dynamic Menu - Wrong Buttons References

May 15, 2010

I'm trying to make a dynamic menu. I load four buttons to the stage and applie code to each of the buttons. But it's only the last button loaded, that responds to onRollOver/onRollOut If I roll over the other buttons it's the last buttons that reacts all the time. I just can't see what's wrong. I'm sure it pretty simple. Here's the code:

[Code]...

View 2 Replies

ActionScript 2.0 :: LoadClip Stuff - How To Turn On Buttons

Jul 15, 2005

I've got this code and I need to know how to turn my buttons back on once my swf is completely loaded. I read somewhere that using the loadClip class is easy because it takes less code, but I just don't understand what it's doing with this mc1 object and listener object. I could put code into each of my movies that I'm loading that says
_root.menu_mc.enableButtons();
But shouldn't I be able to do it from within the loadUpMovie function I wrote?

Code:
//from [URL] loading_movies.php
var mc1:MovieClipLoader = new MovieClipLoader();
var silentListener:Object = new Object();
mc1.addListener(silentListener);
function enableButtons(){
[Code] ......

View 1 Replies

ActionScript 2.0 :: Buttons That Stay Clicked Until Another Is Clicked?

Feb 8, 2011

I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...

View 9 Replies

ActionScript 2.0 :: 3D Rotating Menu - Make The MC-s Cklickable=working As A Buttons With Mouseover / Mouseout Effects

Sep 18, 2007

I have downloaded the following code and tried to change it. It works so far, but the attached MC are "pulsating" - if I change them with another MC (with text inside) I can't use them as a Menu links - they are "pulsating" too much and I can't read/see the text properly. where in code I can change(reduce) this "pulsation"? how can I make the MC-s cklickable=working as a buttons with mouseover/mouseout effects (changing color etc.)

View 1 Replies

ActionScript 2.0 :: Math For Dummies - Make A 3d Carrousel - Classic Stuff

May 15, 2008

I want to make a 3d carrousel, classic stuff. I won't be able to explain what i want so i uploaded 2 pictures. The first picture attached is what you can usually see and the second one is the effect i want...a little bit more 3d. Hope you'll understand what i mean. For now here's the code i use onEnterFrame :

[Code]....

View 5 Replies

ActionScript 3.0 :: Keep These Buttons Enabled After The Next, Prev Buttons Are Clicked?

Jul 23, 2011

-Alright so I have made a next, and a prev button. That navigate the timeline inside an mc "tabs_mc." This mc ison the the main stage.-When the next and prev buttons are pressed they goto 1 of 4 frame labels on this timeline inside tabs_mc.-When one of these lables is reached an mc "thumbs" appears on the screen / stage.-These mc's "thumbs1, thumbs2, thumbs3, and thumbs4" contain buttons that SHOULD be clickable.-But are not after the prev, and next buttons are press. They are before the next, and prev button are press, but not after.

way this is or even better how to keep these buttons enabled after the next, prev buttons are clicked?I thought of making some sort of boolean to tell the each button that is needs to stay "true" after prev, and next are pressed.But I'm a beginner so I don't know where to start.Heres the next, and prev button code:

HTML Code:
//Button Listeners
/////next_mc.buttonMode = true;

[code].....

View 2 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 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 :: Marking A Menu Item Once It's Clicked

Nov 3, 2011

I have a simple menu and would like it to either change color or to have a check mark appear next to the menu item once the user completes it.

[Code]...

View 0 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 3.0 :: Dropdown Menu - Making Every Item Clicked Only Once

Apr 7, 2009

I made a drop down menu based on xml file and some simple summation after each click of the item. This drop down menu code is based on the xml driven menu. What I need is how to make every item can only be clicked once, so once clicked, it should not be able to be clicked any more.

View 2 Replies

ActionScript 2.0 :: Highlight Active Menu Item Until Another One Clicked

Feb 11, 2010

I have a menu with about 5 items, they all work great with this code on each one:
Code:
on (release) {
if (_root.link<>1) {
_parent["b"+_root.link].play();
_root.link = 1;
_root.play();
}}
(The number 1 changes 2-5 depending on button)

Works great, now.. When I hover over a menu item is turns green, I click it, it takes me to the right page, but I want it to stay green. And when I click another page I want the other menu item to turn green and all other revert back to regular. How do I do this?

View 3 Replies

ActionScript 3.0 :: Next / Prev Frame - Opening Menu When Button Clicked

Jan 10, 2012

openMenu.addEventListener(MouseEvent.CLICK, openSubMenu);
function openSubMenu(event:MouseEvent):void {
this.openMenu.nextFrame();
} openMenu.closeMenu.addEventListener(MouseEvent.CLICK, closeSub);
function closeSub(event:MouseEvent):void {
this.openMenu.prevFrame();
} stop();

I've got the above code on my first frame, and was hoping that it would open a menu when a button was clicked, and once the button within the MC is clicked it would then close. Hence the nextFrame and prevFrame actions.

I keep getting TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 6 Replies

ActionScript 3.0 :: Indicator Arrow Go To Button That Was Last Clicked After Rolling Out Of Menu

Aug 11, 2009

have the indicator arrow go to the button that was last clicked after rolling out of the menu.I have lost track of what all i have tried.URL...

View 1 Replies

Professional :: Photoshop CS4 - Make The Menu Items To Light Up When The Pointer Is Touching The Menu Icon

Jul 4, 2010

I am working on a DVD User Interface for my final project in Photoshop. For extra credit points I am trying to figure out how to make the menu items to light up when the pointer is touching the menu icon.

View 1 Replies

Professional :: Make A Menu For A Web Page Using Menubar And Menu Components?

Jul 26, 2010

Im trying to make a menu for a web page using menubar and menu components, is ther any way of making os specifing that the menu can get drawn out of the canvas, since i need that the bar is thin for getting in a space betwen to image headers.

View 1 Replies

ActionScript 2.0 :: Menu - Give A Specific _x And _y Coordinates For The Menus To Move At When The Other One Is Clicked

Aug 18, 2004

for a menu i use 3 MCs, when you click one of them, the two others MCs will make place for the 'options' of the clicked menu. What i want to do is give a specific _x and _y coordinates for the menus to move at when the other one is clicked (start and arrival, and have a motion tween between them). see what i mean?

View 4 Replies







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