look up 'the stillDown' in the Lingo dictionary

example:

on mouseDown me
   put the ticks into myField
   repeat while the stillDown
     put the ticks into myField
   end repeat
end

hth

-Buzz

At 11:34 AM -0300 5/23/02, you wrote:
>Hi list,
>
>I'm using this script to make an slider and put it's values into a text
>field. The script is attached to a mousedown event. The problem is that the
>text field only updates itself with the values when I release the mouse
>button. How can I make it happens in real time??? while i move the slider
>the values in text field changes??
>
>on startMovie
>  global gLargura,gBarraDeslizante,gBotaoBarra,gEscala
>   set gBarraDeslizante = 8 -- sliderbar
>   set gBotaoBarra = 9 -- thumb
>   set gEscala = sprite(8).width/180.0 -- numbers that i need
>   set gLargura = sprite(8).width
>   the floatPrecision = 1
>end
>
>on deslizarBotao -- this is used in the mousedown
>   global gLargura,gBarraDeslizante,gBotaoBarra,gEscala
>   repeat while the stillDown
>     sprite(9).loch = constrainh(8,the mouseh) + 3-- plus 3 is to correct the
>position of thumb in the beggining of the bar
>     posicao = abs(sprite(9).loch - sprite(8).left)
>     set the text of field "Position" to string(integer(posicao/gEscala))
>     set the stagecolor to integer(posicao/gEscala) -- only to give a visual
>feedback to test
>     updateStage
>   end repeat
>end
>
>ps: thank's to Howdy-Tzi for the help with this slider script.
>
>Thank's in advance
>
>Rodrigo
>
>[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!]

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

Reply via email to