Instead of setting the playPauseButton and backButton to null
I set their
visibility to false - vidPlayer.playPauseButton.visible = false;
-
vidPlayer.backButton.visible = false;
-
and then back to true
- vidPlayer.playPauseButton.visible = true;
-
vidPlayer.backButton.visible = true;
The
seekBar however is a lot more complex.
In the end the work around I used was to draw a
rectangle on top of the seekBar, then convert it to
a movieclip, then set the movieclip's
alpha level to zero in the properties inspector.
I was then able to change the visibiltiy of the movieclip as I had with the
playPauseButton and backButton
vidPlayer.playPauseButton.visible = false;
vidPlayer.backButton.visible = false;
invisHideSeekBar.visible = true;
then
vidPlayer.playPauseButton.visible = true;
vidPlayer.backButton.visible = true;
invisHideSeekBar.visible = false;
This way the seekBar is unresponsive when clicked,
and even better, it is still totally visible! @Max58kl