• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 4. Writing Code in Flash > Task: Send a Message to the Output Window

Task: Send a Message to the Output Window

The best way to become familiar with the Output window is to use it. Let's write a simple program that sends a message to the window.

1.
Start Flash MX and create a new movie.

2.
Select the default first frame of the movie and then open the Actions panel, if it is not already open. Expand the Actions panel so that it is much bigger than the default size.

3.
Use the pop-up menu in the upper-right corner of the Actions panel to set the Actions panel mode to Expert.

4.
Click in the script area of the Actions window so that you see an insertion cursor there.

5.
Type the following script in the Actions panel:

trace("Hello World");

The result should be an Actions panel that looks like Figure 4.1.

Figure 4.1. The Actions panel contains a simple one-line script that sends a message to the Output window.


6.
Choose Control, Test Movie to run the movie.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint