Hari nie terakhir kelas dan aktiviti terakhir ialah Drag n Drop... sama seperti aktiviti 4 tatau app 4 pada minggu yang sebelumnya, tapi kali nie object akan berapa pada kedudukan yang disediakan..pada aktiviti kali ini kita perlu meletakkan koordinat pada kedudukan nilai yang rendah dan tinggi bagi nilai x dan y...
contoh action script pd object seperti berikut:
On(press){
startDrag(this);
}
On(release){
stopDrag();
if((this._x>=* lowest value for x in the box*)&(this._x<=*the
highest value for x)&(this._y>=*the lowest value for
y)&(this._y<=*the highest value for y)
{
_root.box1.gotoAndStop (2);
}else{
_root.box1.gotoAndStop (1);
this._x=*the origin of x-default location*
this._y=*the origin of y*
}
}
Untuk meletakkan koordinat bagi nilai x dan y yg tertinggi ialah meletakkan object paling hujung segiempat ruangan jawapan dan manakala, bagi meletakkan koordinat bagi nilai x dan y yg terendah ialah meletakkan object paling bawah segiempat runagan jawapan.
next, test movie......
the EnD....;(
Monday, 24 December 2012
Friday, 14 December 2012
Minggu ke 13
The Reflection on Activity 4
Back to what we had learned this week
in adobe flash, application 4...There are 4 task given and I will explain each of it and
provide the steps to create it..
Task 1
(Multiple Choice
Question )
- This application will allow student to get the interactive feedback
after answer the question.
Steps:
1. Write the text question by using the “static text”
2. Create new layer and name it as button. After that create 4
button label it with alphabet A,B,C and D.
3. Converted all button to symbol and choose button type.
4. Arrange the entire button neatly and put the textfield for the answer
choice
5. Then, put another layer name respon and insert textfield then choose
dynamic text. After that put one more layer name it as action
6. Put
this action The action script:
stop();
var respon;
respon = " "
7. Put the action script for button
D for the correct answer
on (release) {
respon = "Congrates, Your
answer is correct!";
}
8. Put the action script for button A, B, and C for the incorrect
answers
on (release) {
respon = "Congrates, Your
answer is correct!";
}
8. Test movie (control enter)
Task 2
(Text Entry Question)
- Student can insert their answer by typing in the
input text provided.
Steps:
1. Create layer and name it as background and put the text for the
topic n subject.
2. Create another layer name it as question and type the question
3. Put the text box and choose the input text and another but these
times choose dynamic text.
4. Insert the play button from the button library.
5. Insert new layer name it as stop and put this action script by right
on the layer and choose action.
stop();
var answer;
var respon;
answer=""
respon=""
6. Right click on play button and put this action script inside the
button.
on(release){if(answer=="melaka"){respon="Betul!";
}else{
respon= "Salah. Jawapan anda
"+ answer +" tidak tepat.";
}}
on(release, keyPress
"<Enter>"){if(answer=="melaka"){respon =
"Betul";
}else{
respon= "Salah. Jawapan anda
"+ answer +" tidak tepat.";
}}
7. Input textfield name as answer and dynamic textfield name as respon on the variable properties. Test movie
Task3
(Drag and Drop)
- To create more interesting Learning activity especially
for the children.
Steps:
1. Draw a tree and name the layer as tree. Then, convert
to symbol and choose movie clip
2. Draw 3 apples and name the layer as apple.. Then, convert to symbol
and choose movie clip.
3. Right click on each of 3 apples and select action, then put this
action script
on (press){
startDrag(this,false);
}
on(release){
stopDrag();
}
4. tes tmovie
Task4
(Creating Main Menu)
- An interface for an interactive website to
link from one scene to another scene
Steps:
1. Create interface menu and name the buttons in website as "home", "news" and "about".
1. Create interface menu and name the buttons in website as "home", "news" and "about".
2. To link with another scene click window>scene>duplicate scene> and
name it as scene 1 and scene 2.
3. In scene 2 put the static textfeild for "news". On the other hand, in scene 1 put the static
textfield for “home".
Put the stop command on button layer and
put this action script
stop();
5. Insert the keyframe for each
of layers on frame 15 in both scenes.
6. In scene 2 insert new layer name it as "new" and on the properties label name it as
homepage. Put the stop command on button layer and put this action script
stop();
8. Right click on new
button and put this action script in order to connect with the homepage.
on(release){
gotoAndPlay("Scene
2",1);
}
9. Right click on home
button and put this action script in order r to navigate scene 1
on(release){
gotoAndStop("Scene
1",1);
}
10. To connect with the same scene but difference frame, for the example, there are broadly in scene
2 there news and more latest news info. So, insert frame at frame 10
on new
layer and name it as latestnews
on properties label. Then, create the button for latestnews in scene 2. insert dynamic textfield for latest new information. Put this the action script code
to activate latestnews button.
on (release){
gotoAndStop("Scene
2","latestnews"); }
11. The function of About button to link with the
other website . Right click ,choose action and put this action script with the URL to be linking to.
on(release){
getURL("http://www.sitiaminahbtabdullah.blogspot.com");
}
12. Test movie
Saturday, 8 December 2012
Minggu ke 12 ~FLASH~
Pada minggu ini kelas menggunakan application 3 untuk "mencipta animasi". Sebelum itu kita perlu tahu apakah fungsi Symbol dalam flash. terdapat 3 symbol iaitu graphic, movie
clip, dan button.
Untuk animasi pulak, ade 4 jenis iaitu motion tweening, shape tweening, motion guide and frame by frame..Maksud "tweening adalah diantara frame atau "in between". contoh Motion tweening ialah pergerakan lonjatan bola or "bouncing ball". kedua, shape tweening untuk merubah teks kpd bentuk, objek kpd objek yg lain dan gambar kpd gambar yg lain. Seterusnya, motion guide untuk animasi yg bergerak mengikut pergerakkan yg terarah..(guided path). Untuk animasi frame by frame setiap mimik muka digerakkan mengikut frame contohnya kelipan mata.
Untuk app 3 kali ni, terdapat 4 task yg diberikan
Task 1.Motion Tweening
create an animated bouncing ball that could change its positions, colours and size along the preferred timeline. first create the image of a ball, then copy and paste the frame by changing the position of the ball....adjust the color of the ball..put the keyframe with different size n color of the ball..This is the product of my animation by using motion tweening technique:
http://www.youtube.com/watch?v=o-MpbW3vQAU
Task 2. Shape tweening
create an animation of changing text to shape..but i choose to image to image..hehe. I use 2 images then import to library. Then, click modify>bitmap>trace bitmap. next, put 1st image to frame 1 n the second one, at frame 50 and place image here. Select tween by shape and see the result...see, a cute penguin become a ball!!!
http://youtu.be/leWiRYWrgZY
Task 3 . Motion Guided
create an animation of symbol will move along the guided path....first step is i'm using the motion guide technique by clicking on add motion guide folder at the timeline. then, draw the line tat will guide the object move along the guided line..This is the product of my animation:
http://youtu.be/6IZTZNUo0Jc
Task 4 . Frame by Frame
create an animation by using frame by frame..i create the object with different movements. Then i will paste it in the different frames on the timeline to create the animation. This is the product of my animation:
http://youtu.be/VUWFa34XNTs
Untuk animasi pulak, ade 4 jenis iaitu motion tweening, shape tweening, motion guide and frame by frame..Maksud "tweening adalah diantara frame atau "in between". contoh Motion tweening ialah pergerakan lonjatan bola or "bouncing ball". kedua, shape tweening untuk merubah teks kpd bentuk, objek kpd objek yg lain dan gambar kpd gambar yg lain. Seterusnya, motion guide untuk animasi yg bergerak mengikut pergerakkan yg terarah..(guided path). Untuk animasi frame by frame setiap mimik muka digerakkan mengikut frame contohnya kelipan mata.
Untuk app 3 kali ni, terdapat 4 task yg diberikan
Task 1.Motion Tweening
create an animated bouncing ball that could change its positions, colours and size along the preferred timeline. first create the image of a ball, then copy and paste the frame by changing the position of the ball....adjust the color of the ball..put the keyframe with different size n color of the ball..This is the product of my animation by using motion tweening technique:
http://www.youtube.com/watch?v=o-MpbW3vQAU
Task 2. Shape tweening
create an animation of changing text to shape..but i choose to image to image..hehe. I use 2 images then import to library. Then, click modify>bitmap>trace bitmap. next, put 1st image to frame 1 n the second one, at frame 50 and place image here. Select tween by shape and see the result...see, a cute penguin become a ball!!!
http://youtu.be/leWiRYWrgZY
Task 3 . Motion Guided
create an animation of symbol will move along the guided path....first step is i'm using the motion guide technique by clicking on add motion guide folder at the timeline. then, draw the line tat will guide the object move along the guided line..This is the product of my animation:
http://youtu.be/6IZTZNUo0Jc
Task 4 . Frame by Frame
create an animation by using frame by frame..i create the object with different movements. Then i will paste it in the different frames on the timeline to create the animation. This is the product of my animation:
http://youtu.be/VUWFa34XNTs
Subscribe to:
Posts (Atom)