Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enabled on loaded movie clip

Status
Not open for further replies.

thumbslinger

Technical User
Aug 22, 2007
5
US
Though I can't find any mention to this as to using it for movie clips in the Flash help, other references particularly the "100% comprehensive" Flash 8 Actionscript Bible, says you can.

I've loaded a swf into a movie clip via the loadClip() method and Flash help does say that the loaded movie, when using the loadClip() method, may be targeted by targeting the movie clip the swf is loaded into.

So, I'm simply trying to say ipodLoad.enabled = false; but no go. I've tried .enabled.onRelease, _root, this, _parent etc.

When using Script assist just to see how Flash is targeting the clip, it uses this.ipodHolder but still no go.

Anybody ever set the enabled property of a loaded movie clip to false and have it correctly disable the clip?

Thanks
 
You can disable MovieClips but MovieClips/Buttons within disabled MovieClips will not be disabled. You have to disable them explicitly. (Or you can write recursive function disables everything inside a given MovieClip.)

Kenneth Kawamoto
 
well, there is a button inside of my ipod movie called iPodSpin_btn but even targeting that as:

_root.ipodLoad.iPodSpin_btn.enabled = false;

doesn't work. I'm thinking perhaps being loaded, or actually attached from the library is the culprit.

The name I gave in the attaching method is ipod1 and I've tried:

_root.ipodLoad.ipod1.enabled = false;
_root.ipod1.enabled = false;
_root.ipod1.ipodSpin_btn.enabled = false;

And nothing works.

ipodLoad = empty mc on main stage
ipod1 = instance name given in attach code
ipodSpin_btn is the instance name of a button on the first frame of the ipod movie.

I'll look up recursive functions and see if that helps, thanks
 
ok, solved.. I had to use _level0. and then onto the button inside the clip.

That killed everything in one fell swoop!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top