jjjjj
Step 1 : To create the the combo box like this we to click on window > component > combo box
state the name as box.
Step 2 : Click on window > component inspector then we key in the value in data as:
Step 3 : At component inspector then we key in the value in for data as in step 2.
Step 4 : Create the submit button, right click the key in the action script.
on (press) {
if(box.getValue()=="Billie Jean"){
jg="Sorry, wrong answer!Please select again !";
}
if(box.getValue()=="The way you make me feel"){
jg="Sorry, wrong answer!Please select again !";
}
if(box.getValue()=="Bad"){
jg="Sorry, wrong answer!Please select again !";
}
if(box.getValue()=="Thriller"){
jg="Congratulation! Thriller is Michael's first song to the air on MTV";
}
gotoAndStop(2);
}
Step 5 : Go to second frame the create the dynamic text box and set the var to jg.
Remember to put the action script stop ( ); at the second frame.
Thursday, October 27, 2011
Week 6: (3) Input and dynamic text boxes
Hi friends,
Welcome to try it, please use the back button if you want to re-try again.
ddd
Step 1 : In frame one prepare the interface as below.
Step 2 : Use the text tool to create the box, this time use the Input text and then set the var to nama.
Step 3 : Create the button in frame 1, then right click and type the action script as:
So we have to use dynamic text and the variable set it to name.
Welcome to try it, please use the back button if you want to re-try again.
ddd
Step 1 : In frame one prepare the interface as below.
Step 2 : Use the text tool to create the box, this time use the Input text and then set the var to nama.
Step 3 : Create the button in frame 1, then right click and type the action script as:
on (release) {gotoAndPlay(2);
}
Step 4 : Create the box by using text tools, this time this box will prompt out the text with variable nama.}
So we have to use dynamic text and the variable set it to name.
Week 5: Scene
The action script to quit the application is,
on (release) {
fscommand("quit");
}
Dear friends, you can download it and try it at here.
on (release) {
fscommand("quit");
}
Dear friends, you can download it and try it at here.
Tuesday, October 25, 2011
Monday, October 24, 2011
Week 6: (1) Drag and Drop
Step 1 : The circle, square are draw, these are the object will be drag. The rectangle will be the location for the object.
Step 2 : Convert the circle, square and two rectangle to symbol> movie.
Name the rectangle as box1 and box 2 at the properties when we click on it.
Step 3: The red circle is the object we need to drag, right click and write the action script.The original position of the red circle can be refer to the X and Y in properties.
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
if ((this._x>=301.4) & (this._x<=406.3) & (this._y>=84.0)& (this._y<=105.4)) / Value X and Y determine from Step 6
{
_root.box1.gotoAndStop(2);
}else {
_root.box1.gotoAndStop(1);
this._x = 74.0; / original position
this._y = 84.0; / original position
}
}
Step 4: Double click on the rectangle box, we able to see the first frame like this and we add the action script stop ( ); on the first frame.
Step 5 : Go to the second frame we add the red tick and action script stop on it.
Step 6: Determine the location for correct area by bring the red circle to the rectangle, we able to know X and Y through the properties. Change the value X and Y on the action script according to the value in properties.
Thursday, October 20, 2011
Week 5: ( 3 ) Multiple Choice Question
Step 1 : Create the interface with text and with 3 Buttons A, B , C. Insert the action script stop ();
at frame 1.
Step 2 : Insert keyframe at frame 15, then add the word "correct", insert the Insert the
action script stop (); at frame 15.
Step 3 : Insert keyframe at frame 25, then change the word "correct" to "Incorrect", insert the action script stop (); at frame 25.
Step 4 : Convert the A Button to Button> convert to symbol> button.
Step 5 : Right click the Button A then select > action. Type the action script as.
Step 6: Doing the same for Button B and C.
Button B is on (release) {gotoAndPlay (25);}
Button A is on (release) {gotoAndPlay (15);}
Wednesday, October 19, 2011
Week 5: ( 2 ) Text Entry
Hi friends,
Welcome to try this applicaton. The correct answer is carbon monoxide and other hydrocarbons.
The important part to run this application is we need to uncheck the auto kerning in the properties. Kerning controls the spacing between pairs of characters. In flash, many fonts have built-in kerning information. For example, A and V are often closer together than A and D. When we checked auto kern, auto kern will smushes the text together instead of each letter being separate. When we run it, the script unable to detect every single letter that we key in.
Step 1 : The interface is created
Step 2 : The text field is input text field to let the user key in the date and we set it as var "answer."
Step 3 : The the second the text is dynamic text and the var is "respond".
Step 4 : The button is created right click on the the button then key in the action script as:
on (release, keyPress "<Enter>") { if
(answer == "carbon monoxide and other hydrocarbons")
{respon="Correct";
}
else {
respon="Incorrect. Your answer "+answer+
" is incorrect";}
}
Welcome to try this applicaton. The correct answer is carbon monoxide and other hydrocarbons.
The important part to run this application is we need to uncheck the auto kerning in the properties. Kerning controls the spacing between pairs of characters. In flash, many fonts have built-in kerning information. For example, A and V are often closer together than A and D. When we checked auto kern, auto kern will smushes the text together instead of each letter being separate. When we run it, the script unable to detect every single letter that we key in.
Step 1 : The interface is created
Step 2 : The text field is input text field to let the user key in the date and we set it as var "answer."
Step 3 : The the second the text is dynamic text and the var is "respond".
Step 4 : The button is created right click on the the button then key in the action script as:
on (release, keyPress "<Enter>") { if
(answer == "carbon monoxide and other hydrocarbons")
{respon="Correct";
}
else {
respon="Incorrect. Your answer "+answer+
" is incorrect";}
}
Monday, October 17, 2011
Week 4: Class Activity 2 - Scene concept in Flash
Step 1 : Use the text tool to type the text as in the figure in different layer.
This is the Scene 1.
Step 2: Use the text tool the create the the text "Home". This scene is the Scene 2.
Step 3 : We able to see the scene through the scene icon.
Step 4 : To make a link, select the the the text "Motion Tween" and covert it to symbol> button.
Step 5 : Right click the text select> Action > type the action scrict. ("Scene 2",1) This mean
that go to Scene 2.
Step 6 : To make a link from Scene 2 to Scene 1, select the the the text
"Home" and covert it to symbol> button.
Step 7 : Right click the text select> Action > type the action scrict. ("Scene 1",1) This mean
that go to Scene 1.
Step 8 : To link to other scene repeat the same in for other Button.
Just by changing the action script.
To go Scene 3 ("Scene 3",1)
To go Scene 4 ("Scene 4",1)
To go scene 5 ("Scene 5",1)
To return to Scene 1 ("Scene 1",1)
Sunday, October 16, 2011
Week 5: ( 1 ) Farm Activity
Step 1 : The Background is created
Step 2 : The image of chicken is import to the stage. Covert the image to symbol > Button
Step 3: Right click the button of chicken then select edit in place. We able to see the first frame with UP.
Step 4 : Insert > timeline > keyframe at Over, then use the text tool to type the word "Chicken"
Step 5: Import the chiken wave file to library.
Step 6 : Insert > timeline > keyframe at Over, we insert the chicken sound.By just drag from the library to the stage.
Saturday, October 15, 2011
Monday, October 10, 2011
Week 3: ( 3 ) Image Sequence : Bird and Rabbit
Step 1: The background is set as figure below.
Step 2: Click on > Insert > New Symbol > movie
Step 3 : You will see the screen like this.Import the image to the library
Step 5: Click on the scene 1 then test the movie.
Step 6: You can do the rabbit move bu follow the path by using motion guide.
Week 3: ( 2 ) Traditional Animation
Frame 1:
Draw the image by using the tools.
Frame 2 :
Change the mouth of the bear.
Repeat the same for frame 1,3,5,6
Then 2,4,6,8
Week 3: ( 1 ) Motion Guide
Step 1: Change the background colour to red.
Step 2: Use thet brush tool to create the nest of the ants,
Step 3 : Use the oval tools and rectangle tool create the ants.
Right click on the ant then convert to symbol> graphic
Step 4: Click on the motion guide
Step 5: Draw the line by using pencil tools.
Step 6: Click on the frame 40 and insert key frame.Drag the ant to the ant of the path.
Step 7: Click on the layer of ant and right click >create motion tween.
Step 8 : Text the movie.
Subscribe to:
Posts (Atom)