Changeset 7752 for lang/actionscript
- Timestamp:
- 03/10/08 14:02:06 (5 years ago)
- Location:
- lang/actionscript/colorpicker
- Files:
-
- 6 modified
-
ColorPickerTest.as (modified) (1 diff)
-
ColorPickerTest.swf (modified) (previous)
-
colorpicker.html (modified) (1 diff)
-
kugyu/BrightnessBar.as (modified) (1 diff)
-
kugyu/ColorCircle.as (modified) (1 diff)
-
kugyu/ColorPicker.as (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/colorpicker/ColorPickerTest.as
r7724 r7752 3 3 import flash.display.*; 4 4 import kugyu.*; 5 [SWF(width=" 320", height="240", backgroundColor="0x000000")]5 [SWF(width="500", height="240", backgroundColor="0x000000")] 6 6 public class ColorPickerTest extends MovieClip 7 7 { 8 8 function ColorPickerTest() 9 9 { 10 var p:ColorPicker = new ColorPicker( 320, 240);10 var p:ColorPicker = new ColorPicker(500, 240); 11 11 addChild(p); 12 12 } -
lang/actionscript/colorpicker/colorpicker.html
r7720 r7752 16 16 <body> 17 17 <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"> 19 19 <param name="movie" value="./ColorPickerTest.swf" /> 20 20 <param name="autostart" value="true" /> -
lang/actionscript/colorpicker/kugyu/BrightnessBar.as
r7722 r7752 67 67 var g:Graphics = s.graphics; 68 68 69 g.lineStyle( 3, 0xffffff, 1, true);69 g.lineStyle(6, 0xffffff, 1, true); 70 70 g.moveTo(0,0); 71 71 g.lineTo(mWidth,0); 72 72 73 g.lineStyle( 1, 0x000000, 1, true);73 g.lineStyle(2, 0x000000, 1, true); 74 74 g.moveTo(0,0); 75 75 g.lineTo(mWidth,0); -
lang/actionscript/colorpicker/kugyu/ColorCircle.as
r7722 r7752 38 38 var g:Graphics = s.graphics; 39 39 40 g.lineStyle( 3, 0xffffff, 1, true);40 g.lineStyle(2, 0xffffff, 1, true); 41 41 g.drawCircle(R, R, R); 42 42 g.endFill(); -
lang/actionscript/colorpicker/kugyu/ColorPicker.as
r7724 r7752 17 17 { 18 18 mBBarDragging = false; 19 mBBar = new BrightnessBar(1 6, h-4);19 mBBar = new BrightnessBar(10, h-20); 20 20 mBBar.x = w-20; 21 mBBar.y = 2;21 mBBar.y = 10; 22 22 23 23 mBBar.addEventListener(MouseEvent.MOUSE_DOWN, onBBarMouseDown); … … 34 34 mCircle.addEventListener(MouseEvent.MOUSE_MOVE, onCircleMouseMove); 35 35 36 mCircle.setCenterPos( w/2, h/2);36 mCircle.setCenterPos(355, h/2); 37 37 38 38 mFInterface = new FormInterface(); … … 99 99 g.clear(); 100 100 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); 103 103 g.endFill(); 104 104 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)