Play motion tween until other button gets clicked

I want to make an animation where a person dances: there are 4 buttons and when one button gets clicked, the person starts and loops a specific motion tween. I already have everything, until now only a picture is shown on click:
function clickSpecialMove(event:Event):void {
! trace("SpecialMove");
! gotoAndStop("SpecialMove");
BeHappy.addEventListener(MouseEvent.CLICK, clickBeHappy);
function clickBeHappy(event:Event):void {
trace("BeHappy");
gotoAndStop("BeHappy");
Twinkle.addEventListener(MouseEvent.CLICK, clickTwinkle);
function clickTwinkle(event:Event):void {
! trace("Twinkle");
! gotoAndStop("Twinkle");
HandsUp.addEventListener(MouseEvent.CLICK, clickHandsUp);
function clickHandsUp(event:Event):void {
! trace("HandsUp");
! gotoAndStop("HandsUp");
but I wan't a motion tween to play:
gotoAndPlay("motionTwinkle"); does not work, then all motion tweens just walkr through like in a film :...can anybody help me? that would be so nice thank you!

How do you implement the animations?  What makes the animation loop?  For all of the code you show you only have gotoAndStop() commands.  What do those have to do with the gotoAndPlay() you mention?  Why do you have exclamation marks leading several lines - remove those if they are actually in your code?

Similar Messages

  • How do i get the onclick state to stay on until another button is clicked?

    Im using edge animate and i am trying to create a button that has a different gradient when it is clicked on but when it is clicked the state only shows for a second and then disappears. how do i get the onclick state to stay turned on until another button is clicked?

    You can try to toggle the browser.shell.shortcutFavicons pref on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • Forcing an Applescript Screen to stay active until a button in clicked...

    I'm trying to get an Applescript to run, which will display a message either before of after a user has logged on to his/her account. Only when the button is clicked will the user then be allowed to continue using his/her computer.
    Another member gave me the following script, which works well on OS 9 Macs, but when used on OS X macs, the message is displayed, but the user can ignore the message and continue working away. How can I force the user to click the OK button before he/she is allowed to contine?
    on run
    display dialog "Do not use this computer for anything naughty!" buttons {"OK"} with icon 2
    end run
    Thanks in advance...

    Thanks again all for the quick replies. Your help is greatly appreciated! :)
    OK, well I've tried requestFocus() and requestFocusInWindow() (which is supposedly recommended according to the API notes)
    What I've done is to put a focus request in both a mouseEntered event and in the start method of the applet, with a focusListener added to see when focus is gained.
    For some reason, focus is still not gained until the mouse is actually pointing in the applet. Maybe this is on purpose? My request for focus in the start method seems to fail.
    Here's a snippet of both the start method and the mouseenter:
         public void start() {
              message="starting!";
              requestFocusInWindow();          
         public void mouseEntered(MouseEvent event) {
              requestFocusInWindow();
    As you can see, it's really simple. The message changes as soon as the focus is gained, via the interface for FocusListener.
    So it's better! It accepts my keyboard input right away as long as the mouse is in the applet area. However, it still doesn't accept my kybd input from the get-go if the mouse cursor isn't in the applet area. :(
    I guess this is okay but not ideal. Anyone know why the request for focus isn't working in the start method?
    I did try the javascript but for some reason it didn't seem to make a difference? maybe i'm using it wrong:
    <HTML>
    <APPLET CODE="movinghello.class" WIDTH=750 HEIGHT=400/>
    <script language="JavaScript">
    <!--
    document.movinghello.requestFocusInWindow();
    //-->
    </script>
    </HTML>

  • Trying to get a movie clip to go both up and down depending on which button gets clicked

    hello,
    I have a file with 5 movie clips in it. I have a button that when clicks, plays each one. One of the movie clips needs to move both up and down and I am having a lot of trouble with this.
    stop();
    function showVenue(Event:MouseEvent):void
              mc_speaker.play();
    function showSpeaker(Event:MouseEvent):void
              mc_compliance.play();
    function showCompliance(Event:MouseEvent):void
              mc_strategic.play();
              mc_data.play();
    function showStrategic(Event:MouseEvent):void
              mc_data.gotoAndPlay("down");
    function showData(Event:MouseEvent):void
              mc_data.gotoAndPlay("up");
    btn_viewMore_Venue.addEventListener(MouseEvent.CLICK, showVenue);
    btn_viewMore_Speaker.addEventListener(MouseEvent.CLICK, showSpeaker);
    btn_viewMore_Complinace.addEventListener(MouseEvent.CLICK, showCompliance);
    btn_viewMore_Strategic.addEventListener(MouseEvent.CLICK, showStrategic);
    btn_viewMore_Data.addEventListener(MouseEvent.CLICK, showData);
    Is there anyway to attach my file here for someone to look at???
    thanks!
    babs

    Well, on the mc_data movie clip, I had the animation going up and down with stop actions to stop it. so I put labels on those areas and tried to just control it that way. Seemed simple enough, but not working.
    I really don't know how to control the toggle up and down in AS without using the timeline....just trying to help a friend, and ready to scream..I thought this would be so simple...
    would be easier to explain if I could show you a dummy file...but I still don't see an attach button????

  • In my Itunes page the add play list and all other buttons are missing

    In my Itunes the add play list button and all others at the buttom of the page are not visiable hos anyone else run into this problem?

    Hi kirsty1211,
    If you are having issues downloading your purchases to your laptop, you may find the following articles helpful:
    Apple Support: Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    iTunes Store: Troubleshooting iTunes Match
    http://support.apple.com/kb/ts4054
    Regards,
    - Brenden

  • Upload component prevents other buttons getting activated

    Hi,
    I got a weared situation: I have a simple page with some lables, TextFeilds and buttons. Everything works fine as expected until a Upload component was added into this page: With this upload added, none of the buttons can be actived - the button action methords will not be actived.
    I just dropped this Upload component into the page and did not implement any action for it yet. Is there any particular requirements (not default) for this component? Please anyone can help?
    Thanks,
    james

    Is this a common problem? I am using 2 update 1 on XP and I haven't come across any problems.
    It is a known and documented issue, however, that the file upload component does not work in portlets, but as far as I know, it should not prevent other components from working in plain old web apps.

  • Video Not Marking as Complete Until Exit Button is Clicked?

    I recieved the following feedback from one of our clients. They are using an AICC based LMS.
    "We noticed that in order for the video to mark as completed, we need to have all of the chapters checked off, quiz must be taken, and the user has to press the small Exit button."
    Do users actually have to press the exit button before a video will send "completed" to an LMS? Is there a work around?
    Thanks!

    What Captivate version are you using?
    This is happening based upon the Quiz Preferences - Reporting Settings that you have configured.
    Yes, you can customize the settings to mark completeing on basis of user access, slide view, Quiz attempts and many more criteria.
    Please choose and customize based upon your requirement--
    Instead of making the user hit the close button, you can yourself set Captivate to Close the course once it reaches the end.
    You can do that fron Start and End Settings under Preferences.
    I hope this helps.
    Thanks,
    Anjaneai

  • How to make the session to wait until other session get closed successfully

    Hi ,
    In my program , I am calling sql loader and after that I am opening a session and inside that I am calling stored procedure which validates the data.
    above calling of sql loader and stored procedure is done inside the shell script i.e .prog file which is registerd as host concurrent program.
    Here i am facing the problem like when two files are processed with same content then second file content's are not erroring out as duplicate though there is a duplicate validation exist inside the procedure. IF I call dbms_lock.sleep(60) then it is working and sencond file are records are error out with duplicate error message. but this is working only for small data files.
    Please suggest me how to make the session to come out successfully then only i can open other sesssion .
    Thanks
    Raghav

    user5853450 wrote:
    Hi ,
    In my program , I am calling sql loader and after that I am opening a session and inside that I am calling stored procedure which validates the data.
    above calling of sql loader and stored procedure is done inside the shell script i.e .prog file which is registerd as host concurrent program.
    Here i am facing the problem like when two files are processed with same content then second file content's are not erroring out as duplicate though there is a duplicate validation exist inside the procedure. IF I call dbms_lock.sleep(60) then it is working and sencond file are records are error out with duplicate error message. but this is working only for small data files.
    Please suggest me how to make the session to come out successfully then only i can open other sesssion .
    Thanks
    RaghavFor starters you could use external tables rather than SQL*Loader and then you could keep all the control on the database side of things rather than relying on an external utility. The external tables will give you all the functionality of SQL*Loader but all you to just read the data using SQL select statements instead and cut out all the shell script dependency.
    Alternatively you could also look at Job Chaining...
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14214/chapter1.htm#FEATURENO05574

  • Motion tween w\button

    EVERYTIME I MAKE A MOTION TWEEN, WITH A BUTTON, THE BUTTON NEVER WORKS.
    ANY SUGGESTIONS??

    ok what??
    and didnt you use to be-able to attach a file on here?

  • CS4 - motion tween

    If you watch the short tutorial at
    http://tv.adobe.com/#vi+f1590v1815,
    you see that guy does a good job explaining how to do a motion
    tween. His button "slides" into place from frame 1 to frame 24. But
    there are no frames after frame 24 on either layer. So, what if now
    he wants that button to be there, sitting still, from from 25 to
    frame x, while animation happens on the other layer (or a third
    layer)? Is he just supposed to go out to frame x and select it,
    then click F5 to add frames, or F6 to add a keyframe?
    Thanks,
    Christophe

    Gotta love them wolves
    At some point Flash introduced breaking apart text fields into individual letters before raw shapes(I can't remember the version off hand - maybe 8), which is handy when you want to motion tween the letters individually. So you could break them into individual letters, and then distribute to layers, and then motion tween them to create text effects. It might also be useful if you want to space/align or position them individually - a little bit faster than creating each letter separately. But yes, one extra Ctrl+B to get the raw vector!
    Hope that helps,
    Jen.

  • Af:statusIndicator does not show busy icon when a command button is click

    Hi Guys,
    af:statusIndicator does not show busy icon or motion when a command button is click
    I am working on an excel data upload functionality on .jspx page. I use “af:inputFile” file uploader to upload an excel file then process the data and store it as a list of objects in memory and display it in “af:table” table
    I added “af:statusIndicator” to the page to show the user that the page is progressing while the data is uploading and when it is saving the data to the database.
    In this case, when the “af:inputFile” is clicked to upload the excel file - the status indicator shows a progress icon (movement) which is expected and is good. However, after the data have been display in the table when I click on a command button that saves the data to the database – I expected the status indicator to start its busy motion but that is not happening. Whereas, the command button grayed out and is disable when I clicked the button until the operation is completed.
    Is there any way to start the statusIndicator when a command button is clicked?
    I tried the following options
    *<af:statusIndicator id="si1_uploadStatus" partialTriggers="pc1:cb1 pc1:table"/>*
    Where pc1:cb1 is the command button and pc1:table is the table
    *<af:commandButton text="Submit Uploads" id="cb1"*
    *disabled="#{!viewScope.batchUploadController.allSavable}"*
    *partialTriggers="::infFilePath"*
    *action="#{viewScope.batchUploadController.saveUploadedData}"*
    *blocking="true"/>*
    Thanks,

    Can somebody please address this?
    Thanks,

  • Hiding the submit button on click

    Hi All,
    I have a req where i have 4 buttons which displays some info on the same page when clicked. if i click on button 1, button1 should not be displayed after clicking, if i click on button 2, button2 should not be displayed. I tried this using setRendered(false) in the PFR. But it throws an error that the webBean property should be modified in PF. How can i achieve this??
    Thanks,
    Sree

    Create a property VO with the attribute of type Boolean. Using the SPEL expression technique, set the rendered property value to thie VO Attribute at the design time. When the button gets clicked, call the Some of the AMImpl method, which can set the Boolean.TRUE or Boolean.FALSE value based on your requirement. hope this helps.

  • Disable submit button after clicking on it

    Hi all,
    I m beginner at working with JHeadstart.
    I searched through this forum but I couldn't find any solution for my problem,
    Now, i want to know how i can disable save button (or any other button) after clicking on it.
    I dont know, but It can be done by writing .vm, do u have an idea?
    Thanks for ur kind replies:)

    Hi,
    If you only want to be able to submit once you can add the following disabled property with EL expression to your save button in the jspx page.
    disabled="#{adfFacesContext.postback}"
    The save button will only be clickable upon initial entry of the page.
    To persist this change when generating your application you can use a custom velocity template. Have a look at the JHeadstart developers guide, paragraph 4.7
    http://download.oracle.com/consulting/jhsdevguide1013.pdf
    If you want to have an insert only form you can also use an insert only View Object (go to the view object editor and select the tuning tab and the "No rows" option)
    Regards,
    Ruud Bijkerk
    JHeadstart team

  • On-screen buttons getting pressed during calls

    Hi all,
    First post here. I just bought my z2 and I absolutely love it but am deeply disheartened and concerned by one problem I'm having which pretty much is the most important thing I need.
    Almost every time I make a call - the mute, speaker, end call or other buttons get pressed while I'm talking. I've tried to make sure that the proximity sensor is covered by my ear and it still happens. I've also run the diagnostics and although they pass I've noticed that the vibration for the proximity sensor test does not always stay on if I put the phone up against my ear and move it around. Eventually the vibration turns off and some on screen buttons are pressed.
    Is this a problem with only my Z2 or a design fault. I'm gravely concerned that replacing it with a new one is going to cause the same issue. For a phone that cost me an arm and a leg I wasn't expecting problems that I never had with any other phone.
    Please help.
    Thanks.

    Hi Narada and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    When you are moving it around, is the proximity sensor staying covered? If it is being moved to the point where the proximity sensor is not being covered then this will cause the display to stay lit up.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How do i start a motion tween by clicking a button and stop it at the end of the tween.

    Hi guys,
    I am creating a website for a project and i am trying to activate a box bropping down from another box when i click on the enter here button i have created. I have set the motion tween and its working when i preview i just unsure of the correct actionscript to start this tween when i have clicked the entere here button or how to stop it at the end of the tween.
    I am scared i may have made the layers in the wrong place, they are all currently in scene 1. does my second box that is dropping down need to be set inside the layers of the first box?
    Bit of a newbie at this.
    Thanks in advance!

    Create the dropping box movieclip as an animation by itself with a stop() coomand in the first frame and a stop() command in the last frame.  The click of the button should tell the movieclip to play(); at which point the animation should play and stop at the end.
    Another option would be to use an actionscript Tween to make the box drop.  Going that route the animation is what you code it to be and there is no need to have to stop it as it will end where you tell the Tween to end at.

Maybe you are looking for