### Re: [Flashcoders] accessing embedded cue point names

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 question

### [Flashcoders] Determining probablity of a random pick.

Hello list, I have an XMLList that can vary in length. I pick a random node each time using the simple method below: code var tRandom:int = int(Math.random()*tXMLSource.nodes.length() ); return tXMLSource.nodes[tRandom] /code Now i would like to change it, so that I can specify a weight to

### Re: [Flashcoders] Determining probablity of a random pick.

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: code var tRandom:int = int(Math.random()*tXMLSource.nodes.length() ); return tXMLSource.nodes[tRandom] /code Now i would like to change it, so that I can specify

### Re: [Flashcoders] Determining probablity of a random pick.

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; a weight=5 b weight=1 c weight=2 First calculated the range for each node. A = 0 - 5 B = 6 - 7 C = 8 - 10 Then store in an array like so?

### Re: [Flashcoders] Determining probablity of a random pick.

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; a weight=5 b weight=1 c weight=2 First calculated the range for each node. A = 0 - 5 B = 6 - 7 C = 8 - 10 Then store in an array

### Re: [Flashcoders] Determining probablity of a random pick.

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;

### RE: [Flashcoders] ReferenceError: Error #1065 issue

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

### Re: [Flashcoders] Determining probablity of a random pick.

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; a weight=5 b weight=1 c weight=2 First calculated the range for each

### [Flashcoders] using Bitmap for hitArea

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

### Re: [Flashcoders] using Bitmap for hitArea

BitmapData.hitTest: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1410.html Leandro Ferreira On Mon, Jun 22, 2009 at 19:21, Andrew Sinning and...@learningware.comwrote: If I draw a circle using the Graphics and Shape classes,