Tampilkan postingan dengan label Flash. Tampilkan semua postingan
Tampilkan postingan dengan label Flash. Tampilkan semua postingan

2012-01-25

Basic 1 bisa Flash


Mari memulai pakai FLASH. Anggap tulisan ini dari pemula kepada pemula. Bila ada yang kurang mengerti silakan bertanya. Dalam memulai sebuah program, mulai mengenali dari toolsnya. Pada tahap ini kita akan belajar toolsnyadibandingkan membuat sebuah hasil yang keren.
Bukalah Flash dan kamu minimal dapat tampilan ini
Kedepannya tulisan ini akan lebih memfokuskan bukan pada Action script (script didalamnya), jadi mari pilih Action Script 2. Dan inilah tampilan berikutnya
Bagian tengah adalah kertas kerja kita.  Untuk beberapa alasan, gw ngak akan bahas cara mengganti warna dan hal-hal lain yang berhubungan dengan kertas kerja kita. Karena point sekarang adalah memakai Toolbox.
Inilah Toolbox yang dimaksud, di awal-awal yang terpilih adalah Selection Tools. Ini berguna untuk memilih objek tertentu lalu menggerakkannya atau mengubahnya. Tetapi karena disini tidak ada yang bisa dirubah,mari langsung menuju ke tools membuat garis.
cari icon ini (), tepatnya ada dibawah pena. Buatlah garis, tidak perlu harus rapi.. tarik yang sekiranya bisa menjadi contoh. Anggap aja hasilnya seperti begini.
Kok warnanya ngak hitam? Sebelum dihapus.. mari kita rubah salah satunya, anggap aja yang paling atas ingin diberi warna hitam. Klik panah (pojok kiri atas), icon yang pertama kali terpilih. Lalu pilih garis yang ingindiganti.
Saat dipilih, maka garis yang terpilih akan berwarna lebih tebal. Sekarang menuju bawah tepatnya di
Pilih yang berada di atas (bawah lup) kemudian ubah menjadi hitam
Hasilnya
Klik layar kerja tp jangan menyentuh apapun.. lihatlah hasilnya
Selamat sudah berhasil bikin garis dan mewarnai. Berikutnya cobalah dengan
Posisinya di sebelah garis yang kita buat
Buatlah kotak di kertas kerja lalu coba warnai.. seperti contoh
Ingat untuk mewarnai memakai cara diatas dan jangan lupa mengkliknya.
Berikutnya coba memakai pensil (dibawah garis) dan juga pen. Untuk yang pen akan dibahas berikutnya.

Sumber:
Description: http://books.gigaimg.com/avaxhome/9f/a3/000ea39f_medium.jpeg

2011-11-13

Tips bikin Film pake Flash

daripada dibilang tips, ini tepat dibilang nasehat seorang awam yang baru menyadari kesalahannya.

saya membuat sebuah flash film dimana untuk keamanan kucoba bikin dalam bentuk exe. ketika dibuka ternyata hasil yang didapat kacau. Sebelumnya mari belajar kronologisnya.

Semua dimulai dari aku membuat video tentang tikus yang berbaris menuju depan. Untuk memastikan bahwa objek si tikus yang kubuat tersebut tidak berantakan dan dapat diberikan efek seperti bayangan, jadi kuputuskan membuat dalam bentuk objek buat gambar coretan biasa saja.
Tetapi ternyata saya melakukan kesalahan minor yang bermasalah kedepannya.

2011-10-02

BIO SEEKER vol.1 & Labyrinth Sophia

Cerita

Sebuah virus mengerikan T-Virus dibangun secara rahasia jauh dari aksen penduduk. Disini, percobaan dilakukan pada seorang gadis muda (Alice) yang dicobakan virus tersebut.

Membaca dari intro ini, membuatku berfikir bahwa ini akan mirip dengan Resident Evil , seri terkenal buatan Capcom
STORY

The horrific T-virus was developed in secret in a facility far from civilian access. Here, experimental genetic research came down to a single test subject. A young girl named "Alice".



Reading this make me think, this genre would be like Resident Evil. Famous series from Capcom.

2011-09-20

Belajar FLASH

hari ini gw putuskan buat belajar Flash.. Pada awalnya seh pake Flash cs 3 aka 9. Tetapi setelah baca ada versi portable yg cs 5.. ku download dan kumainkan deh..

sebenarnya kl mo urusan main seh mending main game yg ada disebelahku ini.. game berjudul Warhammer 40000

sebelum masuk pelajaran Flash.. yg perlu gw garis bawahi adalah memulai Flash (pake IDE) adalah mengenal tools nya.. kl mo di urut dari pelajaran pertama hingga sampe yg gw baca.. ini adalah garis besarnya

2011-09-14

FLASH CS3 - Action Script part 8

Do you hungry right now.. If there is A noodle.. I would like to eat 2 right now.. Okay..enought the chit-chat!! This tutorial will explain about use of For, While and related function.

