Solved

_level / _root

Posted on 2003-11-06
4
192 Views
Last Modified: 2010-05-18
//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.
0
Comment
Question by:Fivez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 5

Expert Comment

by:zenlion420
ID: 9695858
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.

j
0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9696119
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.

j
0
 

Author Comment

by:Fivez
ID: 9699243
This is a link that helped me further;

http://www.umbc.edu/interactive/flash/tutorials/showpage.php?p=depths

Thank you for all the advice: I've copied the movieclips to the first frame and made them invisible.

Now everything works fine: interpreter in the first frame does not know yet what happens in the second frame so it could not work untill I copied the mc to the first frame.
0
 
LVL 5

Accepted Solution

by:
zenlion420 earned 500 total points
ID: 9700095
did my advice help?  if so, i guess you should close this, and um, maybe award me some pts :)

if not, let me know and i'll request that this be deleted from the TA.  

glad it's all working,

j
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question