Loading..
Sponsored By :GoogleAdsense.
Showing posts with label Action script. Show all posts
Showing posts with label Action script. Show all posts

Thursday, June 2, 2011

Action script flash buat percantik tampilan

ActionScript Flash buat cursor, like this :

onClipEvent (enterFrame) {
Mouse.hide();
setProperty("_root.l", _x, _root._xmouse);
setProperty("_root.l", _y, _root._ymouse);
}

ActionScript Flash buat Link, like this :

on (release) {

//Goto Webpage Behavior
getURL("http://localhost/simak/","_self");
//End Behavior

}

ActionScript Flash buat efek salju, like this :

onClipEvent (load) {
movieWidth = 350;
movieHeight = 263;

i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;

this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) (this._x<=0)) { this._x = -10+Math.random()*movieWidth; this._y = -5; } } 

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites

 
Photobucket