In previous Action Script, we can't use For!! For show since AS 3 (that's what we will learn now). Okay this tutorial will explain about Looping !! Looping able to perform using For, While and Repeat function.

You can looping for anything, for example you want to count one,two .. until ten!!

2011-09-13

FLASH CS3 - Action Script part 7 CONDITIONAL

Related to previous Flash Tutorial.. We learn basic from conditional. As we know, the main problem I see in this conditional is miss-variable type. As you already learn from previous. Now let's learn the conditional, to make conditional we can use IF and switch

Let's make simple conditonal here.. You see a car then you asked what do you see. If you said car, the answer is correct.
if(answer == 'car'){
trace('Correct');
}
let's add the script.. If you said wrong, Answer is false.. and We have like this
if(answer == 'car'){ trace('Correct');}else{trace('False');}
For more complex.. We will have 
if(login=='admin')
{
    
trace('you are admin');
}else if(
login=='moderator'){
    
trace('you are moderator');
}else{
    
trace('who are you?');
}  
If we notice above we will see untidy code.. but Above code able to tidy by using switch. The Format are like this
//=========SWITCH========= 

switch (testExpression) {
  case 
caseExpression:
    
// case body
  
case caseExpression:
    
// case body
  
default:
    
// case body

}



Then after I fixed above script with switch.. we have this

switch (login) {
  case 
"admin":
   
trace('you are admin');

  case 
"moderator":
    
trace('you are moderator');

  default:
    
trace('who are you?');

}


But if you type like this.. this have an error .. If  login == admin I will have
you are admin
you are moderator
who are you? 
this is false right.. because it should show
you are admin
the problem is on the break. If you don't give break before next expresion, the code will continue to the next expresion. Let's fixed this out and we have like this

switch (login) {
  case 
"admin":
   
trace('you are admin');
   break;

  case 
"moderator":
    
trace('you are moderator');
 
   break;
   
  default:
    
trace('who are you?');

}


 for the last expresion, we don't need break because is already the last. Default expresion mean, if there login is not same as other expresion, default will be run.

COMPLEX CONDITIONAL
Do you remember this person?

