Skip to content

Monochrome

-migrated-

3 posts

Re: Monochrome

Posted Aug 2, 2009 7:18 pm

When looking for _root variables, I came across the variable "_level0/:_lockroot" - Does anyone know what this does? Does it lock the root vars from view, if so, what can we do to find them?

Edit: _level0/:score should do the trick.



Tookie

Re: Monochrome

Posted Aug 4, 2009 2:55 pm
Quote from: "tookie"
When looking for _root variables, I came across the variable "_level0/:_lockroot" - Does anyone know what this does? Does it lock the root vars from view, if so, what can we do to find them?
Quote from: "adobe"
You can use _lockroot to target content as a way to solve the scoping issues sometimes associated with the inappropriate use of _root. Although this solves many problems with applications, consider _lockroot as a work-around for problems caused by using _root. If you experience problems loading content into a SWF file or a component instance, try applying _lockroot to a movie clip that loads the content. For example, if you have a movie clip called myClip loading content, and it stops working after it is loaded, try using the following code, which is placed on a timeline:

Code: [Select]
this._lockroot = true;