Skip to content

Commit

Permalink
rebuild demo
Browse files Browse the repository at this point in the history
  • Loading branch information
superman2211 committed Apr 28, 2018
1 parent db99f23 commit 1f5857b
Show file tree
Hide file tree
Showing 7 changed files with 17,897 additions and 4,045 deletions.
2 changes: 1 addition & 1 deletion demo/draw/build/data/draw.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><SWFData color="0xffffff" frameRate="24" border="2" height="375" hash="null" width="500" version="14"><FileAttributes /><EnableDebugger2 /><Unknown /><ScriptLimits /><SetBackgroundColor /><Unknown /><FrameLabel name="Main" /><DoABC /><SymbolClass><SymbolData id="0" name="Main" /></SymbolClass><ShowFrame index="1" /><End /></SWFData>
<?xml version="1.0" encoding="utf-8"?><SWFData color="0xffffff" frameRate="24" border="2" height="375" width="500" version="14" hash="null"><FileAttributes /><EnableDebugger2 /><Unknown /><ScriptLimits /><SetBackgroundColor /><Unknown /><FrameLabel name="Main" /><DoABC /><SymbolClass><SymbolData id="0" name="Main" /></SymbolClass><ShowFrame index="1" /><End /></SWFData>
2 changes: 1 addition & 1 deletion demo/draw/build/data/preloader.xml

Large diffs are not rendered by default.

83 changes: 78 additions & 5 deletions demo/draw/build/js/draw.min.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,81 @@

(function()
{"use strict";var d={};d.Main=function()
{var sprite=null;var graphics=null;this.Sprite_constructor();this.get_stage().set_frameRate(60);sprite=new flash.display.Sprite();sprite.set_useHandCursor(sprite.set_buttonMode(true));sprite.addEventListener(flash.events.MouseEvent.MOUSE_DOWN,flash.bindFunction(this,this.spriteMouseDown));this.addChild(sprite);graphics=sprite.get_graphics();graphics.beginFill(0xff0000,0.5);graphics.lineStyle(3,0x000000,1);graphics.drawRect(100,100,200,150);graphics.endFill();graphics.beginFill(0x0000ff,0.5);graphics.lineStyle(3,0x009900);graphics.drawRoundRect(10,10,100,70,20,20);graphics.endFill();graphics.beginFill(0x00ff00,0.5);graphics.lineStyle(5,0x0000ff);graphics.drawCircle(250,250,70);graphics.endFill();graphics.beginFill(0x0000ff,0.3);graphics.lineStyle(10,0x000000);graphics.moveTo(125,125);graphics.lineTo(225,150);graphics.lineTo(275,300);graphics.lineStyle(5,0x0000ff);graphics.lineTo(145,350);graphics.endFill();graphics.beginFill(0x00ff00,0.5);graphics.lineStyle(3);graphics.moveTo(320,70);graphics.lineTo(420,50);graphics.lineTo(370,140);graphics.moveTo(320,140);graphics.lineTo(420,160);graphics.lineTo(370,80);graphics.endFill();graphics.lineStyle(10,0xff00ff);graphics.moveTo(50,50);graphics.curveTo(100,10,200,100);graphics.cubicCurveTo(200,200,0,200,40,300);graphics.endFill();graphics.lineStyle();graphics.beginFill(0x999999);graphics.moveTo(350,250);graphics.lineTo(450,250);graphics.beginFill(0xff9999);graphics.lineTo(450,350);graphics.lineTo(350,350);graphics.endFill();};d.spriteMouseDown=function(event)
{var sprite=null;sprite=event.get_currentTarget();sprite.startDrag();this.get_stage().addEventListener(flash.events.MouseEvent.MOUSE_UP,flash.bindFunction(this,this.stageMouseUp));};d.stageMouseUp=function(event)
{var sprite=null;sprite=(this.getChildAt(0));sprite.stopDrag();this.get_stage().removeEventListener(flash.events.MouseEvent.MOUSE_UP,flash.bindFunction(this,this.stageMouseUp));};var s={};s.__init__=function()
{this.prototype.Sprite_constructor=this.__base__;};flash.addDescription("Main",d,"flash.display.Sprite",s,null,null);}
{
"use strict";
var d={};
d.Main=function()
{
var sprite=null;
var graphics=null;
this.Sprite_constructor();
this.get_stage().set_frameRate(60);
sprite=new flash.display.Sprite();
sprite.set_useHandCursor(sprite.set_buttonMode(true));
sprite.addEventListener(flash.events.MouseEvent.MOUSE_DOWN,flash.bindFunction(this,this.spriteMouseDown));
this.addChild(sprite);
graphics=sprite.get_graphics();
graphics.beginFill(0xff0000,0.5);
graphics.lineStyle(3,0x000000,1);
graphics.drawRect(100,100,200,150);
graphics.endFill();
graphics.beginFill(0x0000ff,0.5);
graphics.lineStyle(3,0x009900);
graphics.drawRoundRect(10,10,100,70,20,20);
graphics.endFill();
graphics.beginFill(0x00ff00,0.5);
graphics.lineStyle(5,0x0000ff);
graphics.drawCircle(250,250,70);
graphics.endFill();
graphics.beginFill(0x0000ff,0.3);
graphics.lineStyle(10,0x000000);
graphics.moveTo(125,125);
graphics.lineTo(225,150);
graphics.lineTo(275,300);
graphics.lineStyle(5,0x0000ff);
graphics.lineTo(145,350);
graphics.endFill();
graphics.beginFill(0x00ff00,0.5);
graphics.lineStyle(3);
graphics.moveTo(320,70);
graphics.lineTo(420,50);
graphics.lineTo(370,140);
graphics.moveTo(320,140);
graphics.lineTo(420,160);
graphics.lineTo(370,80);
graphics.endFill();
graphics.lineStyle(10,0xff00ff);
graphics.moveTo(50,50);
graphics.curveTo(100,10,200,100);
graphics.cubicCurveTo(200,200,0,200,40,300);
graphics.endFill();
graphics.lineStyle();
graphics.moveTo(350,250);
graphics.beginFill(0x999999);
graphics.lineTo(450,250);
graphics.beginFill(0xff9999);
graphics.lineTo(450,350);
graphics.lineTo(350,350);
graphics.endFill();
};
d.spriteMouseDown=function(event)
{
var sprite=null;
sprite=event.get_currentTarget();
sprite.startDrag();
this.get_stage().addEventListener(flash.events.MouseEvent.MOUSE_UP,flash.bindFunction(this,this.stageMouseUp));
};
d.stageMouseUp=function(event)
{
var sprite=null;
sprite=(this.getChildAt(0));
sprite.stopDrag();
this.get_stage().removeEventListener(flash.events.MouseEvent.MOUSE_UP,flash.bindFunction(this,this.stageMouseUp));
};
var s={};
s.__init__=function()
{
this.prototype.Sprite_constructor=this.__base__;
};
flash.addDescription("Main",d,"flash.display.Sprite",s,null,["flash.display.Sprite","flash.events.MouseEvent"]);
}
());
Loading

0 comments on commit 1f5857b

Please sign in to comment.