Open GoogleCodeExporter opened 9 years ago
Add in the file 'Preloader.as' a new function:
// COPY ------------------------------------------------------------
public function centerPreloader(w:Number, h:Number):void {
// center
this.x = ((w - this.width) / 2) - (this.width / 2);
this.y = ((h - this.height) / 2) - (this.height / 2);
}
// COPY ------------------------------------------------------------
In the file 'FLVPlayer.as' (function start) add after
the line
// FIND ------------------------------------------------------------
this.addChild(myPreloader);
// FIND ------------------------------------------------------------
this follow line:
// COPY ------------------------------------------------------------
myPreloader.centerPreloader(myParam.videoWidth, myParam.videoHeight);
// COPY ------------------------------------------------------------
Regards mk.keck
Original comment by kec...@googlemail.com
on 16 Dec 2010 at 1:13
Original issue reported on code.google.com by
florianp...@gmail.com
on 22 Apr 2008 at 6:17