Issues with image libraries

MisterX b.xavier at internet.lu
Mon Nov 7 11:41:32 EST 2005


small adjustment


local bestpnumber
local mintime=1
local maxtime=1.1

on mouseUp
  if bestpnumber is not a number then put 200 into bestpnumber
  put the milliseconds into startedtime
  imageswap the long name of img id 9991013, the long name of fld about,
bestpnumber
  put (the milliseconds - startedtime) / 1000 into timeTaken
  get 1+(100/ (90+(random(10))))
  if timetaken < mintime then multiply bestpnumber by it
  else if timetaken > maxtime then divide bestpnumber by it
  -- debug info
  put bestpnumber &cr& it &cr& timetaken
  
end mouseUp
 
the formula can be perfected... ;)
But it does converge better. A second delta maybe needed for the
other object I think...

cheers
Xavier


> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of MisterX
> Sent: Monday, November 07, 2005 5:31 PM
> To: 'How to use Revolution'
> Subject: Issues with image libraries
> 
> Hi everyone
> 
> Here's a strange question...
> 
> I got stack (xos) that loads an image library (xosmedialib).
> 
> When the xos stack opens if contains background patterns or 
> icons for controls which are located into the image library. 
> 
> So at first those are grey as if they had no pattern. BUT 
> after opening the library, you have to either click them or 
> swap stack window modes twice to refresh them.
> 
> Is there any other way?
> 
> Reaffecting the image id ? -- sounds rededundant...
> unlock screen doesn't do anything... 
> 
> refreshGMScreen?
> 
> Thanks for any info
> 
> cheers
> Xavier
> http://monsieurx.com/taoo
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage 
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list