Testing to see what has been pressed?

Ok so I have some buttons that call an external.swf into a emptymovieclip that is more or less a background for other stuff to lay on top of, now within this external.swf (that is the background) is there any way I can test to see what button has been pressed to be able to call a certain movieclip to load on top of the background? The reason I need to do this is that I would like to put this code in the external.swf actionscript at a certain point on the timeline to load another external.swf at that particular time…

Something like:

if _parent.nav.about_btn has been pressed do this
else if
if _parent.nav.services_btn has been pressed do this
else if
if _parent.nav.contact_btn has been pressed do this

Thanks! :thumb:

Ya just create a flag


btn_01Pressed = false;

btn_01_btn.onPress = function(){
btn_01Pressed = true;
// do stuff
}

Thanks.