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

  1. var main = _parent;
  2. c_next._visible = main.ip_cnext;
  3. c_prev._visible = main.ip_cprev;
  4. c_rewind._visible = main.ip_crewind;
  5. c_play._visible = main.ip_cplay;
  6. c_index._visible = main.ip_cindex;
  7. c_slider._visible = main.ip_cslider;
  8. c_volume._visible = main.ip_cvol;
  9. c_mute._visible = main.ip_cmute;
  10. cw = main.ip_twidth;
  11. ch = main.ip_theight;
  12. c_bleft._y = c_bbar._y = c_bright._y = ch - 30;
  13. c_bbar._width = cw - 20;
  14. c_bright._x = cw;
  15. colBase = main.ip_col1;
  16. colLight = main.ip_col2;
  17. colText = main.ip_col3;
  18. colButton = main.ip_col4;
  19. c_next._y = c_prev._y = c_rewind._y = c_play._y = c_index._y = c_slider._y = c_volume._y = c_mute._y = ch - 16;
  20. var pos = 10;
  21. if(c_index._visible)
  22. {
  23.    pos += 12;
  24. }
  25. c_slider._x = pos;
  26. pos = cw - 10;
  27. if(c_next._visible)
  28. {
  29.    c_next._x = pos;
  30.    pos -= 18;
  31. }
  32. if(c_play._visible)
  33. {
  34.    c_play._x = pos;
  35.    pos -= 18;
  36. }
  37. if(c_prev._visible)
  38. {
  39.    c_prev._x = pos;
  40.    pos -= 18;
  41. }
  42. if(c_rewind._visible)
  43. {
  44.    c_rewind._x = pos;
  45.    pos -= 18;
  46. }
  47. if(c_volume._visible)
  48. {
  49.    if(pos >= cw - 10)
  50.    {
  51.       pos -= 45;
  52.    }
  53.    else
  54.    {
  55.       pos -= 35;
  56.    }
  57.    c_volume._x = pos;
  58.    pos -= 14;
  59. }
  60. if(c_mute._visible)
  61. {
  62.    c_mute._x = pos;
  63.    pos -= 18;
  64. }
  65. pos += 6;
  66. main.ipc_slider = c_slider;
  67. main.ipc_play = c_play;
  68. main.ipc_mute = c_mute;
  69. main.ipc_index = c_index;
  70. block_mc._y = ch - 30;
  71. with(block_mc)
  72. {
  73.    beginFill(colBase,50);
  74.    moveTo(0,0);
  75.    lineTo(0,20);
  76.    curveTo(0,30,10,30);
  77.    lineTo(cw - 10,30);
  78.    curveTo(cw,30,cw,20);
  79.    lineTo(cw,0);
  80.    lineTo(0,0);
  81. }
  82. bindex_mc.useHandCursor = false;
  83. bindex_mc.onRelease = function()
  84. {
  85. };
  86. bindex_mc._xscale = cw - 18;
  87. bindex_mc._y = ch - 30;
  88. bindex_mc._visible = false;
  89.