Hello, I posted this to newbies yesterday and didn't receive a
response. Sorry for the double post, newbies!
I have an strange problem. I am developing a WBT where I have a shell
that is calling subfiles. On the shell I have pause replay and resume,
which generally works fine. The only time it gets confused is when the
subfile calls another file (I have a subfile that brings up review
pages). The pause and replay work great, but the resume is having
problems.
Here is what I have going on in my subfile:
//***********review page ***********\\
function review() {
//trace(this);
movie = this;
loadMovie(filePath+movie, reviewPiece_mc);
main_mc.stop();
main_mc._visible = false;
button_mc.return_btn._visible = true;
inReview = 1;
trace("Trace "+_parent.nav_mc.pause_btn);
}
//*********** Close Review ***********\\
function goBack() {
trace(reviewPiece_mc);
reviewPiece_mc.stop();
reviewPiece_mc._visible = false;
trace("reviewPiece_mc._visible "+reviewPiece_mc._visible);
main_mc._visible = true;
button_mc.return_btn._visible = false;
_parent.nav_mc.pause_btn._visible = true;
inReview = 0;
}
//************ Buttons ******************\\
button_mc.return_btn.onRelease = Delegate.create(this, goBack);
main_mc.fringe_btn.onRelease = Delegate.create("L1T1T140.swf", review);
main_mc.test_btn.onRelease = Delegate.create("L1T1T180.swf", review);
____________________________________________
If I click replay before going to the review link within the subfile, I
have issues with the visibility property of reviewPiece_mc. The issue
only happens if I click the replay button before clicking a link within
the subfile.
For instance, in the main file I click replay to replay the current swf
(the subfile). Then I click the link within the subfile, test_btn, to
see the review.
Test_btn brings up L1T1T140.swf, as it is supposed to. When I click the
return_btn, the visibility of the reviewPiece is set to false
(reviewPiece_mc._visible = false;). When I trace it, flash says, yes,
it is false, but, for some reason, when it is still visible. Now, this
ONLY happens when I click replay from my main file before going to the
link in the subfile. If I don't click replay, then everything works
fine. Here is the code in my replay button:
nav_mc.replay_btn.onRelease = function() {
if (main_mc.inReview) {
main_mc.reviewPiece_mc.gotoAndPlay(1);
} else {
main_mc.gotoAndPlay(1);
main_mc.main_mc.gotoAndPlay(1);
}
nav_mc.pause_btn._visible = true;
};
Any ideas on what I could be doing wrong? Let me know if you need more
details of if what I wrote is not making sense.
Thanks in advance for your help!
Susan
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com