BitmapData.hitTest:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1410.html
Leandro Ferreira
On Mon, Jun 22, 2009 at 19:21, Andrew Sinning wrote:
> If I draw a circle using the Graphics and Shape classes, and then add the
> sha
If I draw a circle using the Graphics and Shape classes, and then add
the shape to a sprite, I can use the sprite for the hitArea of another
sprite and it works just fine. Everything within the circle is a hit,
everything outside of it is a miss.
However, if I create a sprite containing a Bit
I see, that makes sense.
Cheers.
Jiri
Paul Andrews wrote:
Jiri wrote:
Thank you i understand it. Could u please elloborate on the last part
"..You can optimise this by using an array of pointers.."
Do you mean that this;
First calculated the range for each node.
A = 0 - 5
B = 6 - 7
C =
Thanks Mario!
I actually found the solution to this. It was my own mistake, of course.
I've got a base level swf loading in a child swf which contains the super
class and subclass mentioned below. Turns out the loading swf also uses the
super class, and I hadn't recompiled it in the process. It wa
An easy way is to if say you have 3 objects in a list given a weight
options[0].weight = 1;
options[1].weight = 3;
options[2].weight = 4;
instead of having it have three selections, you could add the weights
and make it have 8 to choose from that point to the option.
choice[0]=0;
choice[1]=1;
Jiri wrote:
Thank you i understand it. Could u please elloborate on the last part
"..You can optimise this by using an array of pointers.."
Do you mean that this;
First calculated the range for each node.
A = 0 - 5
B = 6 - 7
C = 8 - 10
Then store in an array like so?
Array[0-5] = A
Array[6
Thank you i understand it. Could u please elloborate on the last part
"..You can optimise this by using an array of pointers.."
Do you mean that this;
First calculated the range for each node.
A = 0 - 5
B = 6 - 7
C = 8 - 10
Then store in an array like so?
Array[0-5] = A
Array[6-7] = B
Array
Jiri wrote:
Hello list,
I have an XMLList that can vary in length. I pick a random node each
time using the simple method below:
var tRandom:int = int(Math.random()*tXMLSource.nodes.length() );
return tXMLSource.nodes[tRandom]
Now i would like to change it, so that I can specify a weight t
Hello list,
I have an XMLList that can vary in length. I pick a random node each
time using the simple method below:
var tRandom:int = int(Math.random()*tXMLSource.nodes.length() );
return tXMLSource.nodes[tRandom]
Now i would like to change it, so that I can specify a weight to each
node.
cuePoint event object has "info" property, which is an object contains properties such as "name",
"time", and "type". In your situation you would just fire some actions depending on the name of the
cue point.
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Sam Brown wrote:
Hi list,
Quick que
10 matches
Mail list logo