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


Similar Posts:


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 2.0 :: OnRollOver Submenu And Blank Space?

Feb 4, 2009

I am trying to create a menu with submenus, but I encounter some problems.

[Code]...

View 6 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 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 2.0 :: Mc.onRollOut - Shows An Animation OnRollOver And An Animation On RollOut But OnRelease The Animation Enlarge Itselfs

Jun 19, 2004

I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )

[Code]....

View 4 Replies

ActionScript 2.0 :: Make Submenu Design Different To Main Menu?

Mar 7, 2007

url...I don't really know actionscript and I have two issues.Firstly, and most importantly, how can I make the submenu design different to the main menu? Specifically, I need the submenu items to have different y spacing, width, font heights & background. No probs doing a separate movieclip, but how do I assign a certain movieclip depending on whether it's a main menu or submenu item? Secondly, when the cursor moves off the movie, the last open submenu stays open! This happens in this site's example as well. It only closes when the cursor hits another main menu.

View 6 Replies

ActionScript 2.0 :: Conflict Between Two Mc Buttons - Make Disappear The Previous Submenu

May 12, 2008

I'm just a beginer with actionscript, in this case actionscript 2. I have two mc buttons mc_one and mc_two. When I click on mc_one apear a submenu, and when I click on mc_two apears another submenu in the same place than the mc_one submenu.

I know how to make disapear the previous submenu by tell _visible = false, but I also want to finish and bring back the submenu in their initial position in order to not to wait that the function finishes for open the new one. Maybe something like null or reset the function that make the other submenu turn up with no problems.

View 3 Replies

ActionScript 2.0 :: OnRollOver Event Of Parent MC Preventing OnRollOver Of Child

Oct 18, 2007

I have a movieClip, which in turn has a nested movieClip. I need each of these to have thier own onRollOver events, the parent movieClip is OK, but the event never fires for the nested movieClip. My code goes something like this:

[Code]...

is output when mcOne is rolled over, as it should, but nothing is output when mcTwo is moused over.

View 2 Replies

ActionScript 2.0 :: Make Xscale Larger When OnRollOver / But Need To Swap Depths

Jan 4, 2004

I am making a photo gallery with thumbnails and when the mouse rolls over them, they increase in size. Problem: when they increase, they do not cover the other thumbnails completely, since it is only an _xscale percentage increase and not a new movie clip. So you can see all the other thumbnails over the increased photo size. It is a problem of swapping depths I'm sure--but do I have to take off all the thumbnails from the main level and load them dynamically onto different levels in order to be able to swap depths?

View 4 Replies

ActionScript 2.0 :: Make _xscale Larger When OnRollOver But Need To Swap Depths?

Jan 4, 2004

I am making a photo gallery with thumbnails and when the mouse rolls over them, they increase in size. Problem: when they increase, they do not cover the other thumbnails completely, since it is only an _xscale percentage increase and not a new movie clip. So you can see all the other thumbnails over the increased photo size. It is a problem of swapping depths I'm sure--but do I have to take off all the thumbnails from the main level and load them dynamically onto different levels in order to be able to swap depths?

View 4 Replies

ActionScript 1/2 :: OnRelease Make A MC Change Frames?

Mar 22, 2011

im trying to make a Inventory Btn that when clicked will open up the inventory ive tryed adding the actual inventory inside the Btn and its fail horribley so now im trying to have it that when the Inventory Btn is Clicked to change my Inventory MC from Frame 1 (Nothing) to Frame 2 (The Inventory)
 
when i click the Inventory Btn nothing happens and i get no errors. idk what im doing wrong.
 
Heres code
on(release){
Inventory_MC.gotoAndPlay(2);
}

View 1 Replies

ActionScript 2.0 :: Make OnRelease Only Possible If Previous Image Is Displayed?

Jan 21, 2010

I have a gallery where if a thumbnail is selected it preloads, then fades out the current image and fades in the next.

If the user selects a thumbnail then selects a different thumbnail before the previous image has fully loaded (and faded to alpha=100) it is problematic. How could I code this so that a thumbnail could only be selected if there is an image displayed on screen?

My files are here [URL]

I also need to do exactly the same thing with the main menu buttons. I've attached the .fla + dummy .swfs

View 1 Replies

ActionScript 2.0 :: Make A Button Rotate Or A Movieclip Play OnRollOver Without Stopping Or Changing Background Movie

Dec 4, 2009

How do I make a button rotate or a movieclip play onRollOver without stopping or changing background movie

View 1 Replies

ActionScript 2.0 :: ADD OnRelease Method On Movieclip That Already Has A OnRelease Meth

Feb 10, 2010

Is there a way to ADD onRelease method on movieclip that already has a onRelease method? Without replacing the first one.

ActionScript Code:
mc.onRelease = function(){
trace('1');
}

I was thinking this, but it doesn't work

[Code]...

View 1 Replies

ActionScript 2.0 :: Listener In Order To Make OnRelease Function Work?

May 20, 2007

Do I have to use a listener in order to make the onRelease function work? Right now it doesn't and I think it's because the png isn't loaded before the onRelease function is invoked.[code]

View 3 Replies

Professional :: Submenu's Automatically Gone?

Mar 8, 2010

I am trying to create a simple menu bar with 3 levels of sub buttons,what i done is :- created many movieclip buttons, with rollovering them get other movie clip (subbutons), at first it seem working but at third level of subbutons i faced problem: i can rollover only twice same button and after that all submenu's automatically gone and i cant understand why..

View 2 Replies

Flash :: Submenu Not Displaying?

Dec 21, 2010

i'm reverse engineering an actionscript based site for one of my clients. so, i've got this problem... i asked a question earlier and got a response that has led me to this one...i have an array:

subnavData = new Array(
{"title":"OVERVIEW", "func":this.changeSlide, "param":this.showServices, "hasChild":true},
{"title":"CREATIVE DIRECTION", "func":this.changeSlide, "param":this.showBranding,

[code].....

View 1 Replies

ActionScript 3.0 :: Scrollpage With Submenu?

May 28, 2010

I've made a scrollpage of pictures and I've added a submenu under the page. What I ask for is there a way to link one of the buttons on the submenu to navigate you to a certain place (up or down) on the scrollpage? It must have something to do with the Y property I think, for the site to move up or down to a certain point.Here's the scrollpage: http:[url].....

And here's the fla. file: http:[url]......I've thought about it and tried many different methods without any luck.

View 4 Replies

ActionScript 2.0 :: XML Menu With SubMenu?

Jun 18, 2009

I am having a hard time trying to create a sub-menu using xml. The main menu works but the sub-menu is not being populated. Here is the AS and the XML

Code:
Object.registerClass ("item1",src.button);
Object.registerClass ("item2",src.button);
Object.registerClass ("item3",src.button);
Object.registerClass ("item4",src.button);

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating A Nav With A Submenu?

Sep 28, 2009

creating a Nav with a submenu. Basically it needs to work like this: When you roll over the first button.. the two buttons below it slide down a bit and 4 buttons appear below that.. this needs to stay visible as long as you are rolled over the main button or the submenu.. I can't seem to get the events right.

View 1 Replies

ActionScript 2.0 :: CS3 Keeping Submenu Visible

Mar 3, 2009

What is the best way to keep a sub menu visible? The way I have it coding, is onRollOver the menu button, the sub menu is displayed. I want the submenu to disappear onRollOut of the entire menu... how would you do this?

View 2 Replies

ActionScript 3.0 :: Making A Navigation With A Submenu

Sep 29, 2009

how to make a navigation with a disappearing submenu to the right with actionscript? Basically, you can roll over a button and a submenu for that button appears to the right and the buttons below is slide down a bit. Then when you roll off of the button or the submenu.. the submenu disappears and the buttons below slide back up.

View 4 Replies

ActionScript 3.0 :: Submenu Buttons Not Working?

Sep 30, 2009

I am migrating from AS2 to AS3 and realize the button functionality is totally different. I have a website with buttons that have submenus. I have the first layer of buttons working. They have eventListeners attached that take them to a labeled frame on the timeline. When you get to that labeled frame there is a submenu of buttons there. I tried putting the code for those buttons in the same script on frame 1 but it messes up the movie.

I think it has something to do with the buttons not actually being there on frame 1 when the script is read. I cannot figure out where to put the script for the submenu buttons to make them work. I think I have to put a parent type script in there. Sorry I dont even know what to look up.

Here is the link to the site: [URL]

Here is the code on frame 1:

Code:
stop();
function goCollections(e:MouseEvent):void {
gotoAndStop("collections");

[Code]....

View 2 Replies







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