Author: hqm
Date: 2007-12-05 15:45:33 -0800 (Wed, 05 Dec 2007)
New Revision: 7460
Added:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
checkpointing lzsprites
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
2007-12-05 18:52:32 UTC (rev 7459)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
2007-12-05 23:45:33 UTC (rev 7460)
@@ -369,6 +369,7 @@
o if recursive is true, the sprite destroys all its children as well
*/
public function destroy( recursive:Boolean ):void {
+ // parent.removeChild(this);
}
@@ -376,10 +377,9 @@
o Returns the mouse position for this sprite, for either 'x' or 'y'
*/
public function getMouse( xory:String ):Number {
- return 0;
+ return (xory == "x" ) ? this.mouseX : this.mouseY;
}
-
/** getWidth()
o Returns the current width of the sprite
*/
@@ -430,18 +430,6 @@
}
- public function drawCircle (x:int, y:int):void {
-
- var randomColor:int = Math.floor(Math.random()*0xFFFFFF);
- var randomSize:int = 10 + Math.floor(Math.random()*150);
- var circle:Sprite = new Sprite()
- circle.graphics.beginFill(randomColor, 1);
- circle.graphics.lineStyle();
- circle.graphics.drawEllipse(0, 0,randomSize, randomSize);
- circle.x = x-randomSize/2;
- circle.y = y-randomSize/2;
- addChild(circle);
- }
}
}
Added: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Property changes on:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins