kecilin / gedein nya pake _xscale / _yscale kn ?
klo mo gt, movieclip ny d gedein ya textfield nya di kecilin sesuai perbandingan d gedein ny ..
teks._xscale=(100/mov._xscale)*100;
teks._yscale=(100/mov._yscale)*100;
teks - nama textfield ny
mov - nama movieclip ny
----------------------------------
fscommand("allowscale","true");
----------------
saya pakai script ini contoh:
movie_mc._visible = false;
button.btn.onRelease = function () {
movie_mc._visible = true;
}
button.btn.onRollOver = function () {
movie_mc._visible = false;
}
-----------------
for(i=0;i<=100;i++)
{nm="ob"+i;
attachMovie("xa",nm,i);
}
--------
on (release){
var musik:Sound=new Sound();
musik.loadSound("sound/garuda.mp3",true);
}
-------------
on (press){
fscommand("fullscreen",false);
fscommand("allowscreen",false);
-------------
Ada 2 cara
mcBox = movieClip yg ada di stage...
mcBox = 10 x 10
mcBox.onEnterFrame = function() {
if(this._width<=100&&this._height<=100) {
this._width+=2;
this._height+=2;
}
}
new mx.transitions.Tween(mcBox, "_width", null, mcBox._width, 100, 5, true);
new mx.transitions.Tween(mcBox, "_height", null, mcBox._height, 100, 5, true);
new mx.transitions.Tween(Object, "property", function, begin, finish, duration, useSeconds);
----------------------------------
createEmptyMovieClip or attach movie clip kosong dr library...
black = movie clip
_root.createEmptyMovieClip("empty1",1);
empty1._x = 60;
empty1._y = 20;
//_root.attachMovie("empty","empty1",1,{_x:60, _y:20});
_root.createEmptyMovieClip("empty2",2);
empty2._x = 180;
empty2._y = 30;
//_root.attachMovie("empty","empty2",2,{_x:180, _y:30});
_root.createEmptyMovieClip("empty3",3);
empty3._x = 300;
empty3._y = 20;
//_root.attachMovie("empty","empty3",3,{_x:300,_y:20});
for (i=0;i<9;i++) {
empty1.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
empty2.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
empty3.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
}
-------------------
on(release){
bar.scaleX -10;
}
-------------
klo mo gt, movieclip ny d gedein ya textfield nya di kecilin sesuai perbandingan d gedein ny ..
teks._xscale=(100/mov._xscale)*100;
teks._yscale=(100/mov._yscale)*100;
teks - nama textfield ny
mov - nama movieclip ny
----------------------------------
fscommand("allowscale","true");
----------------
saya pakai script ini contoh:
movie_mc._visible = false;
button.btn.onRelease = function () {
movie_mc._visible = true;
}
button.btn.onRollOver = function () {
movie_mc._visible = false;
}
-----------------
for(i=0;i<=100;i++)
{nm="ob"+i;
attachMovie("xa",nm,i);
}
--------
on (release){
var musik:Sound=new Sound();
musik.loadSound("sound/garuda.mp3",true);
}
-------------
on (press){
fscommand("fullscreen",false);
fscommand("allowscreen",false);
-------------
Ada 2 cara
mcBox = movieClip yg ada di stage...
mcBox = 10 x 10
mcBox.onEnterFrame = function() {
if(this._width<=100&&this._height<=100) {
this._width+=2;
this._height+=2;
}
}
new mx.transitions.Tween(mcBox, "_width", null, mcBox._width, 100, 5, true);
new mx.transitions.Tween(mcBox, "_height", null, mcBox._height, 100, 5, true);
new mx.transitions.Tween(Object, "property", function, begin, finish, duration, useSeconds);
----------------------------------
createEmptyMovieClip or attach movie clip kosong dr library...
black = movie clip
_root.createEmptyMovieClip("empty1",1);
empty1._x = 60;
empty1._y = 20;
//_root.attachMovie("empty","empty1",1,{_x:60, _y:20});
_root.createEmptyMovieClip("empty2",2);
empty2._x = 180;
empty2._y = 30;
//_root.attachMovie("empty","empty2",2,{_x:180, _y:30});
_root.createEmptyMovieClip("empty3",3);
empty3._x = 300;
empty3._y = 20;
//_root.attachMovie("empty","empty3",3,{_x:300,_y:20});
for (i=0;i<9;i++) {
empty1.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
empty2.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
empty3.attachMovie("black","black"+i,i,{_x:this._x, _y:this._y+45*i});
}
-------------------
on(release){
bar.scaleX -10;
}
-------------