※現在、「wonderfl build flash online」求人コンテンツ制作に関してのアンケートを実施中です!みなさまのお力添えを頂いて、続々とアンケート結果が集まっていますが、まだまだ募集しております。ご協力のほど、どうぞよろしくお願いいたします!

wonderfl運営事務局
→アンケートページ(※ログインしてからお答えいただけるようになっています。)

 notice: Flash editor updated! Join the development! Thanks to MiniBuilder


FORKED
  1. package {
  2. import flash.display.MovieClip;
  3. import flash.events.Event;
  4. import flash.geom.Rectangle;
  5. import flash.text.TextField;
  6. public class FlashTest extends MovieClip {
  7.     public function FlashTest() {([
  8.     <comment>
  9.     
  10.     i removed all 'var' declarations. plus using many 'with' and 'this'
  11.     keywords, things got mess and more confusing...
  12.     
  13.     </comment>
  14.     ]).forEach(function():void {
  15.     with (this) { with (textField = addChild(new TextField)) text = "drag circle",
  16.     selectable = mouseEnabled = false, width = 100; addChild(slider = makeSlider.
  17.     call(new constructor)); slider.addEventListener("change", (function
  18.     (textField:TextField):Function { return function ():void { with (arguments[0].
  19.     currentTarget) textField.text = percent; }; } )(textField)); } addChild(this); },
  20.     new MovieClip);
  21.     
  22.     
  23.     function makeSlider():MovieClip {
  24.     with (this) { change = new Event("change"); onChange = function ():void {
  25.     with (arguments[0].currentTarget) percent = getChildAt(0).y / 100,
  26.     dispatchEvent(change); }; x = y = 100; buttonMode = true;
  27.     with (graphics) lineStyle(00), lineTo(0100); with (addChild(new constructor)) {
  28.     with (graphics) beginFill(0), drawCircle(0010); addEventListener("mouseDown",
  29.     function ():void { with (arguments[0].currentTarget) { startDrag(falsenew
  30.     Rectangle(000100)); with (parent) { addEventListener("enterFrame", onChange);
  31.      }}}); } stopDragging = (function (circle:MovieClip):Function { return function ():
  32.     void { with (circle) { stopDrag(); with (parent) removeEventListener("enterFrame",
  33.     onChange) }}; } )(getChildAt(0)); addEventListener("addedToStage",
  34.     function ():void { (["mouseUp""mouseLeave"]).forEach(function ():void {
  35.     with (this) stage.addEventListener(arguments[0], stopDragging); }, arguments[0].
  36.     currentTarget);}); } return this;
  37.     }
  38.     
  39.     }
  40. }
  41. }
noswf
Get Adobe Flash Player