Working with mouse events in Strobe's Widget classes

I'm adding a caption on/off toggle button (classname CaptionButton) to the ControlBar class of Strobe Media Playback 1.5.1, and I'm having a difficult time understanding how mouse events are passed to child widgets of a ButtonWidget. In my CaptionButton class (which extends ButtonWidget), I add an instance of another widget, ListWidget, that extends Widget, and I show/hide this ListWidget with a mouse click event in the CaptionButton. The ListWidget is a composite class with a List component from Flash CS5, and the cell renderers in the List component do not respond to mouse events (over, selected, etc). How do I enable this type of mouse interaction within a Widget class? With the VolumeWidget, it looks like all mouse events are recreated and then controls are manually positioned according to the event properties, but this would be rather difficult with a component that has a virtual layout like List component. Any suggestions would be greatly appreciated.
-Robert

Ok, found that WidgetHint sets mouseChildren = false, etc. But I have a new problem---how do I stop autoHide timer while the user is interacting with a child widget? I was looking at the VolumeWidget that is used from the MuteButton widget, but I don't see how it stops the autoHide timer from enacting.

Similar Messages

  • Application is not working with mouse

    Dear All,
    We have a strange issue in the our application (Oracle form) in the one of our client machine.
    Some times the forms are not able to work with the mouse but is able to work with the keyboard. After one or two machine restart its again working. When the issue occur we can able to work in other applications using mouse.
    Our Applications server is in Other country and client are accessing from India.
    This occurs for some user and not for all.
    Application server Version          10.1.2.0.2.
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    Java Plug-in version 1.6.0_31 .
    Please any info will help us lot.

    Thank you for the quick replies Michael Ferrante and HamidHelal.
    But since its occurring for some users (perticulary indian users) and some times. And also its occurring in production environment not in development environment.
    Even the java control panel is not working with mouse.
    For other country customers everything working fine.
    So its difficult for me to apply the patch with these uncertainties.
    Checking with fresh java installation and let you know the status.
    Thanks.

  • Modifer keys do not work with mouse in Illustrator

    Below is a copy of a bug report I just submitted to Adobe. I don't suppose any users have run across this and found a solution or workaround?
    I found someone else with this problem in an archived topic thread, but the only response that poor fellow got was an accusation of not following instructions (His problem wasn't user error, BTW).
    Thanks
    ******BUG******
    Concise problem statement:
    Modifer keys do not work with mouse: For example, free transform or rotate behaviors that require "Click-Ctrl" .
    Steps to reproduce bug:
    1. select object
    2. select free transform tool
    3. left click (without releasing) a corner of the bounding box.
    4. start dragging
    5. press ctrl
    Results:
    object behaves as though the ctrl key was not pressed. i.e. the cursor does not change shape and the object scales rather than distorts.
    Expected results: The cursor should change shape as the ctrl key is pressed and the object should distort rather than scale.
    Additional information: This behavior is intermittent. Occasionally Illustrator recognizes the "Click-Ctrl" combination and behaves exactly as the help file predicts it will. The cursor changes shape and the object distorts rather than scales. I can offer no rhyme or reason for when Illustrator will behave as advertised and when it will ignore the modifier keys.
    The example above involves the free transform tool, but the problem occurs just as often with other tool behaviors that require a modifier key + mouse combination.
    Primarily using Wacom Intuos3 tablet. (with latest drivers), but have also tried combinations with microsoft mouse or both mice installed.
    Also, immediately after an occurrence Illustrator bug, left AI open, went to a different app that uses mouse+modifier (Ctrl+Click). That different app recognizes Ctrl+Click with no problems whatsoever.

    Thanks Guys,
    Good to know it's working for you. I guess that's the nature of intermittent bugs. Of course, Adobe's bug report form has a field for version, which I, of course, filled in. Sorry I didn't add it to this post. I'm using the latest version CS3 v13.0.2.
    Stephen,
    Sorry I was not more clear when I said, "For example, ...". I was talking about the modifier keys not working with several different tools. The Free Transform tool advertises functionality that is supposed to work with a "Click (down, but don't release)then hold down Ctrl" combination. The Rotate tool advertises a behavior that is supposed to work with an "Alt-Click" combination. These are just 2 examples of the modifier keys not working. I focused primarily on one example in the bug report(ctrl after and in addition to click in the free transform tool, not alt-click in the rotate tool).
    Here is what I expect(quoted from Adobe's CS3 help file)
    (From the "Distort Objects with the Free transform tool" help topic)
    "Select one or more objects.
    Select the Free Transform tool .
    Start dragging a corner handle on the bounding box (not a side handle), and then do one of the following:
    Hold down Ctrl (Windows) or Command (Mac OS) until the selection is at the desired level of distortion.
    Hold down Shift+Alt+Ctrl (Windows) or Shift+Option+Command (Mac OS) to distort in perspective."
    (from the "Rotate an object by a specific angle" help topic:)
    You can control the exact angle of rotation with the Rotate command.
    Select one or more objects.
    "Do one of the following:
    To rotate around the center point, choose Object > Transform > Rotate, or double-click the Rotate tool.
    To rotate around a different reference point, select the Rotate tool. Then Alt‑click (Windows) or Option‑click (Mac OS) where you want the reference point to be in the document window.
    Enter the rotation angle in the Angle text box...."
    These Tool based mouse-key combinations do occasionally work as they are supposed to, so I know what the expected results are supposed to look like, but whether they work or not appears to depend on the phase of the moon, the day of the week, and the color of the president's underwear.
    Other non-tool based mouse-key combinations in Illustrator work consistently all the time - Ctrl-A for Select All as just one example that always works.
    Thanks Again

  • Minimize button doesnt work with mouse right button after openning a new tab in windows 8.1 with firefox nightly

    I'am using Mozilla firefox nightly version in Windows 8.1 .... after starting the Mozilla all toolbar options, minimize, maximum buttons works fine. but as soon as i open a new tabe the (minimize, maximize, close) options do not work with mouse left button clicking. I have to click taskbar "nightly icon" to minimize or close the browser.

    HI Ashraful_007,
    Currently Nightly is not a supported version and is changing each day, however please also to not be discouraged to try to start Firefox in Safe Mode to make sure it is not an add on as well as file a bug in bugzilla.mozilla.org.

  • Good Morning, I am having issue downloading ebook. Getting message "Adobe digital edition 4.0 has stopped working" with problem event name : APPCRASH. Any ideas how to fix this?

    Good Morning, I am having issue downloading ebook. Getting message "Adobe digital edition 4.0 has stopped working" with problem event name : APPCRASH. Any ideas how to fix this?

    Do you have the most  current dirver for the printer?

  • Working with DropDown event in  Visual Composer

    Dear SDN's,
    I am working with the dropdown list in Visaul composer.
    I am having a scenario like,
    I am getting a table of rows from a output of one RFC, in the output table i have a dropdown field whose value can be changed at runtime.I want to pass the value hcanged and the corresponding row as an input to the other RFc.
    Current Approach:
    I have used a select event from the output port of table to the input port of other RFC. so it is taking the values of that row by selecting the row itself but i want to trigger the RFC after change the value in the dropdown list.
    How to do this.Pls suggest me the needful as early as possible,.
    Your help will be appreciated.
    Regards,
    Sireesha.B

    I think you need to create a button in the table control and make it a Submit event. Only then it will be triggering the RFC.

  • How to code 2 buttons with mouse events

    I am trying to code two buttons, both with mouse down events, but perform different functions. When I coded the script, I received the following error message:
    1021: Duplicate function definition.

    use different function names.

  • Trying to create a surface  with multiple images with mouse events

    novice programmer (for a applet program)
    hi trying to create a surface i.e jpanel, canvas, that allows multiple images to be created.
    Each object is to contain a image(icon) and a name associated with that particular image. Then each image+label has a mouse event that allows the item to be dragged around the screen.
    I have tried creating own class that contains a image and string but I having problems.
    I know i can create a labels with icons but having major problems adding mouse events to allow each newly created label object to moved by the users mouse?
    if any one has any tips of how to acheive this it would be much appreciated. Thanks in advance.
    fraser.

    This should set you on the right track:- import java.awt.*;
        import java.awt.event.*;
        import javax.swing.*;
        public class DragTwoSquares extends JApplet implements MouseListener, MouseMotionListener {  
           int x1, y1;   // Coords of top-left corner of the red square.
           int x2, y2;   // Coords of top-left corner of the blue square.
           /* Some variables used during dragging */
           boolean dragging;      // Set to true when a drag is in progress.
           boolean dragRedSquare; // True if red square is being dragged, false                              //    if blue square is being dragged.                            
           int offsetX, offsetY;  // Offset of mouse-click coordinates from
                                  //   top-left corner of the square that was                           //   clicked.
           JPanel drawSurface;    // This is the panel on which the actual
                                  // drawing is done.  It is used as the
                                  // content pane of the applet.  It actually                      // belongs to an anonymous class which is
                                  // defined in place in the init() method.
            public void init() {
                 // Initialize the applet by putting the squares in a
                 // starting position and creating the drawing surface
                 // and installing it as the content pane of the applet.
              x1 = 10;  // Set up initial positions of the squares.
              y1 = 10;
              x2 = 50;
              y2 = 10;
              drawSurface = new JPanel() {
                        // This anonymous inner class defines the drawing
                        // surface for the applet.
                    public void paintComponent(Graphics g) {
                           // Draw the two squares and a black frame
                           // around the panel.
                       super.paintComponent(g);  // Fill with background color.
                       g.setColor(Color.red);
                       g.fillRect(x1, y1, 30, 30);
                       g.setColor(Color.blue);
                       g.fillRect(x2, y2, 30, 30);
                       g.setColor(Color.black);
                       g.drawRect(0,0,getSize().width-1,getSize().height-1);
              drawSurface.setBackground(Color.white);
              drawSurface.addMouseListener(this);
              drawSurface.addMouseMotionListener(this);
              setContentPane(drawSurface);
           } // end init();
           public void mousePressed(MouseEvent evt) {
                  // Respond when the user presses the mouse on the panel.
                  // Check which square the user clicked, if any, and start
                  // dragging that square.
              if (dragging)  // Exit if a drag is already in progress.
                 return;           
              int x = evt.getX();  // Location where user clicked.
              int y = evt.getY();        
              if (x >= x2 && x < x2+30 && y >= y2 && y < y2+30) {
                     // It's the blue square (which should be checked first,
                     // since it's in front of the red square.)
                 dragging = true;
                 dragRedSquare = false;
                 offsetX = x - x2;  // Distance from corner of square to (x,y).
                 offsetY = y - y2;
              else if (x >= x1 && x < x1+30 && y >= y1 && y < y1+30) {
                     // It's the red square.
                 dragging = true;
                 dragRedSquare = true;
                 offsetX = x - x1;  // Distance from corner of square to (x,y).
                 offsetY = y - y1;
           public void mouseReleased(MouseEvent evt) {
                  // Dragging stops when user releases the mouse button.
               dragging = false;
           public void mouseDragged(MouseEvent evt) {
                   // Respond when the user drags the mouse.  If a square is
                   // not being dragged, then exit. Otherwise, change the position
                   // of the square that is being dragged to match the position
                   // of the mouse.  Note that the corner of the square is placed
                   // in the same position with respect to the mouse that it had
                   // when the user started dragging it.
               if (dragging == false)
                 return;
               int x = evt.getX();
               int y = evt.getY();
               if (dragRedSquare) {  // Move the red square.
                  x1 = x - offsetX;
                  y1 = y - offsetY;
               else {   // Move the blue square.
                  x2 = x - offsetX;
                  y2 = y - offsetY;
               drawSurface.repaint();
           public void mouseMoved(MouseEvent evt) { }
           public void mouseClicked(MouseEvent evt) { }
           public void mouseEntered(MouseEvent evt) { }
           public void mouseExited(MouseEvent evt) { }  
        } // end class

  • How do permissions work with iMovie Events folder?

    I'm using iMovie and have one problem: every time I launch iMovie, the software takes a couple of minutes "optimizing movies."   I read in the forums that a way to solve this problem is to change the permsions of the iMovie Events folder so that everyone has read/write access.  This may solve the original problem, but could cause a new problem if i don't understand the implications.
    I'm fairly new to Mac.  My Mac has three types of users:
    me
    staff
    everyone
    We really only have one account on this computer.  I think the other ones (staff and everyone) are default accounts.
    What are the implications of giving staff and everyone read write access??
    Could for example someone on another computer on my home wifi network delete or make changes to those folders and files?
    Is there a way to solve my original problem (stop the "optimizing movies" every time i launch iMovie) without giving staff and everyone write access?
    Thank you.

    You have two options:
    1) Add a Class-Path entry for each plug-in directory, not just the plugins.
    Class-Path: plugins/myDir plugins/yourDir2) Go ahead and put the plug-ins in separate packages - package handling makes doing plug-ins easier in the long run. Two ways:
    package plugins.myDir;    // no Class-Path entry requiredor
    package myDir;            // which works with your current Class-Path

  • Working with custom events

    I am trying to work with the EventDispatcher class to dispatch a custom event to stop a video from playing. The video plays inside a MovieClip with an attached class file called PlayerProfile. I want the video in the PlayerProfile MovieClip to stop playing when the user clicks on another MovieClip called ScrollBox. I'm getting no compile or runtime erros, but the code is not stopping the video. I have seen use of a public static constant to represent the custom event. Is that what I am missing here.
    Any help, as always, is much appreciated.
    Here is the code for the PlayerProfile MovieClip with relevant code in bold:
    package
        import flash.display.MovieClip;
        import gs.TweenLite;
        import flash.events.MouseEvent;  
        import flash.events.Event;
        public class PlayerProfile extends MovieClip
            public function PlayerProfile()
                this.ProfileButton_mc.buttonMode = true;
                this.StatisticsButton_mc.buttonMode = true;
                this.HomeButton_mc.buttonMode = true;
                this.VideoButton_mc.buttonMode = true;
                this.ProfileButton_mc.addEventListener(MouseEvent.CLICK, profileClickHandler);
                this.StatisticsButton_mc.addEventListener(MouseEvent.CLICK, statisticsClickHandler);
                this.HomeButton_mc.addEventListener(MouseEvent.CLICK, homeClickHandler);
                this.VideoButton_mc.addEventListener(MouseEvent.CLICK, videoClickHandler);
                TweenLite.from(this, .5, {alpha:0});
                //adds the listener to receive the stopVideo custom event
                this.addEventListener("stopVideo", stopVideoHandler);
           //method to stop the video
            private function stopVideoHandler(event:Event):void
                this.Video_mc.stop();
            private function profileClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                this.gotoAndStop("Profile");
                TweenLite.from(event.target, .5, {alpha:0});
            private function statisticsClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                this.gotoAndStop("Stats");
                TweenLite.from(event.target, .5, {alpha:0});
            private function homeClickHandler(event:MouseEvent):void
                this.Video_mc.stop();
                event.target.root.gotoAndStop("Home");
            private function videoClickHandler(event:MouseEvent):void
                this.gotoAndStop("Video");
                TweenLite.from(event.target, .5, {alpha:0});
    Here is the code on my Main Timeline that dispatches the event, again with relevant code in bold:
    stop();
    //adds listeners to call the profile functions
    this.ScrollBox.addEventListener(MouseEvent.CLICK, clickHandler);
    //functions to advance the movie to the profiles
    function clickHandler(event:MouseEvent):void
        gotoAndStop(event.target.name);
    //code to dispatch the custom event
    this.ScrollBox.addEventListener(MouseEvent.CLICK, stopVideoHandler);
    function stopVideoHandler(event:Event):void
        dispatchEvent(new Event("stopVideo"));

    you have a scope issue.   your PlayerProfile instance is listening for that custom event.  your PlayerProfile instance must dispatch that event for the listener to detect it.  ie, if pp is your PlayerProfile instance on your main timeline, use:
    pp.dispatchEvent(new Event("stopVideo"));

  • Itunes Toolbar Menus Don't work with Mouse

    I moved itunes from my laptop to my PC. Everything works fine except the toolbar menus. I can not access the toolbar menus with my mouse. I have to use the alt key to access the menus.
    Suggestions?
    Win 7 Sp1
    ipad
    Itunes 10.3.1.55

    I found out WHY this is happening. Evidently there is a bug of some sort in itunes? In Win 7 I have the task bar at the top of the screen. Moving the task bar to the bottom of the screen (the default) rresults in the menus working with my mouse. I do not have trouble with any other program.
    Any ideas?

  • My laptop touchpad scroll is not working with firefox 4. It is wroking with other programs. When I attach a mouse then scroll works with mouse wheel. It is only not working with touchpad. It is/was working with firefox 3.6.x

    I am using windows xp service pack 3 with Lenovo T60p.

    I too have this problem, I have an Acer Aspire 7551G with an ALPS mutitouch touchpad. It works perfectly fine in every other program, and worked in Firefox 3.6. Scroll also works fine with a USB mouse. I tried downloading the 'latest' driver from the Acer support website, but when I tried to install it, it says that I am trying to install the same driver that I already have, so that fix isn't possible. I've only had the machine for 3 months, so I would imagine the drivers are pretty current.
    I can't believe that this is a driver problem anyway, as I say, it works perfectly well in every other program, so it must be something wrong with Firefox. I was looking forward to using Firefox 4, but this problem is too annoying to put up with. Oh well, back to Chrome... at least until there is a fix found or implemented.

  • Tabular form with Popuv LOV doesn't work with onchange event

    Hi all.
    I have a problem with tabular forms, Popuv LOVs and javascript.
    I have created one tabular form, I want to put a value in "my_field" field when a user selects a new value from other field called "my_list", I have this code:
    <script type="text/javascript">
    function putValue(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        html_GetElement('f06_'+vRow).value = '0000';
    </script>and this for Element Attributes:
    onchange="putValue(this);"Everything works well when I choose "Display as Text Field", but if I change this option to "Display as Popup KEY LOV" or "Popup LOV" it doesn't work, I mean "my_field" stays without any value.
    I'm using Oracle Application Express Release 4.0 and Oracle 11g
    Please help.
    Regards.

    Hi Peter.
    Thanks, yes, in fact the position of my column changes, but it doesn't work even with the correct element, I have made a lot of proves and it seems that APEX constructs POPUPS LOVS in a different way and that's why "onchange" does not work.
    With this thread: Re: onchange not work on popup lov for a field on collection I have a half solution, It works for existing rows, but it doesn't for added rows.
    I have solved this problem calling a function that set the onchange event to every row when "ADD ROW" button is pressed, now it works without problems.
    Regards.
    Oscar.

  • LV 7.0 extremly unstable while working with user events during edit time

    hi
    i create and register several user events inside an initializing vi and then pass the registered events to the event structure using dynamic events in my top level vi. all works fine untill i do some changes to the registered events, e.g. changing names, datatypes or add/remove some events. when doing so my LV 7.0 chrases after opening the top level vi (exception error, no *.cpp errors). all changes i made are going to nowhere. i understand that after the changes i made the registered events in my init.vi-indicator dosn't match the events in my event structure, but i can't understand that LV chrashes.
    here are my questions:
    1. is it a known problem to LV 7.0?
    2. should i reinstall LV 7.0
    (i have LV 6.x and 7.0 on my machine)?
    3. is there a fix?
    thanks in advance
    greetings
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

    Hello Chris,
    I have been looking into your problem and have come across one possible known bug in LV 6.1 that may be showing itself in 7.0. If modifications are made to the typedef of a registered event the vi will crash. I was hoping that you could post a small piece of your code and instructions on how to reproduce the crash. This way I can see if this is the same bug, a programming error, or an installation error. I can then determine if there is still a bug that needs to be looked into by our research team.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • How do I Fade in and out, working with Midi events?

    I'm new to logic.
    How do you set certain virtual instruments(midi events) to fade in or out. I have a string arrangement written, and whenever the strings end it is very abrupt and unnatural. I want them to fade out, as opposed to just cutting like they do. I would also like to know how to fade in. Is it the same process?
    Please help me out if you know how to do this.
    Thanks...

    I'm not sure what you mean about fading the instrument and not the notes. I just want to fade out one note/per instrument at the end of certain passages. Care to expound?
    In general, MIDI does not provide a mechanism to control the volume of individual notes.
    In MIDI (and sequencer terms), a note has a note on, a note number (which key was pressed) and how hard you hit that key (velocity). Then a corresponding note off. There is nothing in a note specification that let's you control the volume of a note through it's duration.
    In MIDI terms, you can use a controller MIDI message, typically #7 which is used for volume, and modify that over the time the note is playing. But this is controlling the volume of the instrument not the individual notes - the same as turning up and down the volume on the instrument. All notes that the instrument is playing are affected equally - if you are holding a chord, the entire chord will ramp in volume. You cannot just ramp the volume of one note within the chord using this method.
    (The closest MIDI can get to controlling individual notes volume is with polyphonic aftertouch, but this is not often supported and is a more advanced technique - given that you are new to this I'm going to ignore it for now to avoid over-complicating things. I mention it to stop all the people chiming in with "you're so wrong Beejay you muppet you can do this with poly aftertouch don't you know anything" blah blah).
    Is that more clear?
    Also, if you wouldn't mind, could you give me a step by step on opening the hyperview in the piano roll?
    Open the piano roll, select View -> Hyperdraw -> Volume.
    You can click/draw in it with the pencil tool to create MIDI volume (CC#7) changes.

Maybe you are looking for