Hi,
I've been scouring the internet for a solution to this, but it seems it's only possible using netstream. I want to use an internal flag to enable and disable the scrubber bar and seekBarHandle:
something along the lines of: selectedVideo.skin.seekBarHandle_mc.visible = false;
i.e. - the user must watch the video in its entirety, after it's completed, they can watch it again and use the scrubber and seek function. I've been having one heck of a time trying to control this thing. As it stands now, I can't send any properties into my external skin. Right now, I'm using a customized version of MinimaFlatCustomColorPlayBackSeekMute.fla. Has anyone run across this problem before? And if so, what did you do to control the skin parts?
Thanks,
Chipleh
Thanks kglad. That certainly seems to get me part of the way; I munged together this code:
for each (var __obj:Object in (this.seekBar as Object).uiMgr.ctrlDataDict)
{
trace("__obj = "+ __obj.ctrl.valueOf()); //I can see the values of the objects, i.e. - __obj = [object SeekBarHit]
if(__obj.ctrl.valueOf().name != null)
{
trace("NAME: " + __obj.ctrl.valueOf().name);//I can see the names of the objects, i.e. - NAME: instance125
}
if (__obj.ctrl.toString() == "[object SeekBarHit]")
{
var scrubber:Object = (Object(__obj.ctrl));
trace("SCRUBBER NAME: "+ scrubber.name); //I can see this, i.e. - SCRUBBER NAME: instance125
var theScrubber:Object = getChildByName(scrubber.name);
trace("theScrubber: " + theScrubber); //HOWEVER, this returns null
}
}
Do I have a casting problem here?
no, you probably have an incorrect parent:
var theScrubber:Object = getChildByName(scrubber.name); |
should probably be
| var theScrubber:Object = scrubber.parent.getChildByName(scrubber.name); |
but why not use:
scrubber, if that's the object you're trying to reference?
trace("the scrubber: "+scrubber);
North America
Europe, Middle East and Africa
Asia Pacific