home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / orbitballs10-blank.swf / scripts / DefineSprite_24 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-02  |  632 b   |  31 lines

  1. if(_root.barre._width < 420)
  2. {
  3.    _root.barre._width += 2;
  4. }
  5. if(_root.go == 1)
  6. {
  7.    if(_root.red._alpha > 0 or _root.green._alpha < 100)
  8.    {
  9.       _root.red._alpha -= 3;
  10.       _root.green._alpha += 3;
  11.    }
  12. }
  13. else if(_root.red._alpha < 100 or _root.green._alpha > 0)
  14. {
  15.    _root.red._alpha += 3;
  16.    _root.green._alpha -= 3;
  17. }
  18. if(_root._url.substr(0,4) == "http")
  19. {
  20.    if(_root.go_url == 1)
  21.    {
  22.       _root.timetogodeb = getTimer();
  23.       _root.go_url = 2;
  24.    }
  25.    if(_root.go_url == 2 and getTimer() - _root.timetogodeb > 1000)
  26.    {
  27.       getURL(_root.go_url2,"_blank");
  28.       _root.go_url = 0;
  29.    }
  30. }
  31.