Left and right mouse coding for games

Hi
Can anyone point me in the right direction on where to find actionscript 2/3 coding for left and right mouse clicks for gaming. I am a student and want to design a game that will use both left and right mouse clicks on a object that will give different results depending on which mouse click you had made.
For example on a red object you click right, on a blue object you click left. Depending on how you clicked on a object will determine the next step in the code.
Does this make sense?
Cheers
Beth

I believe there is no method provided for isolating right clicks with a mouse in Flash.  The right click is reserved for pulling up a menu and there are no properties associated with it in the code.

Similar Messages

  • Identify left and right mouse button clicks?

    I am wondering how is it possible to identify left mouse button click and right mouse button click using Java rather than just identify a mouse click.
    Kumar

    I'm not sure if this is what you mean, but you can use MouseEvent's getButton() function.
    For example
    class MyListener implements MouseListener
        public void mousePressed(MouseEvent e)
            int btn = e.getButton();
            //btn = 1 (left button), btn=2 (right button) for 2 button mouse and so on...
    }

  • Left and right channel panning for drummer backing tracks in Garageband - HELP

    Hi there
    OK, so I've finished my song on garageband that I've recorded with a USB keyboard with many STEREO keyboard parts and a click track.
    I need to be able to mix down to the following specification for my drummer.
    Left Channel - Mono keyboard sounds (to goto PA)
    Right Channel - Same Mono keyboard sounds plus click track (to be heard through headphones)
    So basically the keyboard will be the same mono track at the same volume playing through both the left and right. I cant simply put the stereo keyboard sound in the centre as that would mean the drummer would get SOME parts of the keyboards stereo fields and the PA would get the other parts of the stereo field so it wouldnt sound right.
    Any ideas how to do this?
    I hope I've explained myself OK

    I need to be able to mix down to the following specification for my drummer.
    Left Channel - Mono keyboard sounds (to goto PA)
    Right Channel - Same Mono keyboard sounds plus click track (to be heard through headphones)
    Here are instructions on how to split a stereo track into mono tracks:
    http://www.bulletsandbones.com/GB/FAQPages/StereoToMono.html
    On top of this, you will want to re-import the mono keyboard track back into Garageband, duplicate it onto a 2nd mono track,  then add the click track (on a separate 3rd mono track of course).  Then pan one mono keyboard track hard left, and pan the other mono keyboard track hard right and the click track hard right as well.  Export as normal and everything should be good.

  • I get a blue line that runs left and right only on the games section, what is that?

    I got a blue line that runs left and right  & viceversa when I m on the games, can somebody help me? I don't know if that is a virus....I never got one so I don't know...

    You do not have a virus. It sounds like you have turned on Switch Control, which can be turned back off in Settings > General > Accessibility. You probably have the Accessibility Shortcut feature turned on, causing a triple-click on the home button to activate or deactivate that feature. You can disable that shortcut in the same Accessibility settings.

  • Premiere Elements 13 (not Pro), recorded a video with mono mic input (left channel only), need to create 2-channel (left and right) audio track for finished product. Help?

    The question says it all. I have been all over the tutorials as well as the menus inside Premiere 13 and cannot find how to edit the audio track beyond basic balance, volume, etc.
    I can see the Audio 1 track, shows audio in left channel only, but it will not respond to attempts to select, cut/copy, paste, etc.
    Basically I just want to turn one-channel audio into two-channel audio.

    25424...
    Sure you do not want to give the Fill Left and Fill Right another try?
    According to the Adobe document Adobe Premiere Elements Help | Effects reference
    Fill Left, Fill Right
    The Fill Left effect duplicates the left channel information of the audio clip and places it in the right channel, discarding the original clip’s right channel information. The Fill Right effect duplicates the right channel information and places it in the left channel, discarding the existing left channel information. For example, you might use this effect on footage shot with a monaural microphone plugged into only one channel of a camcorder, extending the voice of a speaker from one channel to both.
    From what you wrote, your Premiere Pro video seems to be saying the same.
    If that Premiere Elements Fill Left or Fill Right is no go, you might want to explore what you can do in this regard using the free audio editor Audacity.
    Audacity: Free Audio Editor and Recorder
    And, then import the Audacity edited audio back into Premiere Elements project as source media.
    Is the speaker system OK?
    We will be watching for your results.
    Thanks for the follow up.
    ATR

  • Distinguish left and right mouse click

    I am making some demo, I don't use any narration. How do I
    tell the viewer when to use left mouse click and when to use right
    mouse click? Can it be done automatically?

    Hello Simon,
    Hmmm, I don't think that there is anything in Captivate that
    will automatically let the leaner know that you are
    right-clicking...Here are some of the things that I might try.
    1. Adding a text caption that notifies the learner that I am
    right-clicking
    2. At the very start of the demonstration point out to
    learners that when they hear a certain sound this is an indication
    that I am right-clicking.
    3. Create a small animation that shows pressing the right
    mouse button
    4. Use one of the existing animations that you can find in
    the Adobe Captivate 2 gallery such as visual clicks and again point
    out at the beginning of the demo that when they see this animation
    you are performing a right-click action, you could also record or
    import audio onto your animation if you so desired.
    Those are my (of the top of my head) thoughts . I am sure
    that there are others.
    Regards,
    Mark

  • I am using the firefox on my laptop, I had my photoshop on and my setting for pressing left and right mouse button is "autoscroll", and everytime I left-right click a link, it automatically jump to my photoshop app

    vaio laptop, vista

    Two things that were not mentioned that might lead to
    *Are you syncing active tabs on two devices?
    *Is Auto-Sync selected on the mobile device in the Account Settings?

  • It it possible to have info on the left and right sides of iweb templates?

    When I look at my iweb website there is empty space on the left and right sides of my screen. I was wondering if this space could be used at all?

    Hi
    You can increase the width of your Page, go into Inspector, Page Tab. From here you can adjust the Content Width, which is the width of your page, the bits that you see on the left and right are fillers, for people who's browsers are set bigger than your site. You can change the color that shows by changing the Browser Background.
    In the good 'ole days, most people had screens that were only 800 W x 600 H, but these days most people have at least 1024 W x 768 H (some do, no doubt still have 800x600). So, 1024 is really the max width you can go, dont forget that you need to leave some space for the browser as well, and the scroll bars.
    But pages this big are wider than normal, the best thing to do is experiment and see what works for you.
    Will
    1GHz G4, 15" PowerBook, Airport Network, 1G iPod Mini   Mac OS X (10.4.6)   www.willg4pb.com for iWeb tips

  • Trackpad won't move curser mouse does. Left and right click working fine

    Hello everyone,
    I have a problem. Out of nowhere my trackpad won't move the curser anymore. Connecting a USB mouse does. Left and right click are still working fine. Any ideas of how to fix it?
    Thanks
    Dave

    Hey there DaveDaMac,
    It sounds like your built in track pad is not responding at all, but your USB mouse works without issue. I recommend the troubleshooting in this article for you named:
    Intel-based Mac notebooks: Troubleshooting unresponsive trackpad issues
    http://support.apple.com/kb/TS1248
    Try disconnecting the MagSafe connector from the computer and check the trackpad function. If the trackpad becomes responsive again, improper grounding may be the issue.
    If a two-prong AC plug is being used with the power adapter, try using the three-prong power cable that shipped with your computer and plug it into a grounded outlet.
    If the issue persists, make sure the third prong is present and do not use an adapter to enable the three-prong adapter to be used in a two-prong outlet. Note that the ground in the three-prong outlet may not be connected. This is common in older homes or buildings with replaced outlets. In these situations, the three-prong power cable will not improve trackpad responsiveness.
    If a grounded outlet is not available, rest your palm on the palm rest when using the trackpad. This should enable the trackpad to function properly.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Left and right side of screen does not register mouse clicks.

    The left and right side of my screen (when maximized) does not register a mouse click. I would estimate about 10 to 15 pixels in (top to bottom) before a button will register a click.
    If I work with in firefox not maximized everything works fine. As it stands I have had to add buttons to the left and right side of my Firefox navigation area to utilize the back and home button. I am also not able to use my scroll bar do to this situation with out connecting an external mouse.
    Operating system: Windows 7 Professional (64bit)
    Resolution 1280x800
    Computer: HP TouchSmart tm2 (1070us series)
    This laptop does have the touchpad type mouse, I do not think this is the problem though as it will work if firefox is not maximized.
    Assistance with this would be appreciated. I Love firefox but this is to much of an annoyance to deal with continually.

    Not sure if its ever overheated... I've never left it in a hot car if thats what you mean. Sometimes it gets very hot if I'm using EDGE for a while. I don't push hard which is why I don't think I caused it...
    I will bring it in this weekend and see what they say.
    I also think that the speakerphone sounds fuzzy and muffled a lot more than it did when I first bought it. So just another reason to bring it in.

  • Area Surrounding Mouse Pad-Left and Right-Suddenly Sensitive To Touch

    I have a 13" White MacBook that is suddenly acting really odd. The area (left and right) surrounding the mouse pad has become almost untouchable. If I touch those areas sudden and varying input occurs.
    I write code on occasion and noticed a few days ago that errors would pop up with bizarre text causing the problem. Now, even the slightest touch will cause problems...maybe a copy and or paste, a simple highlight of text, the enter key is pressed, etc....
    My Mac rarely leaves the desk, so no damage has occurred to the hardware.
    Another issue I noticed that started a few weeks ago is that the cursor will go away for a brief second or two.
    Any ideas???
    Thanks...RedRacer123
    Model Name: MacBook
    Model Identifier: MacBook4,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 3 MB
    Memory: 4 GB
    Bus Speed: 800 MHz
    Boot ROM Version: MB41.00C1.B00
    SMC Version (system): 1.31f1
    Serial Number (system): W8836AGxxxx
    Hardware UUID: 9ABA4ECA-EC9D-5640-8D8F-ED2FA4309934
    Sudden Motion Sensor:
    State: Enabled

    Save your work, connect the power adapter and remove the battery. Does the behavior persist without the battery?
    ~Lyssa

  • HT4930 My mouse suddenly started lagging when moving up and down. Left and Right seem to move fine. Waht's wrong?

    My mouse has suddenly started lagging when moving up and down. Left and right movement seems fine. in fact, it's perfect. I tried changing the tracking speed to no avail. it sped up the left and right movement, but "up and down" still remain sketchy. HELP!!

    Hi Torrence,
    You may have to suffer until you can get to your local artist's products store.   There you should be able to buy square metres of fine matt black felt (maybe in a shop selling materials too).   This makes an excellent and inexpensive base that looks good too.   Have used it for years.
    Lay it on your desk and hold it in position with some double sided sticky tape.

  • ? how to add page numbers in pages 5.2, starting with 2.  Pages '09 had an option to not show folio on page one.  Also any how to do left and right folios for a Tabloid?  Many trhanks

    ? how to add page numbers in pages 5.2, starting with page 2.  Pages '09 had an option to not show folio on page one.  Also any idea how to do left and right folios for a Tabloid?  Many thanks  . . .

    Hello jacquemac,
    Your first question:
    There might be a better way of achieving what you wish to do, but following these steps could help you out.
    You might want to blend in Thumbnails and Invisibles either with (cmd+shift+i and cmd+alt+p) or over the View section in the Menubar.
    1. go for Documents (right end of the Toolbar) -> Section
    2. place your cursor at the very top of your second page and click "Create new Section->Starting with this page" in the side bar on your right.
    (what you are actually doing next is setting the pagenumbers for each section you created. You can see your sections in the Thumbnail view.)
    3. click on your first page (the first and only page of your first section) and mark the checkbox "Hide on first page of section"
    4. click on your second page (the first page of your second section) and  "Insert page number" -> start at 1
    Your second question:
    Im not quite sure i understand what exactly you want to do here. One page, two columns, each column with another page number? As far as i know this is not possible.
    greetings jl

  • HT1338 My new magic mouse will not one finger scroll left and right

    I am up to date with software but after connecting my new magic mouse it will not one finger scroll left and right. It does scroll up and down. Any ideas on what may be wrong??

    I don't have a Magic Mouse, but there is probably a setting that enables and disables horizontal scrolling.  Look on System Preferences Mouse pane.

  • Swipe left and right with magic mouse doesn't work in safari

    Hey there,
    I accidently deleted something in the navigation bar in safari.
    Now when i swipe left and right with my magic mouse, it doesn't go to the previous pages anymore. But the wierd thing is it still works with my magic trackpad.
    And even wierder the swipe left and right of my magic mouse still works in other programs.
    So can anyone help me with this?
    Thanks in advance!

    Check Gestures in System Preferences > Trackpad
    It's working here on Safari 7  /  v10.9 Mavericks

Maybe you are looking for