Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Flash
Macromedia Flash List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Flash :
product's home
product's list home
 
  Archived TallyList / Flash: 
Subject: [flasher] HELP! F5 AS "_currentframe"-Question
flasher =?ISO-8859-1?B?rQ==?=Pascal (25p/+0r)     Posted: Friday 19 Jan 2001
This post: 28 views, +0 rating

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!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Chinwag site carries a wealth of Flash resources. Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher ** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You are subscribed to flasher as: flash@tallylist.com To unsubscribe, email leave-flasher-479872H@lists.chinwag.com


Similar Subject Line Posts (+/- two weeks of this post)
 

Send a reply to the Flash list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000