_level / _root

//choosing the correct subdirectory in a photoalbum with an index (nieuwesector) to view different pages in that part of the album

function sector(nieuwesector, nieuweinfo) {
_root[oudesector]._visible = false; // old index subdir.
_root[nieuwesector]._visible = true; // new index subdir.
nieuwefoto = "po"+nieuwesector+"1.jpg"; // first photo in the new subdir.
fotoclip2.loadMovie("HTTP://www.fivez.be/foto/"+nieuwefoto);
_root.info = nieuweinfo; // comments on the new picture
_root.informatie._visible = true; // clip showing the info -> visible
oudesector = nieuwesector; // old index = new index
}
The indexes are movieclips created in the second (key)frame.
This code works if I am in the second frame of my movie.
When I try to execute this function from the first frame, the first two lines do not work. Changing _root to _level1 does not help: it only stops the function from working in the second frame as well.

If you could point me to what I am doing wrong, I would highly appreciate it.

i would really like to see the .fla, i'm sure there is something really simple that needs change, or addition. is there a stop on frame one? i can only imagine what this looks like, let me know if you don't have web space to post it, you can e-mail it to me, and i'll post it on the web for eevryone that's interested.

do you want the new index to be visible on the first keyframe? this is what i'm having a hard time with. i'm guessing that you have your content on the second keyframe, and you want to call portions of it into the first? it might help to use the gotoandplay action to call your mc. for example, place the index_mc on the first keyframe where you'd like it to display, then on its first keyframe (inside of the clip), give the graphic an alpha of 0 and a stop command. then on its second give it an alpha of 100 and a stop command. after that, you'd be able to call it using the _root."mc name".gotoandplay(2) to make it visible, but i'm just not sure what you're trying to achieve.

Featured Post

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb.
Here are some quick tips:
Do we need only ticket…

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3. Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …

The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a
WordPress site or Blog.
This will be demonstrated using a Windows 8 PC.
Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

The purpose of this video is to demonstrate how to manually back up a WordPress Database.
This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com
Log into your Hosting account. IPage will be used for demonstration : Locat…