Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Clicking Two Buttons At Once?



Ah ****ing hell. I just wrote up a nice long post describing the problem in detail, and the forum ate my go**** cookie, or something. So excuse this brief rewrite. "Not logged in" my ***. So I've got an interactive animation. And it's got a shooting gallery. And all the things in it -- characters, items.. -- are basically buttons -- you click on them, (with a custom 'rifle' cursor) and they play(); ("fall down" -- scaling + motion tweening). Tonight I decided it was too simplistic, and beefed it up a bit. One thing I worked on was a firing animation for the rifle. This involves turning the 'rifle' cursor into a movie symbol, giving it kickback+bulletTrail animations, setting it to stop() by default at frame 1, and putting a transparent button right behind the registration point -- so basically, at all times, there's a hidden button following the mouse around. Anytime you click, the cursor movie symbol plays. Voila, kickback. Problem? Indeed, at all times, there's a hidden button following the mouse around. I can't click on on the items and characters in the shooting gallery anymore. D'oh. Help? I don't know if one exists in flash, but the best solution (IMO) would be a 'universal' listener -- one which detects any mouse clicks at all, not just on a specific button -- I could then 'remotely' trigger the firing animation, and the characters/items, no longer blocked by an invisible button, would work again. Does anything like that exist?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-05-2005, 01:09 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Right Clicking Buttons
I am making an application that shows people how to use Windows Explorer and I'd like to be able to right click on the folders which will bring up a menu.

Does anyone know of a way to be able to right click buttons?

Is there a way to do this?

Clicking Buttons
Hi all this is my first post here so be gentle with me.

I am trying to create a small site in flash not for anything specific at this point, I just want to get to grips with how it works.

I am able to create small and uncomplicated movie files, fading tweening etc.

Is it possible to click a button and it open a file (text, image, another movie clip), in a set position within the main stage area.

Presumable I would need to have a symbol to hold this created info.

I did make a small swf file that when your mouse rollsover the button it plays a small movie. How do i get the same effect but when it is clicked.

Clicking Two Buttons At Once?
Ah ****ing hell. I just wrote up a nice long post describing the problem in detail, and the forum ate my go**** cookie, or something. So excuse this brief rewrite.


"Not logged in" my ***.




So I've got an interactive animation. And it's got a shooting gallery. And all the things in it -- characters, items.. -- are basically buttons -- you click on them, (with a custom 'rifle' cursor) and they play(); ("fall down" -- scaling + motion tweening).

Tonight I decided it was too simplistic, and beefed it up a bit.

One thing I worked on was a firing animation for the rifle. This involves turning the 'rifle' cursor into a movie symbol, giving it kickback+bulletTrail animations, setting it to stop() by default at frame 1, and putting a transparent button right behind the registration point -- so basically, at all times, there's a hidden button following the mouse around. Anytime you click, the cursor movie symbol plays. Voila, kickback.

Problem? Indeed, at all times, there's a hidden button following the mouse around. I can't click on on the items and characters in the shooting gallery anymore. D'oh.

Help?


I don't know if one exists in flash, but the best solution (IMO) would be a 'universal' listener -- one which detects any mouse clicks at all, not just on a specific button -- I could then 'remotely' trigger the firing animation, and the characters/items, no longer blocked by an invisible button, would work again. Does anything like that exist?

Clicking Too Soon = Broken Buttons?
Ran into another issue today...
I have 4 mcs that have rollover/rollout script. Clicking one will load an external swf "page" after it plays the current page exit-tween. The problem I found is: if you click a button and then click another before the first is done tweening in...it all gets messed up and cant bring switch pages at all.

Im thinking a solution might be to disable the onclicks somehow if the loaded swf doesnt have a variable set? i dont know. Ideas?

Plz tak a look at my beta site: (note: only home and profile pages work atm)
www.nikolei.net/test/

Double Clicking Buttons
I apologize if this question has been asked before but I haven't seen any questions about it yet. I have a nav bar with buttons that are within a movie and within another movie clip below the root.

These buttons are targeting movie clips right below the root.

