ActionScript 2.0 :: Button State Targeting?

Dec 20, 2002

I am creating a Map of the USA that has pins (Buttons) that when you rollover them, they activate information for that particular city. Also on the map bottom, is a list of all the city names represented by each pin. These are also buttons. (So there are basically 2 buttons for each city location on the map.)Here's my question...

Q: How do I tell buttonB to activate to it's rollover state when buttonA is rolled over? And vice versa. Since they are buttons and not MC's, my tellTarget is not working.

View 1 Replies


Similar Posts:


Actionscript 3 :: Adding A Rollover State To A Spark Button When State Is Disabled?

Apr 14, 2011

I need to add a rollover effect to the disabled state of a Spark button. This way, users can rollover the button and know why the button is disabled.I think I would have to override ButtonBase's getCurrentSkinState. Is there anyway to test if a mouse cursor is over a disabled button?

View 1 Replies

ActionScript 2.0 :: Nav Button States - Button To Stay In It's Active State Until Another Button Is Clicked

Dec 17, 2004

I have a menu with five nav buttons (atcually MovieClips). Each has three frame labels: "on", "stay", and "off". The rollover and rollout animations play flawlessly, but I'm at a loss as to how to give each button a sticky "active" state. I'd like the button to stay in it's active state until another button is clicked, then I would like it to play it's "off" animation. Each MC has this code:

[Code]...

View 2 Replies

ActionScript 2.0 :: Movie Clip Button Up-state, Stay Up Until Clicked On Other Button?

Feb 23, 2006

how to keep a Movieclip Btn 'Over State' to stay in the over position until another button is clicked?

View 1 Replies

ActionScript 2.0 :: FLASH 8 - Toggle Button/released State/pressed Button

May 18, 2007

I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

View 1 Replies

Professional :: Movie Clip Button Over State Triggers Another Button?

Apr 13, 2010

I have two buttons that are movie clips in Flash CS4 and when button 1 is on Over stage, I want the button 2 stop movie clip at the certain frame.

View 8 Replies

ActionScript 2.0 :: Movive Clip Button To Have A Hit State Like A Normal Button?

Feb 16, 2008

Is there a way of telling a MC button to have a hit state like a normal button? I have some text popping up away from my MC button that is included in the hit state. When I roll over the main button the text pops up. But also, when I roll over where the text pops up it also triggers the pop up animation.

View 2 Replies

ActionScript 3.0 :: Make UP State Of Button End When Next Button Is Interacted With?

Jan 14, 2010

I'm trying to make buttons that involve a character pointing to indicate interaction.When a button is interacted with (mouse over or down) the character's arm points to that particular button. I separated his body, so that it remains constant on the main stage, no matter which button is being interacted with.The problem is, when the user is not mousing over or clicking down on any button, the character has no arms (since only his body remains constant)!How do I resolve this?The only thing I thought of so far is if there's any way to create an up button state that includes the arm (right now I have nothing for mouse up) THAT ENDS when the next button is interacted with. Is that possible? If I put the arm in the up state (in addition to mouse over and down) it stays when the interaction is over, which poses a problem when the user interacts with the next button (the character ends up with double the arms since each button introduces a different set of arms pointing towards that particular button).

View 1 Replies

ActionScript 3.0 :: Targeting A Button Within A MC From Another MC?

Jan 5, 2010

I know what the error 1061 means, but have no idea how to fix it. I've tried to correct it a million & one ways...

Code:
1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject.

I'm trying to target a button named 'mcTargetButton' (a SimpleButton) that's inside a movie clip called 'mcTargetParent' from a movie clip called 'mcCallFromThisClip'.

Both clips are on the main timeline. Note, I am using a document class... if I trace (this.parent) from 'mcCallFromThisClip' it prints the name of the document class.

[Code].....

how hard should it be to reach a button from a different movie clip?

View 1 Replies

ActionScript 3.0 :: Targeting A Button In Flv Skin?

Jun 1, 2009

I want to be able to target a button that is within the skin for a flvplayback component. This is my first real adventure with AS3 and..... (feel like I want to scream!)In the library for the skin I get "fl.video.skin.FullScreenButtonOnOver" and paste this into the main timeline with some code like this.

stop();
function edward(event:MouseEvent):void{ trace ("the button was pressed");}
fl.video.skin.FullScreenButtonOnOver.addEventListener(MouseEvent.CLICK , edward);

which comes back with the error "Access of undefined property fl" - which doesn't surprise me really.What do I do to target taht button

View 7 Replies

ActionScript 2.0 :: Targeting Dynamic Name Of Button

Oct 14, 2009

ActionScript Code:
for (var i:Number = 1; i<=15; i++) {
_root["window_"+i].onRelease = function() {
_global.myvariable = window[i].name ; //doesnt work
}
}

How can i get name of clicked button? In as3 is evt.target.name action, but in as2?

View 2 Replies

ActionScript 2.0 :: Not Targeting Button Correctly

Apr 20, 2006

I have a movieclip in a scene that i want to target with the actionscript in the first frame. The movie clip is called up_btn and im trying to target a label called "over" within it.

View 4 Replies

ActionScript 3.0 :: Button Inside A MC Targeting Another MC On The Timeline

Jan 1, 2011

So from the headline u know that i want to do but i don't know how to do it!

ActionScript Code:
/// activate the mc with the button from the main Menu
mathSecondMenu.addEventListener(MouseEvent.CLICK, otvoriVtoroMenu);

[Code]....

the problem is that i can get to the button from the first event, but i can make the Mc "proba" to go to "math_basic"!

View 8 Replies

ActionScript 2.0 :: Targeting Container With Movie Button?

Apr 19, 2006

I'm creating a site with buttons (movie buttons) targeting a container clip on the root which targets transitions in external swfs. I'm having trouble with my code in targeting the container.

I know how to do It with a normal button but not with a button inside of a movie clip...

I can use movie buttons for this because they just look better.

View 1 Replies

ActionScript 2.0 :: Targeting Button Nested In Another MovieClip

Feb 27, 2008

I built a button, but as a movie clip. It's nested with in another movie clip on the main timeline. How do I go about targeting the button?- when I have it on the main timeline, it works fine. But once it's nested. The action script can't find it.

Here is the code I'm using:

btn1.onRollOver = function () {
this.gotoAndPlay("in");
} btn1.onRollOut = function () {
this.gotoAndPlay("out")
}

View 10 Replies

ActionScript 3.0 :: Targeting A Button Inside Dynamically Loaded SWF

Jun 4, 2010

I have a main.swf which loads a sub.swf. Inside the sub.swf is a button instance (myBtn). How do I access myBtn from main.swf timeline?

View 7 Replies

Flash :: Targeting Multiple Buttons And Get Different Value By Clicking Different Button

Aug 8, 2011

I want to target multiple buttons and get different value by clicking different button.

Suppose there are 3 buttons: "button01", "button02, "button03".

This is my code:

var targetArr:Array = ["button01","button02","button03"];
for (var i:int = 0; i < targetArr.length; i++)
{
var target = getChildByName(targetArr[i]);

[Code]....

Instead of getting different value by clicking different button, I constantly get "3" as the value. I want: clicking "button01" will get "0" as the value, clicking "button02" will get "1" as the value, and clicking "button03" will get "2" as the value. How to do it?

View 1 Replies

ActionScript 3.0 :: Targeting A Button To A Frame Inside A Movieclip?

Jul 9, 2009

How do you target a certain frame number/name from outside of that specific movieclip?

Code:
whoweare.addEventListener(MouseEvent.CLICK, whoweareClick);
function whoweareClick(event:MouseEvent):void{
gotoAndPlay("whoweare");
}

I'm assuming it's something with the gotoAndPlay function... but I've tried numerous things with that and nothing is working.

View 3 Replies

ActionScript 3.0 :: Targeting A Button Inside A Movie Clip?

Feb 10, 2010

Trying to target a button inside a mc in order to trigger a swf.the mc is called "nav_btns"the button is called "contact_btn" The swf has the same name as the listener in order to repeat the function with multiple swfs. my problem is, i'm getting an error of an Access of undefined property with my mcI geting an error:"1120: Access of undefined property nav_btns.

my code:
var Xpos:Number = 461;
var Ypos:Number = 294;

[code].....

View 1 Replies

ActionScript 3.0 :: MovieClip With Button On Main Timeline - Targeting Root?

Oct 31, 2011

If I have a movieclip on the main timeline, and a button in that movie clip. How would I go about getting it to advance the main timeline to its next frame? I understand that in AS3 movie clips are not connected to the timeline in the same way as they are in AS2 but I dont understand why the following works, or if there is a better way?

stop();
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent) {
MovieClip(this.root).nextFrame();
}

View 2 Replies

Button Down State Overridden?

Oct 5, 2009

I have a sub menu with two movie clip buttons, let's call them mc1 and mc2. They both have a MOUSE_OVER event and a MOUSE_OUT event. What I would like is that when mc1 is clicked it will stay in the over state and then if mc2 is clicked mc1 will go back to the out state while mc2 stays in the over state.What seems to be happening in my code is that the MOUSE_OUT event is overriding the MOUSE_DOWN event. So when I take the mouse off after I've clicked mc1 the over state goes away.

Here's my code thus far:

import flash.events.MouseEvent;
import flash.display.*
addEventListener(MouseEvent.MOUSE_OVER, mc1_over);

[code]....

View 1 Replies

Professional :: Keep The Down State Of A Button?

Jul 9, 2010

how to make a button stay in its down state when it's clicked, and then go back to its up state when another button is clicked? I'm using buttons, not movie clips.

View 4 Replies

Professional :: Button Over State Getting In The Way?

Feb 14, 2011

I have a rectangular shaped button.  When someone rolls over it, I want a text bubble to appear to the side of that button.  The problem is, the mouse thinks it's over the button even if it's over the side bubble which does not exist in the "Up" state.  How can I get the cursor to only detect a button ONLY if it's over any part of the "Up" state and not the "Over" state (which because of the side bubble is larger than the original "Up" state.)

Here is a screenshot of the two button states.[URL]... Even if the cursor rolls over the "Over" bubble (and not the Up state), the Over state still shows up.

View 7 Replies

ActionScript 3.0 :: How To Keep Button In Down State

Nov 24, 2009

I have an interface that uses buttons to play videos. I would like it if, after you press a button, it stays in the 'down' state until the next button is pressed.

View 1 Replies

ActionScript 2.0 :: Get The Button To Go To The Down State ?

Aug 9, 2005

I've done the complex rollover tute where the animation plays and rewind when the mouse rolls on and off the button.What I'm trying to do is get button 1 to stay in the down state or clicked state until button 2 is clicked. Once button 2 is clicked, button 1 will play its rewind =true function.I can get the button to go to the down state when I click on it but the rollout function is overwriting the on release function as soon as I roll of the image.

View 5 Replies

ActionScript 2.0 :: Keep A Button On Its Over State?

Jun 23, 2006

i realize this probably a fairly simple question and also that i should have used movieclips for my buttons but i got lazy and used buttons for some of them

is there an easy way to make my button stay "on" after its clicked? i need something fairly easy that i can then go apply to a bunch of buttons. obviously it need it to turn off once another button is clicked as well.

View 3 Replies

ActionScript 2.0 :: Tell Button What State To Be In?

Jul 23, 2007

Got a button with a gotoAndStop.When it gets to that frame I want to have a little bit o' script there to tell it to remain in that buttons over state.Should be simple, but I never did it with a button. I normally use MCs. Anyone know the syntax for it?

View 1 Replies

ActionScript 2.0 :: Keep Button Down State?

Jun 25, 2008

Currently, when a button is in it's down-state, the AS disables the button. But since it needs to be active, i have to find a way to make the current 'down' button remain down during onRollOver and onRollOut.

button.onRollOver = function() {
this.over_holder._alpha = 100;
this.down_holder._alpha = 0;

[code]....

View 3 Replies

IDE :: Button - Hit State Works Sometimes?

Feb 13, 2009

I created a button in flash. I gave it a different state for 'over' and 'down' - changing the color and scale respectively, so it looks depressed when you hit it.I then assigned an action to the button so that when it is 'hit' you are taken to another scene. However when you hit the button it goes to the scene but you lose out on the 'hit/depressed' part of the buttons state!? Why?

How do you keep the hit state intact with the button whilst simultaneously assign an action?I understant 'the action' is to go to another scene first, but can it not also show the 'hit state too?[URL]

View 2 Replies

Force A Button To Not Go Back To Up State?

Nov 30, 2009

I've made a nav bar using buttons, and have them working just fine for Up, Over, Down, and Hit. (okay, so hit isn't a state, but I'll count it is as the fourth one)Problem is, once clicked on and produces a change in the flash, I want the button to not return to the Up state, but to visually be different so you can tell you are in that section.First problem is I can't for the life of me think of what that state is called. (Makes it hard to search for, and my poor little brain is fried right now.)Second problem is, can I force a button to not go back to up state? (either the over or down state would work fine).Or do I have to detect the click and then make a call to swap out the button file for the relevant section?

View 1 Replies







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