PDA

View Full Version : FLVPlayback - disable seekBar UI component?


ironchefmoto
03-01-2007, 04:42 PM
I'm building a video player that uses the hard-coded, non-9-slice-scaled FLVPlayback UI components. I tried customizing a skin with 9-slice scaling and had issues with the assets when I disabled certain controls. Plus, I needed more control over the layout than expected.

I've properly attached the individually skinned FLVPlayback components to the FLVPlayback instance, as follows:

var mpVideo:FLVPlayback; // on stage
mpVideo.bufferTime = 3;
mpVideo.playPauseButton = mpPlayPause;
mpVideo.seekBar = mpSeekBar;
mpVideo.bufferingBar = mpBufferingBar;
mpVideo.volumeBar = mpVolume;
mpVideo.muteButton = mpMute;
mpVideo.contentPath = "http://http://someserver.com/somevideo.flv";

Problem is, I can't make mpSeekBar not visible and not enabled. Neither of these work:

mpSeekBar._visible = false;
mpSeekBar.enabled = false;

Any way around this when NOT using FLVPlayback skin SWFs?

Thanks,
IronChefMorimoto

FOLOF
03-30-2007, 02:11 PM
Hi

You can set the alpha on the component:
mpVideo.seekBar._alpha = 0;

The dragHandle attach it self to the same level as mpVideo.seekBar

mpVideo.seekBar._parent.handle_mc._alpha = 0;
mpVideo.seekBar._parent.handle_mc._width = 0;
mpVideo.seekBar._parent.handle_mc._height = 0;

//Olof Larsson
FOLOF.se soon up and running

martinjamesroberts
09-04-2008, 09:39 AM
Select the FLVPlayback component go to parameters and set skin to 'none'.