Advertisement
Guest User

Untitled

a guest
May 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. private function loadPoints():void
  2. {
  3. pointsArray = [];
  4.  
  5. for ( var i = 0; i < points.children().length(); i++ )
  6. {
  7. var pointID:String = points[i]..children().attribute('id');
  8. var pointX:Number = Number( points[i].children().attribute('x') );
  9. var pointY:Number = Number( points[i].children().attribute('y') );
  10.  
  11. var point = new Point( pointID, pointX, pointY );
  12. pointsArray.push( point );
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement