Recording a series of mouse clicks possible with Flash?

Hi,
I am having a go at developing a drum machine and I have a collection of buttons that play audio.
Is there a piece of code, or somewhere I can search to record a series of mouse clicks, ideally against a timer that I could then play back?
I have no idea if this is possible (I am sure it is) or what to search for.

you can record mouse clicks but timing in flash is approximate so may not be suitable for what you want.
you can use getTimer() to record the number of ms that have transpired since your app started.  and you can use mouse click listeners to record when the mouse is clicked.

Similar Messages

  • 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

  • Is this possible with flash?

    I have a client that needs a CDrom with data update
    capabilities.
    I've never have done something similar, but I thought some
    like this could
    (or not!) be done:
    > The application would create a folder on the user's PC
    (wich could be
    > assigned by him, or into a default location)
    > Would check a URL for updates, and download them into
    the previously
    > created folder
    > the it would read the contents from that updated folder
    Is this possible? One one the many problems would be to have
    the flash app
    remembering the 'Updates Folder' path.
    Any help would be great.
    Thanks in advance,
    Jorge Olino

    hi,
    this is possible only with a help of third party application
    like mdm zinc or flashjester or mprojector. flash itself doesnot
    has this capability as it is made for web mainly.
    gaurav

  • Right Click Problems With Flash

    Sometimes when I click anywhere within a Flash object it will be like I'm right clicking. I'll have to refresh the page several times to make the error go away.
    According to software update, I do not require any updates.
    -Matt
    Message was edited by: AcesEleven

    I thought I was the only one having this problem.
    I've been looking around the internet and it seems to be an issue with the newest version of flash.
    If someone could post instructions on downgrading to a version of flash that will not have this issue, that would be most appreciated.

  • Safari and Firefox Problems... possibly with flash plugin.

    A couple days ago out of nowhere Firefox was crashing whenever i went to... well, most websites. Most noticeably Youtube and Tumblr. So I downloaded the newest versions of firefox and a plugin that was out of date, and the Flash plugin. It still crashed-- nothing changed.
    So I moved on to Safari, it didnt crash when i went onto those sites. but i get a pop up message all the time, especially on those sites...
    Process: WebKitPluginHost [38557]+
    Path: /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app/Contents/MacOS /WebKitPluginHost+
    Identifier: com.apple.WebKit.PluginHost+
    Version: 6531.21 (6531.21.1)+
    Build Info: WebKitPluginHost-65312101~2+
    Code Type: X86 (Native)+
    Parent Process: WebKitPluginAgent [37210]+
    PlugIn Path: /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player+
    PlugIn Identifier: com.macromedia.Flash Player.plugin+
    PlugIn Version: 10.0.32.18 (1.0.4f18472)+
    Date/Time: 2009-11-17 21:40:06.966 -0700+
    OS Version: Mac OS X 10.6.1 (10B504)+
    Report Version: 6+
    Interval Since Last Report: 5253 sec+
    Crashes Since Last Report: 39+
    Per-App Interval Since Last Report: 56 sec+
    Per-App Crashes Since Last Report: 39+
    Anonymous UUID: 7F2FCF04-0A33-42A2-8200-43E88911D912+
    Exception Type: EXCBADACCESS (SIGBUS)+
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000013e06840+
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread+
    thats the message.. theres a lot more. But that makes me think its something wrong with the Flash plugin. Maybe the same thing is wrong with Firefox...
    I have tried uninstalling with the uninstaller from the adobe website and reinstalling.
    Is anyone else having this problem?
    How do I fix it?

    I believe the WebKitPlugInHost needs to be updated for Safari as It crashes whenever I am playing FarmVille on FaceBook.

  • Can a right mouse click be simulated from keyboard ?

    When a cell has focus and I click the right mouse button, I pop up a JPopupMenu. I would like to simulate a right mouse click using some keystroke combination from the keyboard. Is this possible ?

    You can Grab key pressed even then try to create new Mouse right click event from there somethng like that
    MouseEvent= new MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
    source - the Component that originated the event
    id - the integer that identifies the event
    when - a long int that gives the time the event occurred
    modifiers - the modifier keys down during event (shift, ctrl, alt, meta)
    x - the horizontal x coordinate for the mouse location
    y - the vertical y coordinate for the mouse location
    clickCount - the number of mouse clicks associated with event
    popupTrigger - a boolean, true if this event is a trigger for a popup-menu
    You can pass Id it hing that will decide wheather it is right or left click

  • Is it possible to do this with Flash...

    I have this little problem with my blog on MySpace and I'm curious to find out if I can solve it by creating
    a Flash header/game for my blog that will solve it.
    I experience routine cycles where on certain days I will get tons of hits, usually this is just before the night I go out to the club to have fun.  People never, ever comment on my blogs, nor do they subscribe, so I have no way to know who is viewing (spying on) me so regularly and diligently.  This is far beyond annoying.  I've also, in the past, encountered real life problems due to people slandering me from taking things I say way out of context, or simply because they are drama queens who get off on screwing with peoples' lives.
    Now what I want to do is basically take the pyramid with the all-seeing eye from the back of the U.S. one dollar bill, turn it into a big, colorful and interactive work of art with the eye looking around, blinking, staring at the user, emanating, IDK, rage or focus idealized while a marquee then scrolls along the bottom of it telling people that I'm watching those who watch me, or something like that, while in the background recording their friendIDs with a date and time stamp which will then get compiled and forwarded to me on say a weekly basis.
    This will give me peace of mind in knowing who's just browsing, who's friendly and who's doing this to try and hurt me, things I can figure out on my own by checking their profiles and determining whether I am familiar with them or not, and on what terms.
    What do you think, is something like this possible with Flash or would it take Java?

    you can do that with flash.
    you can do a little more and display the user's ip address in your flash header.  and it's possible (with server-side scripting) to display the geographic location of the user based on their ip address.

  • External Interface and Mouse Clicks

    I'm new to writing ActionScript.
    I am working in .NET (C#) environment using
    AxShockwaveFlashObjects.
    I am simply trying to react to a mouse click on the Flash
    ActiveX Control.
    I have inserted the code in a layer only used for script:
    import flash.external.ExternalInterface;
    var mouseListener:Object = new Object();
    var boolMouseDown:Boolean = false;
    mouseListener.onMouseDown = function ()
    boolMouseDown = true;
    mouseListener.onMouseUp = function()
    if (boolMouseDown)
    ExternalInterface.call("MouseClicked", "NavigateToURL", "
    http://www.adobe.com");
    boolMouseDown = false;
    Mouse.addListener(mouseListener);
    I get the MouseClick event in my C# code. The problem is that
    I get TWO of the same event ??
    Can someone tell me why or how I should be doing this to get
    only one event.
    Thanks,
    Steve

    Take a look at java.awt.event.MouseAdapter, which implements interfaces MouseListener, MouseMotionListener, MouseWheelListener and EventListener.
    For sample codes on how to use these classes, read through the posts on the Swing forum and you'll find plenty.
    If you have a more specific question, feel free to post back.
    db

  • Variable bitrate streaming possible with streaming edition?

    Is bandwidth detection and bitrate adjustment possible with
    Flash Media Streaming Server 3? I know the streaming edition
    doesn't support custom application deployment, so does this mean
    flexible bitrate streaming is not possible?

    you may refer to a good article by David Hassoun on Dynamic
    streaming :
    http://www.adobe.com/devnet/flashmediaserver/articles/dynamic_stream_switching.html
    server-client bandwidth detection is possible with streaming
    edition. The sample code of live/main.asc & void/main.asc uses
    checkbandwidth() to invoke b/w detection.

  • Can I do this with Flash? (A TV Director interface)

    I have an idea for a video based website but am not sure if it can be done with Flash so I thought I'd post here to see if anyone has ever seen it already or thinks it is possible with Flash.
    Basically here's what I need. Let's say I film a sporting event with three cameras: cam 1 on a wide shot showing everything and cams 2 and 3 getting close-ups of the action. I'd like to playback all three video clips on one web page at the same time, with one of the cameras in a large box on the page and the other two cams in smaller boxes to the side or under the main box. The user would have the ability to instantly switch camera views in the large box by clicking on one of the smaller boxes. So if cam 1 is in the large box and cams 2 and 3 are also playing on the same page in smaller boxes, the user might see a close up on cam 2, click on it and then cam 2 will swap places with cam 1 and is now in the large box. (I hope all this makes sense!)
    This idea is in effect giving the user the ability to be a "TV director" and select which camera angle they'd like to see in the large box, and changing camera views anytime they see something in a smaller box that looks interesting.
    Just to clarify, all of the camera shots would be prerecorded and encoded as Flash video. So the challenge here is to sync all three video clips together and then create an interface/skin that plays them at the same time and allows instant switching between them on a web page.
    What do you think... is this possible with Flash? has anyone seen something similar already done? How would it be accomplished?

    The easiest method for you would be to use the following
    components:
    TextInput - this is an input text field
    Button - would be the submit button
    To put it together:
    Make a new Actionscript 2 flash file. AS2 is much easier to
    work with for a beginner, and is fairly easy for this purpose.
    Drag your instance of the TextInput and Button to the stage,
    and position them. Add some text for instructions.
    Select the TextInput, go to the properties panel and give it
    an instance name (the field under the drop-down) - something like
    "myInput"
    Do the same with the Button ("myBtn")
    click on the first frame in the timeline, and go to the
    Actions panel. You will know you are entering actions properly if
    the panel says "Actions - Frame" in the tab. Enter the following
    scripts:
    myBtn.onRelease = function(){
    //this is where you perform whatever actions you need.
    trace(myInput.text);
    Next, Control::Test Movie, enter some text in the input box,
    and click the button. The text you entered into the input box will
    trace out into the Output tab of Flash.
    I do not know the script you need to get the text from the
    flash out to the Presenter, but this will get you started.

  • How about this idea with flash catalyst? Can it happen in next version or before the release?

    Hi friends,
    Let me come straight to my interest!
    I create a datalist control asset using photoshop. Bring this into Flash catalyst by importing the artworks. Then selecting respesctive artwork and making it as an horizontal list control with custom way for sliding between thumbnails with some description text.
    Till now it is 100% possible with flash catalyst beta 1.
    Can flash catalyst team further tweak this ui design tool to go ahead and select the data template and add custom interaction where, we can go ahead and give the path in such a way it makes a 180 degree carousel in seconds without any coding. I just need to go into the template and draw/move the positions for 5 thumbnails which sits within the width area of the datatemplate, then all the thumbnails follow the path.
    This might be two much, but next wish is to, create states within the data template for loading the thumbnails into list control with custom animations, loading the thumbnail when some search is changed , i mean on layout updated on the datalist. 
    So in short , my wish is second level tweaking of layout needs to be done within data driven controls.
    Please come with comments!
    Regards,
    Muthaiah Thiagarajan,
    EMC Corporation, Bangalore.
    www.fmass.com

    Hi Adam,
    You are almost right !
    I am just rephrasing my question for you to understand!
    But I don't mean only carousel, I love to see the list control comes in some innovative paths. As you know in flash CS4 adobe has come with motion editor concept for tweening, where you can go ahead and fix some path for the motion of any object on the stage like in aftereffects.
    Now how about i take a template from illustrator where i define the data template of a data list control and scroll bar as vector assets. Now in flash catalyst, i come and fix them as data template and scroll bar. Now i double click and go into the datatemplate and then have a editor like in flash, where i can set a path for the motion of the repeated items, then in runtime it follows that path. This is my first idea.
    Second one was i have a search box on top of it , then i type some name to search from the above mentioned datalist control, now it refines and updates the exisiting list with relavant repeated items. When this layout updates , each item should animate and sit back on the data list.
    It's a small example for my idea! Hope you got my point!
    As you said , I am also mentioning the same repeated items(a.k.a. Data Template, a.k.a. Item Renderer)! One more level of animation to avoid coding and easy to create stunning path following list controls. Even it can be used to define other controls too ! I don't mean images, it can be anything!
    Can it be possible ?
    Thanks!
    Regards,
    Muthaiah,
    Principal Web Technologist,
    EMC Corporation, Bangalore.

  • Wowza with Flash Media Live Encoder

    Video Quality Problem: Action Script netStream X Flash Media Encoder
    Hi,
    We're running Wowza to stream a live webcam from a Flex web application (using ActionScript 3 netStream method) for a 1 to 1 video chat.
    We are able to stream it properly, but the quality does not look good at all (320 x 240, 300 Kbps, 15 fps).
    We tried tweaking the paramenters (quality x bandwidth), but the quality is still surprisingly poor for a H.264 video.
    Just out of curiosity, we decided to use Flash Media Encoder 3 to generate a live stream from the very same computer, with the very same webcam, at the very same video specs. The quality is much, much better than the one using the ActionScript 3 netstream approach. The difference is amazing!
    So this leads us to believe that the problem is in the "encoder"; the Flash Media Encoder seems to be much for efficient in generating a high quality video stream, compared to ActionScript 3.
    My question to you guys is: are we missing something? Are there any parameters on ActionScript 3 or even on Wowza that can increase the quality of video?
    Installing Flash Media Encoder on each end user machine is impossible, so we really need this to work on the browser, via Action Script.
    In other words: how can I make the quality of the video generated by ActionScript 3 be similar to the one we're able to achieve (remember: under the very same specs) on Flash Media Encoder?
    Thanks in advance,
    Julio Costa
    [email protected]

    Hi,
    That may not be possible with Flash Media Live Encoder directly. But you can use softwares like WebCamMax on Windows and CamTwist on Mac to add video affects while broadcasting with Flash Media Live Encoder.
    You could refer to this post http://forums.adobe.com/message/2711776#2711776 .
    For further help on Flash Media Live Encoder, you could post on http://forums.adobe.com/community/flash/flash_media_live_encoder .
    Regards
    Mamata

  • Image logo with Flash media Live Encoder

    Hello, I am using Flash media live encoder 3.1 to broadcast to flash media server.
    Its is possible place a image logo with the media live encoder??? How i can do this?? I like that my broadcaste have a image logo.

    Hi,
    That may not be possible with Flash Media Live Encoder directly. But you can use softwares like WebCamMax on Windows and CamTwist on Mac to add video affects while broadcasting with Flash Media Live Encoder.
    You could refer to this post http://forums.adobe.com/message/2711776#2711776 .
    For further help on Flash Media Live Encoder, you could post on http://forums.adobe.com/community/flash/flash_media_live_encoder .
    Regards
    Mamata

  • How to show mouse clicks when recording screen with quicktime?

    How can i show the mouse click when i record the screen using quicktime player?

    Why? What program feature do you intend to offer, by knowing what a user clicks on (besides the application itself).Hi, well what I have to do is to start the application minimized in the system tray. Then the application must be listening for crtl+shift+left click in any part of the desktop or an opened application, when that happens, I have to show a window asking if the user want to take a screenshot starting in the x,y point he clicked, once done, I have to take an screenshot...so on.
    How can I do that? Can anybody give me a hint? Thanks in advance.

  • Record Audio in Captivate 4 for PP Slide with multiple mouse click animation

    I have a power point presentation imported into  Captivate 4.  Several of the slides have custom animation that ocurr's on mouse click. What is the best way to record the audio for these slides and have the audio sync to the right portion of the slide?

    I am afraid there is no direct way to solve your problem. You can identify the time at which the movie stops because of an on-click animation. At every location, insert a transparent caption (blank caption) and add audio to the caption.
    Thus once the movie pauses for the user to click, audio wont appear till user click on the swf. Once he does, movie timeline will move ahead and transparent caption will appear thus playing the audio file.
    Hope this helps. Do let us know if it works.
    Regards,
    Mukul

Maybe you are looking for