script interruption (suite)

Yves COPPE yvescoppe at skynet.be
Wed Nov 17 12:53:50 EST 2010


Hi list


i've made a fld appearing on the screen
this fld show a text (coming from a variable)
this fld  is locktext 
his fld contains the script

on mouseUp
global gFlagEnd
put true into gFlagEnd
end mouseUp


the fld does appear
when I click inside the fld, the fld disappears
it's OK

BUT
i'd like that the fld will disapear spontaneously after 5 seconds

how can I add this command to the script below ?


my script

on toggleexercice tDerniereDate
   global gEndFlag
    if gEndFlag is false then
      if tDerniereDate <> empty then
         set the blendLevel of  fld "showExercice" to 100
         show fld "showExercice"
         repeat with x = 100 down to 35
            set the blendLevel of  fld "showExercice" to x
            wait 1 ticks
         end repeat
      end if
      send toggleexercice to me in 1
   else
      repeat with x = 35 to 100
         set the blendLevel of  fld "showExercice" to x
         wait 1 tick
      end repeat
      hide fld "showExercice"
      exit to top
   end if
end toggleexercice


thank you very much

Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the use-livecode mailing list