How about something like this:
-- Create the object when you start, remove it when you stop
on startMovie
new(script "list")
end
on stopMovie
the actorList = []
end
-- List parent script
property pToday -- used to save away date
on new me
add the actorlist, me
end
on stepframe me
today = the systemDate
-- only update when things change. This will happen first time
-- because unitialized properties (e.g., pToday) will be VOID
if today <> pToday then
pToday = today -- save away the change
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
end if
end
Irv
At 2:31 PM -0800 12/4/01, Matt Wells wrote:
>Im just wondering, I wrote this little parent script and it keeps using ram.
>When I look at the memory Inspector the USED BY PROGRAM memory keeps going
>up by 5k every second or so? ex... 6015k, 6020k to 6025k ... why?
>At the end of the stepframe I called -- the actorlist = [] -- ????
>I thought by puring the actorlist it would solve this proplem?
>
>here is the script:
>
<snippage>
--
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/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!]