/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function drawRegistrationPoint( s:Sprite ):void { //translate movieclip var mark:Sprite = new Sprite( ); mark.graphics.lineStyle( 1 , 0xFF0000 ); mark.graphics.moveTo( -2 , -2 ); mark.graphics.lineTo( 2 , 2 ); mark.graphics.moveTo( -2 , 2 ); mark.graphics.lineTo( 2 , -2 ); s.parent.addChild( mark ); }