Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | HELP! F5 AS "_currentframe"-Question |
From: | flasher �Pascal |
Date: | Fri, 19 Jan 2001 18:05:10 -0000 |
Hi Flashers
While trying to mess around with AS I got (once again) in a situation I
can't figure out why it's not working :-( ..and my head is just about to
explode!
The situation is the following:
I have a main Scene with 8 MC that include a button each. Now all MCs just
have the button visible in the first frame.. so to activate an MC I just
tellTarget an MC and goto and play to the frame where the animation
starts... so far so good.. NOW I have a little outro in each MC which is
supposed to play before the animation sequence of the targeted MC starts..
STILL good.. so I left a couple of blank frames before the animation
sequence to give the outro enough time to be played.. and then I check the
state of each MC to actually see which one is active by using
"_currentframe".. so I when I click a button I target all MCs and check them
for _currentframe (if they are are frame 54 they are visible and active) and
tell the one MC being concerned to goto and play the outro sequence (I use
_currentframe to avoid all outro sequences being played at once all
together!).. but for some reason it wont work.. AND I HAVE NOT A CLUE WHY...
any help tipp or trick is greatly appreciated...
The code on every button looks like the following (of course the active MC
is not included in the list):
on (release) {
tellTarget ("_root.aufbau_about") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_music") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_gallery") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_dates") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_contact") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_guestbook") {
if (_currentframe==54) {
gotoAndPlay (60);
tellTarget ("_root.aufbau_links") {
if (_currentframe==54) {
gotoAndPlay (60);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
You can look at the *not* working example (it doesen't play the outro
sequence of the active MC) under:
http://www.the-big-show.com/undergod/beta1/
You can download the *bad* FLA under:
http://www.the-big-show.com/undergod/beta1/undergod_v1.fla (MAC)
and you'd be the kings if u would tell me what I did wrong :-))
Thanks all
Pascal
PS: There are only 3 active buttons (news, about, music).. the funny thing
is it worked when there was only 2!
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]