From: Ewan M. <mr...@mr...> - 2006-09-07 07:51:52
|
Hello, I've updated my actionstep library to use the modified NSMovie and NSMovieView classes. Now my video resizes itself to the wrong size. It maintains its aspect ratio but is about 2 times too small. public function initWithFramePosActive( frame:NSRect, redPos:Number, blackPos:Number): GameBoardVideoView { super.initWithFrame(frame); ... NSNotificationCenter.defaultCenter().addObserverSelectorNameObject( this, "movieInitialized", NSMovie.ASMovieDidInitialize, null); m_video = (new NSMovie()).initWithContentsOfURL("../../../video/ 002f3t360_TheGame.flv"); m_videoView = (new NSMovieView()).initWithFrame(new NSRect (0,0,frame.size.width,frame.size.height)); m_videoView.showControllerAdjustingSize(false,true); m_videoView.setDrawsBackground(false); ... return this; } private function movieInitialized(ntf:NSNotification):Void { m_videoView.setMovie(m_video); m_videoView.gotoBeginning(this); m_videoView.start(); } Any ideas would be much appreciated. I can supply all the source code for the project if required (will be release GNU GPL anyway). Cheers, Ewan |