Images

Macromedia Flash 8 - PART VI


Macromedia Flash 8
Adobe Flash Professional is used to create content for the Adobe Engagement Platform (such as web applications, games and movies, and content for mobile phones and other embedded devices). Macromedia Flash is an industry leading tool thatLearn Flash 8: eBIZ Education Team
supplies its users with animations, presentations, and mind blowing websites, while doing this at a constant low bandwidth. This may get you to asking some questions.Flash is commonly used to create
animation, advertisements, various web page components, to integrate video into web pages, and more recently, to develop rich Internet applications. Macromedia Flash player numbers indicate that it is used by more then 386 million people. This number translates to mean that if you have Flash in your website, over 97.4% of your online audience will be able to see it using the Macromedia Flash player.


Adding Action Script to your file
Custom Mouse cursor:-
1. You can also use a custom mouse cursor for your design. Make any custom shape and convert into a movie clip. And give it an instance name as arrow_mc just as I have given.
img
2. Now select the first frame of that layer, open the Actions Panel (F9) and write the following script in the actions panel.
var cursor:Object = new Object
onEnterFrame = function()
{
arrow_mc._x = _xmouse
arrow_mc._y = _ymouse
}
Mouse.hide();

Adding Action Script to your file
Mouse Follower:-
1. The mouse trail/follower we are going to make is like the name ‘CURSOR’ follows the cursor. So to make it we will need 6 text boxes each with the letter C, U, R, S, O and finally R. Then convert them into movie clips. And give them names as and from arrow1_mc, arrow2_mc… till arrow6_mc as in the following images.
img
img
img
img
img
img
2. Having done that make a layer on top of all the layers and name it as Actions Layer. Open the Actions Panel (F9). All the actions are written in the actions panel
3. Now select the first frame of that layer and write the following script in the actions panel.
onEnterFrame = function()
{
var x:Number=0
arrow1_mc._x = _xmouse
arrow1_mc._y = _ymouse

arrow2_mc._x += ((arrow1_mc._x - arrow2_mc._x) * 0.2) +8
arrow2_mc._y += ((arrow1_mc._y - arrow2_mc._y) * 0.2) +8
arrow3_mc._x += ((arrow2_mc._x - arrow3_mc._x) * 0.2) +7
arrow3_mc._y += ((arrow2_mc._y - arrow3_mc._y) * 0.2) +7
arrow4_mc._x += ((arrow3_mc._x - arrow4_mc._x) * 0.2) +6
arrow4_mc._y += ((arrow3_mc._y - arrow4_mc._y) * 0.2) +6
arrow5_mc._x += ((arrow4_mc._x - arrow5_mc._x) * 0.2) +5
arrow5_mc._y += ((arrow4_mc._y - arrow5_mc._y) * 0.2) +5
arrow6_mc._x += ((arrow5_mc._x - arrow6_mc._x) * 0.2) +4
arrow6_mc._y += ((arrow5_mc._y - arrow6_mc._y) * 0.2) +4
}
4. Now if you want to hide your mouse pointer then write the following script under all the above script
Mouse.hide();

Adding Action Script to your file
Getting the output with keyboard keys:-
1. In this tutorial you will learn how to get the output in the output panel. Whichever keyboard key you will press it will show the name of the key in the output panel.

