Replace long object path with short var

How’s life?

This is what I would like to do. Change this:


this.onEnterFrame=function(){
  if (blaah){
    videoMC.vLoader.vContainer.holder.gotoAndStop(videoMC.vLoader.vContainer.holder._currentframe+2);
  }
}

to something simpler like this:


myVar = videoMC.vLoader.vContainer.holder
this.onEnterFrame=function(){
  if (blaah){
    myVar.gotoAndStop(myVar._currentframe+2);
  }
}

Is that possible, to substitute a long path with a short var. I know it can be done with any object property, but I’m not sure how to do it with a path, b/c what I’ve done so far doesn’t work.

Any help is appreciated.