please, anyone knows what's the silly error I'm not catching here?
when I assign the rollOver to the class instance (setPlayButton), I don't getting able to access the 'getPlayFile function' thru its rollOver, why?


public function create(name:String, target:MovieClip, depth:Number, x:Number,y:Number):VideoThumb {
       vid = VideoThumb(target.attachMovie("thumb", name, depth));
       vid._files = new Array();

       setXY(x, y);
       setPlayButton();
       return vid;
}

private function setPlayButton(){
       var mc:MovieClip = vid.toolbar.playVideoButton;
       mc.onRollOver = mc.onDragOver = function():Void{
           trace(getPlayFile(0));
    }
}

public function getPlayFile(index:Number):String{
   return vid._files[index];
}


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to