Flash components, flash files, the best flash components source, download flash components and flash extensions, sell flash components, buy flash
 
Search

home » flash components » other » complex collisions »

Complex Collisions

Open in larger window:
600x360 or 800x480
FlashStore rating:
User rating: Not rated yet.
Date: 05-12-06
Submited by: SilverVenom
Skill: beginner
Price: $ 10.00
 
About
This easy to use plugin allows for point to point hitTest dection. When a movieclip is made in flash, a "box" is created around that object. Normally, flash hitTest works by detecting the collisions between these "boxes". This extension removes that limitation. Now hitTest can be used to detect collisions between irregular shapes. This is especially useful in game development or even for interactive websites. If you have ever used hitTest to any extent, you know this problem well. This solves the problem by using a completely new method of detection. This new method allows for more collisions, between more complex shapes, even more effieciently than ever before. Now collisions can be detected between the actual shapes, rather than those crude boxes. Never again will you go back to the old method of hitTest detection.
UI Access
_
Support address
Code samples
To use this package simply install it with the Macromedia Extensions Manager which ships with FlashMX Pro 2004 and higher.

If being used in a function then:

On your actions layer put the line:

import com.securecube.complex;

This tells flash to import the class file which is required. Then to detect a collision use:

onEnterFrame = function () {
if(complex.hitTest(mc1,mc2) {
//Your Code Here.
}
}

OR, if being used in an onClipEvent handler use this on your movieclip actions:

onClipEvent(load) {
import com.securecube.complex;
}

onClipEvent(enterFrame) {
if(complex.hitTest(mc1,mc2) {
//Your actions here.
}
}

In both cases mc1 and mc2 are to be replaced by the names of the movieclips you want to detect collisions between.


Buyer reviews

No reviews.


User Comments

No comments.
login to post your comment  

Advertising

Credentials

FlashStore is now Adobe Solution Partner for Flash Components

As seen advertised at theFWA.com