How to animate objects on screen on certain events

I want to make the clown dance when he catches a hat (I have a tween for that) who otherwise will be simply standing, Basically I need to animate objects on certain events and then stop, I see so many game makers doing that, I know nothing about it, tried a lot on my own but with no success

a simple sample:
you can download it here: http://www.flashdersi.com/flash/diger/adobeforum/hittest.fla
import flash.events.Event;
addEventListener(Event.ENTER_FRAME,fCheck);
var bMove:Boolean = false;
function fCheck(evt:Event)
if (! bMove)
  if (mcHandClown.hitTestObject(mcHat))
   bMove = true;
   mcClown.gotoAndPlay(2);
if(mcClown.currentFrame==1)
  bMove = false;
mcHat.startDrag(true);

Similar Messages

  • How to create Dialog Module[Screen,Menu,object navigator]

    Dear All,
                kindly give me. How to create Dialog Module[Object Navigator,Screen,Menu,] steps with code.

    please see this  link   it is with  screen shot from the scrach ...
    <b>creating  struture 
    creating screen
    writing logic 
    table control
    creating tcode</b>  ...etc
    <a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
    reward  points if it is usefull ...
    Girish

  • When I try to transform an object my screen goes blank, how can I correct this?

    When I try to transform an object my screen goes blank, how can I correct this?

    Please answer all questions you have been asked and provide all pertinent details if you want help.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Branching to DMS doc from SAP object trans screen(newly createdobject link)

    Hi
    I have created a new document type and been able to attach a new sap object to that DMS document and view it in the object link of that document in CV02n, Cv03N. My problem is how to display the document from sap object screen (vice versa is always possible)
    For standard object already available such linking is provided by SAP
    (like in mm03->Extras->Document data) but I have added a new SAP object say OIGV. How to browse to ducument data from o4v2, o4v3 transaction. Is there any generic strategy for enhancing each and every SAP object transaction screen to branch to its linked DMS document
    With best of regards
    Saurav Choudhury

    Hi Sai,
    regarding your description I would kindly ask you to go to transaction DC10 and mark a document type where the necessary object is linked under 'Define object links'. Choose the right object and display its details by double-click. Then you will see the field 'Create document' where you have to enter a value '1' (using transaction) or '2' (simple creation). Please enter a value and flag the 'Additional function' checkbox too.
    Based on your description I'm sure that you are using the 'simple creation' mode for this kind of object type in the DMS customizing. Please note that for the simple creation of documents mandatory fields (if set in customizing) cannot be filled and this will lead to error messages.
    Please note that the value "1" for the creation of documents is used to enable a user to simple attache a word file on object side without going to the transaction CV01n. Therefore the system behaviour is different then creating a document by CV01n and attaching a word file to it.
    However, you can change the behaviour how the document is created from equipment master transaction if you change the customizing in transaction DC10 like this:
    If you maintain the value "2" for creation of documents, the user is put to transaction CV01n for the creation of document info records. So maybe this would solve the issue.
    Best regards,
    Christoph

  • HT4085 how to lock the tauch screen with some password or dots like android to prevent misuse. And also screen lock to prevent interruption while watching movie reading books etc.

    how to lock the tauch screen with some password or dots like android to prevent misuse. And also screen lock to prevent interruption while watching movie reading books etc.

    You can set a passcode to be requied to unlock the iPad via Settings > General > Passcode Lock. In terms of locking the actual screen whilst using an app, then that isn't currently possible, but with iOS 6 in the Autumn there will be a new 'accessibility' feature (from here) which will allow you :
    ... to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen

  • How to animate buttons in DVDstudio4 ???HELP!!!

    hi to everybody
    just make the switch from iDVD to DVDstudioPRO4....
    so iam not very familiar with the new app yet -
    and maybe its a silly question but i can`t figure out
    how to animate buttons ??????
    having created a nice animated videobackground in Motion2.1
    i would now like the buttons to appear 10 seconds later
    with a decent fade in....as always seen in iDVD-themes??
    is there a way to achive that in DVDstudio??
    or can i somehow create that kind of active button animation
    in FCP/MOTION/LIVETYPE..
    thanks so much for your time answering .. :-))))
    julien

    You can only animate your background layer. Your 8bit overlays are not allowed to be animated in DVDSP but only allowed to appear at a certain point via your loop point adjustments. Adjust your loop point to 10 secs. Remember your overlay will not fade in, just appear at that point.
    Message was edited by: Eric Pautsch1

  • How can I modify the screen of TCode IW31/IW32/IW33?

    How can I modify the screen of TCode IW31/IW32/IW33?
    I'm trying to add new fields, so that after inputting the order type and hit on enter, a new field will be added under the Service area. Does anyone knows how can I do it?

    Hi,
    Screen badi's for IW31.
    IWO1_SCREEN_MODIFY
    IWO1_PREQ_BADI
    WOC_FL_DETERMINE
    Refer This:
    Screen exit for transaction IW31 for ref. object O150
    Regards,
    Shiva Kumar

  • How to customize portal logon screen

    Hi,
    I am new to Enterprise Portal.Can anybody tell me how to customize the logon screen.
    Thanks in Advance!!!
    Yerramilli

    Hello Yerramilli ,
    Please post your query in Portal Forum .
    In SDN we have varies Fourms like
    Portal Content Development , Portal Implementation ,Enterprise Portal Migration ,Unification, Connectivity and Object Based Navigation .
    You can post your query in Portal Content Development
    Regards ,
    Santosh

  • How do you lock the screen on iphone 4?

    How do you lock the screen on iphone 4 while on a call? I mute calls, activate face time and I have even called someone by accident during a call. I know there has to be a way to fix this. Please HELP!

    It locks automatically when you hold it to your head.
    If it fails to do this, then remove the case and see if it solves it.
    If it does not, then do the basics - restart, reset, restore.
    If that does not solve it, then make an appointment at the genius bar.

  • How do I take a screen shot with my iphone 5S?

    How do I take a screen shot with my iphone 5S?

    Press the "Home" button and the sleep/wake button at the same time to take a screen shot.

  • How do I get on-screen keyboard to work in tablet mode for Satellite Radius?

    I have a Radius P55W-B5318.  I love it, but when I use it in tablet mode, I can't seem to figure out how to get the on-screen touch keyboard to come up, which is necessary if I'm going to use it as a tablet. Any solutions? What am I missing here?

     
    Satellite Radius14 E45W-C4200
    Right-click the desktop, point to New, and click Shortcut. Type osk, click Next, type On-Screen Keyboard, and click Finish. 

  • HT1338 how can i display my screen on my macbook pro to my 55" lg 3d smart tv? I tried Plex and it won't play it on my tv cause it is a tv show bought through iTunes.

    how can i display my screen on my macbook pro to my lg 55" 3d smart tv. I tried using plex as suggested by lg but because i purchased the tv show through itunes it will not pick up on plex. It says it can not r

    Either buy the $99 Apple TV or
    Connect the MBpro to the TV with a HDMI cable.

  • How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012, How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012

    How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro

  • How can I get the screen to lock on my iPhone 4, so I don't press buttons while talking?

    I just upgraded to the iPhone 4.  When I am talking on the phone, the screen doesn't lock, so I am constantly pressing buttons or hanging up on the person I'm talking to.  How can I get the screen to lock while I'm talking?  It's driving me NUTS.

    The otterbox is one of the culprits. Take the phone out of the case and see if it still happens. If so it is not the case. If the problem goes away, then you may need to make the hole slightly larger. My family has three iPhone 4's in otterboxes and none have this problem. Other users on this forum have reported success with the above methods.

  • How do i stop the screen from rotating on my iphone

    how do i stop the screen from rotating on my iphone when i move the phone from horizontal to vertical

    You can lock your screen from rotating. Double-click the home button, then slide your finger to the right until your get to the iPod section. There you click the icon on the left and that will lock your screen. You can unlock it the same way.

Maybe you are looking for

  • Comparing Progress analysis data saved in past periods

    Hi forum team, We are using PS in SAP R3 ECC 6.0 system With the intention to reviwe at later stage, we had saved 'Progress Analysis' report data (CNSE5)in 'Other selected version' in past periods i.e.in July, August etc.When we open these reports in

  • Reccomendations for x800xt radeon card wthe dual link and DVI?

    I was very unarmed when I posted my last question. I know know that the radeon x800xt MAC Edition is a dual link DVI and has one Apple DVC. I guess I can go two ways with this: 1. I can get an ADC to DVI converter and run another monitor 2. or I can

  • Audit log level

    Hello there, When i update an attribute to be multi-value in the schema section of DSCC, i want to see update in audit log. Now with default audit log level, i can see only the following but it does not show what attribute and what value is being mod

  • Compressing images to keep file size down

    I'm looking for a really useful feature that I remember using in powerpoint. Currently my files are HUGE because pages doesn't resize (mb wise) pictures when I scale them down. I could do it the hard way with Photoshop or take a screenshot and replac

  • Migration informix to oracle

    Can I use Oracle Migration Workbench to migrate from Informix Dynamic Server 7.0 to Oracle 8.1 Thanks in Advance Alessandro Guimaraes