Control frames with mouse x coordinates

Hi,
I will try to rewrite an earlier question to be more precise:
I want to take a folder with 20 pictures, in some way convert them into a movie. And then apply so that I can navigate the frames one by one in the movieclip by moving the mouse right and left  (move mouse left - navigate backwards frame by frame, move mouse right - navigate forward frame by frame).
Anyone knows a good tutorial for this? Or maybe some tips to get started?  I'm pretty new to Flash CS3.
Thanks,
MH

I don't know that there will be a good tutorial for this, if any, mainly because as described, it may not be a desirable means of controlling a movieclip's timeline.  While the "in some way convert them into a movie" is your call, assuming that movie will occupy a timeline, the controlling of frames by moving the mouse may need a little more thought/criteria resolution.
If the desired control is to merely make it such that moving the mouse left or right changes it one frame for each movement, then you can use a variable that keeps track of the mouseX value (where the mouse was) and a MOUSE_MOVE listener to trigger a function that tests where it is.  If the new mouseX value is greater than the stored value, the mouse moved right, so you advance one frame in the movie's timeline.
The thing with this approach is that you really want to wait for the mouse to stop moving before you process a command to move, or somehow otherwise build in some stalling, otherwise one movement could end up moving several frames of the movie.  Also, one movement could limit how much space you have left to continue moving--running out of room to move....  You would need to sneak around to the opposite end of the stage at some point in order to keep moving in one direction.
It may be better to create another area/movieclip that you use as a stepper control... if you pass the cursor over it from left to right, it advances the movie one frame and vice versa.  You use rollover and rollout detection to capture the position of the mouse for each event and that can tell you which way the mouse was moving.

