olke
05-27-2009, 05:36 PM
I am having some issues trying to get the scrubber handle to disappear on non movie scenes. I have a flash file, that has a navigation menu on the left side of the stage. When you click on a navigation element, it changes what gets shown on the right side of the stage. One of the navigation elements is a movie trailer, that shows player controls(my own custom controls). The other nav elements reference non movie screens, like a synopsis of the movie(note: no player controls).
The problem i am having is that when i change fromt he movie screen to a non movie screen, i can make all the custom components disappear, except the timeline scrubber handle.
Heres what i did,
I dragged a seekbar, playpausebutton, muteButton custom component to my stage.
I then put this actionscript into my file
import fl.video.VideoEvent;
vid.pause();
vid.skin = null;
vid.source = ermParams["vidUrl"];
vid.playPauseButton = mc_playPause_btn;
vid.muteButton = mc_mute_btn;
vid.seekBar = mc_seek_bar;
When i switch to a non movie screen, i do the following
mc_mute_btn.visible = false;
mc_playPause_btn.visible = false;
mc_seek_bar.visible = false;
vid.visible = false
All the controls disappear, except for the scrubber handle.
When i move to the movie screen, i have the following code
vid.visible = true;
mc_mute_btn.visible = true;
mc_playPause_btn.visible = true;
mc_seek_bar.visible = true;
Ive read on various forums, including this one, and nothing seems to work without bugs.
The closest i have gotten to getting things working is that when i move off movies screen, i remove the seekbar child.
removeChild(mc_seek_bar);
When i move to a movie screen, i reassing the seekbar to the video.
vid.seekBar = mc_seek_bar;
This seems super hacky. And there is a bug, lets say the scrubber has progressed half way across the timeline. When i use the navigation to move back to the movie screen, and the controls display, the srubber starts off at the beginning of the timeline, and "hops" to where we previously left off.
Anyone have any ideas?
thanks
The problem i am having is that when i change fromt he movie screen to a non movie screen, i can make all the custom components disappear, except the timeline scrubber handle.
Heres what i did,
I dragged a seekbar, playpausebutton, muteButton custom component to my stage.
I then put this actionscript into my file
import fl.video.VideoEvent;
vid.pause();
vid.skin = null;
vid.source = ermParams["vidUrl"];
vid.playPauseButton = mc_playPause_btn;
vid.muteButton = mc_mute_btn;
vid.seekBar = mc_seek_bar;
When i switch to a non movie screen, i do the following
mc_mute_btn.visible = false;
mc_playPause_btn.visible = false;
mc_seek_bar.visible = false;
vid.visible = false
All the controls disappear, except for the scrubber handle.
When i move to the movie screen, i have the following code
vid.visible = true;
mc_mute_btn.visible = true;
mc_playPause_btn.visible = true;
mc_seek_bar.visible = true;
Ive read on various forums, including this one, and nothing seems to work without bugs.
The closest i have gotten to getting things working is that when i move off movies screen, i remove the seekbar child.
removeChild(mc_seek_bar);
When i move to a movie screen, i reassing the seekbar to the video.
vid.seekBar = mc_seek_bar;
This seems super hacky. And there is a bug, lets say the scrubber has progressed half way across the timeline. When i use the navigation to move back to the movie screen, and the controls display, the srubber starts off at the beginning of the timeline, and "hops" to where we previously left off.
Anyone have any ideas?
thanks