PDA

View Full Version : _root. / _level0 / scrollpane


rickid
07-27-2006, 06:11 PM
I have an swf that contains a movie clip which uses _root to reference its main timeline.

This swf is then loaded into a scroll pane and _root now does not refer to the original swf's timeline. I can make this work by using scrollPane_sp.content. instead of _root.. However I don't want to edit the original swf.

After reading the difference about _root and _level0, I would have thought that _level0 would refer to the main timeline of the swf with the scrollpane and _root. would refer to the timeline of the loaded swf.

Also would you recommend implementing a scrollPane_sp.redraw(true) loop that constantly redraws the window?

Thanks

Slowburn
07-27-2006, 06:14 PM
use `lockRoot = true` in your external clip.
This will allow the clip to use it's own _root instead of the Main Files root.

rickid
07-27-2006, 06:35 PM
Great thanks. I've used:

this._lockroot=true

...but I had to put this inside every movieclip in the swf.

Is there not a way to put this on the maintime of my swf and reference everything?