Action to see where the root time line is

When a button is presed on a child time line I would like to check the play head position on the root time line before it executes the action attached to the button. I think that maybe this is done with a function, but I am not sure. Does anyone have any suggestions?:b:

not sure if I follow or not, but this should help

_root._currentframe

the situation is that I have a photo and a movie clip that had navigation buttons in it on the root time line. When one of the buttons is pressed an external swf is loaded on a new level in the time line. What I need to have happen is when one of the navigation buttons is pushed the photo on the root time line fades out. I am not sure which button will be pressed first, but I don’t want the photo to fade out every time the button is pushed. The solution that I was thinking of was to tell the picture to fade out everytime a button was pushed, but if the picture was already faded out then not to fade anything, but to just load my new swf!
Like I said I don’t know if that is the way to make this happen, but I don’t have any other ideas. Does this help?

I guess all I want the action to say is

if _root is on frame 1
then gotoAndPlay(“fade”)

the problem is that I don’t know how to write that.

on (release) {
trace (_root._currentframe);

if (_root._currentframe == 1) {
_root.gotoAndPlay("fade");

}
}
This is what I came up with and it seems to work. Thanks for your help

yeah, that should work