I used a tell target action on the button and a go to and play to the right frame for the target. When I publish the movie - it goes to the right place, the tell target action is working, but if you click on the same button again, it does not go to the right target, instead it goes to the next movie clip. Most people wouldn't click the same button twice, but obviously this is a problem.

Does anyone have this problem and a solution? Thanks!

Double Clicking Buttons
Have not long become involved with Flash MX and just recently began creating buttons. All was going well until I uploaded them and discovered that I had to double click them. I keep getting a message coming up asking for the user to press the space bar in order to activate them. It's driving me nuts.. can some kind person put me out of my misery and tell me what I am doing wrong.
Thanks!

How Can I Make Buttons That Look Like You Are Clicking?
Hi could someone help me in this part please. I using some photos and I need them to look like you click down in them when you use your mouse.
Thanks

Clicking Sound On Buttons
In IE, when I mouse over the buttons of my navigation (buttons) I hear a clicking sound. Is there a way to get rid of this? Only happens in IE for win.

Thanks,
Kim

Double-Clicking Buttons?
So "GrimDeath" helped me out with this player and it works like a dream. The only issue i have is I want to allow a user to turn the music off by clicking the switch again. Ultimately, this would rid having to create an "off" button for the music player. The .fla is available at the link below. Thanks for any and all the help.

http://www.mm214.com/kthomas/playa.zip

How Can I Make Buttons That Look Like You Are Clicking?
Hi could someone help me in this part please. I using some photos and I need them to look like you click down in them when you use your mouse.
Thanks

Clicking Sound On Buttons
In IE, when I mouse over the buttons of my navigation (buttons) I hear a clicking sound. Is there a way to get rid of this? Only happens in IE for win.

Thanks,
Kim

How Do I Prevent Clicking On Hidden Buttons
I'm making a fake computer interface with draggable windows (by the header bar only). Everything is working fine except that you can click right through my windows to buttons behind them.

I've tried adding an invisible button on top of the**window panes (content area): it worked but now I have a misleading little hand cursor that'll make them think they can click on something.

Any suggestions?

Strange Clicking Sound On Buttons
Hi,

When you click on the menu items on the below link you get a annoying multiple clicking sound. Anyone has a clue to why that is?

There are no sound action on the buttons!

cibus

Cheers,
Smalco

Need To Stop Buttons From Double-clicking
Hi all;

I am writing a kiosk application with a Flash interface. I use a number of on-screen keyboards for user input. On most hardware, this works fine but on some touchscreens, the sensitivity is high and users encounter a double (and sometimes triple) entry error when they press a button on the on-screen keyboard. What I need to figure out, is how to ensure that the button output only registers once, thus programmatically working around this hardware issue.


This is the VERY simple sample code I have behind the button "1" on my on-screen keyboard:

on (release) {
myName.text += "1";
}

...it simply adds the number "1" to the display area. Is there a way that anyone can think of that would ensure that the text is not added twice in rapid succession ? Maybe a timer of some sort, or a way to make the button RELEASE function last a little longer before it returns control to the user?

Any ideas are greatly appreciated -- this is causing us a LOT of headaches.

My Buttons Require Double Clicking When On A PC, Why?
I just recently uploaded my updated website to the server and now I am finding out all the quirks that need to be fixed.

Please check out my website to see what I am talking about: www.brendasepanek.com

The outer frame of my site is done in Dreamweaver and the inner WHITE rectangle are flash movies.

1. when clicking on MOST of the buttons within my flash movie it action does not begin until you click TWICE but only on a PC. why does that happen and is there a way for me to fix it so it begins on the initial click without changing out it is viewed on mac? some good examples of what i am talking about are when you click on the PORTFOLIO page, then the PRINT page and click on the various samples. The initial click requires a double click and after that it seems to be normal allowing just a single click.

2. since you took the time to view the site, i am curious as to how long it took the portfolio page to load, in particular the PRINT and WEB page.

I am very new to flash so if you reply, try to make the answers easily understood thanks for your help!

Buttons Not Clicking On MAC, Working Fine On PC...
Hello,

I have made this video player

It works perfectly on PCs, but on Mac all the videos in the first category ("Viral / Short Film"), refuse to allow a mouse click...

I can't track down the problem, has anyone seen something like this before?

