--  ¶ÁÈ¥FlashÄÚµÄ±êÇ©

global FlashLabel
on beginsprite me
  --  FlashLabel=[:]
  if member("Flashword").text = "" then
    Hwk_GetFlashLabel
  else
    FlashLabel = value(member("Flashword").text)
    Fcount=FlashLabel.count
    Wcount=member("english").line.count
--    if Fcount <> Wcount then Hwk_GetFlashLabel
  end if
  sprite(41).play()
end

on Hwk_GetFlashLabel
  FlashLabel = [:]
  flashclose = [:]
  repeat with i = 1 to sprite(41).member.framecount
    ttt=sprite(41).getframelabel(i)
    if ttt<>"" then
      if ttt.char[1..5]<>"close" then 
        flashlabel.addprop(sprite(41).getframelabel(i),i)
      else
        flashclose.addprop(sprite(41).getframelabel(i),i)
      end if
    end if
  end repeat
  member("Flashword").text=""
  member("Flashword").text=string(FlashLabel)
  member("FlashClose").text=""
  member("FlashClose").text=string(flashclose)
end
