Documente Academic
Documente Profesional
Documente Cultură
A relatively Asam compound when blue litmus paper turned red, but red litmus paper does not
change color. Meanwhile, a compound classified as "basa" when it turns red litmus paper into
blue, but blue litmus paper does not change color. A compound is said netraljika not change the
color of litmus paper.
5. Put the movie clip objects that are in the library to the stage and collated in the following
order
g. Repeat steps 5.a-5.c for other objects, put objects like the picture below and do not
forget to name the instance name for each object as follows
6. Give the name of each object with the Text tool in accordance with the picture below
7. .After all objects in the library have been put on the object layer. The next step is adding a
new layer to the action script.
a. In the timeline panel, click the insert layer
b. Give the name of the new layer with the name of the action
8. The next step is to give the script on the first frame of layer action
a. Right-click the layer frame 1 action click actions
b. Script window appear and write the following script
//deklarasi kordinat untuk tempat kembali objek
x_cuka = asamcuka._x;
y_cuka = asamcuka._y;
x_aquades = aquades._x;
y_aquades = aquades._y;
x_sabun = sabun._x;
y_sabun = sabun._y;
x_lakmusbiru = lakmusbiru._x;
y_lakmusbiru = lakmusbiru._y;
x_lakmusmerah = lakmusmerah._x;
y_lakmusmerah = lakmusmerah._y;
//deklarasi warna
warna_asamcuka = "0xCCCCCC"; //abu-abu
warna_aquades = "0x00CCFF"; //birumuda
warna_sabun = "0xFFCC99"; //merah muda
warna_biru = "0x0000FF";
warna_merah = "0xFF0000";
warna_kosong = "0xFFFFFF";
asamcuka.onRelease = function(){
stopDrag();
if(this._droptarget == "/wadah" and isi_wadah == "kosong"){
isi_wadah = "asamcuka";
warnacairan.setRGB(warna_asamcuka);
}
this._x = x_cuka;
this._y = y_cuka;
}
//objek aquades
aquades.onPress = function(){
startDrag(this);
}
aquades.onRelease = function(){
stopDrag();
if(this._droptarget == "/wadah" and isi_wadah == "kosong"){
isi_wadah = "aquades";
warnacairan.setRGB(warna_aquades);
}
this._x = x_aquades;
this._y = y_aquades;
}
//objek sabun
sabun.onPress = function(){
startDrag(this);
}
sabun.onRelease = function(){
stopDrag();
if(this._droptarget == "/wadah" and isi_wadah == "kosong"){
isi_wadah = "sabun";
warnacairan.setRGB(warna_sabun);
}
this._x = x_sabun;
this._y = y_sabun;
}
lakmusbiru.onRelease = function(){
stopDrag();
//lakmus merah
lakmusmerah.onPress = function(){
startDrag(this);
}
lakmusmerah.onRelease = function(){
stopDrag();
//tombol reset
reset.onRelease = function(){
isi_wadah = "kosong";
warnacairan.setRGB(warna_kosong);
warnalakmusbiru.setRGB(warna_biru);
warnalakmusmerah.setRGB(warna_merah);
lakmusbiru._x = x_lakmusbiru;
lakmusbiru._y = y_lakmusbiru;
lakmusmerah._x = x_lakmusmerah;
lakmusmerah._y = y_lakmusmerah;
}
Dragdrop
Dragdrop