/ Published in: ActionScript 3
Expand |
Embed | Plain Text
var mysprite:Sprite = new Sprite(); createCross(mysprite); function createCross( s:Sprite ):void { var mark:Sprite = new Sprite( ); mark.graphics.lineStyle( 1 , 0xffffff ); mark.graphics.moveTo( -5 , -5 ); mark.graphics.lineTo( 5 , 5 ); mark.graphics.moveTo( -5 , 5 ); mark.graphics.lineTo( 5 , -5 ); s.parent.addChild( mark ); }
Comments
Subscribe to comments
You need to login to post a comment.

it should actually read, draw across in the centerpointof the parent clip.