Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2008

    Collision detection in Flash lite

    Hi friends,
    Anyone help me for collision detection of different shapes in flash lite 1.1/2.0 any, thank you..

  2. #2
    Product Specialist
    Join Date
    Jun 2003

    Re: Collision detection in Flash lite


    The API is called hitTest and has been around since Flash5, which includes all Flash Lite versions.


    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2008

    Smile Re: Collision detection in Flash lite

    Yup..You can use hitTest Api if you are working in Flash Lite 2.0/2.1/3 enviroment..It is as easy as you think to use..Suppose You want to detect the collision of two movie clips A and B . Then , its syntax can be :
    if (A.hitTest(B)) 
    trace("collision detected");
    But if you are working in Flash Lite 1.1 (which is based on Flash MX 2004 Action Script) then you cant use hitTest. In this case, you have to use
    getPoperty("mc_clip", _property);
    to find out the x and y axis of clip any moment and then by comparing it with other object x and y axis . You can detect the collision...Enjoy Flash Programming...

Similar Threads

  1. Flash Lite applications
    By zhenhan82 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2008-02-22, 04:42
  2. Nokia N95 8GB adds Flash Lite 3 support
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 17
    Last Post: 2008-02-15, 21:59
  3. Replies: 2
    Last Post: 2007-04-17, 13:32
  4. Flash Lite handsets poll
    By ilyadanilov in forum Series 40 & S60 Platform Feedback Archive
    Replies: 11
    Last Post: 2006-07-04, 23:17
  5. S60 2nd FP3 and 3rd - Flash Lite frustration
    By ilyadanilov in forum General Development Questions
    Replies: 7
    Last Post: 2006-02-08, 19:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts