Showing posts with label Adobe flash. Show all posts
Showing posts with label Adobe flash. Show all posts

Sunday, 21 April 2013

Adobe Flash - Next Page Button


Adobe Flash – Next Page Button

Open Adobe Flash and choose Action Script 2.0
In your stage draw an arrow key or any arrow that describes to view to next page or preview.
Like this:

So what I used here is line tool (N) and fills it with paint bucket (K) color red.
Lets then press right click on our arrow and select convert to symbol.
Name: next
Type: button
Like this:


Use rectangle tool (R).
Go to its properties then change stroke color with black and fill color with light orange.
Like this:


With our rectangle tool on use, draw a rectangle that would fit the stage you have.
Use selection tool (V) and move the arrow button right down on the stage.
Like this:


Use text tool then create any kind of message just above the arrow button.
Example:


Select your arrow button with selection tool (V) then right click and select action.
For our button to work we need to apply some coding in our arrow button.
Copy this code and paste it on your action script:

on(press){
gotoAndStop(2);
}

Let me explaine the coding its simple.
Here you have on(press{gotoandStop(2);}
The press with simply speaks for its action then go to and stop then you notice a closing parenthesis and the number.
The number is the number of your playhead in your timeline.
Let just say that starting from your 1st playhead going to your 6th playhead when you declared gotoandstop(6) the moment you press the next button it will automatically go and stop to that playhead.


In your timeline layer 1 we need to insert a keyframe in our 2nd playhead or simply just prses F6 for shortcut.
After inserting a keyframe you should be in your 2nd playhead by now and have the same thing as you have in your 1st playhead.
Now, I want you to change the text message and change the pointing direction of your arrow button going left by using transforming tool (Q) just rotate it.
Move the arrow button to your left side.
Like this:


Right click on our new arrow button then select action and change the number in your coding gotoandStop(1).
Like this:


Now try to see your progress by hitting Ctrl+Enter.

As you can see the whole thing is not finish yet cause the animation would only loop from the 1st playhead to the 2nd.
To fix it, we need to add some few codes on your keyframe.
Right on your 1st playhead keyframe then select action and copy this code:


In your 2nd playhead you need to have the same code as your 1st playhead.
After in your timeline layer 1 your 1st and 2nd playhead keyframe should have the same look as this:



Hold Ctrl and press Enter,
After you should be at your 1st playhead go ahead and press your arrow button if it works then after you press the button you should be at the next playhead.
Again press the arrow button and see if you will go back to your 1st playhead.


















Saturday, 20 April 2013

Adobe Flash - Spinning Animation


                                    Adobe Flash - Spinning Animation

  • ·        open your adobe flash and select action script 2.0

·        The idea of this spinning animation it's something to animate that relates to spinning like wheels, boomerang, electric fan and etc.
  • ·        We need to draw some spinning object in our workspace. I choose to draw a simple one like boomerang.
  • ·        Use the line tool to draw the boomerang (N) for shortcut.

Simple way to draw the boomerang is like drawing the mouth of pacman when it's open.
  You can add a paint bucket color if you want to fill its color (R) for shortcut.
Like this:
  • Right click on the boomerang and select convert to symbol

Name: boomerang
Type: movie clip
  • Double click the object boomerang and you will see a different workspace for the boomerang
  • Use free transforming tool (q) shortcut. F
  • Insert a keyframe (f6) in your 2nd playhead
  • Rotate the boomerang going right by little.
Like this:
Our goal is to rotate the boomerang until it goes back to the original position.
For the 3rd, 4th, 5th, 6th, 7th, 8th, 9th and 10th playhead insert all with keyframes and rotate the boomerang little by little in each keyframe until the boomerang reach to its original position.
Go back to our main workspace.
Press this arrow:

Insert keyframe in the 30th playhead in our timeline layer 1
Right click on the 30th playhead and select insert keyframe or simply press f6 for shortcut.
Right click on your layer 1 and select add classic motion guide.

Next, with our classic motion guide layer on our timeline…
Create a blank keyframe in the 30th playhead (f5) for shortcut.
Like this:

Let’s go back to our layer 1 where we created our boomerang.
In our 5th, 10th, 15th, 20th and 25th playhead insert each with keyframe.
Like this:


Go back to motion guide layer and select your first playhead and draw a line with line tool.
This line will show as a guide for the boomerang
Like this:

Now, back to layer 1 and select your first playhead
Use your selection tool (v) for shortcut
Move the boomerang to this designated place and so for the 5th, 10th, 15th, 20th, 25th and 30th.
Like this:


Last part,
Between 1st playhead until the 5th, 5th to 10th, 10th to 15th, 15th to 20th, 20th to 25th and 25th to 30th press right click and select create classic teen.
After putting all classic tween in all frames you should be able to have the same thing as this:



Hold Ctrl and press Enter to see your progress











Friday, 19 April 2013

Adobe Flash - Lightning Effect


Adobe Flash – Lightning Effect

  • Open adobe flash and select action script 2.0
  • Familiarize the workspace

  • Activate onion skin by clicking its icon
  • Select your rectangle tool (R).

stroke color must be black and there should be no fill.
Like this:


  • Draw a rectangle in your workspace that would fill the stage
  • make a zigzag line in the middle of the stage with line tool or (N) for shortcut.

The line in the middle should be connected to the edges of the rectangle that you made.
Like this:



  • Select the paint bucket tool (K) for shortcut.
  • Above the zigzag lin, fill it with color blue.

It represents the night sky
  • Below the zigzag line, fill it with brown

It represents the ground
Like this:


In our timeline layer 1
  • Right click on the 70th playhead then select insert keyframe (F6)
  • Double click layer 1 then change its name to : Environment

Like this:


  • Insert a new layer
  • Click on the first icon at the bottom left corner of your timeline
  • Change the name of layer 2 to: Lightning

Like this:

In our Lightning layer:
  • ·         Right click on the 35th playhead then select insert keyframe
  • ·         Select line tool (N)

Change the stroke color to sky blue
Like this:


We should be at our 35th playhead or simply select its keyframe.
Let us then create a lightning in our 35th playhead just above the stage or night sky.

Like this:


  • Insert a new layer.
  • Double click the third layer and change its name to Light.




Light layer
  • Right click on the 37th playhead and select insert blank keyframe
  • Right click on the 38th playhead and select insert blank keyframe

Like this:
In your stage
  • select the dark blue sky

you should be able to see that the whole blue color is automatically selected.
  • Right click on the dark blue sky then select copy frame
  • Then we go back to our light layer
  • Right click on the 37th playhead/keyframe then select paste frame
  • Align then new blue sky with its original
  • In its properties: change the fill color to sky blue.

When you done applying the following in your 37th playhead you should have the same stage as this:

That should be all of it, hope you enjoyed this tutorial.
Ctrl+Enter to see your progress.





Tuesday, 9 April 2013

Adobe Flash- Basic Animation


In this tutorial, I’m going to teach one of the basic frame by frame animation using adobe flash
  • ·         Open Adobe flash and select action script 2.0
  • ·         Activate onion skin by clicking its icon
  • ·         Select your text tool or simply press (T) for shortcut.
  • ·         Select the stage
  • ·         Write your name on it or any name you prefer.
  • ·         Select all the letters (name) that you created
  • ·         Click modify which is found in your menu bar
  • ·         Select break apart twice or CTRL+B for shortcut.

The reason why we break apart the name that we entered in the stage is for us to be able to move or manipulate the letters.
  • ·         Select the eraser tool (E) then we begin using our timeline in making our animation.
  • ·         Right click on our 2nd playhead and select insert keyframe or (F6)
  • You should be able to have the same name in the same location found in the stage.
  • ·         Erase part of the letter

Like this:

  • ·         Right click on our 3rd playhead and select insert keyframe or (F6)
  • ·         Erase part of the letter
  • ·         Do the same for the next playhead from 4th until 10th playhead keyframe the first letter in your name should be totally erased with the eraser tool that we used.
  • ·         As you notice I used 10 playhead with 10 key frames to erase one whole letter.

Like this:
  • ·        From your 11th  playhead to your 20th you should do the same erase the next letter little by little until it reach to the 20th playhead for the letter to be totally erased.
  • ·         Finish the rest of the remaining letters following the same steps you did with the previous letters
  • ·         Evaluate your progress with (CTRL+Enter)







Thursday, 28 February 2013

Adobe Flash- Animated Banner


How to Make a Banner
Open your Adobe Flash and choose Action Script 2.0
Please familiarize this workspace:


First, we need to change our stage size.
In the properties tab beside the stage, you should find properties size;


  • Select edit and copy this width and height size below:

  • In our timeline: change the name of the layer from layer 1 to background.

Now, we need to create a background for our banner.
  • Select your Rectangle tool and trace our stage size when using our rectangle tool like this:



  • ·         As you can see I’ve covered the stage with grey rectangle with black stroke.

You can choose any color for your background as long you won’t be having any trouble filling your text inside your banner.

  • ·         Create another layer
  • ·         Change the name of the new layer into text
  • ·         Select your text tool and in your properties change your text size to 50 pt.

You can change your family character in your favor.
Example:

Now, insert any text as long as it fits in your background and select your text and move it at the left side of the stage.
Example:
Then in our timeline, both our layers should be inserted with a keyframe under the 30th playhead.
Example:
Now, select your text layer and go to your 30th playhead keyframe.
There we should select our text and move it to the right side of our stage.
Example:
Final step:
  • ·         In our text layer, right click in between our 1st keyframe and 30th playhead keyframe then select create classic tween

Also please take notice that our text layer should be above our background layer.
  • ·         Just hold select our text layer and drag it above our background layer.
  • ·         In your menu bar go to file; click export then select export movie and chose your designated location for your banner.

I saved mine in my desktop because it’s a lot easier to find.
Open your exported movie banner to see your banner.
Before ending this tutorial, I want you to remember that this tutorial is just an idea on how to create a banner in adobe flash.
After this tutorial you can evaluate your skill in making a better banner.












Tuesday, 26 February 2013

Adobe Flash - Moving Car


Adobe Flash – How to Make a Moving Car Animation
  
Open your adobe flash and select action script 2.0
Before we start be familiarize with this workspace because we are going to use them in this tutorial.
  • ·         Activate the onion skin by clicking on its icon at the bottom of the workspace.

When you complete this lesson, you will be able to:
Learn how to draw easily with the help of onion skin.
Learn how to rotate wheels or any object with classic tween while moving.
Learn how animate a moving car.

In this tutorial we need to import a side view picture of a car facing right.
If you don’t have one just copy it to Google image and type “facing right car”
I choose this image for in this tutorial:


Now, we have a car that’s facing to the right.
We are going to have a sketch of the car parts
  • ·         Just go to file on your menu bar; import then select import to stage

With the picture in your stage, it should be on your 1st playhead in your timeline.
 We are going to have a sketch on this image with the help of onion skin and line tool.
  • ·         Right click on the 2nd playhead then insert a blank keyframe

There you can see the shadow of your imported car image.
This is how onion skin works; it shows you the outline of your previous and next outline.
Example:

Next, we need to trace the outline of our imported car.
  • ·         Use line tool to trace your car’s outline.

All you need to trace is the cars body, window, side, door and the front light.
Example:
  • Notice how I bend the line tool that I used, you can do that by holding Ctrl+left click while dragging it to align the curve of the car’s outline
  • ·         Next we are going to use paint bucket tool to fill in color to your car.

Since I have an orange colored car, I’ll be filling it with orange.
  • ·         Don’t forget to fill in color to your window and front lights with black.

Example:

Next, we are going to make a wheel with the help of onion skin we can trace the wheels outline.
  • Zoom in the wheels to help you trace the outline a lot easier.
  • ·         Use the oval tool to draw wheel, must have the same wheel size with the original image.
  • ·         We just need one wheel for this part, then after making the wheel we must put a white cross in the middle of our wheel.

The white cross we draw will determine if the wheel is rotating when moving the car. You don’t have to draw the same pattern with image.
Example:
  • ·         Select the whole wheel with selection tool (v) then press right click and select convert to symbol.
  •        Don’t forget to name our symbol to Wheel.


After converting our wheel to symbol, the oval and the white cross that we draw should be intact into one.
  • ·         Double click on your wheel and you’ll be redirected to another timeline. Which will exclusively for the wheels
  • ·         Double click on your layer 1 then change name to “Wheel”.


  • ·         Right click in your 10th playhead then select insert keyframe
  • ·         Right click in between your 1st playhead and 10th playhead, then select create classic tween.



  • ·         While still in your 10th playhead: click on free transform tool in your tool bar
  • ·         Select the wheel and you should be able to see the joints of our wheel.

  • Now we need to rotate our wheel going to the right.

Example:
  • ·         Hit Ctrl+Enter to see if the wheel is rotating.

If it’s not rotating from the right direction, then you probably must have rotated it too much when we used our free transform tool to rotate it.
Never forget to rotate it just a little bit going down. Reread again this part of tutorial if it’s really not working.
 ·         Let’s go back to our main timeline where we created the car body.
To go back in our main timeline just click this icon.

Next, since we have now our rotating wheel we need to have another wheel in the front of the car.
  • ·         Click on the selection tool from the menu baror press (V) for shortcut.
  • ·         Then, just hold CTRL+mouse left click while selecting your wheel
  • ·         Drag it for your front wheel. You can also copy then paste

Example:
We are going to start our moving car animation.
  • ·         Right click on the 1st playhead and select remove frames.

Once we remove the first keyframe, the second keyframe will automatically replace the first one.
  • ·         Select the whole car with selection tool; right click then select convert to symbol and name this car.

All the parts should be in one piece, it’s a lot easier to animate one object.
  • ·         With the zoom tool, zoom out to 50%
  • ·         Place the car in the bottom left of your stage


zoom out to 50%
  • ·         Right click in the 50th playhead; select insert keyframe and then move the car out of the stage


  • Final step, right click in between our 1st playhead and the 50th playhead, and then select create classic tween.

(Hit Ctrl+Enter to see your progress)