The number of frames per second is controlled by the default setup. You cannot have one part of a movie playing at 12 frames pre second and another playing at 8 frames per second. To change the default setup:
Go to: Modify > Document
You will see: Frame rate: 12 fps or something similar. The movie above is set at: 12 fps (frames per second).
If you wish change the setting. This will slow down or speed up the play rate of your movie.
Click: OK
Note: Remember that you can change the frame rate at any time.
With the Arrow Tool go to frame 50 in the time line and right click (Mac: Ctrl click) and select: Insert Frame
The time line with 50 frames.
Step Two: Display Text Box
You need a text box on stage so that the number can be displayed.
With the text tool selected, drag on stage to create an empty text box.
If the Property panel is closed, open it: Window > Properties
In the drop down menu select: Dynamic Text
For Variable name type: displayNumber
Do not get confused with instance name. If you type the name in the wrong box it will not work!
In the Property panel select a Font and Font colour. Tip: As soon as you have finished with the Text tool always go straight back to the Arrow tool . This stops you typing on stage by mistake.
Step Three: ActionScript
Right click on frame one and select: Actions
The Actions panel go to the View Options button and select: Expert Mode
Type the following code:
onEnterFrame=function(){ Â Â Â Â _root.displayNumber=_root._currentframe; }
Test your movie. To do this go to: Control > Test Movie
Your movie should display the current frame number.
Note: If you do not want to display the frame number of the main time line but the frame number of a movie clip, give the movie clip an instance name and change the second line of script to:
The aim of the tutorial is to learn how to create a drop down menu that will allow you to create a navigation system. This can be used to move from one part of a Flash movie to another, or to different web pages.
You will only need one button. Each instance of the button will have different text on top of the same original symbol. You will need your button to be in your Library. To do this:
Go to: Insert > New Symbol
For Name type: My Button
For Behavior select: Button
Click: OK
With the Rectangle tool draw a: Rectangle
If the Property Inspector is closed, open it: Window > Properties
With the Selection tool double click on the rectangle.
In the Property Inspector select any fill colour you may want: Fill Colour
Select any: Stroke colour
Select any: Stroke width
For W (width) type: 120
For H (height) type: 27
For X position type: 0
For Y position type: 0
Settings in the Property Inspector for the rectangle in the Up frame.
In the Timeline right click (Mac: Ctrl click) in the Over frame and select: Insert keyframe
With the Selection tool double click on the rectangle.
In the Property Inspector select a new: Fill colour
The Over frame.
Step Two: Creating a Symbol to Contain the Menu - Menu Button - Frame 1
It is best to have the menu inside a symbol, as it makes the menu much more flexible. Then you can have the menu on stage and move from frame to frame within the movie and the menu stays intact. You can also copy and paste the menu to a completely different movie and reuse it. If you build the menu on the main stage you have to re-build it for every new frame that you wish to use it in.
Go to: Insert > New Symbol
Type the name: Menu
Click: OK
For behavior select: Movie Clip
If your Library is not open, open it: Window > Library
Drag onto the stage: My button
In Property Inspector position the button at X: 0
In Property Inspector position the button at Y: 0
With the text tool , type on top of My Button: Menu
Open the Actions panel (Window > Actions) and attach the following actionscript to : My Button
on (release) { Â Â Â Â gotoAndStop(2); }
Note: Make sure you select gotoAndStop(2) notgotoAndPlay(2)
Attach the following actionscript to: frame 1
stop();
Frame 1 of the Menu symbol
Step Three: The Menu - Frame 2
Go to frame 2 and right click and select: Insert Keyframe
Attach the following actionscript to the Menu button in frame 2:
on (release) { Â Â Â Â gotoAndStop(1); }
Note: This button will now take you back to frame 1, the button in frame 1 takes you forward to frame 2.
Double click on the word Menu and type: Close Menu
When you have finished typing return to the Selection tool:
Close Menu Button in Frame 2.
Drag out three (or more) buttons from the Library and place them in a column next to the menu button.
Open the Align panel: Window > Design Panels > Align (ctrl+k)
Select all three buttons (use shift click to select multiple objects).
Deselect the Align to stage button (if it is selected):
Use the Align panel to get the distance between the buttons the same:
Use the Align panel to get the buttons in a straight line:
For X position type: 130
For Y position type: 0
The three new buttons correctly aligned.
With the Text tool , type on top of the buttons: Home, Next Page, webwasp
Your stage should look similar to this.
Place the following actions onto the: Home Button
on (release) { Â Â Â Â _root.gotoAndStop(10); }
Note: You need to type _root so that the button refers back to the main stage and not to frame 10 in the menu Symbol.
Place the following actions onto the: Next Page Button
on (release) { Â Â Â Â _root.gotoAndStop(20); }
Note: Takes you to frame 20 of the main stage.
Place the following actions onto the: webwasp Button
on (release) { Â Â Â Â getURL(“http://www.webwasp.co.uk”); }
Note: Takes you to a new web page.
Step Four: The Main Stage
If your Edit Bar is closed, open it: Window > Tool Bars > Edit Bar
Click on the Scene 1 button:
Note: This will take you back to the main stage. At this point your main stage should still be empty.
Attach the following actionscript to: frame 1
    stop();
In the timeline right click on frame 10 and select: Insert Keyframe
Type on stage Home and place any other content you may wish to have.
Go to frame 20 in the time line, right click and select: Insert Keyframe
Remove the word Home and replace it with something else (such as Frame 20). If you do not do this, you cannot see the difference between frame 10 and 20.
In the Timeline click on the Insert New Layer button:
In the Timeline click in frame 1 of this new layer. Select: Frame 1
If your Library is closed, open it: Window > Library
Drag onto stage the symbol: Menu
Hey presto you”ve finished your movie! So now it”s time to test.
Go to: Control > Test Movie
Step Five: Auto Retract the Menu - Layer 2
This is an section is an added feature. If you wish you can get the menu to auto-retract:
This Menu has an auto retract. Click on Menu then move the mouse to the right of the movie. The menu should close automatically.
Right click on the Menu button and select: Edit in Place
You can see the Menu tab at the top in the Edit Bar.
Double click on Layer 1 and re-name it to: Menu
In the timeline add a new Layer by clicking on the Insert Layer button:
Re-name this new Layer to: Retract
Drag the Retract Layer so that it is under the Menu Layer.
Right click on frame 2 of the Retract Layer and select: Insert Blank Keyframe
With the Brush tool draw a thick line right around the buttons. Make sure the brush marks do not touch the buttons or come too close to them.
Gray brush stroke going all the way around the buttons.
Make sure the line is not too close to the buttons.
Make sure the line does not touch the buttons.
Continue to brush in the area between the line and the edge of stage.
Brush marks go right up to the edge of stage.
Return to the Selection tool:
Right click the brush mark and select: Convert to Symbol
For Name type: Retract Button
For Behavior select: Button
Click: OK
Right click on this new Retract button and select: Edit in Place
Note:
This will enable you to edit the new button.
In the Timeline right click the Hit frame and select: Insert Keyframe
Note:
This makes a copy of the brush strokes in the hit area.
The hit area is now ready.
Click on the Keyframe (black dot) in the Up frame.
This should not only move you to the Up frame but select the brush stoke on stage. If it is not selected click on it to select it.
Delete the brush stroke from this frame by going to your keyboard and pressing: Delete
The Up frame is now empty.
We have now finished editing the button. Click on the at the top to return to editing the Menu.
The brush mark should now be a aqua blue.
Note: The aqua blue is transparent in the Movie
Attach the following actionscript to Retract button:
    on (rollOver){         gotoAndStop(1);     }
What this does is on roll-over go back to frame 1. This means that the movie will move automatically to frame 1 and the menu is closed in frame 1. Try it
The menu above is identical to the previous example except that the drop down section opens with a tween. The first part of the tween is masked so that the menu appears to come out of nowhere.
Cross Ref: To learn how to create a Tween see beginners tutorial: 02 Tweening
Cross Ref: To learn how to create a Mask see beginners tutorial: 06 Masks
Other Flash Menus Systems on this site
Sliding Menu: An Intermediate level tutorial on how to build a very flexible menu system based on actionscript. This is the menu system used on the webwasp home page. I used this as it is allows you to pull any menu, or several menus, on and off stage at once. You can also use the same actionscript to move other objects around the stage.
Swinging Menu: An Intermediate level tutorial for a menu that bounces on and off stage and looks great. Built with actionscript.
Scrolling Menus: An Intermediate level tutorial for a menu that scrolls.
One of the most unique, up-and-coming, uses of Flash is within the foreign real estate sector. Real Estate marketers, keen on providing a visually stimulating and comprehensive sales experience for their customers, often call on flash designers to create intricate visual portfolios of real estate offerings. Unlike other verticals, in the condo, hotel, and rental world Flash website intros and intense imagery are acceptable, if not rule of thumb. Text doesn't sell a nice vacation condo to a buyer. Instead, a clear, inviting, exciting layout of the property, beach view, and condo floor plans united inside a short Flash .swf file will catch a prospective buyer's attention, draw them in, and hopefully convert them into a sales lead.
Probably one of the most stunning and sought after vacation spots in the world right now is Costa Rica, a small Latin American nation located in beautiful Central America. Costa Rica has the best of both worlds: sweeping beach scapes of sand and palm trees from both the Caribbean and Pacific Ocean can be found within a short hour flight from the main international airport in capital city San Jose.
The pristine nature of many beach communities has spawned a new tourism based economy that has developers scrambling to build new a Costa Rica hotel on this devine beach property. The Costa Rica vacation rental market is competitive and becoming full of excellent opportunities for savvy buyers.
This is where Flash comes in. Most Costa Rica vacation condos can't be sold over the phone. Instead, it takes graphics, eye appeal, and excitement to capture a buyer. The same goes with Costa Rica beach condos which need graphical imagery to convince customers of their beauty and value over the internet. A typical Costa Rica vacation rental can range from $500 per week to $1500. On the top end, Costa Rica vacation luxury rentals start at $1500 and run gambit to over $2500. The money spent, however, is well worth it. Costa Rica beach condos go fast and advance reservations are required. So, if you know anyone who is interested in this wonderful, exciting get-away, tell them now!
As a result, traditional Costa Rica vacation rental and Costa Rica vacation hotels have had to create a very strong IT and Web design department, in addition to the standard walk-in real estate office. This fact is soley due to the global nature of the web: customers can't always visit first, so they chose to take a virtual tour instead. Thus, Costa Rica beach Condo developers count on a strong percentage of their sales being web-generated, in addition to standard brick and mortar operations.
What do these Flash designers use? In addition to stock photography, architectural layouts, and imagery, Flex and Action Script are employed to provide a 3 dimensional, "virtual tour" of these Costa Rica vacation rentals. The action script provides the programmer with the opportunity to fully animate condo tours, such that a prospective customer can feel as if he or she is actually inside the space they want to rent. In turn, because of the strong need of Flash, local web designers in Costa Rica have experienced high job growth and new employment opportunities. As always, foreign tourism teamed with local internet talent produces a dynamic, rich new economy that can literally change a country overnight. Considered a pioneer in employing such designers, most Costa Rica real estate groups prefer tradition website design. These flash-friendly companies generally emanate from the western side of Costa Rica, offering Jaco Beach real estate and accomodations.