fps - Frame per Second di Flash 
Jika kita mendengar istilah fps (Frame per Second), kita langsung diingatkan dengan movie atau video, karena istilah ini memang mengatur jumlah frame yang ditayangkan per detik.
Di dalam Flash, fps sangat penting dalam mengatur kecepatan animasi. Semakin besar nilai fps, maka animasi yang dihasilkan akan semakin cepat. Sebaliknya, nilai fps yang kecil akan membuat animasi berjalan lambat.
Untuk mengeset kecepatan animasi secara global, kita dapat dengan mudah mengatur nilai fps. Nilai fps ini berlaku global terhadap jalannya seluruh movie, sekalipun kita menggunakan scene yang berbeda. Hal ini akan menimbulkan masalah apabila kita menghendaki dalam satu movie mempunyai dua atau lebih fps yang berbeda.
Ternyata bisa kita akali dengan menggunakan fungsi setInterval, contohnya kita bisa sisipkan script sebagai berikut:

var intervalId:Number;
var duration:Number = 143;

intervalId = setInterval(this, "nextFrame", duration);

varibel duration di atas dalam satuan ms. Sehingga apabila yang dikehendaki 7 fps, maka untuk durasi dari fungsi setIntervalnya adalah 1 detik dibagi dengan 7 frame menjadi 0,143 detik atau sama dengan 143 milidetik.

Sebagai catatan, ada sebuah exception pada kasus ini, yaitu apabila kita mengembedded sebuah video dalam format flv ataupun yang sudah dijadikan swf, maka pengubahan durasi dengan setInterval tidak akan berpengaruh terhadap video yang diembedded. Selebihnya, kita dapat mengatur speed dari animasi kita sesuai selera.

Selamat mencoba dan berkreasi.

[ add comment ]   |  permalink  |   ( 0 / 0 )
Membuat animasi teks grow/shrink dengan Action Script 
Kita dapat menampilkan teks dengan efek grow/shrink dengan memanfaatkan action script. Algoritmanya adalah membaca huruf demi huruf satu persatu dalam sebuah kalimat dan mengulang efeknya.
Pertama2 kita buat object dengan menggunakan satu huruf sebagai templatenya. Disarankan untuk memilih huruf W karena huruf W memiliki space yang lebih lebar dari lainnya.
Berikutnya kita dapat memasukkan gambar juga ke dalam movie dengan perintah berikut:

loadMovie(_root.images[_root.student_ke], _root.img);

lalu kita akan mulai membaca hurufnya satu demi satu, dan huruf itu akan kita jadikan movie clip sendiri2. Kita menggunakan variabel offset untuk mengatur jarak antar huruf.

i++;
offset = 27;
duplicateMovieClip(this.mc, "mc"+i, i);
var lowerCase:String = _root.names[_root.student_ke];
var upperCase:String = lowerCase.toUpperCase();
this["mc"+i].mcInside.text = upperCase.charAt(i);
this["mc"+i]._x = 10+(offset*i);
this["mc"+i]._y = 10;


dan pada frame terakhir, kita masukkan script gotoAndPlay untuk mengulang proses pembacaan huruf sampai selesai. Asumsi: sudah ada movie clip yang mengatur efek grow/shrink nya.

[ add comment ]   |  permalink  |   ( 0 / 0 )
Load Data dari file XML ke variabel array 
Untuk keperluan presentasi misalnya menampilkan nama siswa per kelas beserta fotonya, kita dapat menggunakan looping pada timeline, dimana datanya tinggal kita ganti melalui file xml. Pada frame 1, kita dapat menuliskan kode berikut:

onLoad = function() {
student_ke = 0;
names = [];
images = [];

_xml = new XML();
_xml.ignoreWhite = true;
_xml.load("student.xml");

_xml.onLoad = function(){
nodes = this.firstChild.childNodes;
len = nodes.length;
for(var n=0;n!=len;n++){
names[n] = nodes[n].firstChild.childNodes.toString();
images[n] = nodes[n].firstChild.nextSibling.childNodes.toString();
}
};

};


variabel names dan images adalah variabel array yang nantinya diisi dengan nama siswa dan gambarnya yang diambil dari file xml. Berikut adalah contoh file xmlnya:

