Section 1
//movie_5 (stripFlash_etsuko01_fla.movie_5)
package stripFlash_etsuko01_fla {
import flash.events.*;
import flash.display.*;
public dynamic class movie_5 extends MovieClip {
public var btn:MovieClip;
public function movie_5(){
addFrameScript(0, frame1, 13, frame14, 14, frame15);
}
function frame14(){
this.stop();
}
function frame15(){
this.stop();
this.removeEventListener(MouseEvent.CLICK, onClick);
}
function frame1(){
this.stop();
trace(this);
this.addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent):void{
this.play();
trace(this);
}
}
}//package stripFlash_etsuko01_fla
Section 2
//BaseImage (BaseImage)
package {
import flash.display.*;
public dynamic class BaseImage extends MovieClip {
}
}//package
Section 3
//BG (BG)
package {
import flash.display.*;
public dynamic class BG extends Sprite {
}
}//package
Section 4
//Brush (Brush)
package {
import flash.display.*;
public class Brush extends Sprite {
var fillType:String;// = "radial"
var colors:Array;
var brushStar:Brush_star;
var brushCircle:Brush_circle;
var ratios:Array;
var alphas:Array;
public function Brush(_arg1:int, _arg2:int){
var _local3:Array;
fillType = GradientType.RADIAL;
colors = [0, 0];
alphas = [1, 0];
ratios = [10, 50];
brushCircle = new Brush_circle();
brushStar = new Brush_star();
super();
_local3 = [];
if (_arg2 == 2){
addChild(brushCircle);
_local3.push(brushCircle);
} else {
if (_arg2 == 1){
addChild(brushStar);
_local3.push(brushStar);
};
};
_local3[0].width = (_local3[0].height = _arg1);
_local3[0].x = (_local3[0].y = (-(_arg1) * 0.5));
}
}
}//package
Section 5
//Brush_circle (Brush_circle)
package {
import flash.display.*;
public dynamic class Brush_circle extends Sprite {
}
}//package
Section 6
//Brush_star (Brush_star)
package {
import flash.display.*;
public dynamic class Brush_star extends Sprite {
}
}//package
Section 7
//CoverImage (CoverImage)
package {
import flash.display.*;
import flash.geom.*;
public class CoverImage extends Sprite {
var brushLayer:Sprite;
var brush:Brush;
var blend:BitmapData;
var flg:Boolean;// = false
var point:Point;
var bmp:Bitmap;
var cover:BitmapData;
var maskLayer:BitmapData;
var rect:Rectangle;
public function CoverImage(_arg1:BitmapData, _arg2:int, _arg3:int){
rect = new Rectangle(0, 0, 640, 640);
point = new Point(0, 0);
blend = new BitmapData(640, 640, true, 0);
brushLayer = new Sprite();
maskLayer = new BitmapData(640, 640, true, 4294967295);
bmp = new Bitmap(blend);
flg = false;
super();
brush = new Brush(_arg2, _arg3);
cover = _arg1;
blend.copyPixels(cover, rect, point, maskLayer, point, true);
addChild(bmp);
brushLayer.addChild(brush);
}
public function onMove(_arg1:int, _arg2:int):void{
brush.x = _arg1;
brush.y = _arg2;
brush.rotation = (brush.rotation + (Math.floor((Math.random() * 10)) * 10));
maskLayer.draw(brushLayer);
maskLayer.copyChannel(maskLayer, rect, point, BitmapDataChannel.RED, BitmapDataChannel.ALPHA);
blend.copyPixels(cover, rect, point, maskLayer, point, false);
}
function clear():void{
var _local1:*;
_local1 = Sprite(this.parent);
_local1.setCover();
}
public function onUp():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:uint;
_local1 = 0;
_local2 = 0;
while (_local2 <= 48) {
_local3 = 0;
while (_local3 <= 64) {
_local4 = blend.getPixel((_local2 * 10), (_local3 * 10));
if (_local4 == 0){
_local1++;
};
_local3++;
};
_local2++;
};
trace(_local1);
if (_local1 > 3165){
clear();
};
}
}
}//package
Section 8
//CreamShadow (CreamShadow)
package {
import flash.display.*;
public dynamic class CreamShadow extends BitmapData {
public function CreamShadow(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 9
//Strip (Strip)
package {
import flash.events.*;
import flash.display.*;
public class Strip extends Sprite {
var baseImage:BaseImage;
var targetShadow:CoverImage;
var downFlag:int;// = 0
var wear02shadow:BitmapData;
var bg:BG;
var shadowImage02:CoverImage;
var shadowImage01:CoverImage;
var st:Stage;
var flg:Boolean;// = false
var stripFlag:int;// = 0
var targetCover:CoverImage;
var wear02:BitmapData;
var wear01:BitmapData;
var wear01shadow:BitmapData;
var coverImage01:CoverImage;
var coverImage02:CoverImage;
public function Strip(){
wear01 = new Wear01(480, 640);
wear02 = new Wear02(480, 640);
wear01shadow = new WearShadow(480, 640);
wear02shadow = new CreamShadow(480, 640);
bg = new BG();
baseImage = new BaseImage();
coverImage01 = new CoverImage(wear01, 32, 1);
coverImage02 = new CoverImage(wear02, 30, 2);
shadowImage01 = new CoverImage(wear01shadow, 30, 1);
shadowImage02 = new CoverImage(wear02shadow, 28, 2);
stripFlag = 0;
flg = false;
downFlag = 0;
super();
this.addEventListener(Event.ADDED_TO_STAGE, onInit);
}
function onMove(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = st.mouseX;
_local3 = st.mouseY;
if (flg){
targetCover.onMove(_local2, _local3);
targetShadow.onMove(_local2, _local3);
};
}
function onDown(_arg1:MouseEvent):void{
flg = true;
downFlag++;
if (downFlag == 1){
baseImage.nextFrame();
};
}
public function setCover():void{
switch (stripFlag){
case 0:
downFlag = 0;
stripFlag++;
removeChild(coverImage02);
removeChild(shadowImage02);
baseImage.gotoAndStop(3);
targetShadow = shadowImage01;
targetCover = coverImage01;
break;
case 1:
downFlag = 0;
stripFlag++;
removeChild(coverImage01);
removeChild(shadowImage01);
baseImage.gotoAndStop(5);
targetShadow = shadowImage01;
targetCover = coverImage01;
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, onUp);
break;
};
trace("setCover");
}
function onInit(_arg1:Event):void{
st = stage;
addChild(bg);
addChild(baseImage);
addChild(shadowImage01);
addChild(coverImage01);
addChild(shadowImage02);
addChild(coverImage02);
shadowImage01.blendMode = (shadowImage02.blendMode = BlendMode.MULTIPLY);
targetCover = coverImage02;
targetShadow = shadowImage02;
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
stage.addEventListener(MouseEvent.MOUSE_UP, onUp);
baseImage.gotoAndStop(1);
}
function onUp(_arg1:MouseEvent):void{
flg = false;
targetCover.onUp();
}
}
}//package
Section 10
//Wear01 (Wear01)
package {
import flash.display.*;
public dynamic class Wear01 extends BitmapData {
public function Wear01(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 11
//Wear02 (Wear02)
package {
import flash.display.*;
public dynamic class Wear02 extends BitmapData {
public function Wear02(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 12
//WearShadow (WearShadow)
package {
import flash.display.*;
public dynamic class WearShadow extends BitmapData {
public function WearShadow(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package