2. For this tutorial we don’t need anything on the stage just click on the first frame of the current layer and press F9 i.e. open the actions palette and write the following actionscript in it.
var tool:Object = new Object();
  tool.onKeyDown = function()
  {
   if (Key.isDown(Key.SPACE)) 
   {
    show_txt.text="space bar pressed";
   } 
   else if (Key.isDown(Key.END))
   {
    show_txt.text="end key is pressed";
   }
   else if (Key.isDown(Key.DOWN))
   {
    show_txt.text="down key is pressed";
   }
   else if (Key.isDown(Key.UP))
   {
    show_txt.text="up key is pressed";
   }
   else if (Key.isDown(Key.LEFT))
   {
    show_txt.text="left key is pressed";
   }
   else if (Key.isDown(Key.RIGHT))
   {
    show_txt.text="right key is pressed";
   }
   else if (Key.isDown(Key.PGDN))
   {
    show_txt.text="page down key is pressed";
   }
   else if (Key.isDown(Key.PGUP))
   {
    show_txt.text="page up key is pressed";
   }
   else if (Key.isDown(Key.HOME))
   {
    show_txt.text="home key is pressed";
   }
   else if (Key.isDown(Key.DELETEKEY))
   {
    show_txt.text="delete key is pressed";
   }
   else if (Key.isDown(Key.CONTROL))
   {
    show_txt.text="control key is pressed";
   }
   else if (Key.isDown(Key.SHIFT))
   {
    show_txt.text="shift key is pressed";
   }
   else if (Key.isDown(Key.CAPSLOCK))
   {
    show_txt.text="capslock is pressed";
   }
   else if(Key.isDown)
   {   
    show_txt.text=chr(Key.getAscii())+" letter is pressed"; 
   }
   else
   {
    show_txt.text="invalid key is pressed"
   }
  }
Key.addListener(tool)

Adding Action Script to your file
Movement with keyboard keys:-
1. You can also move an object/element made on the stage by your keyboard keys. Just make any custom shape and convert into a movie clip. And give it an instance name as box_mc just as I have given.
img
2. Now select the first frame of that layer, open the Actions Panel (F9) and write the following script in the actions panel.
box_mc.onEnterFrame=function()
{
 if (Key.isDown(Key.RIGHT))
  {
   box_mc._x += 10
  }
 if (Key.isDown(Key.LEFT))
  {
   box_mc._x -= 10
  }
 if (Key.isDown(Key.DOWN))
  {
   box_mc._y += 10
  }
 if (Key.isDown(Key.UP))
  {
   box_mc._y -= 10
  }
}

Adding Action Script to your file
Tool tip
1. First we need to make a shape/text where on Mouse Over the tool tip will be seen. I have created a rectangular shape for this tutorial though we can take text as well.
img
2. Convert it into a movie clip and name it rect_mc.
img
3. Then make another rectangle which will be shown as the tool tip over the rectangle.
img
4. Convert it into a movie clip and name it tips_mc
img
5. Then make a new layer and name it actions. Then on its first frame write this following script in the actions panel.
rect_mc.onRollOver = function()
{
 tips_mc._visible = true
 rect_mc.onMouseMove = function()
 {
  tips_mc._x = _xmouse
  tips_mc._y = _ymouse
 }
}

rect_mc.onRollOut = function()
{
 tips_mc._visible = false
}

Keyboard Shortcut
Keyboard Shortcut
Web Services Panel = Ctrl + Shift + F10

Hide Panels = F4
Workspace Accessibility:-
Select next object = Tab

Select previous object = Shift + Tab

Select Stage = Ctrl + Alt + Home
Testing a Movie:-
Ctrl + Enter
Timeline:-
Move Frame Left = Left

Move Frame Right = Right

Move Frame Up = Up

Move Frame Down = Down

Select left Frame = Shift + Left

Select Right Frame = Shift + Right

Select Frame Above = Shift + Up

Select Frame Below = Shift + Down
Actions Panel:-
Auto Format = Ctrl + Shift + F

Check Syntax = Ctrl + T

Show Code Hint = Ctrl + Spacebar

Script Assist = Ctrl + Shift + E

Hidden Characters = Ctrl + Shift + 8

Line Numbers = Ctrl + Shift + L

Word Wrap = Ctrl + Shift + W

Find Again = F3

Find and Replace = Ctrl + F

Go to Line = Ctrl + G

Balance Braces = Ctrl + ‘

Indent Code = Ctrl + [

Outdent Code = Ctrl + ]

