I believe that "the milliseconds" wsa introduced in D7.  Here's the 
same behavior using "the ticks" instead (usable in D6):


property pMember
property spriteNum
property pLastticks

on beginSprite me
   pMember = the member of sprite (spriteNum)
   pLastticks = the ticks
end

on exitFrame me
   nticksElapsed =  the ticks - pLastticks
   fps = 60.0 / float(nticksElapsed)
   the text of member pMember =  fps && " fps"
   pLastticks = the ticks
end


Irv

At 12:13 PM +0000 4/19/01, Christopher Mealey wrote:
>Hey
>
>>  property pMember
>>  property spriteNum
>>  property pLastMilliseconds
>>
>>  on beginSprite me
>>     pMember = sprite(spriteNum).member
>>     pLastMilliseconds = the milliseconds
>>  end
>>
>>  on exitFrame me
>>     nMillisecondsElapsed =  the milliseconds - pLastMilliseconds
>>     fps = 1000.0 / float(nMillisecondsElapsed)
>>     member(pMember).text =  fps && " fps"
>>     pLastMilliseconds = the milliseconds
>>  end
>>
>>
>>  At 11:26 PM +0700 4/18/01, Victor Iwan wrote:
>>  >Is there anyway to display actual frametempo by lingo ??
>>  >
>>
>Having seen this behavior on a recent lingo list I tried to convert  to
>pre dot syntax I receive a "property not found"  "#the milliseconds"
>What's up?? and any other errors you see let me know. I am using D6 on a
>Mac PPC
>
-- 

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

Reply via email to