Similar Messages

  • How to control timleline with mouse x coordinates

    Hi,
    Does anyone know a good tutorial on how to create a movie with a sequence of pictures and controlling the timeline frames with mouse x-coordinates?
    Regards,
    MH

    basiclly,these swfs didn't work in mailtimeline movies.some of them were created by  flash3D .
    the point is some functions what created mouseX & DisplayMovies mapping like this
    function mouseMoveH(e){
              displayrender()
    function mapping(){
         return  fun(mouseX)
    function displayrender(){
        showFrame(mapping)

  • Controlling movie with mouse location

    I am a designer trying to be a flash programmer and I have a
    navigation idea that I've been struggling with. I am simply trying
    to do this: put a movie on the stage and as the mouse moves closer
    or farther from the movie, it plays forwards and backwards. The
    movie I made is a circular logo with navigation buttons curling out
    from it like a jack knife. My idea is to have the buttons curl out
    as the user moves the mouse closer to the logo and curl back in as
    the mouse moves away.
    I understand the coding concept - calculate where the cursor
    is on the stage, figure out the distance of the cursor to the logo
    movie, and just go to certain frames in the logo movie based on
    that distance.
    I have the stage, the logo movie, and even the code to figure
    out the the mouse location. But beyond that, I need help. I just
    don't know enough about actionscript syntax and although
    conceptually this seems like a basic exercise, I really don't know
    where to start. If anyone is willing to help, the .fla file can be
    downloaded here:
    http://0099d33.netsolhost.com/westside-home2.fla
    Thanks so much for any help you can offer.
    null

    You would replace the one mDistance line in your original
    with the three I've given you. But if you weren't able to figure
    that bit out, you might not be able to figure out how to modify the
    whichFrame line either? Do you have a conceptual understanding of
    what your code is doing? Being able to read the code and understand
    what it is doing is really central to Actionscript. So here goes:
    mcLogo.onEnterframe: this is attaching some code that will
    repeat at the frame rate of the movie to the mcLogo instance. Even
    if there is a stop() on the timeline, this code will continue to
    repeat at the framerate set by your movie. By attaching it to
    mcLogo your scope will be mcLogo.
    In both version the next line (or three in my case) say find
    the distance between the current mouse position and this._x (for
    example). Since we are inside an onEnterFrame which is attache to
    mcLogo, so "this" refers to that time line. So this._x is saying
    the _x location of the mcLogo clip.
    If you remember basic geometry a right hand triangle's long
    side (the hypotenuse) is given by h^2 = a^2 + b^2. (The square of
    the hypotenuse is equal to the sum of the squares of the other two
    sides.) So we are figuring out how far between mcLogo and the mouse
    in the x and the y directions. This gives us the other two sides.
    So the distance between the mouse and the clip is the square root
    of the sum of the squares of those two sides.
    Finally since you need to adjust the distance to some scale
    of the number of frames you have added to your clip. So your have
    some code that makes the distance proportional to the number for
    frames in your clip.
    As for the second part of your question, "Don't use scenes!"
    So that makes that easy. Scenes are great tools for organizing your
    timelines when you are just doing some timeline-based animations.
    But when using Actionscript there are some bugs and limitation in
    scenes and you are only asking for trouble.
    So if you have this code say on frame ten with a stop().
    There is no looping that needs to happen. The onEnterFrame will
    continue doing the animation until someone clicks.
    Add maybe ten blank frames after 10 and then on frame 20 put
    your new thing you want – perhaps even give it a frame label
    called, "home" or "about" or whatever section it is about. Then you
    can use:
    this.gotoAndPlay("about");
    Also don't forget that you will want to remove the
    onEnterFrame event because otherwise it will keep running. So you
    should probably also include:
    delete mcLogo.onEnterframe;

  • Unwanted Mission control openings with mouse movement

    Many times Mission Control will open when I make a fast movement up or down with Magic Mouse. It's happening more and more, and very annoying.
    ais there any way to turn it off? I can't figure out what iscausing it.  Thanks - Rick

    It's caused by a double-tap with two fingers on top of the Mouse.
    You can turn it off in System Preferences > Mouse > More Gestures tab > uncheck Mission Control.
    Regards,
    Captfred

  • Frames with link to Struts do not render before mouse over in IE 7.0?

    Hi
    We have troubles with frames with link to Struts, which do not render before mouse over in IE 7.0? The application works fine with Firefox 2.0 and Internet Explorer 6.0, we have analyzed the cause to be whenever
    you refer to a struts 1.0 action in your frames, you'll see the frames underneath.
    Does anyone have a solution to this?
    <frameset cols="168,*" border="0">
      <frameset rows="76,*" border="0">
        <frame name="cornerFrame" src="/gws/html/logo.htm" scrolling="NO" noresize frameborder="0">
        <frame name="menuFrame" src="/gws/html/menulogind.htm" noresize frameborder="0">
      </frameset>
      <frameset rows="76,*" border="0">
        <frame name="topFrame" src="/gws/html/overskrift.htm" noresize frameborder="0" >
        <frame name="mainFrame" src="/gws/logonstart.do?msg=null&navn=null" noresize frameborder="0">
      </frameset>
    </frameset>
    <noframes>
    <body>
    </body>
    </noframes>When you open the application, the frame is blank, the pages render only when you move the mouse inside the mainFrame area!
    This is a very odd behavior.
    Lars W
    Enviroment:
    Windows 2003 Server
    Sun Java System Application Server 7 2004Q2UR2
    Struts 1.0

    I am having similar problems with shockwave and ie7 crashing.
    This is always preceded by loss of sound.
    Could this article have any significance to this issue :
    Is it possible that the Cumulative Security Update for
    Internet Explorer
    (931768) is causing Internet Explorer to crash ??
    I refer to this article
    Known issues with this security update
    • Controls that prompt before they are loaded
    Note This issue occurs on Web sites that do not use the
    recommended
    techniques. This issue is resolved by using the techniques
    that are described
    on the following Microsoft Web site:
    http://msdn.microsoft.com/ieupdate
    http://msdn.microsoft.com/ieupdate)
    When certain controls are loaded on a Web page, the controls
    are not
    correctly masked by the functionality of this update. These
    controls include
    controls that are used in Macromedia Shockwave Director, in
    QuickTime Player,
    and in Virtools Web Player. When Windows determines that a
    control is
    inactive, the system prompts the user before the control is
    loaded.
    CAN MICROSOFT HELP ON THIS ONE ?? Very frustrating when ie7
    crashes and
    restarts in the middle of a game of golf played against
    others on the
    internet especially when you winning !!
    The game is at this address :
    http://www.nabiscoworld.com/Games/game_large.aspx?gameid=10028

  • User Control screwed up but unable to click on icons with Mouse on OSX 10.8

    I dont know what has happened, but today user control with mouse and trackpad on my macbookpro is screwed up.
    I rebooted twice, it made no difference.
    The trackpad moves the cursor okay, but I cannot get tapping or clicking the trackpad have any effect.
    With my mouse I can access menubars, but the left and right buttons are swapped round, or it might be that the right button is acting as both left and right button.
    I then went to the System Preferences screen to try and fix the mouse preferences, but clicking on any icon with left or right button has no effect.
    I then found no icons of that type seem to work, I thought Id try and just update OSX with any updates available hoping that would fix anything that has got corrupted. But although I can get to the Appstore Update screen and there are two updates available I cannot get the updates installed. Clicking with the left button does nothing, clicking with right button changes the colour of the button slightly so the bottom half is in gray but nothing else happens.
    As there is no menu option to install the updates I thought I tried and install the updates using the keyboard but I cannot work out how to do this.
    Does this sound like a hardware or software problem
    Help Please !

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot controlled with mouse, returns auto to top of scroll slide, never remaining at bottom

    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.

    cjuan1morb4ulv wrote:
    how to remove a black border box that continously tabs to each field automatically till end of web page; restarts to top of page, cannot stop this box. Scroll bar cannot be controlled with mouse, scroll bar returns automatically to the top of scroll slide every time I move the bar to the bottom of the scale.  Also, there's a rectangular text box (with black background and white text) that is always on the desktop that emulates a typed text, HTML, or cmd function.
    The first two problems (box cycling from element to element on page, scroll bar returning to top) can be caused by a stuck (or defective) Tab key on the keyboard. Such damage can be caused by a liquid spill; just one tiny droplet is enough to short a wafer switch under one key.
    The last issue (black box, white text - sounds sorta like a debugger window) I haven't seen, but could be caused by something similar.
    To check for that, try using a different keyboard. If you're using a wireless keyboard, turn it off and see if the oddities stop.

  • Is this how i control frame rate with IMAQdr property node?

    Is this how i control frame rate with IMAQdr property node? if not, can someone point me in the right direction? for some reason, it doesnt work..
    Attachments:
    pic.JPG ‏75 KB

    Please see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-No​de/m-p/1642950/highlight/false#M590168
    Matt
    Product Owner - NI Community
    National Instruments

  • Effects control micro adjustment on value with mouse

    Hi,
    I was wondering if there is any shortcut or any way to move values on effect controls but with more detail control, more like micro adjustment.
    I'm trying to do Color grade in premiere CC, since speedgrade is too complicate workflow for the kind of huge project I'm working on.
    I'm adding adjustment layers with RGB curves and  3wayCC but the adjustment on values are brutal, you move the mouse a bit and the value changes a lot is there any command shortcut with the mouse to have a better control on the values?
    thanks a lot
    hope someday adobe creates dynamic link with speedgrade like with AE. that will make Creative cloud the most perfect software for postproduction

    too bad, hope the fix this on next version
    where you want to have detail control is exactly the values that you cant do micro adjustments.
    like color wheels, and levels curves.
    I found that some values that have the sliders (min Max) if you open the slider you can move the slider with more control pressing command.
    thanks anyway for your answers

  • Getting mouse click coordinates with image button

    I'm using ADF Rich Client components in JDeveloper 11g Technology preview.
    I have to get the mouse click coordinates with an image button. In the page I put something like this:
    <af:commandButton text="commandButton1" icon="ambiente.jpg"
    actionListener="#{prova.listen}" action="#{prova.esegui}" />
    In the listener method of the managed bean I try to get the coordinates with this code:
    public void listen(ActionEvent e)
    FacesContext context = FacesContext.getCurrentInstance();
    String clientId = e.getComponent().getClientId(context);
    Map requestParams =
    context.getExternalContext().getRequestParameterMap();
    int x =
    new Integer((String) requestParams.get(clientId + ".x")).intValue();
    int y =
    new Integer((String) requestParams.get(clientId + ".y")).intValue();
    but it doesn't work. It seems that there aren't in the request the coordinates of the image point clicked. Is it true? How can I do that with ADF ?

    Hi,
    the mouse position is not part of the request parameters send. You will have to use client side JavaScript for this
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <f:verbatim>
    <![CDATA[
    <script>
    function handleMouseCoordinates(event) {      
    alert("x: "+event.getPageX()+" y: "+event.getPageY());
    </script>
    ]]>
    </f:verbatim>
    <af:form>
    <af:commandButton text="My Click Button" icon="/images/jdev_cup.gif">
    <af:clientListener method="handleMouseCoordinates" type="click"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Frank

  • Controlling the timeline with mouse scrolling

    Hello all,
    i need to control the timeline animation with the mouse wheel.
    how is it possible
    i've tried this code but I've could only make it work with mouse move, unfortunatly the scroll does not work -
    composition ready:
    this.onMove=function(posX, posY){
      timelinecontrol = Number(posX)*30;
      console.log(timelinecontrol);
      sym.stop(timelinecontrol);
    mousemove:
    this.onMove(e.pageX, e.pageY);
    I've also tried this one - http://forums.adobe.com/thread/1149792
    but didnt worked either
    many tnx!!!!

    found the answer at this thread -
    http://forums.adobe.com/message/5628190#5628190
    this is the exampel posted by Vinay -----
    Here is an example - http://www.dealsdrizzle.com/research/scroll/scroll2.html
    Source - http://www.dealsdrizzle.com/research/scroll/scroll2.zip

  • Jumpy scrowl control with mouse.Only with Firefox, not Internet explorer. Problem fixed when I updated to 6. 0.2 but problems returned after about a week.. 0.2

    Jumpy scroll wheel control with mouse. Only with Firefox, not Internet explorer.Even pushing the scroll wheel and trying to adjust for a smooth easy scroll the text stops and starts. Problem fixed itself when I updated to 6. 0.2 from an older version but the problem returned after about a week.. The problems go away when I go to web site and scroll but is back when I return to my home page (mozilla firefox)

    Good post, and glad to hear you had a solid transition. Mine went well too, though I think I beat the rush.
    It's worth noting that the vast and overwhelming majority of headaches people were experiencing were related to download and activation servers (as well as credit check servers for some mobile carriers) being crushed and overwhelmed.
    To give you an idea of just how crushed, here are some numbers. In the last year, something in the neighborhood of 8 million iPhones have been sold. That's just shy of 22,000 per day. So the typical traffic is around 22,000 times a day, someone is hitting the server for update/activation.
    This weekend, Apple sold 1 million iPhones. In other words, 333,333 phones per day. Holy crap!
    As if that wasn't enough, there are 8 million of us out there with the first generation iPhone. Not only do we need to download the new firmware, but we have to install it. The installation process requires hitting the activation server again, to validate the phone. Mind you, not everybody upgraded this weekend, but a few million did. For the sake of argument, we'll assume that's 1 million a day. So, instead of the normall traffic of 22K phones a day, those activation servers got SLAMMED with 1.33 million activations per day.
    It ***** that some people had delays and hiccups and a hard time and everything, but completely understandable. With luck things will run more smoothly from here on out.
    Trilo

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • 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

  • 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.

Maybe you are looking for

  • How do I delete duplicate songs on my iPod that do not appear in my iTunes?

    I recently had an interrupted iTunes update that really messed up my iPod Touch. I had to restore it to "factory settings" (it has since been running a lot slower than it was before) and it duplicated over half of my songs, which takes up a significa

  • Error in formual with Crystal Report XI

    Hi I'm just switching from Crystal Report 9 to Crystal Report XI. The same report works with version 9 but not with version XI. The error message say's: Error in formula <FAdresse> 'StringVar sText; Feldname is unknown The formula that works till now

  • Error while granting Java permission to Oracle user (schema)

    Hi, I am trying to grant java permission as sys to an Oracle schema 'RCA' as follows but am getting the error ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: policy table update java.io.FilePermission, <<ALL F

  • Yellow screen on start up

    yellow screen on start up

  • Issues with upgrading Hyperion HFM from 11.1.2 to 11.1.2.1

    Hi, After the recent release of Hyperion 11.1.2.1, we upgraded our development environment to 11.1.2.1 from 11.1.2. Installation and configuration was smooth straight forward [ We used the Maintenance upgrade while installing 11.1.2.1 ]. We migrated