First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Chris Petersen | Website: http://www.petersenonline.net

Lets start with the Flash file. Create a typical Flash moive, then use the Text tool to write the words "Status Bar" anywhere on the page you like. Now make this into a Button by selecting it and pressing "Convert to Symbol" from the Insert menu. On the resulting dialog box select "Button" and enter any name you like, I chose statusBtn. Now double click the button so you are editing that movie clip. There should be 4 frames defined. Add a layer and on this layer draw a box around the word shake. Drag this box to the "Hit" Frame and return to the main scene. That box will act as the area of the button, regardless of the text. Next select "Actions" from the "Window" menu. This should bring up the Actionscript window. Select your newly created button and return to the action script window. You should be in Normal mode, so from the tree on the right select "Actions - FScommand" and it should insert the following code:

on (release) {
	fscommand ();

 Next at the bottom, where it says "Command" type "status" without the quotes and next to "Arguments" type the text that you would like to see in the status bar. Finally, select the first line of action script which says "on( release )" and at the bottom uncheck release and check roll over. The complete Action script should look like:

on (rollOver) {
	fscommand ("status", "Browser status set from within Flash!");

 Now you are well on your way to executing a Javascript command from Flash!

» Level Intermediate

Added: 2001-02-27
Rating: 8 Votes: 181
(10 being the highest)
» Author
I am a web developer specializing in Enterprise Development using Java. I work as a contractor and have only recently started dabbling in with Flash.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.