Drawing Modern Room

Posted by Muhammad Shiraz Kamboh Tuesday, 12 June 2012 0 comments
 Using this full explained tutorial, you will learn how to draw a modern room using the flash techniques. You don't have to use action script code to make this lesson. Only one thing that you have, is to use Line and Paint Bucket Tool.

Step 1

Create a new flash document and for background color choose white.






Step 2


Take the Line Tool (N) and go to the Properties Panel (Ctrl+F3) below the stage. Then, choose the following options:

1. Enter black for the stroke color
2. Select Solid as the type of outline, with the line thickness set to 1.5
3. Turn on the Stroke hinting option to get rid of any blurry edges while drawing.



Then, draw this shape which will represent carpet. See the picture below.



Step 3
After that, draw this shape above the carpet which will represent bookcase.



Step 4

Then, draw this element of bookcase:



Now. you have this:



It's time for TV, so draw this shape:



Step 5

After that, draw this element of Tv.



Step 6

It's time for vase, so draw this shape which will represent our vase.



Step 7

After that, draw this part of wall. See the picture below.



Step 8

It's time for painting, so take the Paint Bucket Tool (K) and paint the furniture, carpet, tv and vase in color which you like. Finally, you have to get something like this:



We're not over yet. Now, we have to paint the wall, so take the Rectangle Tool (R). In the Colors portion of the Tool panel, block the Fill color by clicking on the little Paint Bucket icon and then on the small square with the red diagonal line. For Stroke color choose black and draw a â€Å“rectangle” about 450x321px like it is shown on the picture below.



Then, take again the Paint Bucket Tool (K) and piant the wall and floor in color which you like.



Only one thing that we have to do is to import any picture and place it on tv. So choose File > Import > Import to Stage (shortcut key: Ctrl+R) and import any picture into a flash stage. After that, palce it within the tv. See the picture below.



We're done!

Enjoy!

Mouse animation

Posted by Muhammad Shiraz Kamboh 0 comments
See this example and learn how to create cool animation using the mouse. To make this example, you also have to use action script code. When you move your mouse over the objects, they will follow the mouse moving. You can use this example whenever you want, that some object follow the mouse.





Preview:


Invisible Flash Button tutorial

Posted by Muhammad Shiraz Kamboh 0 comments
I am going to show you how to create the Invisible Button in flash 8 on a simple way.

Example:


Step 1
Open a new Flash document. Select Modify  Document (shortcut key Ctrl+J ). Set the width of your document to 150 pixels and the height to 80 pixels. Select white as background color and click ok.




Step 2


Select the Text tool (T).In the Property Panel below the stage,choose Static Text. Choose any font and color you like and type "Invisible Button"on the stage. See the picture below.



Step 3
Double click on layer 1 to rename its name in text. After that, create a new layer and name it Invisible Button.

Step 4

Select the Invisible Button layer, take the Rectangle Tool (R) ( You will draw a rectangle without the outline colors), so click on Stroke color and choose No color(by clicking on the little paint bucket icon and then on the small square with the red diagonal ). For Fill color choose ##00FFFF and draw a "rectangle" over the text ("Invisible Button").

Step 5

While the "Invisible Button" is still selected, press F8 key (or select Modify > Convert to Symbol ) to convert it into a Button. See the picture below.



Step 6

Double-click on the button on stage with the Selection tool (V).You should now be inside the movie clip.



Step 7

Move the keyframe from the Up state to the Hit state. See the picture below.



Step 8

Go back on the main scene (Scene 1). Now you have the Invisible Button.If you now, test your Movie (Ctrl+Enter), you won't see the "Invisible Button!



Step 9
If you want to link it, select it, open the Action Script Panel (F9), and paste this script:

on (release){
getURL("http://www.flashfridge.com/", "blank");
}

That's it!

Bye!

Downlaod source file (.fla)

Dynamic image button with URL

Posted by Muhammad Shiraz Kamboh 0 comments
In this thoroughly explained, detailed flash lesson, you will see how to create trendy and dynamic image button with URL. You can use this button for any web site. Using this lesson, you will also learn how to import any image into a flash stage, how to convert it into a Movie Clip Symbol, how to animate it, apply action script code on it and much much more! Let's start!

Example:


Step 1

First, save the image below which we'll use as button.






Step 2


Create a new flash document. Press Ctrl+J key on the keyboard (Document Properties) and set the width of your document to 160 pixels and the height to 100 pixels. Select white as background color. Set your Flash movie's frame rate to 32 and click ok.



Step 3

Call the current layer image. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!

Step 4
Choose now File > Import > Import to stage (Ctrl+R) and import the image that you saved in step 1!

Step 5

While the image is still selected, press F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.



Step 6

While the new made Movie Clip (image) is still selected, go to the Align Panel (Ctrl+K) and do the following:

1. Make sure that the Align/Distribute to Stage button is turned on,
2. Click on the Align horizontal center button and
3. Click the Align vertical center button.



Step 7