<people>
<student>
<name>Gregorius Glen Kalensang</name>
<image>image01.jpg</image>
</student>
<student>
<name>Andy Leonardo</name>
<image>image02.jpg</image>
</student>
<student>
<name>Evelyn Novilia Gunawan</name>
<image>image03.jpg</image>
</student>
<student>
<name>Felisya Theodorus</name>
<image>image04.jpg</image>
</student>
<student>
<name>Go Frendi Gotanto</name>
<image>image05.jpg</image>
</student>
<student>
<name>Grace Ardelia Prajogo</name>
<image>image06.jpg</image>
</student>
<student>
<name>Jessica Limantauw</name>
<image>image07.jpg</image>
</student>
<student>
<name>Joshua Emmanuel Liemmongan</name>
<image>image08.jpg</image>
</student>
<student>
<name>Lydia Tanuwijaya</name>
<image>image09.jpg</image>
</student>
<student>
<name>Lyvia Prillyana Harli</name>
<image>image10.jpg</image>
</student>
<student>
<name>Perzeus Viego Koentjoro</name>
<image>image11.jpg</image>
</student>
<student>
<name>Priska Wijaya</name>
<image>image12.jpg</image>
</student>
<student>
<name>Puspita Nugraha Wibisono</name>
<image>image13.jpg</image>
</student>
<student>
<name>Shendy Christy Santoso</name>
<image>image14.jpg</image>
</student>
<student>
<name>Sherly Gunawan</name>
<image>image15.jpg</image>
</student>
<student>
<name>Sibyl Rozzela Soetedja</name>
<image>image16.jpg</image>
</student>
<student>
<name>Yessica Marcelina Oentoeng</name>
<image>image17.jpg</image>
</student>
<student>
<name>Yurike Cindy Kusuma</name>
<image>image18.jpg</image>
</student>
</people>


variabel student_ke adalah variabel yang digunakann sebagai indeks array nantinya. Untuk mengontrol loop, kita gunakan button yang apabila diklik, kontrol akan dipindahkan ke frame sebelumnya.

on (release) {
if (_root.student_ke<62) {
_root.student_ke++;
gotoAndPlay("start_1");
}
else
{
gotoAndPlay("end_1");
}
}


[ add comment ]   |  permalink  |   ( 0 / 0 )
Graduation Song 
"Graduation (Friends Forever)"
by Vitamin C


And so we talked all night about the rest of our lives
Where we're gonna be when we turn 25
I keep thinking times will never change
Keep on thinking things will always be the same
But when we leave this year we won't be coming back
No more hanging out cause we're on a different track
And if you got something that you need to say
You better say it right now cause you don't have another day
Cause we're moving on and we can't slow down
These memories are playing like a film without sound
And I keep thinking of that night in June
I didn't know much of love
But it came too soon
And there was me and you
And then we got real blue
Stay at home talking on the telephone
And we would get so excitedand we'd get so scared
Laughing at ourselves thinking life's not fair
And this is how it feels

[1]
As we go on
We remember
All the times we
Had together
And as our lives change
From whatever
We will still be
Friends Forever

So if we get the big jobs
And we make the big money
When we look back now
Will our jokes still be funny?
Will we still remember everything we learned in school?
Still be trying to break every single rule
Will little brainy Bobby be the stockbroker man?
Can Heather find a job that won't interfere with her tan?
I keep, keep thinking that it's not goodbye
Keep on thinking it's a time to fly
And this is how it feels

[Repeat 1]

La, la, la, la:
Yeah, yeah, yeah
La, la, la, la:
We will still be friends forever

Will we think about tomorrow like we think about now?
Can we survive it out there?
Can we make it somehow?
I guess I thought that this would never end
And suddenly it's like we're women and men
Will the past be a shadow that will follow us 'round?
Will these memories fade when I leave this town
I keep, keep thinking that it's not goodbye
Keep on thinking it's a time to fly

[Repeat 1 (3x)]

[ add comment ]   |  permalink  |   ( 0 / 0 )
Steps for creating Portfolio 
- Searching several news item
- Deciding news item
- Submit Proposal
- Presenting in class
- Starting to write the essay
- Submit the essay
- Discuss the essay
- Revision
- Final Submission

INTERNAL ASSESSMENT TIMELINE for ITGS

1st Course July - September: 1st Portfolio

1st Course October - December: 2nd Portfolio

1st Course January - March: 3rd Portfolio

1st Course April - 2nd Course July: Portfolio Extension

This means in the 2nd Course, we will focus on the lesson and the External Assessment

[ add comment ]   |  permalink  |   ( 0 / 0 )

<<First <Back | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Next> Last>>