Thanks!

Click 2 Buttons By Clicking On 1 Button
I have button A and button B. When the user clicks on button A, I want button B to be clicked at the same time. Is there a way to tell button B to click if button A is clicked?

Question About Double Clicking Buttons In Swf
The buttons in one of my projects call for the current item on the stage to animate off, then call up the appropriate segment to the stage. This works fine except if someone double clicks on the button (not knowing better) it locks up the movie.

Also, on a contact form, can someone tell me the actionscript for checking to see if the fields have been filled out before allowing a 'submit' and how to prevent when someone hits the tab key while hitting the form, it goes across the stage to another button instead of the next typing field.

Thanks very much for any help.

How To Prevent Clicking On Hidden Buttons
I'm making a fake computer interface with draggable windows (by the header bar only). Everything is working fine except that you can click right through my windows to buttons behind them.

I've tried adding an invisible button on top of the  window panes (content area): it worked but now I have a misleading little hand cursor that'll make them think they can click on something.

Any suggestions?

When Clicking A Button I Want All Other Buttons To Be Disabled, Help Pls Asap
hello

when the user clicks on a button i want all other buttons on the page to be disabled after the action. how can i do this.

thank you

Problem With Buttons Within Movieclips (prevent From Clicking Twice)
I have buttons within movie clips which are used to attach symbols from the library. Everything works fine until I have refresh and go back to that movieclip. When I have to go back I notice that I have to constanctly click twice to see my attached symbol from the library.

Here is the code that I use.

dentalCare_btn.onRelease = function() {
_root.target_mc.attachMovie("dentalCareID", "dentalCare_mc", 1);
unloadMovie(_root.newbattleGround_mc);
}



Thanks,

gp

Clicking Buttons THROUGH An Overlaid Movie Clip
I'm wanting to create a "windows shade" type element on my website that will dim the whole top section of my page when the cursor goes off it, an overlay of sort; I can't seem to do this, however, without disabling the buttons underneath it.

If anyone has any idea on how I could accomplish this it would be greatly appreciated!

