/src/com/google/maps/extras/xmlparsers/kml/HotSpot.as

http://gmaps-utility-library-flash.googlecode.com/ · ActionScript · 42 lines · 31 code · 8 blank · 3 comment · 0 complexity · f20a3e1a4f8663e4844c6d01697ead67 MD5 · raw file

  1. /* Added by Cecil M. Reid (cmR)
  2. * cecilmreid@gmail.com
  3. */
  4. package com.google.maps.extras.xmlparsers.kml
  5. {
  6. import com.google.maps.extras.xmlparsers.ParsingTools;
  7. public class HotSpot extends KmlObject
  8. {
  9. private var _x:Number;
  10. private var _y:Number;
  11. private var _xunits:String;
  12. private var _yunits:String;
  13. public function HotSpot(x:XMLList)
  14. {
  15. super(x);
  16. this._x = ParsingTools.nanCheck(this.x.@x);
  17. this._y = ParsingTools.nanCheck(this.x.@y);
  18. this._xunits = ParsingTools.nullCheck(this.x.@xunits);
  19. this._yunits = ParsingTools.nullCheck(this.x.@yunits);
  20. }
  21. public function get xx():Number{
  22. return this._x;
  23. }
  24. public function get yy():Number{
  25. return this._y;
  26. }
  27. public function get xunits():String{
  28. return this._xunits;
  29. }
  30. public function get yunits():String{
  31. return this._yunits;
  32. }
  33. }
  34. }