I wish to hide a button (named "Button_1") using a widget.
Here is the code:
var myRoot:MovieClip = MovieClip(root);
var mainmov:MovieClip = MovieClip(myRoot.parent.root);
mainmov.slide0__color_mc.Button_1.visible = false;
I've also tried:
mainmov.Button_1.visible = false;
Anyone know how to do this?
I'm trying tocreate a little security for my Captivate e-learnining modules. The widget I've created checks the domain that the widget is playing on, and if it is not on a pre-approved domain, the widget covers the screen with a white box and a messages "you are not authorized to view this content". The problem is that the play button underneath the widget is still active and so I also need to set the visibility of that button to false. I need to apply this widget to many pre-existing Captivate e-learnining modules, so I can't make any changes to the Captivate file other than to add the widget to the first slide.
If you're truly concerned about your content, you should try to control consumption through a web server and some sort of user/group/membership framework. If this is in addition to that framework... then I suppose it's not a bad solution to people trying to pirate your modules. CpGuru (Michael Lund) already has a domain lock widget that provides the functionality:
I've looked at the "AS3 DomainLock Widget" and it's not useful for me. It requires hardcoding the allowed domains into the widget itself. I want to insert my widget once and then control the list of allowed domains from my server by having my widget call home.
I thought I'd already solved all the hard stuff with my widget and am a bit frustrated with this last bug. Shouldn't using actionscript to hide an object on the stage be a common and trivially simple thing to do? I'm really surprised I can't find any reference material on this.