Nah.. I know he's not me.. If we see in old movies.. someone will said this
is a bird
is a plane
is superman
Yap.. I will use this superman as an example to my script. If I see a bird (i'm not sure), then someone say is a plane (I think he not sure either).. I think.. it is Superman.. or perhaps both of us need a good pair of glasses
actualy my glasses is gone?!? 
okay.. this is the code
if(me=='bird' && other=='plane')
{
     
trace('Is Superman!!');
}else{
  
trace('We need glasses');
}

As you see here.. I type if I said Bird, other said plane.. It is Gotta be Superman!! If you see here.. there are 2 conditional

  1. me=='bird'
  2. other=='plane'
we can join both of conditional like this
     
         if(me=='bird' && other=='plane')
&& is an operator for AND! if both conditional are true the result will be true also!

TRUE FALSE
TRUE
TRUE
FALSE
FALSE
FALSE
FALSE

Like this table.. Another operator is OR ( || ). Unlike AND, if one of both are TRUE.. the result will be TRUE
TRUE FALSE
TRUE TRUE TRUE
FALSE TRUE FALSE

hmmm, the example script :
if(me=='bird' || other=='bird')
{
     
trace('Is a Bird!!');
}  


If I see Bird or next to me see a bird.. It's a Bird. Not only simple conditional, you can use NOT OPERATOR (!).
Next we will try make repeating operation using For,while etc

FLASH CS3 - Action Script part 6 (Math)

Let's Study Math, a Math is basic for all kind programing basic. Not only simple like multiply, divide or other.

You can calculate something complex like Physic or event Statistic This part not give you the script but is good if you read some of the basic math function we can found in Actionscript.

For complex math problem will be learn soon in another tutorial. For example how to found the size of circle (we need Pi for this.) We soon meet this kind of assigment in your program.
n = n + 1 ;
You can short it by type
n++;
if you have like this
n = n + 12;
you can type
n+=12;
For another type like substract we have like this
n = n - 5;
like above.. we can type like this
n-=5;
For divide
n /=2;
for multiply
n*=5;

for divide and multiply ... seem never used in real life. In order to use in the script.. you need declare the N variable too. like this
var n:Number = 5;
then you can use it in the script
full example
public function ExampleApplication(  ) {
     var n:Number = 5;
     n+=5;

}

Thanks for reading.. Now you can read the next issue equality and expresion.

TRUE OR FALSE

Now we will learn about TRUE and FLASH err FALSE

Knowing TRUE or FALSE make you able to control the program flow.. For example I want to enter the room, that's need a key.. I need a Key to pass it.. If I have the key.. I will pass it.. if don't I can't pass it

in Script we have

if(I_HAVE_KEY)
{
     trace('you can pass it');
}else{
   trace('you can't pass it');
}
This is only a simple expresion.. Next you will learn there perhaps there was soo much condition we must follow to make some action can be execute. In this example I give one.. but in real.. Perhaps not only a key I need.. I must have the keycode.. Or we can make another example..
I like Nasgor and I eat Nasgor.. in script I have
if( like == 'nasgor' && eatNow == 'nasgor' )

2011-09-12

FLASH CS3 - Action Script part 5 Keyboard Event (basic)

In previous, I type about Mouse Event. Now I will explain the Keyboard event. the keyboard event same as Mouse Event, with a few (little) difference.

The first you should do for keyboard event is to make sure the focus

stage.focus = this;

unlike mouse that can be clicked to movie clip or an object. Keyboard event for whole stage/movie. to short, let's try this code. The code basicly simple since we not using complex first.. Unlike before, the code will send trace.. So the result isn't able to see offline (outside the Flash programing).

FLASH CS3 - Action Script part 4 Mouse Event (basic)

As we learn from previous script in Flash MX, we will notice that flash not only work like movie (Start from beggining and end after the movie end or rewind from start). Flash able to capture mouse and keyboard Event.

To learn both is same like previous part (enterFrame). Unlike before, this script not make the aplication receive the event directly. We will to use something to capture the event. For mouse, there are a few mouse type event.

  • MouseDown. if the button is clicked (left I think?)
  • MouseUP. if the button is release (Left I think)
and there is another for right. But in this tutorial we will create for left. 


2011-09-11

FLASH CS3 - Action Script part 3

 
In Previous Flash (MX), to create event.. We can do by click the movie (example) then make script with script "onEnterFrame". In CS3, we need a little approach

To respond to the enterFrame event, you have to tell your application to listen for that event and specify which method you want to be called when the event occurs. This is done with the addEventListener method, which is defined as follows:
addEventListener(type:String, listener:Function)
example:addEventListener(Event.ENTER_FRAME, onEnterFrame);

Event.ENTER_FRAME
the first parameter tell about what event will be listen to.be careful because if you type wrong.. the script aren't working.
onEnterFrame
the second parameter tell the function name that execute related to the function. beware to use simple name and avoid Commonly used function name.

2011-09-10

Incubator

Opening
 Barusan baca tentang Incubator di blog temen.. trus ane nyoba.. eh ternyata enak juga.. Nah ini tadi barusan main dan nyoba
Battle.. kagak ngarti

Kayaknya ini boss deh

barusan dapet 30ribuan

Game yang membingungkan.. Tapi cukup enak maininnya

FLASH CS3 - Action Script part 3

Flash on Android?
In general programing, we have 3 basic variable type:
  • char
  • number
  • boolean

Char or Character can be long or we called as string. Number can be variation like Integer, Float or double. For Boolean, there is only 1 type boolean but in other programming Boolean have more variation like number. I should talk a little bit about number.. Number as you know is variable that use number. But for science purpose, number is not fully fixed like 3, 5, etc... Sometimes they can show 3.14 !! That's the reason why number is separated like integer and float.
Float can be use for scientific calculation, but Integer for fixed number, Integer can't have value after 0, float can!! but there are limit how many number can be add to the variable.

2011-09-09

FLASH CS3 - Action Script part 2



Now we have fl001.as and fl001.fla
we use the fl001.fla and now we will continue!! In first tutorial you should ask, what the heck is that code.. actualy my friend.. that's is an example, but learning from now isn't good as basic tutorial for Flash AS 3. For review, we have code like this

FLASH CS3 - Action Script part 1

This tutorial should be after the basic. In basic, you should learn how to use tools. But to fast forward, how about let's those basic read on other web.

I will share you basic Action script, remember how to make this.. because this tutorial will be use the same method for next tutorial. the reason I use Flash 9 because flash 9 is near than flash 8&MX I use before.. And my pc not capable for flash 10.
oh yeah.. I forgot.. Flash not belong to macromedia again

let's try create this code in text file

2011-09-05

BASIC TUTORIAL FOR FLASH CS3

Welcome


Welcome to my tutorial page, this tutorial will explain how to use Flash CS3 for the first time.
  • After loading you will have this..
    Flash for the first time
  • In this, we will see menu, tools, Properties and Other Panel. For this tutorial, we will focus on Tools.


  • In Tools panel, we see selection tools, sub-selection tools and soon. Let’s try to draw first. Now click here a little longer.
  • And we have
  • Choose Rectangle Tool or we can type R on keyboard
  • Let’s draw a rectangle, ignore the color attributes. In my tutorial, I’m using black and blue.


  • And we have

  • Let’s manipulate this using selection. Click selection

  • Then click the blue, and we have like this

  • Try move the box and see what happen?


  • Inside the box is move, not include the border. Now let’s undo this, just click undo or Ctrl –Z
  • Now, let’s double click the box. Then move the box
  • You just move the box with the border.
     
  • After this try other tools like oval.
  • This end the tutorial, thanks for using my tutorial.