PDA

View Full Version : levels



cyndibrown
January 18th, 2003, 08:22 AM
Hello~

My functioning navigation bar is called like this:

_root.attachMovie("navigation_cb", "navigation_mc", 100000);

I want to have dynamic text on the navigation bar that I can change\controll on different frames, so I added a dynamic text box inside the navigation movie clip. On the frame (in the main time line) that I want the text in the dynamic text box to change, I have this:

_level100000.navigation_mc.mainTxt2.text = "Introduction";

//where mainTxt2 is the var name of the dynamic text box...
//no luck however...not working

if the dynamic text box needs to live at _root, (taken out of the navigation_mc) then how do I get it to appear above level100000??

thanks,
cyndi

rynoe
January 19th, 2003, 01:27 AM
Only because there has been no responses to your inquiry I suggest this:

Perhaps the logic behind what you are doing is flawed, there may be a completley different way to do that. There is more than one way to skin a cat.

I know this doesn't help much, but it sounds like you have already hit a dead end. Maybe its time to turn around and take another approach.

cyndibrown
February 23rd, 2003, 07:15 PM
actually got this to work without modification to the load level of the navigation bar...it's basic stuff but works for me

navigation_mc.mainTxt.text = "lesson name";
navigation_mc.pgcountTxt.text = "1";
navigation_mc.numTxt.text = "3";

thanks

nunomira
February 23rd, 2003, 09:49 PM
you were mixing two things!

the target path of a movie loaded via loadMovieNum() and the target path of a movieClip attached from the library.

whe you use loadMovieNum() you specify a level. The target path to that movie has to start with the level: _leveln.something, where n is the level.

when you use attachMovie() you also specify a level, but you specify a target as well! and the target will be used in the target path. Here you can forget the level. It is just for you to decide what appears on top of what.
This is exactly the same with createTextField() and createEmptyMovieClip()

So, what you wanted was:
_root.navigation_mc.mainTxt2.text = "Introduction";
because you used the _root as the target.