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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_root and _level problem.....

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US
I have mc on main timeline called Scroller.
I also have function ChangePic inside mc Scroller.

if I execute trace(this); from inside Scroller, I get path: _level10.Scroller

I am storing this value in variable in main timeline and I will later call function ChangePic using this information.

How can I do that.
_level10.Scroller.ChangePic(); simply doesn't do anything.

I know I can cut out "Scroller" from the path I got, then use _root.Scroller ... but that doesn't seems logic to me. Why then trace(this) doesn't return _root.Scroller right away.

I will apriciate any help....

 
_level10.Scroller?

Sure about the 10?

Isn't it _level0.Scroller -> level 0?

 
yes... I got confused l for 1....

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top