I’m still trying to get my head around the new techniques used in AS3 over AS2 scratches head
Ok, so i have a class called Node (filename: Node.as)… which basically assigns a few variables such as ID and description and places a movieclip from the library (node_mc) on the stage with the stated x and y points.
[AS]
var node:Node = new Node(1, new Point(400, 150), “this is a node”, this);
[/AS]
What’s the best way to dynamically create a bunch of instances of object class Node?? With a number increment in the instance name? Something like node1, node2?
I plan to have the coordinates feed in from an xml file and then create however many nodes for the specified amount of coordinates within said file.
Cheers