1. -- "Hello world!" demo, Lingo
  2.  
  3. ----------------------------------------
  4. --
  5. ----------------------------------------
  6. on startMovie ()
  7.  
  8.     -- window settings
  9.     _movie.stage.title = "Hello world!"
  10.     _movie.stage.rect = rect(0,0,320,240)
  11.     _movie.stage.bgColor = rgb(255,255,255)
  12.     _movie.stage.titlebarOptions.visible = true
  13.  
  14.     -- movie settings
  15.     _movie.centerStage = true
  16.     _movie.puppetTempo(100)
  17.  
  18.     -- create a field member
  19.     m = _movie.newMember("field")
  20.     m.font = "Courier New"
  21.     m.fontsize = 24
  22.     m.fontStyle = "bold,italic"
  23.     m.text = "Hello world!"
  24.     m.color = rgb(255,0,0)
  25.     m.rect = rect(0,0,320,20)
  26.  
  27.     -- create sprite, assign field
  28.     _movie.puppetSprite(1, true)
  29.     sprite(1).member = m
  30.     sprite(1).loc = point(0,105)
  31.  
  32.     -- update stage
  33.     _movie.updateStage()
  34.     _movie.stage.visible = true
  35.  
  36.     -- global used for animation
  37.     _global.x = 0
  38.  
  39. end
  40.  
  41. ----------------------------------------
  42. --
  43. ----------------------------------------
  44. on enterFrame ()
  45.     -- animate sprite 1
  46.     _global.x = (_global.x+1) mod _movie.stage.rect.width
  47.     _movie.sprite(1).locH = _global.x
  48. end
  49.  
[raw code]