Archive for June 22nd, 2008
Posted on June 22, 2008. Filed under: Flash Script | Tags: How to make a Drawing with mouse |
_root.createEmptyMovieClip(“line”,1);
_root.onMouseDown = function() {
line.moveTo(_xmouse,_ymouse);
line.lineStyle(2,0xaa3333,500);
this.onMouseMove = function() {
line.lineTo(_xmouse,_ymouse);
updateAfterEvent();
}
}
_root.onMouseUp = function() {
this.onMouseMove = null;
}
Read Full Post |
Make a Comment ( None so far )
Posted on June 22, 2008. Filed under: Flash Script | Tags: How to make MouseOver and Clickable button? |
import mx.transitions.Tween;
import mx.transitions.easing.*;
for (i=1; i<=8; i++) {
var current_btn = this["my"+i+"_btn"];
current_btn.onRollOver = function() {
var currentAlpha = this.cover_mc._alpha;
var myHoriTween:Tween = new Tween(this.cover_mc, “_alpha”, Strong.easeOut, currentAlpha, 0, 0.5, true);
};
current_btn.onRollOut = function() {
var currentAlpha = this.cover_mc._alpha;
var myHoriTween:Tween = new Tween(this.cover_mc, “_alpha”, Regular.easeIn, currentAlpha, 100, 0.5, true);
gotoAndStop(20);
};
}
stop();
my1_btn.onRelease = function(){
gotoAndStop(21);
}
my2_btn.onRelease = function(){
gotoAndStop(22);
}
my3_btn.onRelease = function(){
gotoAndStop(23);
}
my4_btn.onRelease = function(){
gotoAndStop(24);
}
my5_btn.onRelease = function(){
gotoAndStop(25);
}
my6_btn.onRelease = function(){
gotoAndStop(26);
}
my7_btn.onRelease = [...]
Read Full Post |
Make a Comment ( None so far )
Posted on June 22, 2008. Filed under: Flash Script | Tags: flash movie, resizing, Resizing the size of flash movie |
// FUNCTIONS
// a function (applicable to any button holding a movieclip circle_mc) to enlarge circle_mc
function btnRollOver() {
this.circle_mc._xscale = 120;
this.circle_mc._yscale = 120;
}
// a function to return mc to its original size
function btnRollOut() {
this.circle_mc._xscale = 100;
this.circle_mc._yscale = 100;
}
// MOVIE SETUP
// set up event handlers for on stage elements
start_mc.onRelease = floatBubble;
start_mc.onRollOver = btnRollOver;
start_mc.onRollOut = btnRollOut;
pop_mc.onRollOver = btnRollOver;
pop_mc.onRollOut = [...]
Read Full Post |
Make a Comment ( None so far )