The enterframe & exitframe go to all sprites (they don't need to be passed)
drop this onto several sprites and in spots in the frame channel -
you'll see that all of them fire!
on enterFrame me
put sprite(me.spriteNum), the frame, "enter"
end
on exitFrame me
put sprite(me.spriteNum), the frame, "exit"
end
btw (sprite -5) is the frame channel
hth
-Buzz
At 3:29 PM -0400 7/27/01, Charlie Fiskeaux II wrote:
>yes, it is too much trouble to use the actorlist. But I can't only
>use the dummy sprite method either, because then the enterFrame
>handler would never get passed to the frame scripts. The only thing
>I have found that helps is to use the pass method which passes
>the event message on up the hierarchy to the next in line.
>
>Charlie Fiskeaux II
>The Creative Group
>www.cre8tivegroup.com
>859/858-9054 x29
>cell: 859/312-3883
>
>
>----- Original Message -----
>From: "Buzz Kettles" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: "Kendall Anderson" <[EMAIL PROTECTED]>
>Sent: Friday, July 27, 2001 2:17 PM
>Subject: Re: <lingo-l> RESEND - creating a handler that executes on
>every frame
>
>
>the actorlist method seems like too much trouble.
>
>Since the messaging hierarchy sends enterFrame/exitFrame to every
>sprite, use a dummy sprite.
>
>Put an unfilled shape, linewidth = 0 in the score and spread it
>across the frames you want to watch.
>
>put an 'on enterFrame me' handler on it & do your Lingo watching ...
>
>hth
>
>-Buzz
>
>At 1:45 PM -0500 7/27/01, Kendall Anderson wrote:
>>Hey -
>>
>>Charlie Fiskeaux II wrote:
>>
>> > That's why I said "something that won't be hierarchically
>>interrupted by a frame script". If there is an exitFrame handler in
>>a
>>> frame script, it will get executed and not the exitFrame handler
>>>in the movie script.
>>
>>Can't you just instantiate an object into the actorlist and respond to
>>stepframe events?
>>
>>Wouldn't this have the same effect? (this is how I've done it in the
>>past..)
>>
>>
>>Kendall.
>>
>>[To remove yourself from this list, or to change to digest mode, go to
>>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>>Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]