Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User sendilkumarj's Avatar
    Join Date
    Sep 2008
    Posts
    1
    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 markadoherty's Avatar
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191
    Hi,

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

    http://www.adobe.com/support/flash/a...ionary534.html

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  3. #3
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    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 :
    Code:
    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
    Code:
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved