okay, i have a button in a menu system. It does a number of things when rolled over and pressed. When pressed, I want to check and see if the mc from a previous button is at a certain point in the timeline (@ framelabel “start”) and if so to play framelabel “reverse” (the closing animation for that mc). However, the “if” statement is being ignored and just the “gotoAndPlay” statement is playing, so there is no check on the position in the timeline. I think ifFrameLoaded is not correct, but what is?
on (press) {
this._root.news.gotoAndPlay(“start”);
unloadMovie(_root.empty);
}
on (press) {
ifFrameLoaded (this._root.about, “start”){
this._root.about.gotoAndPlay(“reverse”);
}}
on (press) {
ifFrameLoaded (this._root.services, "start"){
this._root.services.gotoAndPlay("reverse");
}}
on (press) {
ifFrameLoaded (this._root.work, "start"){
this._root.work.gotoAndPlay("reverse");
}}
on (press) {
ifFrameLoaded (this._root.contact, "start"){
this._root.contact.gotoAndPlay("reverse");
}}