Reputation: 35
how do you know the parameters (eg height and width) of the element, if the constructor is passed only his Graphics?
Upvotes: 0
Views: 37
Reputation: 808
you can't inspect the width/height of the Graphics
object. You'll to be passed the DisplayObject
instance that contains the .graphics
instance.
Upvotes: 1