Saturday, November 12, 2011

Week 8: (2) Group Assignment 1: By Zune

I was in-charge in doing this part.The last part of the assigbment was in-charge by the Fatemeh.

Reflection:

Main Menu ( Scene 1 )

1. Buttons were download from internet and manipulated by photoshop. I was really lucky that i have took visual static in last sememster, so that i can use my basic photoshop skill to develope the buttons which are suitable for this assignment.
2. Action script like gotoAndplay, stop and etc were applied.

Drag and Drog game ( Scene 2 )

1. All the object and its location need to convert it to the movie symbols.
2. We need to have more patient to set all the coordinate value ( x, y ) for the object in the action script.
3. This is the action script for the "apple" :
on (press) {startDrag(this);}
on (release) {stopDrag();
if ((this._x>=33.0) & (this._x<=77.0) & (this._y>=213.6)& (this._y<=263.0)) {_root.box1.gotoAndStop(2);} else {_root.box1.gotoAndStop(1);this._x = 393.0;this._y = 118.0;}}

Sujective question ( Scene 3 )
1. For the subjective question user are allowed to key in "d" and "D" both answer will be prompt up with correct statement. I have use if, if else and else in this action script.
2. The action script for this scene.

on (release, keyPress "") { if
(alphabet == "d")
{res=":) Congratulation!!! '"+alphabet+"' is the answer.";}
else if
(alphabet == "D")
{res=":) Congratulation!!! '"+alphabet+"' is the answer.";}
else
{res=":( Opsss!!! Incorrect. Your answer '"+alphabet+"' is incorrect,
Please try again....";}}

3. Static, input and dynamic text box were used in this scene.
4. I have displayed the answer that the user key in by assigned the variable "alphabet" in the input text box and display it again in dynamic text box.

MCQ Question 1 ( Scene 4 )

1. I have embedded audio element in MCQ: Question 1. Your welcome to try it by mouse you mouse to the button "D", "E" and "F" and you can heard the sound.
2. I have cut the sound of the alphabet and import it to the library before drag it to the the button in "over".
3. i don't really satisfy with the sound that i cut, since i was using free software which was simply download it from internet " free video cutter". I able to convert video that i need into mp3. This free ware is unable to cut at the actual sound lenght that i need, due to it have minimum lenght for every output.

MCQ Question 2 ( Scene 5 )

1. I have applied my dialog skill in this part.
2. In the action script, i have get the value from the combo box and displas it's respond at the dynamic box.
3. This was the script:

on (press) {
if(box1.getValue()=="H"){
jg="Good! 'H' is correct answer.";}
if(box1.getValue()=="I"){
jg="Sorry, 'I' is wrong answer! Please select again !";}
if(box1.getValue()=="J"){
jg="Sorry, 'J' is wrong answer! Please select again !";}
gotoAndStop(2);}

Week 8: (1) Group Assignment 1: By Faridanura

This part was did by my team member Faridanura. I couldn't link the different swf files in one display screen. So in this part the button that able to click is "About Us" and " Exit".
Reflection:
1. Buttons were download from internet and manipulated by photoshop.
2. Action script like gotoandPlay, loadMovieNum, fscommand, stop and etc were applied in here.

The other details will be reflect  in Faridanura's blog. You are welcome to comment it.

Thursday, October 27, 2011

Week 7: (1) MCQ using Dialog box

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.


            

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:

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.


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.