Selasa, 22 April 2014

belajar flash CS5 menggunakan scrift

pertama,anda bisa mendesain sesuai selera anda, sebagai contoh :

game membuat perlombaan (apa aja)
*contoh lomba partai

Scriftnya untuk tombol start
on(release){
pst1.onEnterFrame = function()
{
this._x = this._x + random (10) ;
};
pst2.onEnterFrame = function ()
{
this._x = this._x + random (10) ;
};
pst3.onEnterFrame = function ()
{
this._x = this._x + random (10) ;
}
}
**untuk random, anda bisa mengisi angka yang anda kehendaki.

scrift untuk tombol reset
on (press) {
pst1.onEnterFrame = function ()
{
this._x =  50
};
pst2.onEnterFrame = function ()
{
this._x = 50
pst3.onEnterFrame = function ()
{
this._x =  50
};
}
}
hasilnya