Preference = Ctrl + U
Miscellaneous:-
Hide Guides = Ctrl + ;

Show Grid = Ctrl + ‘

Edit snapping to grids = Ctrl + /

Close = Ctrl + W

Create a new Symbol from scratch = Ctrl + F8

Zoom in = Ctrl + +=

Zoom out = Ctrl + -_

Rotate 90º CW = Ctrl + Shift + 9

Rotate 90º CCW = Ctrl + Shift + 7
Timeline:-
F5 - Add simple frame

F6 - Add new Keyframe

F7 - Add blank Keyframe

F9 - Action Panel

F4 - Show/Hide All Panels

F10 - Keystroke Menu command mode

CTRL + ENTER - Test a Movie
Tools Panel:-
CTRL + G - Group

CTRL + SHIFT - G - Ungroup

CTRL + B - Break Apart

CTRL + A - Select All

CTRL + SHIFT + A - Deselect All

CTRL + C - Copy

CTRL + V - Paste

CTRL + SHIFT + V - Paste in Place

CTRL + D - Duplicate
Arranging:-
CTRL + Up Arrow - Move Ahead

CTRL + Down Arrow - Move Behind

CTRL + SHIFT + Up Arrow - Bring to Front

CTRL + SHIFT + Down Arrow - Send to Back

CTRL + ALT + 1 - Left Align

CTRL + ALT + 2 - Horizontal Center

CTRL + ALT + 3 - Right Align

CTRL + ALT + 4 - Top Align

CTRL + ALT + 5 - Vertical Center

CTRL + ALT + 6 - Bottom Align

CTRL + ALT + 7 - Distribute Widths

CTRL + ALT + 9 - Distribute Heights

CTRL + ALT + SHIFT + 7 - Make Same Width
CTRL + ALT + SHIFT + 9 - Make Same Height
Windows and Panels:-
F1 - Help

F4 - Show/Hide Panels

CTRL + K - Align Panel

CTRL + T - Transform

SHIFT + F9 -Color Mixer

CTRL + F9 - Color Swatches

CTRL + L - Show/Hide Library

F9 - Actions
If your screen is big enough you won't need these a lot...
CTRL + F3 - Properties Inspector

CTRL + F2 - Tools Panel

CTRL + ALT - T - Timeline

CTRL + M - Modify Movie Properties

CTRL + E - Toggle between Edit Movie& Edit Symbol Mode

CTRL + SHIFT + W - Show/Hide Work Area
Frames and Symbols:-
F5 - Add frame (extend the timeline)

SHIFT + F5 - Delete Frame

F6 - Add Key Frame (and copy over old contents)

SHIFT - F6 - Clear Key Frame

F7 - Add Blank Key Frame (and leave the stage empty)

F8 - Turn into Symbol

CTRL + F8 - Make new Symbol

Enter - Play Movie

< - Previous Frame

> - Next Frame

CTRL + ENTER - Test Movie

CTRL + SHIT + ENTER - Debug Movie

Home - Go to First Scene

End - Go to Last Scene

Page Up - Go to Previous Scene

Page Down - Go to Next Scene
Files:-
CTRL + N - New File

CTRL + O - Open File

CTRL + S - Save File

CTRL + R - Import Image/Sound/etc...

CTRL + SHIFT + O - Open as Library

SHIFT + F12 - Publish

CTRL + SHIFT + R - Export to .swf /.spl /.gif / etc...
View:-
CTRL + 1 - View movie at 100% size

CTRL + 4 - View movie at 400% size

CTRL + 8 - View movie at 800% size

CTRL + 2 - Show Frame

CTRL + 3 - Show All
Generate shortcut table:-
Menu Edit->Keyboard shortcuts
Keyboard Shortcuts for: Magnifier Tool:-
Toggle to the opposite magnifier= Alt
Keyboard Shortcuts for: Dropper Tool:-
Select a single color for both fill and outline= Shift Click

0 comments: