ActionScript 2.0 :: Activate 2 Overlapping Buttons At The Same Time?
Nov 9, 2007Is it possible to have 2 buttons work on the same rollover when they are on top of one another?
View 1 RepliesIs it possible to have 2 buttons work on the same rollover when they are on top of one another?
View 1 RepliesI have done up a flash demo which uses the computer mouse to navigate. Now instead of using mouse, I want to use keyboard (arrow up, down, left, right) to highlight buttons and then hit "enter" key to click the button.
View 2 RepliesI have done up a flash demo which uses the computer mouse to navigate. Now instead of using mouse, I want to use keyboard (arrow up, down, left, right) to highlight buttons and then hit "enter" key to click the button.
View 6 RepliesI'm into a personal project with the Tween Method:
A menu with 5 buttons inside the movie clip instanced from bt1 to bt5.A main movie clip that extends the stage dimensions.When buttos are released they shall target to the respective Y value and stop.So..
Importing classes
import fl.transitions.Tween;[code].....
I'd like to activate the 5 buttons for this navigation.. Insted of it, only 3 buttons navigates.. The other buttons i don't know how active them to navigation.
My main scene in only on 2 frames. On the second layers I have some buttons that activate my movie clips (on the third layer)... These buttons can be pressed 'randomly' and after the muvie clips are played my buttons (one by one) disappear to reveal what on the first layer. Here there's another button, but I want it to be active only after all my movie clips have been played. What kind of ActionScript should I use to tell flash to go to the second frame of my time line (where my button on the first layer is active) only after all the mcs have been played.
My file at the moment is in AS2... This should be a second part of a game. People who arrive at this stage should now which are the right buttons to press. If they press the right one a pop up opens and some buttons disappear to reveal the massage that's behind. When all the right buttons have been pressed I need to play the frame 'end' on my timeline... The attached fla is an example of mine animation the right buttons are the red ones.
Attachments:
example.swf (14.1 K)
example.fla.zip (269.8 K)
how to activate buttons from external swf timelines?
i have this menu that loads external swfs. One of the swfs is an animation of the mouse cursor rolling over the menu. At that point i want to start one of the button animations and action.
how to activate buttons from external swf timelines?
i have this menu that loads external swfs. One of the swfs is an animation of the mouse cursor rolling over the menu. At that point i want to start one of the button animations and action.
I have 3 buttons slightly overlapping each other, all on one layer. What i'd like to happen, is for whichever button is rolled over with the mouse to show up on top of the other buttons..
View 2 Replieshow to prevent any two objects from overlapping each other each time they are randomly played?
i make them randomly appear using the code below but some of them appear on top of the other.
onClipEvent(load) {
_x=Math.floor(Math.random()*271)+120;
_y=Math.floor(Math.random()*265)+120;
}
I created a Flash CS4 document which contains 2 buttons. I used the code below to link the two buttons to well known web sites, tested them in Flash and the buttons work fine.
[Code]....
I currently have a game that allows the player to Start, Stop and Pause sound clips.
Currently the Start button only becomes active after the Stop button has been pressed.
I would also like is the play buttons to become active as soon as the sounds complete playing. This is the code on frame 1 of the main timeline that creates two sound objects
[Code]....
I have a movie clip with hit zones over buttons. It looks like a cam corder and when you roll over them a thumb moves to that button and when you click. The thumb presses on the button. That all works great. I want to put buttons in the main scene over top of these that will change things on the screen when you click it. And get urls of the videos that I have on my website. But when I put the hitzones over other hitzones the ones in back dont work. Is there a way to make them both work or am I going to have to make everything contained in the movie clip? So in short can I have two buttons on top of each other that do two different things?
View 8 RepliesThis seems like such an easy thing to do but it's driving me crazy. Sorry if this is a simple question. In a site I am building it is necessary to have a large movieclip overlaid over an image gallery. This movieclip controls scrolling so has a rollover listener attached, but of course the gallery pictures also need to have button actions. I cannot get them both working at the same time. How can I make it so that rolling over a movieclip doesn't disable the rollover for any movieclips underneath it? Here is a very simple example of the problem. Where the two buttons intersect, I want for the rollover to trigger them both: [URL]
View 1 RepliesI've created a banner and made the whole area clickable with an invisible button. But there's one small element in that banner I'd like to give a roll over state for extra fun. This element doesn't need a link hooked to it just to change colour when moused over. When I put the invisible button on top, it blocks the element on top the invisible button is not working either. Since it's a banner I have the document set up in as2.
View 4 RepliesI've a digram with lots of button from top to bottom. At present all the buttons are manually placed on the stage and add corresponding links to each button. I've managed to add dynamic links on the fly but any other option to place buttons dynamically on the stage from library without overlapping one with another.
View 2 RepliesMy dynamically loaded background is overlapping my buttons for audio on the stage.
My .fla is located at www.saleck.net/TEMP/U0863279.7z
There are 4 buttons and a Text box on Frame 1, but the background that is loaded in the code overlaps.
I'm using a map as the navigation "menu" between descriptions of items located on the map. Each item has a button, which is enlarged on hover. When the button is clicked, the description of the item shows up and a picture of it substitutes the map (and all buttons disappear). Here's the issue: some buttons, when enlarged, overlap with other buttons. I am currently using addChild() to ensure the button currently pointed at is on top of any others. The problem is that, when I click the buttons, any buttons I pointed at do not disappear, but stay on top of the picture. Is there a better way to make the buttons go to the top, one that doesn't keep them on when the frame changes? Or at least, is there a way to make them disappear when the frame changes?
View 4 RepliesI need to create a workaround for a button issue. I don't know how to have one button created by one class send a click event to another item created in a different class
Therefore, I'd like to place both of my buttons on top of one another, alpha one of them out and have both buttons receive the same click.
im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code:
if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
I am new to Flash and am having an issue with a project I'm working on. I have buttons that are in frame 1-150. I wrote the code in frame 1, but expanded the box to frame 150 so they will work. However latter in the project I want to be able to gotoAndStop frame 150, but when I do the buttons no longer work. I changed it to gotoAndStop frame 1 and they work. Can you not link to buttons in the middle of the "timeline".
View 1 RepliesI have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played. The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere. Here's the code I used for the buttons...
[Code]...
I'm trying to make a multiplication game, with
123456789 as buttons on the left side
123456789 as buttons on the right side
my goal is to select 4 on the left and 7 on the right, and in the middle to see the result 28. but I don't know how to make 2 buttons to stay selected
if I press 4 on the left, it gets selected properly, and the effects show OK but if I press 7 on right, then 4 deselects, and I'd like 4 and 7 to stand out as selected buttons in the same time
Is it possible to have two buttons functioning at the same time?
For instance, let's say you've got a dynamically generated list, with clickable items, that you want to disappear when the user mouses off of it...
The way I have it set up now, the list exists on top of a large invisible button with something like
[AS] on(rollOut){
removeMovieClip("ludacris");
}[/AS]
The list items also have buttons so that when you click on them, they do some things... but when you mouse onto them, the "rollOut" button is triggered and it goes away.
So, is there a way to have two buttons functioning with one on top of the other?
Is it possible to have two buttons functioning at the same time? For instance, let's say you've got a dynamically generated list, with clickable items, that you want to disappear when the user mouses off of it...
The way I have it set up now, the list exists on top of a large invisible button with something like
[AS] on(rollOut){
removeMovieClip("ludacris");
}[/AS]
The list items also have buttons so that when you click on them, they do some things... but when you mouse onto them, the "rollOut" button is triggered and it goes away.
way to take the contents of an array, which is full of texttype, and use them to create a stack of buttons. Now the actual text I have in the array will change every time the program is run.
For example, let's say my array is ["apples","oranges","pears"] I want to create three buttons (in this example) so that it appears
apples
oranges
pears
and when you click on "apples", it takes you to the corresponding "apples" webpage ("_blank").
I have these navigation buttons (code below) and only some of them work and not all the time.
[Code].....
i need to disable all buttons on my website (flash) at a certain time. At the moment i no that
button.enabled = false
will disable the button...I need to do this with about 10 buttons. Is there a way to disable ALL buttons in a more convenient way?I thought of looping i, button1, button2, button3..But my buttons are not named like this, and would not be suitable to do so!
I've been working at this for hours and still no luck what I'm trying to create to have 8 buttons on one frame leading to different scene each. In the scene different things happen and then eventually it leads you back to the first scene without the pressed button there anymoreFirst I tried this:I've been try to do this for a while now and seem to be really stuckIn my movie I have 2 scenes in the first one there is a button that is flashing using tween and alpha. in this scene I'm using this code:
stop();
btn1.play();
btn1.onPress = function()
[code].....
I have 5 overlapping tab buttons and when each is clicked, it calls to a specific frame. The tabs are assigned to a specific frame so that when the timeline jumps to the assigned frame, the tab clicked appears on top of the other tabs. My code below works, but only once. If I click a tab and then try to click a previous tab, nothing happens.
FYI: My 5 tab names are: rotating_globe, company_tab_mc, newproducts_tab_mc, applications_tab_mc and tradeshows_tab_mc
There's also a 'back_home_btn' that appears on the stage when user is not clicked on the 'rotating_globe' tab (the 'rotating_globe' tab is my default home button)
stop();
import flash.events.MouseEvent;
rotating_globe.addEventListener(MouseEvent.CLICK, rotatingGlobeBtnHandler2);
company_tab_mc.addEventListener(MouseEvent.CLICK, companyBtnHandler2);
newproducts_tab_mc.addEventListener(MouseEvent.CLI CK, newproductsBtnHandler2);
[Code]....
I've set up a scroller that scrolls an MC up or down with two different buttons (up and down). When you press up, the MC rises 390 and when you press down, it lowers 390. The issue I'm having is that if you hit the button while it is scrolling, it screws up the scroller and scrolls off values. Here is the code that I'm using:
Code:
onClipEvent (load) {
_x = 0;
_y = 0;[code]....
change the code so it will disable the buttons until it has scrolled 390, or whatever value I set it at?