home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 March / PCnet 2006-06.3.iso / Apps / Flash / FDBuilder1160CNET.exe / Examples / Capturing.swf / scripts / DefineSprite_53 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-04-02  |  1.1 KB  |  55 lines

  1. function setOn()
  2. {
  3.    appear = true;
  4.    cover_mc._visible = true;
  5.    cover2_mc._visible = true;
  6.    main.ip_timePause = true;
  7. }
  8. function setOff()
  9. {
  10.    appear = false;
  11.    scroll_mc._visible = false;
  12.    index_mc.endIndex();
  13.    cover_mc._visible = false;
  14.    cover2_mc._visible = false;
  15.    main.ip_timePause = false;
  16. }
  17. function setActive()
  18. {
  19.    index_mc.activateIndex();
  20. }
  21. function openIndex()
  22. {
  23.    index_mc.startIndex();
  24. }
  25. main = _parent;
  26. var appear = false;
  27. var s = Math.min(200 / main.ip_width,150 / main.ip_height);
  28. var wthumb = s * main.ip_width;
  29. delete s;
  30. if(main.ip_idxlarge)
  31. {
  32.    w = Math.min(main.ip_w / 4,wthumb + 8);
  33.    scroll_mc._x = w + 12;
  34. }
  35. else
  36. {
  37.    w = Math.min(main.ip_w / 8,wthumb / 2 + 4);
  38.    scroll_mc._xscale = 75;
  39.    scroll_mc._x = w + 9;
  40. }
  41. h = main.ip_h;
  42. colBase = main.ip_col1;
  43. colLight = main.ip_col2;
  44. colText = main.ip_col3;
  45. cover_mc.useHandCursor = false;
  46. cover_mc.onRelease = function()
  47. {
  48. };
  49. cover_mc._xscale = main.ip_w;
  50. cover_mc._yscale = main.ip_h;
  51. cover_mc._alpha = 0;
  52. cover_mc._visible = false;
  53. cover2_mc = main.control_mc.bindex_mc;
  54. stop();
  55.