> Well I need for the script to run all the time. so if the date were to
> change the movie would change even when idle. Is there a better way?
>
Well, you've got a few options. Other alternatives would be to not use a
parent script at all. For instance check out timeout objects or the idle
handler or even just a movie script handler.
If you still want to use a parent script, instance it once and store it in
the actorlist. Your stepframe handler will be called automatically and you
do not have to reinstantiate the object every exit frame. To slightly alter
your existing script:
-- start frame script
on beginSprite me
the actorList = []
new(script "list")
end beginSprite
on exitFrame me
go the frame
end
-- end frame script
-- Start parent script
on new me
add the actorlist, me
end
on stepframe me
today = the systemDate
tm = today.month
td = today.day
ts = today.year
tm1 = string(tm)
td1 = string(td)
ts1 = string(ts)
member("theMonth").text = tm1
member("theDay").text = td1
member("theYear").text = ts1
-- the actorlist = []
end
You may want to store your object in a variable and access it that way
though. It depends on what you find will work best with your code. Oh yeah,
be careful how and when you clear the actorlist... you do not want to clear
out other objects that you may have placed in there.
ck
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]