Doing the same thing but this time is using PHP and MySQL instead of ASP and Microsoft Access.
Step 1 : Set up the site as firstphp
Step 2 : Set up the database by using My SQL, create the datebase with the name firstphp.
There are four field that i was using together with the type of variable.
Step 3 : Set up the connection , select the database firstphp. Test the connection.
Step 4 : Set up the registration form for php.
By insert the form, and text field and button.
Make sure the text field must be rename it as name, username, password and remarks.
Save it as php.
Step 5 : Insert the record to the form it mean that write the data to the form.
Step 6 : Make sure each text field insert into the correct field.
This this the view of the page when explore it through firefox.
Step7 : Set up the view.php type the interface like this
Step 8 : we using recordset to view the record have been insert.
Step 9 :Select by highlight the area that we want to repeat then click on repeat region in server behavior.
Remember to select all record.
Step 10 : Explore in the mozila we able to view the record that we key in.
Monday, December 12, 2011
Monday, December 5, 2011
Week 11: Exercise 1
The registration page for user to register to join the website.
The users able to see other member who was joined the website after they have registered themselves.
Reflection:
1. We have to create three main item.
Create the connection so that there is a bridge for user to store the data from registration page
to data base.
User also able to view the data at view page from the data base.
3. Registration form
we have to create the form and the text field, so that user able to key the data.
The users able to see other member who was joined the website after they have registered themselves.
Reflection:
1. We have to create three main item.
- registration page - to let the user to record the data
- view page - to let the use view the data.
- data base - a place to store all the data.
Create the connection so that there is a bridge for user to store the data from registration page
to data base.
User also able to view the data at view page from the data base.
3. Registration form
we have to create the form and the text field, so that user able to key the data.
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);}
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 "
(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.
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.
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:
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.
Subscribe to:
Posts (Atom)