Too much trouble to do the parent script/stepFrame thing??? Here's
all the code you need (untested):
-- Movie script
global goExitFrame -- global object Exit Frame
on prepareMovie
goExitFrame = new(script "ExitFrame")
end
on stopMovie
goExitFrame.mCleanUp()
goExitFrame = 0
end
-- ExitFrame Parent script
on new me
add(the actorList, me)
return me
end
on mCleanUp me
deleteOne(the actorList, me)
end
on stepFrame me
-- do whatever you want here on each frame event
end
No need to monkey around with the score at all. You would have to
add some checking if you are moving between movies.
Irv
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!]
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[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!]