Mouse event error

I have this error message on a button that I am trying to
apply this script to:
on(release){
gotoAndPlay("still1");
**Error** Scene=Scene 1, layer=button1, frame=35:Line 1:
Mouse events are permitted only for button instances
on(release){
Total ActionScript Errors: 1 Reported Errors: 1
It is a button, it is on it's own layer, and nothing else is
happening on that layer.
So what is happening here?
Kevin

kevin raleigh wrote:
> I have this error message on a button that I am trying
to apply this script to:
>
> on(release){
> gotoAndPlay("still1");
> }
> **Error** Scene=Scene 1, layer=button1, frame=35:Line 1:
Mouse events are
> permitted only for button instances
> on(release){
The action is applied to frame not button, make sure you
select the right thing
before applying your action, sometimes flash loses focus and
accidentally you
can select frame instead. The error actually clearly state
that:
You asing button action to Scene 1, layer named 'button' and
frame 35.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • All buttons in all files are now showing error: Mouse events are permitted only for button instances.

    Somebody please help:
    I've taught myself enough with Flash to customize a
    fully-Flash template for my wife's website, and two of the buttons
    didn't do what I wanted them to in Actionscript. They then began
    giving me the message:
    **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 1:
    Mouse events are permitted only for button instances
    on (rollOver) {
    **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 4:
    Mouse events are permitted only for button instances
    on (releaseOutside, rollOut) {
    Total ActionScript Errors: 2 Reported Errors: 2
    Not only do I not know how to fix this, the same message
    comes up for every single button in the entire fla I had saved,
    plus earlier versions where I hadn't even messed with the buttons
    yet.
    Any suggestions?

    Hello Corbett,
    The error is saying that you are trying to apply a button
    action to something
    other than a button. Often this happens when you select the
    frame that the
    button is on instead of the actual button, thus applying the
    action to the
    frame instead of the button.
    Make sure you select the button on the stage and then apply
    the actions there.
    You'll probably have to remove the action from the frame
    before it will work
    (looks like it's on Layer 4 frame 1).
    Good luck!
    Jesse H.
    Adobe Community Expert
    My site:
    http://www.jharding.com
    Free Blog Radio:
    http://www.tornadostream.com
    > Somebody please help:
    > I've taught myself enough with Flash to customize a
    fully-Flash
    > template for
    > my wife's website, and two of the buttons didn't do what
    I wanted them
    > to in
    > Actionscript. They then began giving me the message:
    >
    > **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
    1: Mouse
    > events are
    > permitted only for button instances
    > on (rollOver) {
    > **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
    4: Mouse
    > events are
    > permitted only for button instances
    > on (releaseOutside, rollOut) {
    > Total ActionScript Errors: 2 Reported Errors: 2
    >
    > Not only do I not know how to fix this, the same message
    comes up for
    > every
    > single button in the entire fla I had saved, plus
    earlier versions
    > where I
    > hadn't even messed with the buttons yet.
    > Any suggestions?

  • Frequent Mouse-Down Errors

    I'm experiencing frequent (every 11 minutes or so) mouse-down errors. As this occurs in any variety of apps, including the Finder, the application in-use seems to not be a factor.
    I will be using an application and suddenly the track-pad no longer works. This is will last for between one and three minutes. Sometimes, the front-most window will veer suddenly to the left so that it is halfway off the screen. I will be unable to move it until the mouse-down error ends. Most of the time, I can continue to move the mouse around during these events, but I can't click on or move anything. Sometimes, gestures (like 4 finger push up to reveal Mission Control) will be disabled during these events, but not always. During these events, I am also unable to drag and drop any files from one space to another.
    This is extremely frustrating and very disruptive to my work and I would really appreciate any help in resolving this.
    The problem began a week or so ago after I installed more than a dozen applications; I have experimented with quitting one menulet at a time with no results. It seems to me, since the error is occurring on a fairly regular basis that one background process or another is causing it so the offending app would need to be fully uninstalled, not just quit anyway.
    I'm wondering, at this point, if I should just restore from a two week old backup, but I would really like to avoid that hassle if it's possible to simple identify the offending process.
    These are some of the console logs of mouse-downs:
    This is the most recent EtreCheck report:
    EtreCheck version: 1.9.15 (52)
    Report generated 23, August, 2014 11:45:28 AM EDT
    Hardware Information: ?
        Mac mini Server (Late 2012) (Verified)
        Mac mini - model: Macmini6,2
        1 2.6 GHz Intel Core i7 CPU: 4 cores
        16 GB RAM
    Video Information: ?
        Intel HD Graphics 4000 - VRAM: 768 MB
            E2350 1920 x 1080 @ 60 Hz
    System Software: ?
        OS X 10.8.5 (12F45) - Uptime: 1 day 13:45:29
    Disk Information: ?
        APPLE SSD SM256E disk0 : (251 GB)
        S.M.A.R.T. Status: Verified
            disk0s1 (disk0s1) <not mounted>: 209.7 MB
            ⨀ (disk0s2) / [Startup]: 250.14 GB (72.26 GB free)
            Recovery HD (disk0s3) <not mounted>: 650 MB
        APPLE SSD SM256E disk1 : (251 GB)
        S.M.A.R.T. Status: Verified
            disk1s1 (disk1s1) <not mounted>: 209.7 MB
            ☾ (disk1s2) /Volumes/☾: 250.66 GB (250.34 GB free)
    USB Information: ?
        VIA Labs, Inc.  USB3.0 Hub        
            VIA Labs, Inc.  USB3.0 Hub        
                Western Digital My Book 1144 4 TB
                    S.M.A.R.T. Status: Verified
                    disk7s1 (disk7s1) <not mounted>: 209.7 MB
                    ⠍⠑⠙⠊⠁∞ (disk7s2) /Volumes/⠍⠑⠙⠊⠁∞: 4 TB (695.3 GB free)
                Western Digital My Book 1144 4 TB
                    S.M.A.R.T. Status: Verified
                    disk6s1 (disk6s1) <not mounted>: 209.7 MB
                    ⠍⠑⠙⠊⠁ (disk6s2) /Volumes/⠍⠑⠙⠊⠁: 4 TB (1.17 TB free)
                Western Digital My Book 1144 2 TB
                    S.M.A.R.T. Status: Verified
                    disk5s1 (disk5s1) <not mounted>: 209.7 MB
                    ♾ ∞ (disk5s2) /Volumes/♾ ∞: 2 TB (823.76 GB free)
                Western Digital My Book 1144 2 TB
                    S.M.A.R.T. Status: Verified
                    disk4s1 (disk4s1) <not mounted>: 209.7 MB
                    ♾ (disk4s2) /Volumes/♾: 2 TB (826.78 GB free)
            VIA Labs, Inc.  USB3.0 Hub        
        Wacom Co.,Ltd. Intuos5 touch L
        Audioengine                      Audioengine 2+  
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. IR Receiver
    Firewire Information: ?
        LaCie Group SA LaCie DVD MULTI Drive 400mbit - 400mbit max
        WD My Book 111D 800mbit - 800mbit max
            S.M.A.R.T. Status: Verified
            disk3s1 (disk3s1) <not mounted>: 209.7 MB
            ⨀ ☾ ∞ (disk3s2) /Volumes/⨀ ☾ ∞: 999.83 GB (310.49 GB free)
        WD My Book 111D 800mbit - 800mbit max
            S.M.A.R.T. Status: Verified
            disk2s1 (disk2s1) <not mounted>: 32 KB
            Djuna (disk2s3) /Volumes/Djuna: 2 TB (467.22 GB free)
    Thunderbolt Information: ?
        Apple Inc. thunderbolt_bus
    Configuration files: ?
        /etc/hosts - Count: 21
    Gatekeeper: ?
        Anywhere
    Kernel Extensions: ?
        [loaded]    com.AmbrosiaSW.AudioSupport (4.1.2 - SDK 10.7) Support
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) Support
        [loaded]    com.bresink.driver.BRESINKx86Monitoring (9.0) Support
        [loaded]    com.cleancutcode.displaypaddriver (14 - SDK 10.7) Support
        [loaded]    com.cleancutcode.displaypadframebuffer (14 - SDK 10.7) Support
        [loaded]    com.dvdfab.kext.fabio (1) Support
        [loaded]    com.eltima.ElmediaPlayer.kext (1.58 - SDK 10.4) Support
        [loaded]    com.makemkv.kext.daspi (1) Support
        [not loaded]    com.roxio.TDIXController (2.0) Support
        [not loaded]    com.silabs.driver.CP210xVCPDriver (3.0.0d1) Support
        [not loaded]    com.silabs.driver.CP210xVCPDriver64 (3.0.0d1) Support
        [not loaded]    com.wacom.kext.wacomtablet (6.3.6 - SDK 10.8) Support
        [not loaded]    com.wdc.driver.1394HP (1.0.9) Support
        [loaded]    com.wdc.driver.1394_64HP (1.0.1 - SDK 10.6) Support
        [not loaded]    com.wdc.driver.USBHP (1.0.11) Support
        [loaded]    com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6) Support
        [loaded]    org.virtualbox.kext.VBoxDrv (4.3.12) Support
        [loaded]    org.virtualbox.kext.VBoxNetAdp (4.3.12) Support
        [loaded]    org.virtualbox.kext.VBoxNetFlt (4.3.12) Support
        [loaded]    org.virtualbox.kext.VBoxUSB (4.3.12) Support
    Startup Items: ?
        ProTec6b: Path: /Library/StartupItems/ProTec6b
        rEFItBlesser: Path: /Library/StartupItems/rEFItBlesser
    Launch Daemons: ?
        [loaded]    com.adobe.fpsaud.plist Support
        [loaded]    com.adobe.SwitchBoard.plist Support
        [loaded]    com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist Support
        [loaded]    com.barebones.authd.plist Support
        [loaded]    com.bombich.ccc.plist Support
        [running]    com.bombich.ccc.scheduledtask.17F56F48-3C2C-4D3B-B47E-205306ACCFDB.plist Support
        [not loaded]    com.bombich.ccc.scheduledtask.2D2A146C-2C9A-49C3-AB42-CC8739EB950B.plist Support
        [not loaded]    com.bombich.ccc.scheduledtask.5E0B2858-77D7-4B7F-9CFF-200039E53FA9.plist Support
        [running]    com.bombich.ccc.scheduledtask.5FDB8E27-273B-485D-AC72-217F3FD8119B.plist Support
        [running]    com.bombich.ccc.scheduledtask.65FB7ACA-8A91-47EC-AC2F-348EE1CE3AC4.plist Support
        [running]    com.bombich.ccc.scheduledtask.D8145D25-190A-44BF-BB03-CF94E6D9ADD7.plist Support
        [loaded]    com.cyberghostsrl.CyberghostPrivilegedHelper.plist Support
        [running]    com.eltima.ElmediaPlayer.daemon.plist Support
        [running]    com.freemacsoft.appcleanerd.plist Support
        [loaded]    com.github.GitHub.GHInstallCLI.plist Support
        [loaded]    com.google.keystone.daemon.plist Support
        [running]    com.informer.mac.daemon.plist Support
        [loaded]    com.JWVD.cbcache.plist Support
        [loaded]    com.microsoft.office.licensing.helper.plist Support
        [loaded]    com.oracle.java.Helper-Tool.plist Support
        [loaded]    com.oracle.java.JavaUpdateHelper.plist Support
        [not loaded]    com.robohippo.HippoConnectDaemon.plist Support
        [loaded]    com.rogueamoeba.instanton-agent.plist Support
        [loaded]    com.teamviewer.Helper.plist Support
        [not loaded]    com.teamviewer.teamviewer_service.plist Support
        [loaded]    com.timesoftware.timemachineeditor.helper.plist Support
        [running]    com.wdc.WDDMservice.plist Support
        [running]    com.wdc.WDSmartWareServer.plist Support
        [loaded]    net.interacto.flavours.helper.plist Support
        [running]    org.glimmerblocker.proxy.plist Support
        [loaded]    org.macosforge.xquartz.privileged_startx.plist Support
        [not loaded]    org.virtualbox.startup.plist Support
        [loaded]    org.wireshark.ChmodBPF.plist Support
    Launch Agents: ?
        [not loaded]    com.adobe.AAM.Updater-1.0.plist Support
        [loaded]    com.divx.dms.agent.plist Support
        [loaded]    com.divx.update.agent.plist Support
        [running]    com.epson.eventmanager.agent.plist Support
        [loaded]    com.google.keystone.agent.plist Support
        [loaded]    com.oracle.java.Java-Updater.plist Support
        [running]    com.robohippo.HippoConnectAgent.plist Support
        [not loaded]    com.teamviewer.teamviewer.plist Support
        [not loaded]    com.teamviewer.teamviewer_desktop.plist Support
        [running]    com.wacom.wacomtablet.plist Support
        [failed]    net.culater.SIMBL.Agent.plist Support
        [loaded]    org.glimmerblocker.updater.plist Support
        [loaded]    org.macosforge.xquartz.startx.plist Support
    User Launch Agents: ?
        [loaded]    com.adobe.ARM.[...].plist Support
        [failed]    com.adobe.ARM.[...].plist Support
        [loaded]    com.BlueStacks.AppPlayer.LogRotator.plist Support
        [loaded]    com.BlueStacks.AppPlayer.Service.plist Support
        [loaded]    com.BlueStacks.AppPlayer.UninstallAgent.plist Support
        [loaded]    com.BlueStacks.AppPlayer.UpdaterAgent.plist Support
        [running]    com.bombich.ccc-user-agent.plist Support
        [running]    com.nchsoftware.expressinvoice.agent.plist Support
        [running]    com.nchsoftware.inventoria.agent.plist Support
        [loaded]    com.nchsoftware.switch.schedule.LikeSurvey.plist Support
        [running]    com.plexapp.helper.plist Support
        [running]    com.spotify.webhelper.plist Support
        [loaded]    com.valvesoftware.steamclean.plist Support
        [not loaded]    org.virtualbox.vboxwebsrv.plist Support
        [loaded]    uk.co.markallan.clamxav.clamscan.plist Support
        [loaded]    uk.co.markallan.clamxav.freshclam.plist Support
    User Login Items: ?
        CheatSheet
        handyPrintDaemon
        iTunesHelper
        iTunes
        Degrees
        Calendar
        Wunderlist
        Mint QuickView
        Mail Call
        Plex Media Server
        Dropbox
        DeskConnect
        CloudClip Manager
        Converto
        Brightness Slider
        ByteController
        Moom
        App for Facebook
        Cobook
        Numi 2
        SnappyApp
        TotalFinder
        XtraFinder
    Internet Plug-ins: ?
        DirectorShockwave: Version: 12.0.5r146 - SDK 10.6 Support
        o1dbrowserplugin: Version: 5.4.2.18903 Support
        JavaAppletPlugin: Version: Java 7 Update 60 Check version
        WacomNetscape: Version: 2.1.0-1 - SDK 10.8 Support
        OVSHelper: Version: 1.1 Support
        AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 Support
        WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.2 Support
        AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 Support
        FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
        DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
        AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 Support
        Flash Player: Version: 14.0.0.145 - SDK 10.6 Outdated! Update
        QuickTime Plugin: Version: 7.7.1
        googletalkbrowserplugin: Version: 5.4.2.18903 Support
        SharePointBrowserPlugin: Version: 14.3.6 - SDK 10.6 Support
        AdobePDFViewer: Version: 11.0.07 - SDK 10.6 Support
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
        MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
    Safari Extensions: ?
        myPlex Queue-2
        AdBlock
        DuckDuckGo
        Save to Pocket
        LinkThing
        Deanimator
        Harakirimail
        dotepub
        ClickToFlash
        JavaScript Blocker-2 (Disabled)
        FeedButton
        1Password
    Audio Plug-ins: ?
        AirPlay: Version: 1.7 - SDK 10.8
        iSightAudio: Version: 7.7.1 - SDK 10.8
        InstantOn: Version: 8.0.0 - SDK 10.8 Support
    iTunes Plug-ins: ?
        Quartz Composer Visualizer: Version: 1.4 - SDK 10.8
    User Internet Plug-ins ?
        BlueStacks Install Detector: Version: 0.3.6 - SDK 10.7 Support
        RealPlayer Plugin: Version: Unknown
    3rd Party Preference Panes: ?
        Flash Player  Support
        GlimmerBlocker  Support
        handyPrint  Support
        Java  Support
        MenuMeters  Support
        Perian  Support
        Shades Preferences  Support
        SwitchResX  Support
        WacomTablet  Support
    Time Machine: ?
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: YES
        Volumes being backed up:
            ⨀: Disk size: 232.96 GB Disk used: 165.67 GB
            ☾: Disk size: 233.44 GB Disk used: 298 MB
        Destinations:
            Ectoplasm [Local] (Last used)
            Total size: 931.16 GB
            Total number of backups: 77
            Oldest backup: 2013-12-21 04:36:50 +0000
            Last backup: 2014-08-23 15:01:44 +0000
            Size of backup disk: Adequate
                Backup size 931.16 GB > (Disk used 165.96 GB X 3)
        Time Machine details may not be accurate.
        All volumes being backed up may not be listed.
    Top Processes by CPU: ?
            11%    firefox
             2%    WindowServer
             1%    Dropbox
             1%    Console
             1%    plugin-container
    Top Processes by Memory: ?
        1.76 GB    firefox
        1.70 GB    com.apple.automator.xpc.workflowServiceRunner
        393 MB    mds
        262 MB    iTunes
        213 MB    installd
    Virtual Memory Information: ?
        3.03 GB    Free RAM
        6.08 GB    Active RAM
        4.47 GB    Inactive RAM
        2.41 GB    Wired RAM
        1.56 GB    Page-ins
        0 B    Page-outs
    Again, I would really appreciate any suggestions or questions you can throw at me.
    Thank you

    Try un-installing SIMBL. It is a system hack.
    SIMBL Uninstall
    SIMBL Uninstall (2)     See solution posted by Linc Davis .
    Try un-installing the applications you installed. Un-install using the developer’s instructions to make sure you remove all parts of the application. Some people recommend not installing an application unless you know how to remove it. When you find the problem application, you can try re-installing the others.

  • Need More Mouse Events

    [http://forums.sun.com/thread.jspa?messageID=10811388|http://forums.sun.com/thread.jspa?messageID=10811388]
    During search over net I found the above thread and it seems to be describing the same problem which I am also facing. For my application also I need to capture all the mouse events while dragging. I tried the soluiotn mentioned at this thread to solve this problem by overrinding the below method in several ways:
    protected AWTEvent coalesceEvents(AWTEvent existingEvent,AWTEvent newEvent);
    Even after several attempts, I could not succeed. Can you please suggest how to do that. I was not able to reply to above thread so creating this new thread.
    Thanks

    I wanted to see if a timer based approach does indeed produce a smoother curve than just simply listening for mouse drag events. What I came up with below was the resulting test code. Lo and behold, using a timer does indeed produce a smoother curve. But it wasn't because it was capturing more mouse positions, it was because it was capturing less. Ain't that a kicker? Another interesting thing is that according to the source code, coalesceEvents is a no-op. The documentation, however, would have you believe that it coalesces mouse events as I thought it did.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.GeneralPath;
    import javax.swing.SwingUtilities;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.Timer;
    import javax.swing.BorderFactory;
    public class Test {
        private static class TimerBasedPanel extends JPanel implements MouseListener {
            private GeneralPath line;
            private Timer mousePosQuerier;
            private Component mouseEvtSource;
            private int pointCount;
            public TimerBasedPanel(Component mouseEventSource) {
                mousePosQuerier = new Timer(15, new ActionListener() {
                    Point lastMousePoint = new Point(-1, -1);
                    public void actionPerformed(ActionEvent e) {
                        Point p = MouseInfo.getPointerInfo().getLocation();
                        if (p.x != lastMousePoint.x || p.y != lastMousePoint.y) {
                            lastMousePoint.setLocation(p);
                            SwingUtilities.convertPointFromScreen(p, mouseEvtSource);
                            line.lineTo(p.x, p.y);
                            pointCount++;
                            repaint();
                mouseEvtSource = mouseEventSource;
            public void paintComponent(Graphics g) {
                super.paintComponent(g);
                if(line != null) {
                    ((Graphics2D) g).draw(line);
            public void mousePressed(MouseEvent e) {
                line = new GeneralPath();
                line.moveTo(e.getX(), e.getY());
                pointCount = 1;
                mousePosQuerier.start();
            public void mouseReleased(MouseEvent e) {
                mousePosQuerier.stop();
                repaint();
                System.out.println("Timer Based, Points Captured: " + pointCount);
            public void mouseEntered(MouseEvent e){}
            public void mouseExited(MouseEvent e){}
            public void mouseClicked(MouseEvent e){}
        private static class DragEventsPanel extends JPanel
                implements MouseListener, MouseMotionListener{
            private GeneralPath line;
            private int pointCount;
            public void paintComponent(Graphics g) {
                super.paintComponent(g);
                if(line != null) {
                    ((Graphics2D) g).draw(line);
            public void mousePressed(MouseEvent e) {
                line = new GeneralPath();
                line.moveTo(e.getX(), e.getY());
                pointCount = 1;
            public void mouseDragged(MouseEvent e) {
                pointCount++;
                line.lineTo(e.getX(),e.getY());
                repaint();
            public void mouseReleased(MouseEvent e){
                System.out.println("DragEvent Based, Points Captured: " + pointCount);
            public void mouseEntered(MouseEvent e){}
            public void mouseExited(MouseEvent e){}
            public void mouseClicked(MouseEvent e){}
            public void mouseMoved(MouseEvent e) {}
        public static void main(String args[]) {
            JFrame frame = new JFrame();
            JPanel drawPanel = new JPanel() {
                @Override
                protected AWTEvent coalesceEvents(AWTEvent existingEvent,
                                                  AWTEvent newEvent) {
                    if(newEvent.getID() == MouseEvent.MOUSE_DRAGGED) {
                        return null;
                    }else {
                        return super.coalesceEvents(existingEvent, newEvent);
            TimerBasedPanel timerPanel = new TimerBasedPanel(drawPanel);
            DragEventsPanel dragPanel = new DragEventsPanel();
            drawPanel.setBorder(BorderFactory.createTitledBorder("Draw here"));
            timerPanel.setBorder(BorderFactory.createTitledBorder("Uses a timer"));
            dragPanel.setBorder(BorderFactory.createTitledBorder("Listens for drag events."));
            drawPanel.addMouseListener(timerPanel);
            drawPanel.addMouseListener(dragPanel);
            drawPanel.addMouseMotionListener(dragPanel);
            frame.setLayout(new java.awt.GridLayout(0,3));
            frame.add(drawPanel);
            frame.add(timerPanel);
            frame.add(dragPanel);
            frame.setSize(600,200);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }Edited by: Maxideon on Sep 16, 2009 9:56 PM
    Minor error, but now fixed.

  • Mouse event problem (NEW problem)

    Sorry guys...
    The last problem was solved, yes... but another one has shown
    up!
    Remember the code:
    txt82.visible = false;
    botao82.addEventListener(MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener(MouseEvent.MOUSE_OUT, botao82out);
    botao82.addEventListener(MouseEvent.CLICK, botao82click);
    function botao82over(event: MouseEvent)
    txt82.visible = true;
    function botao82out(event: MouseEvent)
    txt82.visible = false;
    function botao82click(event: MouseEvent)
    gotoAndPlay("video82");
    where i wanted a texto to show or hide depending on the mouse
    event?
    Ok...
    Now, when i CLICK, i'll go over to "video82" allright, but
    i'll ALSO get an error!
    "Cannot access a property or method of a null object
    reference" - on botao82out
    which means that: when i click and move up to "video82", the
    mouseout is also called to make the text dissapear but the function
    is no more available because we've moved up to another time.
    Any possibilities?
    Erik.

    Hi Haran,
    bota82 IS the movieclip, which has to be like that because of
    the naming of it's instance, used to get called in the code.
    But anyway, guys, i found the solution! YEP! Increases
    tremendously the code, but... well... it works!
    i had the button layer extended all over the time.
    The problem with this is that when i clicked and went to the
    frame video82, for example, all the buttons still showed as
    clickable.
    How did i solve that?
    More magic! Disappearing magic!
    at the beginning of the code i certify the buttons to be
    visible:
    botao82.visible = true;
    and so on with all of them...
    then, right before the click function, i turned them all OFF
    ! :D
    function botao82click(event: MouseEvent)
    botao82.visible = false;
    botao83.visible = false;
    botao84.visible = false;
    botao85.visible = false;
    botao86.visible = false;
    botao87.visible = false;
    botao88.visible = false;
    botao89.visible = false;
    botao90.visible = false;
    gotoAndPlay("video82");
    Phew! It worked!
    Know what? I think clearer when i discuss the problem with my
    fellows here in the forum! Thanks everyone.
    Hope this helps others in the future!
    Erik.

  • Deprecated Mouse Event Functions

    While I was tryng to use the Xeon.java program provided by Java in the free applets page, I got deprecation errors for all of the mouse event functions like, mouseEvent(), mouseDown,.. . Is
    there any way that I can get this to work without totally changing my code, or is there an update anywhere to this program that does not have deprecated components.

    No, deprecated code still compiles!
    Deprecation warnings are just that -- only warnings.
    You should update the deprecated classes and methods if you're making changes to the code or deploying it, but you don't need to.

  • Mouse Events In Web

    Hi,
    I am under migrate my application to web and a lot of problems happens.
    First i am using mouse events in my application and i found a PCJ ( HandleMouseEvent2) in this site
    http://forms.pjc.bean.over-blog.com/ext/http://sheikyerbouti.developpez.com/forms-pjc-bean/menu/
    First My questions :
    1- Is beans working fine with forms?
    2- If i use mouse evnets using PCJ in oracle form this well effect on the network.
    3- I need simple instruction how to implement a java bean with oracle form i read most of threads about how to implement java bean but still no clear thread about instructions a,b,c,d ....etc.
    4- If i bring any jar file this jar file need a special jinitiator version or what ?
    5- What is the best solution to make PCJ working fine with forms?
    A lot of question i appreciate for help.........Thanks
    Regards,
    Edited by: kingadmin on Dec 1, 2010 9:04 AM

    Mouse events it's not working in that bean i go this error
    racle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\habib
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\habib\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://nvs-087673b1bea:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://nvs-087673b1bea:8889/forms/java/FormsProperties.jar from JAR cache
    Loading http://nvs-087673b1bea:8889/forms/java/MouseEvents.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    [oracle.forms.fd.HandleMouseEvent2] --> HandleMouseEvent20 [class oracle.forms.fd.HandleMouseEvent2]1.0,1.0
    [oracle.forms.fd.HandleMouseEvent2] --> ScrollBox1 [class oracle.ewt.scrolling.scrollBox.ScrollBox]41.0,159.0
    [oracle.forms.fd.HandleMouseEvent2] --> VButton0 [class oracle.forms.ui.VButton]41.0,8.0
    [oracle.forms.fd.HandleMouseEvent2] --> VCheckbox0 [class oracle.forms.ui.VCheckbox]41.0,39.0
    [oracle.forms.fd.HandleMouseEvent2] --> VRadioButton0 [class oracle.forms.ui.VRadioButton]41.0,65.0
    [oracle.forms.fd.HandleMouseEvent2] --> VRadioButton1 [class oracle.forms.ui.VRadioButton]120.0,65.0
    [oracle.forms.fd.HandleMouseEvent2] --> VTextArea0 [class oracle.forms.ui.VTextArea]41.0,96.0
    [oracle.forms.fd.HandleMouseEvent2] --> VComboBox0 [class oracle.forms.ui.VComboBox]41.0,125.0
    [oracle.forms.fd.HandleMouseEvent2] --> VTextArea1 [class oracle.forms.ui.VTextArea]0.0,0.0
    [oracle.forms.fd.HandleMouseEvent2] SetProp CANVAS2 0 0
    [oracle.forms.fd.HandleMouseEvent2] --> found CANVAS2
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.BEAN 1 1
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.BEAN
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.PB 41 8
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.PB
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.CB 41 39
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.CB
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.RG 41 65
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.RG
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.RG 120 65
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.RG
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.TI 41 96
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.TI
    [oracle.forms.fd.HandleMouseEvent2] SetProp BL.LIST1 41 125
    [oracle.forms.fd.HandleMouseEvent2] --> found BL.LIST1
    [oracle.forms.fd.HandleMouseEvent2] SetProp TREE.TREE 41 159
    [oracle.forms.fd.HandleMouseEvent2] --> found TREE.TREE
    [oracle.forms.fd.HandleMouseEvent2] Component clicked:oracle.forms.ui.FormDesktopContainer
    Exception occurred during event dispatching:
    java.lang.NoSuchMethodError
         at oracle.forms.fd.HandleMouseEvent2.handleComponent(HandleMouseEvent2.java:292)
         at oracle.forms.fd.HandleMouseEvent2.access$6000171(HandleMouseEvent2.java:39)
         at oracle.forms.fd.HandleMouseEvent2$2.mouseEntered(HandleMouseEvent2.java:139)
         at java.awt.AWTEventMulticaster.mouseEntered(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider.processMouseGrabs(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._checkTarget(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._checkTarget(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp.mouseEntered(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Mouse events don't work on a button from a panel ran in a DLL

    Hi.
    I have a DLL that loads a panel.
    Since it's a DLL I can't do the RunUserInterface() function, because the DLL would be stuck waiting for the panel events.
    I only do the LoadPanel().
    When I click with the mouse on one of the buttons, the pushing down event (simulating the button being pressed) doesn't happen and the callback doesn't run.
    But if I press the tab button until the focus reaches the button and press Enter, the callback of the button is executed.
    An even more interesting aspect is that this happens when I call the DLL on TestStand, but on an application of mine that calls the DLL just for debug everything works fine.
    How can I enable the mouse events?
    Thanks for your help.
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda
    Solved!
    Go to Solution.

    Hello Daniel,
    I got surprised when I read your post, because I am experiencing something almost the same as you do.
    I have a DLL (generated by an .fp instrument driver I wrote) which performs continious TCP communication with the UUT.
    It starts 2 threads, each for reading from one of the 2 different IPs the UUT has.
    Another DLL tests this UUT (with the help of the communication DLL above) by exporting functions to be called by TestStand steps.
    If the second DLL wants to display a CVI panel in order to wait for the user response or displays a popup (MessagePopup, ConfirmPopup, etc), user cannot press the buttons.
    Actually, there is a point your program and mine differ. I call RunUserInterface and the button's callbacks call QuitUserInterface, so the execution continues after a button is pressed. The problem is buttons cannot be pressed. I also tried looping on GetUserEvent  but it did not solve the problem.
    There are 2 findings:
    1. I had a small exe to test my instrument driver DLL and the popups in it worked pretty well (this coincides with Daniel's findings).
    2. We workedaround the problem by shutting down the communication threads in the instrument driver DLL before the popup appears and restrating them afterwards. Although they are separate threads in another DLL, they were somehow blocking user events on another DLL running.
    S. Eren BALCI
    www.aselsan.com.tr

  • Mouse Events are slow

    Hello everyone,
    I'm currently working on an standard as3 (1024x768) app that
    is running inside a chromeless Air window to take advantage of the
    transparency.
    All my tests where done using windows XP professional and AIR
    1.0 (the same problem existed in beta3).
    The issue I'm having is related with Mouse Events. Somehow
    the events take a lot of time to reach the swf file when the user
    clicks inside the transparent window.
    It's natural that the app runs slower inside a transparent
    window (the framerate drops) but I wasn't expecting the clicks to
    suffer from such delay (it takes sometimes 2-5sec).
    The app is very CPU intensive and the transparencies make it
    worse. Something inside the AIR framework is not dispatching the
    events properly.
    I say this because I tried using the virtualMouse class from
    senocular together with a socket to simulate the mouse clicks and
    that did the trick.
    In conclusion:
    Something in the AIR framework for windows XP is messing up
    the dispatch of the Mouse events when the app is under heavy cpu
    usage inside a chromeless window. I click on the window and it
    takes 1-2sec to receive the click event.
    However when I dispatch the MouseEvent.CLICK myself using
    the virtual mouse class the application immediately receives the
    event.
    I know this is a strange bug and not many people will have
    this problem, but I would like to know from someone with knowledge
    of the runtime why this could be happening.
    Thank you
    Tiago Bilou

    Hello everyone,
    I'm currently working on an standard as3 (1024x768) app that
    is running inside a chromeless Air window to take advantage of the
    transparency.
    All my tests where done using windows XP professional and AIR
    1.0 (the same problem existed in beta3).
    The issue I'm having is related with Mouse Events. Somehow
    the events take a lot of time to reach the swf file when the user
    clicks inside the transparent window.
    It's natural that the app runs slower inside a transparent
    window (the framerate drops) but I wasn't expecting the clicks to
    suffer from such delay (it takes sometimes 2-5sec).
    The app is very CPU intensive and the transparencies make it
    worse. Something inside the AIR framework is not dispatching the
    events properly.
    I say this because I tried using the virtualMouse class from
    senocular together with a socket to simulate the mouse clicks and
    that did the trick.
    In conclusion:
    Something in the AIR framework for windows XP is messing up
    the dispatch of the Mouse events when the app is under heavy cpu
    usage inside a chromeless window. I click on the window and it
    takes 1-2sec to receive the click event.
    However when I dispatch the MouseEvent.CLICK myself using
    the virtual mouse class the application immediately receives the
    event.
    I know this is a strange bug and not many people will have
    this problem, but I would like to know from someone with knowledge
    of the runtime why this could be happening.
    Thank you
    Tiago Bilou

  • Firefox mouse event not behaving the same on PC and Mac computers

    I use the FCKEditor and having a very strange problem. When I click on the FCKEditor's editing area, the keyboard gets disabled untill I click the mouse somewhere outside of the editing window. The problem only happen on Firefox (3.6.10) on Mac computer (Snowleopard 10.6.4). Doing exactly the same steps on PC works without any problem.
    What I want to know:
    - Is it possible that the Firefox on Mac is different than the PC in handling mouse events? Or some other areas?

    Sounds more that Firefox is treating that editor area as read-only.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Non modal PopUpManager blocking mouse events

    In our application we have a header, footer and center area.  We have a situation where we want to block the header and center area with a popup, but leave the footer area so it can be clicked on.  The code works fine and it all looks good, except the mouse events are blocked to the footer.  If we slightly resize the window (either with the mouse or programatically) it all "wakes up" and starts working.  I have tried all sorts of invalidateDisplayList, validateDisplayList, validateNow, etc.  I am throwing this out there to see if anyone else has had this problem and if there is something I am missing.  I can't easily share my code, but if I don't get a reply I'll put together a code example to see if I can recreate it.  Any ideas are very welcome.  Been scratching my head at this one for 3 days now. 

    I should point out that we are using "false" for the modal flag, just in case anyone was thinking that.  It all works fine once it "wakes up" through resizing, but I need to make that happen without the resizing.
    And we have tried all sorts of "callLater" behavior in conjuction with the invalidate/validate calls. 

  • Mouse events during Thread.sleep

    hi.
    I have an applet .
    I have a alghoritm simulator.
    Everytime I find a solution I call the method Thread.sleep .
    I want to pause the application and I create a JToggleButton Pause .
    When I press the Pause during sleep mouse event are managed at the end of alghoritm.
    How can I manage mouse events during sleep?

    All UI events (such as mouse events) occur on the event dispatch thread (EDT).
    That means if you sleep on the EDT, you lock up the UI. For this reason, you shouldn't be sleeping on the EDT.
    I'm not sure what your sleep is trying to do but you need to manage your threads a little more carefully. For instance, any time consuming process which is invoked as a result of a UI event needs to be fired on a new thread to prevent the UI freezing. The fun starts when you have to update the UI as a result of that process, because you should then hook back onto the EDT to avoid the risk of deadlock.
    Some utility classes are provided, such as SwingUtilities, and other example code is provided on Sun's site, such as SwingWorker - but if you do much UI work you'll probably end up with your own core set of threading tools and so on to make life easier.

  • HTML/JS: Capturing mouse events while Air is out of focus

    Hi,
    I've been trying to determine if it is possible to receive mouse events (like MOUSE_WHEEL) if the Air window does not currently have focus. I'd like my application to support the mouse wheel for scrolling while the cursor is over the application, without requiring the user to click the application and gain focus. My application uses JavaScript to scroll an unordered list within a DIV set to overflow:hidden (to prevent the native scrollbar from appearing).
    Thanks for your help!
    Andrew

    I doubt that AIR would pick up events fired while not having focus. Perhaps you could fake it by creating an AIR project that runs "fullscreen", but has a smaller active window. Anywhere your mouse went it would still capture the scrolling event, but you could conditionalize it so that it only worked in certain areas.

  • Mouse Events at the icon in systray.

    My program call library function to add, modify or delete icon into systray.
    Additionaly I'd like to get back information when any mouse event had happen under icon in systray like move mouse, right/left button click etc. to display popup menu (as an standart behaviour).
    I've tried Windows Message Queue, but it only works inside application window area.
    How could I do it ?
    Any suggestions, examples or advises ?
    Rumcajs.

    Requirements    Price: $29.95
     Application Software:
    LabVIEW 7.0+
     Toolkits Software:
     Additional Software:
     Language's:
    LabVIEW
    INVtray LabVIEW Toolkit allows the programmer to create a LabVIEW program that can be hidden from the task bar and accessed through the System Tray.  Comes with a sample VI that demonstrates all the features of the toolkit.

  • Disabling mouse events

    hi,
    I am having objects on a JFrame that respond to mouse events. I would like to know how I can disable these events. I use the addMouseListener to register a mouse event on something. Is there a way to remove or to deregister mouse events.
    I basically have a game of tiles on a JFrame and I am going to have the human player play against the computer. I want to be able to have turns; computer and human player turn.

    removeMouseListener()

Maybe you are looking for