Curious to know if the following would become an issue...
public static function setToPoint(view:DisplayObject, point:Point):void
{
view.x = point.x;
view.y = point.y;
}
// from another class
var testView:Sprite = new Sprite();
StaticUtil.setToPoint(testView, new Point(calculatedX(), calculatedY()));
I am basically looking to have a utility class that can handle a bunch of layout tasks. But am worried about passing in DisplayObject parameters, due to the fact that this may cause memory issues. Will implementation like this cause memory issues? Garbage collection issues?
Thanks much.
North America
Europe, Middle East and Africa
Asia Pacific