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


Similar Posts:


IDE :: Create Menu Buttons W/ OnRelease To Call Function

Feb 25, 2009

I reworked a script that creates a menu from XML. Works great, it creates the menu items by attaching a button I have in my library, each button gets the proper data passed to it in the process. Each button has an onRelease tied to it by the script. When the menu item is clicked (onRelease) it loads an image and proper data into the movie (into movie clips & dynamic text boxes).My hangup is that I want the first menu item to be called when the menu is created. In other words, i want to call the function that the onRelease is calling with the first menu items data but i can't figure out how to do it.All i can figure is having the button call the function itself [i.e.if(this.name =="button1"){] but that doesn't work.[code]

View 1 Replies

ActionScript 2.0 :: Using OnRollOver To Make A Submenu But Using OnRelease For Subbuttons?

Jul 19, 2004

i have a movieclip that is working as a button. onRollOver the moveclip goes to frame 2 where the submenu appears. Here is where the problem starts.The submenu buttons use hitTest for their animation. I want to be able to click one of the submenu items and use

[AS]
button.onRelease = function() {
getURL("Home.html","_self")
}
[/AS]

To make it link to a different site. The problem is it just doesn't seem to work.I think the problem is when I try to click on the submenu buttons, since they are nested in a movieclip that already uses onRollOver, it isn't recognizing i am clicking on the subbutton. I used onRollOver instead of a HitTest for the main buttons because if it used HitTest several popup menu's would show up at a time, so that is not a solution.

Basically, does anyone know how to make it so i can have a movieclip nested in another movieclip where the parent uses onRollOver and the sub movieclip uses OnRelease. Whenever i try to do it the sub just doesn't work.

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

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 :: OnRollover Several Buttons Using Array?

Mar 3, 2008

I have a hundred buttons on the screen. I also have an array containing a list of all 100 buttons.Now, I want to use the same onRollOver method for every button. I DON'T want to program each button separately.

I am thinking something along these lines:

[code]...

Can I do this using an array?

View 3 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 :: Next - Prev Frame OnRollover Animation - Do It With Buttons?

Jun 14, 2004

Ok here is the thing, I have the following code on my buttons.

[Code]...

This makes the button animation rewind or play depending on if the mouse is over the button. I want to have this on my buttons but I also want a different movie clip on a different layer to go to the next frame or previous frame depending on the rollover. Basically, I need to know how to add something in addition to:

[Code]...

View 2 Replies

ActionScript 2.0 :: All By Buttons Lose Their OnRollover Focus After Using GetURL?

Jul 7, 2007

After a user clicks a button the getURL passes some variables to a js function that displays an html lightbox type effect. After closing the lightbox and returning to the page underneath all of the buttons are now no longer clickable

View 2 Replies

ActionScript 2.0 :: Movie Clip Buttons - Target / Make The Buttons On The Other Frames Work

Aug 7, 2009

I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function

I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0

View 9 Replies

ActionScript 2.0 :: Movieclip With Action OnRollOver Affect The Buttons Inside It?

Jan 16, 2008

I've got a movieclip with an rollover function. The movieclip has buttons inside, but they don't work. The action applied to the movieclip is the the scale (I'm using Tweener to make the scale action).

View 1 Replies

ActionScript 2.0 :: OnRollOver Not Working But OnRelease Does?

Oct 31, 2008

I have two buttons. Each one calls in an external swf. I would like one of them to call it in onRollOver but nothing happens. It works fine when I change it to onRelease.This is the code I have for the two.

Code:
// Instantiate MovieClipLoader Class
var thumbloader:MovieClipLoader = new MovieClipLoader();
case_btn_1.onRollOut = function() {

[code]....

View 8 Replies

ActionScript 2.0 :: OnRollOver Not Working But OnRelease Does

Oct 31, 2008

I have two buttons. Each one calls in an external swf. I would like one of them to call it in onRollOver but nothing happens. It works fine when I change it to onRelease.[code]

View 1 Replies

ActionScript 2.0 :: Removing OnRollOver / OnRollOut / OnRelease

Feb 16, 2007

i have this code setup in a frame and after jumping to another frame i would like to remove it because its not needed there. actually its in my way.the mymc is on one layer with only one keyframe at the beginning and then just frames till the end of my timeline. i attach the mcs dynamically to mymc and then setup my actions on another layer frame by frame, as needed.in this specific frame i don't want the mcx's to react to mouse events.[code]

View 2 Replies

ActionScript 2.0 :: _parent.onRollOver Overwriting OnRelease?

May 22, 2007

I have some code similar to this:

Code:
mc1.button.onRelease = function() {
//do stuff
}
mc1.onRollOver = function() {

[Code]...

View 2 Replies

ActionScript 2.0 :: Navigation To Expand OnRollOver Not OnRelease?

Aug 18, 2003

I promise this is my last question regarding the XML nav you guys made I want the navigation to expand onRollOver not onRelease. When i change it it doesn't work, why not? This seems so simple but yet it won't work here's some code

Code:
mySubButton.onRollOver = function() {
getURL(this.myUrl, this.myTarget);
trace(this.buttonLabel.text+" : "+this.myURL);

[Code]..

View 6 Replies

ActionScript 2.0 :: OnRollOver On MovieClip Blocks OnRelease Events

Dec 7, 2010

I want a transparent movie clip that displays a tool tip when you roll over it. Beneath that movie clip I have other movie clips that I want to be clickable. Unfortunately having the "onRollOver" event on the top layer movie clip blocks the "onRelease" events of the lower movie clips. If I move the smaller movie clips on top it will work but I have to setup a tool tip for each of them (and it disappears and reappears when I move from one MC to another). I also thought about using the "onMouseMove" event and doing a hit test, but that seems less efficient.

View 4 Replies

ActionScript 2.0 :: Changing OnRelease To OnRollover Doesn't Work?

Mar 14, 2005

I need a rollover function and so I changed onRelease to onRollover but the rollover effect then doesn't work.

- Script is on seperate layer (on root)

- hit_mc is the movie clip on which the rollover should work

- mask_mc is the one that should tween when mouse goes over hit_mc

hit_mc.onRollover = function() {
tweenBall(mx.transitions.easing.Regular.easeOut);
};

[Code]....

View 9 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 :: Inactivate .onRollOver - OnRollOut And .onRelease Functions Are Still Active For Movieclips?

May 5, 2009

My setup has several movieclips in different layers. My problem is that .onRollOver, onRollOut and .onRelease functions are still active for movieclips lying underneath. Is it possible to inactivate these functions and then activate them again when it is needed? Or how do I solve this?

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

ActionScript 3.0 :: Way To Menu Buttons

Jan 12, 2010

I have a set of menu buttons made in flash ac3 (menu.swf). the menu buttons goes with menu.htm for example.I have another swf for example about us (about.swf). this swf goes with about.htm.
 
the index.html loads the menu.swf and the main.swf.
 
I hope some expert can point me in the right direction:

Is it possible to make the ac3 code, able to, tell the menu.swf buttons when clicked (on the about button), to go to the about.htm but load the exact frame/label of the about.swf.
 
in other words what i trying is, to make it more seo friendly. to have menu.swf to go to the exact content of another swf.

View 1 Replies

ActionScript 2.0 :: How To Add New Buttons In Menu

Nov 15, 2005

I have an FLA that I want to use for a menu I'm making. Currently, the menu is designed for 4 buttons and it has an indicator that slides along under the buttons to show which button the user is on. My menu needs to have 6 buttons. It should be very simple to add 2 more buttons to this piece, but every time add new buttons, the indicator slides way off to the left when I roll over the new buttons I've added, instead of sliding under them like it does with the original buttons. I've attached the original FLA. How to add new buttons without having this problem?

View 3 Replies

Drop Down Menu Transparent Buttons

Jul 1, 2010

I have followed a video guide on how to make a drop down menu in Flash CS4 ( AS3) with a few modifications. Instead of dropping down, it appears to the left of the "button" and it's a fade in fade out effect.And instead of text in the buttons, I've put in .png's. One png for normal button, another png for mouseover.The problem is that when I put the mouse on the original button ( the one meant to activate the menu) it activates the menu, but when I try to put the mouse on the menu, the menu dissapears.I've tried putting the layers in different orders but it didn't work.[code]

View 2 Replies

ActionScript 1/2 :: Menu Buttons Not Disappearing?

May 29, 2009

I have knowledge of HTML but this is my first flash project, and I think I'm way over my head. I followed a tutorial explaining how to make menu buttons and I realized that the actionscript for a drop down menu should work for what I'm trying to do.  So I finally have everything the way I want it but I'm pretty sure I have a bit of wasted code in there.  Now, my issue is when I play my flash and move my mouse really fast over the flash object sometimes two menu buttons appear. I'm sure it is because of the ._alpha > 0 code I'm using but I dont know another way around it. If you have any advice PLEASE share!! Here is a link to the swf file...http:[url]....
 
This is the code (for two buttons) I use to make something disappear when I RollOver another button:
 
calplate_btn.onRollOver = function () { if(scan_large._x > startX) {  myTweenB.stop();  myTween2.stop();  scan_large.enabled = false  scan_large._alpha = 0  scan_large._x = startX }  if(scan_large._alpha > 0 ) {  myTweenB.stop();  myTween2.stop();  scan_large.enabled = false  scan_large._alpha = 0  scan_large._x = startX }[code].......

View 4 Replies







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