listers,
I have created this timer behaviour below.
I drag it to a frame script, and specify the delay.
It seems to work fine.  However, ocassionally, I can see
via the trace that this frame behavior is executing in frames that
the behaviour is not attached to.  I can see no reason why this
is occurring.

----------------------------
property  pDelayFlag
property  pTime

on prepareFrame me
  if pDelayFlag then exit
  pTime = pTime * 1000
  timeOut("Attract").new(integer(pTime), #timeOutReply, me)
  pDelayFlag = 1
end



on exitFrame me
  if pDelayFlag then
    go to the frame
  else
    go to the frame + 1 -- probably not needed ?
  end if
end

on timeOutReply me
  pDelayFlag = 0
  timeOut("Attract").forget()
end



on getPropertyDescriptionList
  set p_list = [\
   #pTime:[#comment:"Time of delay in seconds:",#format: #float, #default:  
2.0]]
  return p_list
end
------------------------------

Also, would adding *go to the frame + 1* as the last line of
timeOutReply be a good idea

Any hints would be great

I thank you for your time
jim




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[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!]

Reply via email to