SeekBar Custom Component: scrubber handle not disappearing (no access to handle object)


i having issues trying scrubber handle disappear on non movie scenes. have flash file, has navigation menu on left side of stage. when click on navigation element, changes gets shown on right side of stage. 1 of navigation elements movie trailer, shows player controls(my own custom controls). other nav elements reference non movie screens, synopsis of movie(note: no player controls).

problem having when change fromt movie screen non movie screen, can make custom components disappear, except timeline scrubber handle. 


heres did,
dragged seekbar, playpausebutton, mutebutton custom component stage. 

put actionscript file

actionscript code:
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 switch non movie screen, following

actionscript code:
mc_mute_btn.visible = false;
    mc_playpause_btn.visible = false;
       mc_seek_bar.visible = false;
       vid.visible = false


controls disappear, except scrubber handle.

when move movie screen, have following code

actionscript 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 one, , nothing seems work without bugs.

closest have gotten getting things working when move off movies screen, remove seekbar child.

actionscript code:
removechild(mc_seek_bar);


when move movie screen, reassing seekbar video.

actionscript code:
vid.seekbar = mc_seek_bar;


seems super hacky. , there bug, lets scrubber has progressed half way across timeline. when use navigation move movie screen, , controls display, srubber starts off @ beginning of timeline, , "hops" left off.

have ideas? 

thanks

this may hack, move seekbar movieclip out of view? change x , y values can't seen slam place when need viewable again. or perhaps change it's alpha value 0?



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???