Double-click on the movie clip (image) on stage with the Selection tool(V).You should now be inside the Movie Clip.



Step 8

While the image is still selected, hit again F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.



Step 9

Click now on frame 20 and hit F6 key on the keyboard.

Step 10

While you're still on frame 20, select the Selection Tool (V) and click once on the image to select it. After that, go to the Properties Panel (Ctrl+F3) below the stage! Then, select FIlters tab on the left side, click on plus icon and choose Adjust Color. Make the adjustments as follows:



Step 11

Right-click anywhere on the gray area between the two keyframes on the timeline and choose Create Motion Tween from the menu that appears.



Step 12

Create now a new layer above the layer 1 and name it action.

Step 13

Click now on frame 20 and press F6 key.

Step 14

While you're still on frame 20, go to the AS panel (F9) and enter this code inside the actions panel:

stop();

Step 15

Go back now on the first frame, go again to the AS panel (F9) and enter this code inside the actions panel:

stop ();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
} this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("http://icatchwebtutorials.blogspot.com/");
}

We're done now!

Go back on the main scene (Scene 1) and test your Movie (Ctrl+Enter).

Have a nice day!

Download source file (.fla)
Posted by Muhammad Shiraz Kamboh 0 comments
This handy HTML 5 reference guide lists all tags supported in the HTML 5 specification. Tags, tag attributes and a listing of tags removed in HTML 5 (valid in HTML 4) are listed in a convenient cheatsheet format. This is the most complete, and up-to-date, HTML5 cheatsheet (reference) around.
 
Features:
  • Complete list of HTML 5 tags
  • HTML4 only tags (color coded for ease of locating)
  • Detailed tag attribute listing with supported values


Addition Resources:

Download

Simple PHP Form Mail Tutorial

Posted by Muhammad Shiraz Kamboh 0 comments
Simple mail form
 
This tutorial will show you how to create a simple form mail that emails a specified email.
The Following Code is the actual form where the input can be typed.






How to create a basic rating system

Posted by Muhammad Shiraz Kamboh 0 comments

How to create a basic rating system

This article shows you how to create a simple and easy to use file based rating system with PHP.
Creating a basic rating system
 In this tutorial I will show you how to create a basic and simple to use rating system. To make the script more simple and database independent we will use simple files to store rating information.

The basics

We divide the task into the following steps:

  • Display a HTML form where a visitor can select a rating.
  • Read the existing results
  • Check if the actual IP exists among the old results
  • Add valid rating to the result list
  • Display the actual rating


Displaying the HTML form

This is an easy part. As usually we create a normal HTML form which is displayed during the first call of the script. As the script itself contains the processing part as well we first check if we really need to display the form or process the submitted data. So the first part of the code looks like this:

echo $_SERVER['PHP_SELF']; ?>" method="post">






Your rating:1 2 3 4 5





Read the existing results

As next step we need to process the user input. In this step we initialize some variables to store total ratings, total points, actual rating. This is quite simple:

$rate = isset ($_POST['rate']) ? $_POST['rate'] : 0;$filename = "ratings";$alreadyRated = false;$totalRates = 0;$totalPoints = 0;
$ip = getenv('REMOTE_ADDR');?>


Afterwards we retrieve the actual user IP. Later we will check if this IP is already present in the result list. If we already have a result from the actual IP then we will ignore the new one. With this solution we can avoid to manipulate our ratings. So we need to open the result file and read it into an array using the file function. Next we iterate over this array and summarize the ratings until now. Of course we also check the IP:

// Read the result file$oldResults = file('results/'.$filename.'.txt');
// Summarize total points and ratesforeach ($oldResults as $value) {
$oneRate = explode(':',$value);
// If our IP is in the list then set the falg
if ($ip == $oneRate[0]) $alreadyRated = true;
$totalRates++;
$totalPoints += $oneRate[1];
}
?>


Now if the rating seems to be valid the we open the result file again and append a new result entry at the end of the file with the actual user IP. Besides this we update the total rating points we have collected in the previous step.

// If our rating is valid then append it to the result fileif ((!$alreadyRated) && ($rate > 0)){
$f = fopen('results/'.$filename.".txt","a+");
fwrite($f,$ip.':'.$rate."\n");
fclose($f);
$totalRates++;
$totalPoints+=$rate;
}
?>


As last step we only need to display the actual rating. We can do this with only displaying a the value or we can displaying some graphics like stars to make it a bit nicer.

echo "Actual rating from $totalRates rates is: "
.substr(($totalPoints/$totalRates),0,3)."
"
;
// Display the actual ratingfor ($i=0;$i<round(($totalPoints/$totalRates),0);$i++){
echo
"";
}
?>


That's all!
You can download a complete rating system as well.

Download Download Micro Rate

Popular Posts

About Me

My photo
I create this Blog for learn the all kind of tutorial about web developing | HTML, Java, PHP, Graphic designing, Corel Draw, Photoshop, Micromedia Flash, Swish and many more related software and internet programming tutorials.

Followers

Blog Archive