What gives you better performance?

I tried to search around for this answer but maybe I’m not asking the right question.

What will give you better preformacnce?


var someMovieClip:MovieClip;

function createAndAddMovieClip():Void
{
       someMovieClip = new SomeMovieClip();
        addChild(someMovieClip);
}


or

var someMovieClip:new SomeMovieClip()

function createAndAddMovieClip():Void
{
        addChild(someMovieClip);
}


The first version creates the mc, but then a function later on relates that mc to a class, and then adds that to the display list. If this function gets called over and over again, doesn’t that mean that each time the function is called, it has to create that custom class for that movie clip? If so would the 2nd way doing this, be more efficient?

Just so you know… createAndAddMovieClip() could be called multiple times, and yes I would have another function to remove that MovieClip before adding the new one.

Thanks!