First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
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!

Comments

  • 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: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.