Here's an overall approach. Whenever you want to draw, and you know
the start and enddates, do a sendAllSprites like this:
sendAllSprites(#ShowIfInRange, startdate, endDate)
And in the behavior attached to all these sprites, have a handler like this
property myRedBoxDate
property spriteNum
...
on ShowIfInRange, me, startDate, endDate
if (startDate < myRedBoxDate) and (myRedBoxDate < endDate) then
-- in the range, do whatever you want to show it
sprite(spriteNum).blend = 60
else
-- not in the range, do whatever you want to not show it
sprite(spriteNum).blend = 0
end if
end
At 4:58 PM -0400 6/11/01, Gene Fritzinger wrote:
>bhakti,
>Thanks, you're not missing anything, I am. This is my first time
>trying to do something like this and I'm a little unsure as to the
>best approach. You're correct, each sprite does know it's own
>property (myRedBoxDate), and at runtime the movie will also know the
>startDate (as a date object) and the endDate. The sprites therefor
>only need to know if their property (myRedBoxDate) falls within the
>startDate and endDate. Any suggestions?
>
>Thanks again,
>g fritzinger
>
>
>[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!]