Tuesday 11 December 2012

Week 11 lagi

Activity 4:One of Science topic,we have to try to animate the process of pollination agent (agen pendebungaan)
Antara langkahnya yang penting adalah: Untuk pergerakkan bee dan proses pollen germination, guna motion guide dan motion tween.Manakala, proses from flower change to fruit, guna application frame to frame. Dibawah adalah step yang telah dilakukan untuk Aktiviti Apps4
Task 1:Multiple choices questions
 Steps: • Layer 1 - name as question. • Choose text tool-static text and start typing the question • Insert new layer and name layer as button • Create button using oval tool and drag it on stage and choose appropriate color then resize the button • Choose text tool and Put 'A' on top of the button • Select whole button, click modify and convert it to symbol then name the button as btnA choose button type. • Same goes to others 3 button (btnB, btnC, btnD) , choose appropriate color and resize each button to get same size with btnA andConvert all the buttons to symbol and choose button type. • Insert new layer and name as response • Choose text tool-dynamic text and put response as it variable • Insert another layer and name it as action and put action script by right click and choose Actions. The action script: stop(); var respon; respon = " " • Since the my answer is A so right click and choose actions and type in the action script below: The action script: on (release) { respon = "Congrates, Your answer is correct!"; } • Do the same step for button B, C, and D, repeat the the actionscript and just edit the respon according what you want it to be.
  Task 2: Text Entry Question
 Steps: • Choose rectangle tool and fill it with color then drag on to the stage. After that select text tool and type Question topic (static text)then name layer as background • Insert new layer as question • Choose text tool (static text) type in the questions. • Then, select rectangle tool and create box on stage • Select text tool (input text) and preposition it • Select text tool again (dynamic text) for response • Insert new layer name as buttons (drag play button from library to the stage) • Insert new layer and name it as stop • Right click on first keyframe and choose actions. Type in the action script below. The action script: stop(); var answer; var respon; answer = " " respon = " " • Select button and right click and type in the action script below. The action script: on(release){ if (answer.toLowerCase()=="tun hussein onn"){respond ="Correct!"; }else{ respond = incorrect. Your answer "+answer + "is incorrect"; } } on(release){ if (answer.toLowerCase()=="tun hussein onn"){respond ="Correct!"; }else{ respond = incorrect. Your answer "+answer + "is incorrect"; } }
  Task 3: Main Menu
 Steps: • Layer 1- design the background, add three button, home, about and more button.• In the 'Home' button go to the properties and type in 'home' in the Instance name field • Repeat step 2 for the other two button change the instance name according to the button name. • Duplicate scene. Rename it from Scene 1 copy to Scene 2 • Now we have 2 Scene. • Select Scene 2 , Choose text tool and Type in the description • Do the same to the Scene 1. • To avoid it keep repeating non-stop. Hence, we insert action script at the button frame. Action script : stop (); • In Scene 2, insert new layer name as about go to properties and in the frame field, type 'about'. On the about layer, it shows the name of frame that we type in • In Scene 2, insert new layer name as stop and right click on the first frame and type action script 'stop ();'. • Scene 1, right click on the 'About' button and type in the action script. The action script: on (release) { gotoAndStop("Scene 2", 1); } • To link the 'Home' button, right click the 'Home' button type in the action script. The action script: on (release) { gotoAndStop("Scene 1", 1); }  • To activate button 'More' button on in Scene 1 and 2, right click the 'More' button and type in the action script. The action script: on (release) { getURL("http://www.adobe.com "); }
  Task 4:Drag and Drop
Steps: • At layer one draw oval image using oval tool. • Insert new layer, insert nose image click modify and convert it to symbol and name as nose and choose MOVIE CLIP type. • Repeat same step to cap, shirt, pant and hair • Since we want to drag the all image to the boy on the background, type in the action script below. The action script: on (press) { startDrag(this, true); } on (release) { stopDrag(); } • Repeat step for each image.

No comments:

Post a Comment