Friday, July 13, 2007

Fuze Kit1: PrinterForPay




////////////////////////////////////
// Flash Action Script
// by Kyungran Oh(petraoh@gmail.com)
////////////////////////////////////

import com.mosesSupposes.fuse.*;

// init the fuse engine
ZigoEngine.simpleSetup(Shortcuts,PennerEasing);

var callback:Object = {scope:this, func:"completeHandler"}
this.box1_mc.slideTo(400, 180, 2, "easeOutBounce", 2, callback);

this.onEnterFrame = function () {
if (this.money_paper3._x == -250){
this.printer._x = 200;
this.printer._y = 80;

this.ipod_pink_n._x = 200;
this.ipod_pink_n._y = 80;
this.ipod_pink_n._alpha= 50;

this.ipod_white._x = 200;
this.ipod_white._y = 80;

this.ipod_green._x =200;
this.ipod_green._y =80;



this.money_paper._x = 200;
this.money_paper._y = 100;

this.money_paper1._x = 200;
this.money_paper1._y = 100;

this.money_paper2._x = 200;
this.money_paper2._y = 100;

this.money_paper3._x = 200;
this.money_paper3._y = 100;

this.money_paper4._x = 200;
this.money_paper4._y = 100;

this.money_paper5._x = 200;
this.money_paper5._y = 100;

this.money_paper6._x = 200;
this.money_paper6._y = 100;

this.money_paper7._x = 200;
this.money_paper7._y = 100;

this.money_paper8._x = 200;
this.money_paper8._y = 100;

this.money_paper9._x = 200;
this.money_paper9._y = 100;
animation();
}
}


animation();
function animation () {

this.printer.slideTo(170,70,1,"easeOutBounce");
this.money_paper.slideTo(-250,150,5,"easeOutQuad");

this.money_paper1._alpha = 50;
this.money_paper1.slideTo(-270,10,5,"easeOutQuad");
this.money_paper1.scaleTo(100,1);



this.money_paper2._alpha = 20;
this.money_paper2.slideTo(-270,170,3,"linear");
this.money_paper2.scaleTo(150, 3);

this.money_paper3._alpha = 50;
this.money_paper3.slideTo(-250,20,5,"easeOutQuad");
this.money_paper3.scaleTo(140, 3)

this.money_paper4._alpha = 50;
this.money_paper4.slideTo(-270,50,5,"easeOutQuad");
this.money_paper4.alphaTo(100,30,"linear");

this.money_paper5._alpha = 70;
this.money_paper5.slideTo(-270,50,5,"easeOutQuad");
this.money_paper5.alphaTo(100,1,"linear");

this.money_paper6._alpha = 60;
this.money_paper6.slideTo(-250,200,6,"easeOutQuad");

this.money_paper7._alpha = 50;
this.money_paper7.slideTo(-270,10,5,"easeOutQuad");

this.money_paper8._alpha = 90;
this.money_paper8.slideTo(-270,70,6,"linear");

this.money_paper9._alpha = 70;
this.money_paper9.slideTo(-250,70,7,"easeOutQuad");

this.money_paper10._alpha = 60;
this.money_paper10.slideTo(-270,80,5,"easeOutQuad");

this.ipod_pink_n._alpha = 100;
this.ipod_pink_n.slideTo(-270,80,5,"easeOutQuad");

this.ipod_white._alpha = 100;
this.ipod_white.slideTo(-270,50,8,"easeOutQuad");

this.ipod_green._alpha = 100;
this.ipod_green.slideTo(-250,70,3,"easeOutQuad");
this.ipod_green.scaleTo(90, 3)
}

Roation: SummerSplashCash_CLP.fla





box1.onEnterFrame = function(){
this._rotation += 10;
}

filters_blurFilter.fla



import flash.filters.BlurFilter;

var blur:BlurFilter = new BlurFilter(4, 4, 1);

function onEnterFrame() {
var d = dist(_xmouse, _ymouse, circle._x, circle._y);
blur.blurX = d;
blur.blurY = d;

circle._xscale = circle._yscale=200-d;
if (circle._xscale<30) {
circle._xscale = 30;
circle._yscale = 30;

}
circle.filters = [blur];


}
function dist(x1:Number, y1:Number, x2:Number, y2:Number) {
var dx:Number = x1-x2;
var dy:Number = y1-y2;
return Math.sqrt((dx)*(dx)+(dy)*(dy));
}

Text_Auto Size.fla



myText.autoSize = true;

_root.myContent.loadContent.loadMovie("");
function loadMySWF() {
//trace("yes");
}

this.loadMyText = new LoadVars();

this.loadMyText.parentObj = this;

this.loadMyText.onData = function(raw) {

myText.htmlText = raw;
myText._y -= 1;
if (myText._y<=-myText._height+5) {
trace("work");
myText._y = 0;
}
};

this.loadMyText.load("news.txt");
trace(myText._height);
trace(myText._y);

Flash_Api_drawing.fla



this.moveTo(100,100);
function onEnterFrame() {
this.lineStyle(random(100),random(0x00ff66),10);
this.lineTo(_xmouse,_ymouse);
}

image for {Book}



Content _Book

Start July 13- Dec 25
Ex) Roation: SummerSplashCash_CLP.fla
Img) summerSplashCash-Series

box1.onEnterFrame = function(){
this._rotation += 10;
}




Ex) Api_drawing.fla-----------------------


this.moveTo(100,100);
function onEnterFrame() {
this.lineStyle(random(100),random(0x00ff66),10);
this.lineTo(_xmouse,_ymouse);
}



EX) Text_Auto Size.fla -----------------------

myText.autoSize = true;

_root.myContent.loadContent.loadMovie("");
function loadMySWF() {
//trace("yes");
}

this.loadMyText = new LoadVars();

this.loadMyText.parentObj = this;

this.loadMyText.onData = function(raw) {

myText.htmlText = raw;
myText._y -= 1;
if (myText._y<=-myText._height+5) {
trace("work");
myText._y = 0;
}
};

this.loadMyText.load("news.txt");
trace(myText._height);
trace(myText._y);








EX) filters_blurFilter.fla -----------------------------------

import flash.filters.BlurFilter;

var blur:BlurFilter = new BlurFilter(4, 4, 1);

function onEnterFrame() {
var d = dist(_xmouse, _ymouse, circle._x, circle._y);
blur.blurX = d;
blur.blurY = d;

circle._xscale = circle._yscale=200-d;
if (circle._xscale<30) {
circle._xscale = 30;
circle._yscale = 30;

}
circle.filters = [blur];


}
function dist(x1:Number, y1:Number, x2:Number, y2:Number) {
var dx:Number = x1-x2;
var dy:Number = y1-y2;
return Math.sqrt((dx)*(dx)+(dy)*(dy));
}




EX) Fuze Kit -----------------------

Fuze Kit1: PrinterForPay

////////////////////////////////////
// Flash Action Script
// by Kyungran Oh(petraoh@gmail.com)
////////////////////////////////////

import com.mosesSupposes.fuse.*;

// init the fuse engine
ZigoEngine.simpleSetup(Shortcuts,PennerEasing);

var callback:Object = {scope:this, func:"completeHandler"}
this.box1_mc.slideTo(400, 180, 2, "easeOutBounce", 2, callback);

this.onEnterFrame = function () {
if (this.money_paper3._x == -250){
this.printer._x = 200;
this.printer._y = 80;

this.ipod_pink_n._x = 200;
this.ipod_pink_n._y = 80;
this.ipod_pink_n._alpha= 50;

this.ipod_white._x = 200;
this.ipod_white._y = 80;

this.ipod_green._x =200;
this.ipod_green._y =80;



this.money_paper._x = 200;
this.money_paper._y = 100;

this.money_paper1._x = 200;
this.money_paper1._y = 100;

this.money_paper2._x = 200;
this.money_paper2._y = 100;

this.money_paper3._x = 200;
this.money_paper3._y = 100;

this.money_paper4._x = 200;
this.money_paper4._y = 100;

this.money_paper5._x = 200;
this.money_paper5._y = 100;

this.money_paper6._x = 200;
this.money_paper6._y = 100;

this.money_paper7._x = 200;
this.money_paper7._y = 100;

this.money_paper8._x = 200;
this.money_paper8._y = 100;

this.money_paper9._x = 200;
this.money_paper9._y = 100;
animation();
}
}


animation();
function animation () {

this.printer.slideTo(170,70,1,"easeOutBounce");
this.money_paper.slideTo(-250,150,5,"easeOutQuad");

this.money_paper1._alpha = 50;
this.money_paper1.slideTo(-270,10,5,"easeOutQuad");
this.money_paper1.scaleTo(100,1);



this.money_paper2._alpha = 20;
this.money_paper2.slideTo(-270,170,3,"linear");
this.money_paper2.scaleTo(150, 3);

this.money_paper3._alpha = 50;
this.money_paper3.slideTo(-250,20,5,"easeOutQuad");
this.money_paper3.scaleTo(140, 3)

this.money_paper4._alpha = 50;
this.money_paper4.slideTo(-270,50,5,"easeOutQuad");
this.money_paper4.alphaTo(100,30,"linear");

this.money_paper5._alpha = 70;
this.money_paper5.slideTo(-270,50,5,"easeOutQuad");
this.money_paper5.alphaTo(100,1,"linear");

this.money_paper6._alpha = 60;
this.money_paper6.slideTo(-250,200,6,"easeOutQuad");

this.money_paper7._alpha = 50;
this.money_paper7.slideTo(-270,10,5,"easeOutQuad");

this.money_paper8._alpha = 90;
this.money_paper8.slideTo(-270,70,6,"linear");

this.money_paper9._alpha = 70;
this.money_paper9.slideTo(-250,70,7,"easeOutQuad");

this.money_paper10._alpha = 60;
this.money_paper10.slideTo(-270,80,5,"easeOutQuad");

this.ipod_pink_n._alpha = 100;
this.ipod_pink_n.slideTo(-270,80,5,"easeOutQuad");

this.ipod_white._alpha = 100;
this.ipod_white.slideTo(-270,50,8,"easeOutQuad");

this.ipod_green._alpha = 100;
this.ipod_green.slideTo(-250,70,3,"easeOutQuad");
this.ipod_green.scaleTo(90, 3)
}




Tips ) -----------------------


Site)
http://www.mosessupposes.com/Fuse/fuse2docs/index.html

Falsh Player