Changeset 7752 for lang/actionscript

Show
Ignore:
Timestamp:
03/10/08 14:02:06 (5 years ago)
Author:
dzfl
Message:

updated swf

Location:
lang/actionscript/colorpicker
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/colorpicker/ColorPickerTest.as

    r7724 r7752  
    33        import flash.display.*; 
    44        import kugyu.*; 
    5         [SWF(width="320", height="240",  backgroundColor="0x000000")] 
     5        [SWF(width="500", height="240",  backgroundColor="0x000000")] 
    66        public class ColorPickerTest extends MovieClip 
    77        { 
    88                function ColorPickerTest() 
    99                { 
    10                         var p:ColorPicker = new ColorPicker(320, 240); 
     10                        var p:ColorPicker = new ColorPicker(500, 240); 
    1111                        addChild(p); 
    1212                } 
  • lang/actionscript/colorpicker/colorpicker.html

    r7720 r7752  
    1616        <body> 
    1717                <div id="picker"> 
    18                         <object data="./ColorPickerTest.swf" type="application/x-shockwave-flash" width="320" height="240" id="pickerswf"> 
     18                        <object data="./ColorPickerTest.swf" type="application/x-shockwave-flash" width="500" height="240" id="pickerswf"> 
    1919                                <param name="movie" value="./ColorPickerTest.swf" /> 
    2020                                <param name="autostart" value="true" /> 
  • lang/actionscript/colorpicker/kugyu/BrightnessBar.as

    r7722 r7752  
    6767                        var g:Graphics = s.graphics; 
    6868                         
    69                         g.lineStyle(3, 0xffffff, 1, true); 
     69                        g.lineStyle(6, 0xffffff, 1, true); 
    7070                        g.moveTo(0,0); 
    7171                        g.lineTo(mWidth,0); 
    7272                         
    73                         g.lineStyle(1, 0x000000, 1, true); 
     73                        g.lineStyle(2, 0x000000, 1, true); 
    7474                        g.moveTo(0,0); 
    7575                        g.lineTo(mWidth,0); 
  • lang/actionscript/colorpicker/kugyu/ColorCircle.as

    r7722 r7752  
    3838                        var g:Graphics = s.graphics; 
    3939                         
    40                         g.lineStyle(3, 0xffffff, 1, true); 
     40                        g.lineStyle(2, 0xffffff, 1, true); 
    4141                        g.drawCircle(R, R, R); 
    4242                        g.endFill(); 
  • lang/actionscript/colorpicker/kugyu/ColorPicker.as

    r7724 r7752  
    1717                { 
    1818                        mBBarDragging = false; 
    19                         mBBar = new BrightnessBar(16, h-4); 
     19                        mBBar = new BrightnessBar(10, h-20); 
    2020                        mBBar.x = w-20; 
    21                         mBBar.y = 2; 
     21                        mBBar.y = 10; 
    2222 
    2323                        mBBar.addEventListener(MouseEvent.MOUSE_DOWN, onBBarMouseDown); 
     
    3434                        mCircle.addEventListener(MouseEvent.MOUSE_MOVE, onCircleMouseMove); 
    3535                         
    36                         mCircle.setCenterPos(w/2, h/2); 
     36                        mCircle.setCenterPos(355, h/2); 
    3737 
    3838                        mFInterface = new FormInterface(); 
     
    9999                        g.clear(); 
    100100                        g.beginFill(mCircle.rgb); 
    101                         g.lineStyle(1, 0x000000); 
    102                         g.drawRect(0, 0, 20, 20); 
     101                        g.lineStyle(2, 0xffffff); 
     102                        g.drawRect(10, 10, 220, 220); 
    103103                        g.endFill(); 
    104104                }