(The buttons underneath the overlay are actually MC's controlled by actionscript)
thanks a lot!

Components Interfere With Rapid Clicking On Buttons
Hi guys, new here and for good reason.
I've been flash dev. for 3 years now and I'm having a problem i never saw before.

To simplify the situation, i've recreated the scenario:
i have combo boxes and other components on my stage.
i also have a generic input text field.
I then have a button.

I've created something that requires the user to press this button multiple times and sometimes even very fast.

However, once u click on the button, it does the action once and then after that the cursor randomly switches between the arrow cursor and hand cursor and the button doesnt work unless i press it a few times.

My button seems to be losing focus because of the combo boxes and text input field components.

for example, if i only have a textInput component and a button: i cant click the button fast and the textInput field on my stage constantly has the blinking line in the field meaning the textInput symbol has tocus, but if i remove the textInput and the comboboxes from the library, i can click the button on the stage as many times as i want a quickly.

anyone know how to prevent the combobox and textInput from taking focus away from my button?

If I've confused you, I apologize.

Slideshow As Buttons, Showing Pictures When Clicking
We have made a slideshow, scrolling down on the right side of the sceen. The pictures are also buttons. We would like to show a bigger picture of the small picture when the button is released. This should be placed in the center of the scene, and stay there till the next picture (button) is clicked. How do we do that? What action script command is the right one to use?
Thanks in advance!

Clicking On All Buttons On Nav Makes Flash DO ALL The Funcions.
Hello.

I have a nav bar with buttons made with movie clips, not ( button classes ). I was trying to see what would happen if a user decided to muck with my nav and click on all the buttons randomly and many times. What is supposed to happen is that whenever a "button" was clicked a rollover to change the text would occur then a sub menu pops up and stays open for a fixed time using set interval. But when I clicked on all buttons randomly and repeatedly, the sub menus would just keep poppping up to no end. How do I make it so that that won't happen despite someone clicking all over the place.

Thank you.

Pictures Bouncing Left And Right By Clicking On Nav Buttons
I'm really sorry if this has been ask before
meh...is really frustrating since I've trying to figure this out for almost a week now
and googling doesn't help either but instead
I was redirected here..and seeing a lot of pros here
hopefully I could get it to work

I have less than 2 weeks to build my interactive portfolio for school as I will need it for my internship coming real soon...I do know the basics of tweening and such but to create button that takes to to the slide...I'm a pure newbie to that
and as3...very bad at it

I'm trying to do something like this
http://www.iloveayu.com/dream_lab.htm
the tiny black icons on the left moves the background or image left/right
are the images all connected or they're different scenes?
thanks for all the help..and again sorry for asking ..I have a feeling it has but searching here doesn't match any result
..I probably type in the wrong term as I don't know what this effect is call...


ps: I was told to use TweenMax or TweenLite and tweening classes...I got more confused by doing that

Clicking Multiple Buttons In Specific Order ->action
I need to be able to do the following:

click A, B, C, D, A in that specific order to prompt

on(release){
gotoAndPlay("section1");
} else{
gotoAndStop("start");
}

The letters are the instance names of the buttons. I'm using MX2004. Hook it up. Thanks.

Transparent Areas Of Movie Clips -- Clicking Buttons Underneath
Hi All,

I've got a movie clip with masked-out areas. It's placed on top of various buttons.

The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask.

I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

Thanks much.

Transparent Areas Of Movie Clips -- Clicking Buttons Underneath
Hi All,

I've got a movie clip with masked-out areas. It's placed on top of various buttons.

The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask.

I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

Thanks much.

Input Numbers From Cellphone Into Dynamic Text Field By Clicking On Buttons
hey there,

I am constructing a form mailer that has a cellphone skin. To add some functionality I want to let the user click on the numbers of the phone and have the numbers appear into a seperate dynamic text field. (not to be sent via the form) How do I code it where they can click on the numeric button and the number will be added to the field while letting the numbers that were already clicked will remain in the field and not be erased.

thanks
-J

Clicking Lingage Inside Library. I Think Im Braking A Clicking Record ..
I´m going crazy I have to export 773 files inside my library. All files are small sound clips. So I have to right click 773 times and choose export for actionscript. However the filenames are just as I want the identifier to be so if there would only be a command like

"Export selected items for actionscript using the current filename "

it would save my day.

If anyone know how to do this in a quicker way please let me know.

Thanks

[mx + Flash8] Different Mouse Events For Clicking Or Clicking And Dragging
Hi there,

there's something that nearly makes my head explode ...i'm in desperate need for your help

what i want to achieve is an online magazine where you can:
- flip the pages by clicken on the corners
- click on the pages to zoom in
- if zoomed in, click to drag the page around
- click again on the page to zoom out.

like in this example: http://www1.visions-weekly.de/epaper/epaper.html

what i have so far is:

as i'd never ever be able to program the pageflip thingy myself,
i bought a pageflip component from the lovely guys at flashloaded.com, so the magazine itself is set up, all the pages are in and i can flip them by clicking on the corners ...sweeet

now comes the tricky part (at least for me)

i put an invisible button on top of the book. i started with the zoom function and used the onClipEvent(mouseDown) and (mouseUp) functions. if clicked for the first time i scale (xscale, yscale) the book to 120%. on the next click i zoom back to 100%. That worked out of the box

Now i wanted to integrate the dragging. the book shall be dragged only when the mouse button is pressed ...but i didn't find a function for that. What i can achieve is either drag it after it got clicked or drag it always when clicked.

for example i tried this code:

i defined 3 variables in the main timeline:

firstclick (to monitor if it is the first click or not)
clicker (to monitor if the button is clicked right now)
dragger (to monitor if the book gets dragged)



Code:

onClipEvent(mouseDown){
if(_root.firstclick=="0"){
_root.firstclick="1";
}
else{
_root.clicker="1";
}
}
onClipEvent(mouseMove){
if(_root.clicker=="1"){
_root.dragger="1";
_root.mybook.startDrag();
};
}
onClipEvent(mouseUp){
if(_root.firstclick=="1"){
_root.mybook._xscale=120;
_root.mybook._yscale=120;
_root.firstclick="2";
}
else if(_root.dragger=="0"){
_root.clicker="0";
_root.firstclick="0";
_root.mybook._xscale=100;
_root.mybook._yscale=100;
_root.mybook._x=10;
_root.mybook._y=10;
}
else if(_root.dragger=="1"){
_root.dragger="0";
_root.clicker="0";
_root.mybook.stopDrag();
}

}
the zooming works but not the dragging (i presume because the dragging would start after the click not while the button is pressed.

i tried to work with listeners (for the first time) but to no avail, because if i listen for clicks or drags that interfered with the pageflip function where you click and drag the pages as well.

can some one ...pretty pretty please ... show me a better way to achieve this?

yours
Stefan

Right Clicking
Sorry for my ignorance, but I can't find a way to find out if someone clicks on a button with the right button of the mouse...

Thanks.

Right-clicking
How do you make the right-click menu say nothing but 'about macromedia flash' like on the macromedia website buttons?

Right Clicking
Hi. How come sometimes when you click on flash it says zoom in zoom out etc.. and then other times you click it, and it just says macromedia flash ? How can I make my files just say flash, without the zooming in and out, thanks

Right Clicking In .swf...
hey all...

i'm sure this is not a hard problem to solve, but for the life of me, i can not figure this out...i have seen some flash sites when you right click anywhere in the movie the only option window that appears is 'settings', and 'about macromedia flash', how do i set my (MX).swf's without the 'zoom, quality, print, etc...'? does this make any sense? any help would greatly be appreciated....thanks!

2advanced is an example of what i'm trying to do..

http://www.2advanced.com/flashindex.htm

Right Clicking
what's the publish setting to where you can zoom in and out when you right click?

Right Clicking
Hey everyone,

I was wondering how do you make it so in your flash movie when you right click all that shows up is settings and about macromedia flash player 6, and not when usually shows up all that stuff like zoom and crap like that.

No Clicking
im really new to flash, like a day. im working on the tutorals and i aint doing so good. but thats not what my question is about. i wanna know is it possible to disable keys, like ctrl + x or ctrl c stuff like that??? but i want this to happen at my website, like adding coding. im big on web design. so can anyone help meh out???

Web Right-clicking
how do you make it so when people right click on your flash it doesnt give them the option to zoom in or anything like that?

Right Clicking
can flash detect right clicks? how? does this port over to Macs well?

thanks

Right Clicking In A Swf
when you right click on a swf file it comes up with options like forward and back and rewind and play and loop etc. But sometimes you see just settings and about macromedia flash player. I want to know how you can make it just say settings and about macromedia flash player so people cant cheat in games you make or something. Anyone have any ideas or does anyone know how you do this?

Right-Clicking
Hey all!

I was just wondering... Does anyone know how to make it so people cannot right click on you flash movie?..or even if they right click, the ZOOM option and such are taken away?

I'm sure this is probably an easy fix but still

Thnx - SecondComing114

Clicking
how would you do something simple like this?
http://ic3.deviantart.com/fs11/f/200.../JimmyWalk.swf

While Clicking Down
Hello, and thanks in advance for any help,
I'm relatively to Flash/Actionscript, and i was wondering if theres any function where it runs while the mouse is down. I know that doesn't make a lot of sense. Let me explain better. I know about onMouseDown, but to summarize, basically Im looking for something like whileMouseDown. Thanks!

Right Clicking
Is there a script that will let one thing happen on left click of the mouse and another on right click?

Ex - in first person shooter game, left click would be to shoot and right to reload.

Right Clicking
in the flash movies i make, when you right click on them i get that in flash_2.png

however, i would like it that when you right click the options to come in flash_1.png

(they are attached files)

can anybody help me in achieving this please?

thanks a lot
-binime

Re-clicking.
Is there a method where i can click on a button, and it does some function.. and when i clicked on it again it will perform another action?? (e.g, one click expands, another click closes a textbox)

Thanks.

Right Clicking
in the flash movies i make, when you right click on them i get that in flash_2.png

however, i would like it that when you right click the options to come in flash_1.png

(they are attached files)

can anybody help me in achieving this please?

thanks a lot
-binime

Copyright © 2005-08 www.BigResource.com, All rights reserved