<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3372001843010663899</id><updated>2011-04-21T12:29:56.862-07:00</updated><title type='text'>Flash Tutorial and Help</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>93</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5214705273146493969</id><published>2009-02-07T17:53:00.000-08:00</published><updated>2009-02-07T17:54:15.443-08:00</updated><title type='text'>Resources</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5214705273146493969?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5214705273146493969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/02/resources.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5214705273146493969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5214705273146493969'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/02/resources.html' title='Resources'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8911992974851368308</id><published>2009-01-28T16:18:00.001-08:00</published><updated>2009-01-28T16:18:31.942-08:00</updated><title type='text'>Creating Graphics: Applying Gradients</title><content type='html'>&lt;p&gt;This tutorial guides you through the process of using the gradient tools in  Macromedia Flash Basic 8 and Macromedia Flash Professional 8. With Flash, you  can create simple color gradients and complex gradient effects. In this  tutorial, you learn how to do some of both.&lt;/p&gt; &lt;p&gt;A &lt;em&gt;gradient&lt;/em&gt; is an area of a graphic where one color changes into  another color. Flash can create two main types of gradients: linear and radial.  Linear gradients change color along a single axis, such as horizontal or  vertical. A radial gradient changes color in an outward direction starting from  a focal point. You can adjust the direction of the gradient, its colors, the  location of the focal point, and many other properties of gradients. &lt;/p&gt; &lt;p&gt;The following illustrations show the two types of gradients:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_example1.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;A two-color linear gradient from red to black&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_example2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;A two-color radial gradient from red to black &lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;This tutorial takes you through the steps to create an illustration using an  assortment of gradients. &lt;/p&gt; &lt;p&gt;After examining the completed illustration, you'll begin by opening a starter  Flash document and end by publishing the document for web playback. The tutorial  should take approximately 20 minutes to complete. &lt;/p&gt; &lt;p&gt;Before you take this tutorial you should read Flash Basics, in &lt;em&gt;Getting  Started with Flash&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Examine the completed FLA file&lt;/p&gt; &lt;p&gt;Open the starter document&lt;/p&gt; &lt;p&gt;Apply a linear gradient&lt;/p&gt; &lt;p&gt;Create a radial gradient&lt;/p&gt; &lt;p&gt;Apply the finishing touches&lt;/p&gt; &lt;p&gt;Test the application&lt;/p&gt; &lt;p&gt;The tutorial in this chapter follows the order of a typical workflow for  creating a Flash application. Other workflows are also possible. &lt;/p&gt; &lt;p&gt;The tutorial workflow includes the following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Examine the completed FLA file allows you  to look at the completed Flash document.  &lt;/li&gt;&lt;li&gt;Open the starter document lets you begin  the tutorial with a FLA file that has some graphics already created for you. You  will apply gradient effects to these graphics.  &lt;/li&gt;&lt;li&gt;Apply a linear gradient shows you the  steps needed to apply a linear gradient with specific colors.  &lt;/li&gt;&lt;li&gt;Create a radial gradient shows you the  steps needed to apply a radial gradient and make adjustments to its focal point.   &lt;/li&gt;&lt;li&gt;Apply the finishing touches shows you the  steps for performing a transform operation on a gradient. A transform operation  is a change in an object's size or shape. You will also add a few more gradient  effects to complete the illustration.  &lt;/li&gt;&lt;li&gt;Test the application shows you how to  publish your Flash document to a SWF file and view it in a web browser.  &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8911992974851368308?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8911992974851368308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/creating-graphics-applying-gradients.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8911992974851368308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8911992974851368308'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/creating-graphics-applying-gradients.html' title='Creating Graphics: Applying Gradients'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6035043072586119055</id><published>2009-01-28T16:17:00.001-08:00</published><updated>2009-01-28T16:17:54.647-08:00</updated><title type='text'>Applying Gradients &gt; Examine the completed FLA file</title><content type='html'>&lt;p&gt;As you examine the finished version of an application you'll create, you will  also look at the Flash workspace. &lt;/p&gt; &lt;p&gt;In this section, you will complete the following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Open the authoring document  &lt;/li&gt;&lt;li&gt;Review the completed FLA file  &lt;/li&gt;&lt;li&gt;Close the completed FLA file &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;In subsequent sections, you'll go through the steps to create the application  yourself.&lt;/p&gt; &lt;h2&gt;Open the authoring document&lt;/h2&gt; &lt;p&gt;It's helpful to analyze the completed authoring document, which is a FLA  file, to see how the author designed the illustration and understand what you  are going to create. &lt;/p&gt; &lt;p&gt;The files for this tutorial are located in the Samples and Tutorials folder  in the Flash application folder. For many users, particularly in educational  settings, this folder is read-only. Before proceeding with the tutorial, you  should copy the entire gradient tutorial folder to the writable location of your  choice. &lt;/p&gt; &lt;p&gt;On most computers, you will find the Gradients tutorial folder in the  following locations:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;In Windows: &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash 8\Samples and  Tutorials\Tutorial Assets\Creating Graphics\Gradients.  &lt;/li&gt;&lt;li&gt;On the Macintosh: &lt;em&gt;boot drive&lt;/em&gt;/Applications/Macromedia Flash  8/Samples and Tutorials/Tutorial Assets/Creating Graphics/Gradients. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Copy the Gradients folder to another location on your hard disk that you have  write-access to. In the Gradients folder, you will find a Flash file called  gradients_finished.fla. Double-click the file to open it in Flash. You now see  the completed tutorial file in the Flash authoring environment. &lt;/p&gt; &lt;h2&gt;Review the completed FLA file&lt;/h2&gt; &lt;p&gt;In the completed FLA file, you will see the combined effects of several  gradients. The illustration looks like this:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/completed_fla.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;There are five gradients in the illustration:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;A gradient from black to green on the background.  &lt;/li&gt;&lt;li&gt;A gradient from black to green to black on the bottom of the eight ball.  &lt;/li&gt;&lt;li&gt;Another from white to black in the highlight on the top of the eight ball.  &lt;/li&gt;&lt;li&gt;A subtle gradient on the white circle surrounding the number "8."  &lt;/li&gt;&lt;li&gt;A radial gradient in the shadow beneath the eight ball. &lt;/li&gt;&lt;/ul&gt; &lt;h2&gt;Close the completed FLA file&lt;/h2&gt; &lt;p&gt;To close the document, select File &gt; Close.&lt;/p&gt; &lt;p&gt;If you prefer to keep the finished file open as a reference while working  with the starter file, be careful not to edit it or save any changes to it.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6035043072586119055?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6035043072586119055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-examine-completed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6035043072586119055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6035043072586119055'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-examine-completed.html' title='Applying Gradients &gt; Examine the completed FLA file'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6736522358459336246</id><published>2009-01-28T16:16:00.002-08:00</published><updated>2009-01-28T16:17:07.930-08:00</updated><title type='text'>Applying Gradients &gt; Open the starter document</title><content type='html'>&lt;p&gt;Now that you have seen the completed file, it is time to create your own  Flash document. To get started, you'll open a starter file that contains a few  graphics to which you will apply gradients. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;In Flash, select File &gt; Open.  &lt;/li&gt;&lt;li&gt;Navigate to the following directory:  &lt;ul&gt; &lt;li&gt;In Windows: &lt;em&gt;Hard Disk&lt;/em&gt;\Program Files\Macromedia\Flash 8\Samples and  Tutorials\Tutorial Assets\Creating Graphics\  &lt;/li&gt;&lt;li&gt;On the Macintosh: &lt;em&gt;Hard Disk&lt;/em&gt;/Applications/Macromedia Flash 8/Samples  and Tutorials/Tutorial Assets/Creating Graphics/ &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Open the gradients_start.fla file. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6736522358459336246?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6736522358459336246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-open-starter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6736522358459336246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6736522358459336246'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-open-starter.html' title='Applying Gradients &gt; Open the starter document'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-7538973760455339032</id><published>2009-01-28T16:16:00.001-08:00</published><updated>2009-01-28T16:16:39.163-08:00</updated><title type='text'>Apply a linear gradient</title><content type='html'>&lt;p&gt;In this section you will add a linear gradient to the background.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Click the Selection tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;Select the gray box in the layer named Background.  &lt;/li&gt;&lt;li&gt;Select Window &gt; Color Mixer to display the Color Mixer panel.  &lt;/li&gt;&lt;li&gt;In the Color Mixer's Type pop-up menu, select Linear.  &lt;/li&gt;&lt;li&gt;Double-click the right gradient color swatch and select the color green  (#006600).  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/color_mixer1.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Selecting the right gradient color swatch in the Color Mixer&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/color_picker1.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Selecting the color green #006600 in the Color Picker&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Double-click the left gradient color swatch and select the color black  (#000000).  &lt;/li&gt;&lt;li&gt;Select the Gradient Transform tool from the Tools panel. The Gradient  Transform controls appear on the Stage around the gradient.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_transform_tool.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The Gradient Transform tool&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Drag the Gradient Rotate handle to rotate the linear gradient clockwise as  shown. &lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_rotate_handle.jpg" border="0" /&gt;  &lt;p&gt;&lt;em&gt;The Gradient Rotate handle&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_transform_gesture.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Rotating the gradient clockwise&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Lock the Background layer in the Timeline to prevent further changes to this  layer.  &lt;/li&gt;&lt;li&gt;Select File &gt; Save to save your FLA file. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-7538973760455339032?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/7538973760455339032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-linear-gradient.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7538973760455339032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7538973760455339032'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-linear-gradient.html' title='Apply a linear gradient'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8162397757273998258</id><published>2009-01-28T16:15:00.000-08:00</published><updated>2009-01-28T16:16:09.267-08:00</updated><title type='text'>Create a radial gradient</title><content type='html'>&lt;p&gt;Next, you will add a radial gradient to the black eight ball.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Double-click the black circle in the layer called Ball. This opens the group  containing the eight-ball shape.  &lt;/li&gt;&lt;li&gt;Select the black circle shape. You will apply a gradient to this shape. Do  not select the number "8" on the eight ball.  &lt;/li&gt;&lt;li&gt;In the Color Mixer panel select Radial from the Type pop-up menu. Select  Mirror Overflow mode from the Overflow pop-up menu.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/type_overflow_menus.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The correct Radial Type and Mirror Overflow settings&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Double-click the left gradient color swatch and select the color black  (#000000).  &lt;/li&gt;&lt;li&gt;Double-click the right gradient color swatch and type  &lt;strong&gt;002200&lt;/strong&gt; into the color text box. Press Enter.  &lt;/li&gt;&lt;li&gt;Drag the left gradient color swatch to the right about three-fourths of the  way as shown in the following illustration. This makes the green part of the  gradient appear only in the outer 25% of the ball shape.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/color_mixer2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Dragging a gradient color swatch&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Zoom tool from the Tools panel and click the circle shape to  magnify it.  &lt;/li&gt;&lt;li&gt;Select the Gradient Transform tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;Rotate the radial gradient 90º clockwise by dragging the Gradient Rotate  handle.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/transform_controls.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Dragging to rotate the gradient 90º clockwise.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Focal Point control and drag it near the top of the circle.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/focus_point_control.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Dragging the Focal Point control toward the top of the circle  shape&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the center control point and drag the entire gradient upward a short  distance as shown in the following illustration. The mirrored overflow gradient  is at the bottom of the circle.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/center_control_point.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Dragging the center control point upwards&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Selection tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;Double-click the Zoom tool to return the Stage area to a view of 100%.  &lt;/li&gt;&lt;li&gt;Double-click the Stage area to deselect the eight-ball group.  &lt;/li&gt;&lt;li&gt;Select File &gt; Save to save your FLA file. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8162397757273998258?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8162397757273998258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-radial-gradient.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8162397757273998258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8162397757273998258'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-radial-gradient.html' title='Create a radial gradient'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1578634162048486934</id><published>2009-01-28T16:14:00.004-08:00</published><updated>2009-01-28T16:15:14.340-08:00</updated><title type='text'>Create a transform gradient with a shape</title><content type='html'>&lt;p&gt;In this section, you will create a gradient and then use the Free Transform  tool to change its shape.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select the Shadow layer in the Timeline.  &lt;/li&gt;&lt;li&gt;Select the Oval tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;Hold down Shift and then drag on the Stage with the Oval tool to draw a  circle approximately 150 pixels square. This should be about the same diameter  as the eight ball.  &lt;/li&gt;&lt;li&gt;In the Color Mixer's Type menu, select Radial.  &lt;/li&gt;&lt;li&gt;Move the left gradient color swatch all the way to the left. You should have  one swatch all the way to the left and one all the way to the right.  &lt;/li&gt;&lt;li&gt;Double-click the left swatch and select the color black (#000000) in the  Color Picker.  &lt;/li&gt;&lt;li&gt;Double-click the right swatch to display the Color Picker.  &lt;/li&gt;&lt;li&gt;Select the color black (#000000).  &lt;/li&gt;&lt;li&gt;In the Color Picker, drag the Alpha slider down to zero. This creates a  gradient from black to transparent, allowing the green background to show  through the edge of the circle you just drew.  &lt;/li&gt;&lt;li&gt;Select the Gradient Transform tool from the Tools panel and drag the Focal  Point control of the gradient back to the center of the circle.  &lt;/li&gt;&lt;li&gt;Select the Free Transform tool and scale the circle along the &lt;em&gt;y&lt;/em&gt;  (vertical) axis by dragging the top-center handle downward as shown in the  following illustration.&lt;/li&gt;&lt;li&gt;Select the Selection tool from the Tools panel.  &lt;/li&gt;&lt;li&gt;Drag the shadow shape under the eight ball with the Selection tool.  &lt;/li&gt;&lt;li&gt;Click outside the Stage to deselect the shadow.  &lt;/li&gt;&lt;li&gt;Select File &gt; Save to save your FLA file. &lt;/li&gt; &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1578634162048486934?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1578634162048486934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-transform-gradient-with-shape.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1578634162048486934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1578634162048486934'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-transform-gradient-with-shape.html' title='Create a transform gradient with a shape'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5915834550081086315</id><published>2009-01-28T16:14:00.003-08:00</published><updated>2009-01-28T16:14:45.158-08:00</updated><title type='text'>Applying Gradients &gt; Apply the finishing touches</title><content type='html'>&lt;p&gt;To complete the illustration, you will apply two more linear gradients: one  to the white circle on the eight ball and one to make a highlight on the top of  the eight ball. &lt;/p&gt; &lt;h2&gt;&lt;a name="195194"&gt;&lt;/a&gt;Apply a gradient to the white circle on the eight  ball&lt;/h2&gt; &lt;p&gt;Next you will add a gradient to the white circle on the eight ball  graphic.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select the Selection tool from the Tools panel.  &lt;/li&gt;&lt;li&gt;Double-click the eight ball group to edit the group.  &lt;/li&gt;&lt;li&gt;Double-click the white circle group.  &lt;/li&gt;&lt;li&gt;Select the white circle shape.  &lt;/li&gt;&lt;li&gt;In the Color Mixer panel, assign the white circle shape a linear gradient by  selecting Linear from the Type menu.  &lt;/li&gt;&lt;li&gt;Select Nonrepeating from the Overflow menu.  &lt;/li&gt;&lt;li&gt;Drag the left gradient color swatch all the way to the left and double-click  it.  &lt;/li&gt;&lt;li&gt;Select the color white (#FFFFFF) from the Color Picker.  &lt;/li&gt;&lt;li&gt;Set the Alpha value for the white color swatch to 100%.  &lt;/li&gt;&lt;li&gt;Drag the right color swatch all the way to the right and double-click it.  &lt;/li&gt;&lt;li&gt;Select the color black (#000000) from the Color Picker.  &lt;/li&gt;&lt;li&gt;Set the Alpha value for the black color swatch to 100%.  &lt;p&gt;Your gradient settings should match those in the following illustration:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/color_mixer3.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The Color Mixer with the correct settings for the gradient on the white  circle&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Gradient Transform tool from the Tools panel.  &lt;/li&gt;&lt;li&gt;Drag the Gradient Rotate handle approximately 120º clockwise.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_rotate.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The gradient rotated 120º&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Selection tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;Double-click the Stage twice to exit the white circle group and the  eight-ball group.  &lt;/li&gt;&lt;li&gt;Select File &gt; Save to save your FLA file. &lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;&lt;a name="198761"&gt;&lt;/a&gt;Apply a linear gradient to the highlight&lt;/h2&gt; &lt;p&gt;In this section you will apply a linear gradient.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Click the red X icon in the layer named Highlight to reveal the shape in  that layer. The shape appears at the top of the eight ball.  &lt;/li&gt;&lt;li&gt;With the Selection tool, double-click the highlight shape to edit its group.   &lt;/li&gt;&lt;li&gt;Select the highlight shape.  &lt;/li&gt;&lt;li&gt;In the Color Mixer, select Linear from the Type menu.  &lt;/li&gt;&lt;li&gt;Select Non-repeating from the Overflow menu.  &lt;/li&gt;&lt;li&gt;Drag the left gradient color swatch all the way to the left and double-click  it.  &lt;/li&gt;&lt;li&gt;Select the color white (#FFFFFF) from the Color Picker.  &lt;/li&gt;&lt;li&gt;Set the Alpha value for the left swatch to 0%.  &lt;/li&gt;&lt;li&gt;Drag the right gradient color swatch all the way to the right and  double-click it.  &lt;/li&gt;&lt;li&gt;Select the color white from the Color Picker.  &lt;/li&gt;&lt;li&gt;Set the Alpha value for the right swatch to 75%.  &lt;p&gt;Your gradient settings should match those in the following illustration:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/color_mixer4.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The Color Mixer with the correct settings for the gradient on the  highlight shape&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;With the highlight shape still selected, select the Gradient Transform tool  from the Tools panel.  &lt;/li&gt;&lt;li&gt;Drag the Gradient Rotate control 90º counterclockwise.  &lt;/li&gt;&lt;li&gt;Drag the Gradient Scale control downward until it touches the top of the  highlight shape.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_scale_control.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The Gradient Scale control&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/gradient_scale_control2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Dragging the Gradient Scale control downward to touch the highlight  shape&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the Selection tool from the Tools panel.  &lt;/li&gt;&lt;li&gt;Double-click outside the Stage twice to deselect the highlight group.  &lt;p&gt;The finished Flash illustration looks like this:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/finished_illustration.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select File &gt; Save to save your FLA file. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5915834550081086315?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5915834550081086315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-apply-finishing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5915834550081086315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5915834550081086315'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-apply-finishing.html' title='Applying Gradients &gt; Apply the finishing touches'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4931355674983327677</id><published>2009-01-28T16:14:00.001-08:00</published><updated>2009-01-28T16:14:16.051-08:00</updated><title type='text'>Applying Gradients &gt; Test the application</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;/h1&gt; &lt;p&gt;At any point during authoring, you can test how your application plays as a  SWF file. Because this tutorial contains no animation or interactivity, the file  will look the same in test mode as it does in authoring mode.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select File &gt; Save to save your FLA file.  &lt;/li&gt;&lt;li&gt;Select Control &gt; Test Movie.  &lt;/li&gt;&lt;li&gt;When you finish viewing the application, close the SWF file by clicking the  close box in the test window. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;You have now successfully applied a variety of gradients in Flash and created  an attractive and realistic-looking illustration. By using the gradient tools in  Flash, you can create an infinite range of visually interesting graphics and  effects.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4931355674983327677?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4931355674983327677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-test-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4931355674983327677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4931355674983327677'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/applying-gradients-test-application.html' title='Applying Gradients &gt; Test the application'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2235635171761805914</id><published>2009-01-28T16:13:00.003-08:00</published><updated>2009-01-28T16:13:40.569-08:00</updated><title type='text'>Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)</title><content type='html'>&lt;p&gt;This tutorial guides you through the process of creating eye-catching graphic  effects using some of the authoring features in Macromedia Flash Professional 8  (Filters are not available in Flash Basic). By using the graphic filters and  blend modes available in Flash, you can transform ordinary graphic objects into  much more visually compelling content.&lt;/p&gt; &lt;p&gt;A graphic filter is a method that processes the pixels of a graphic object to  produce a specific effect. For example, you can apply a blur filter to an object  to make its edges appear softer, or you can apply a drop shadow filter to an  object to make it appear with a shadow behind it.&lt;/p&gt; &lt;p&gt;A blend mode is a method of making the colors of a graphic object interact  with the colors of other graphic objects beneath it. For example, by using the  Lighten blend mode, you can make the parts of an object appear lighter in color  to varying degrees depending on the colors of the objects beneath it.&lt;/p&gt; &lt;p&gt;If you have not already done so, Macromedia recommends that before you take  this tutorial you read Flash  Basics in &lt;em&gt;Getting Started with Flash&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Review your task&lt;/p&gt; &lt;p&gt;Open the starter document&lt;/p&gt; &lt;p&gt;Apply filters and blends&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2235635171761805914?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2235635171761805914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/creating-graphics-apply-graphic-filters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2235635171761805914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2235635171761805914'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/creating-graphics-apply-graphic-filters.html' title='Creating Graphics: Apply Graphic Filters and Blends (Flash Professional Only)'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-21342193607895240</id><published>2009-01-28T16:13:00.001-08:00</published><updated>2009-01-28T16:13:17.023-08:00</updated><title type='text'>Review your task</title><content type='html'>&lt;p&gt;In this tutorial, you will add some graphics to the Stage and apply filters  to them to create a realistic-looking image of a pool table with a narrow depth  of field. The balls in the foreground and background will appear out of focus,  as if seen through a camera. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/finished_fla_stage.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The completed FLA file&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To see the completed FLA file (Filters&amp;amp;Blends_finished.fla), browse to  one of the following locations:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;In Windows: &lt;em&gt;Hard Disk&lt;/em&gt;\Program Files\Macromedia\Flash 8\Samples and  Tutorials\Tutorial Assets\Creating Graphics\Filters and Blends  &lt;/li&gt;&lt;li&gt;On the Macintosh: &lt;em&gt;Hard Disk&lt;/em&gt;/Applications/Macromedia Flash 8/Samples  and Tutorials/Tutorial Assets/Creating Graphics/Filters and Blends &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-21342193607895240?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/21342193607895240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/review-your-task.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/21342193607895240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/21342193607895240'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/review-your-task.html' title='Review your task'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-9005823985829679312</id><published>2009-01-28T16:12:00.005-08:00</published><updated>2009-01-28T16:12:58.412-08:00</updated><title type='text'>Apply Graphic Filters and Blends (Flash Professional Only) &gt; Open the starter document</title><content type='html'>&lt;h1&gt;Open the starter document&lt;/h1&gt; &lt;p&gt;Now that you have seen the document you will create, it is time to create  your own version of the document. The first thing to do is open the starter  document, which contains the graphic objects you will use with the filter and  blend features of Flash.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In Flash, select File &gt; Open.  &lt;/li&gt;&lt;li&gt;Browse to one of the following locations:  &lt;ul&gt; &lt;li&gt;In Windows: &lt;em&gt;Hard Disk&lt;/em&gt;\Program Files\Macromedia\Flash 8\Samples and  Tutorials\Tutorial Assets\Creating Graphics\Filters and Blends  &lt;/li&gt;&lt;li&gt;On the Macintosh: &lt;em&gt;Hard Disk&lt;/em&gt;/Applications/Macromedia Flash 8/Samples  and Tutorials/Tutorial Assets/Creating Graphics/Filters and Blends &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Select the file named Filters&amp;amp;Blends_start.fla and click Open.  &lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;As you complete the tutorial, remember to save your work  frequently.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-9005823985829679312?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/9005823985829679312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-graphic-filters-and-blends-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9005823985829679312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9005823985829679312'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-graphic-filters-and-blends-flash.html' title='Apply Graphic Filters and Blends (Flash Professional Only) &gt; Open the starter document'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5805427857369843674</id><published>2009-01-28T16:12:00.003-08:00</published><updated>2009-01-28T16:12:34.243-08:00</updated><title type='text'>Apply a filter</title><content type='html'>&lt;p&gt;The next step is to apply a blur filter to the &lt;code&gt;9ball&lt;/code&gt; movie clip  to make it appear out of focus, as if it is in the foreground of the Stage.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;With the &lt;code&gt;9ball&lt;/code&gt; instance still selected, click the Filters tab  in the Property inspector.  &lt;/li&gt;&lt;li&gt;In the Filters tab, click Add Filter and select Blur from the pop-up menu.  &lt;/li&gt;&lt;li&gt;Drag the BlurX slider until the BlurX and BlurY value is 19.  &lt;p&gt;The BlurX and BlurY values are constrained to each other by default. Click  the lock icon if they are not.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click the Properties tab of the Property inspector.  &lt;/li&gt;&lt;li&gt;In the Property inspector, enter the following values in the W, H, X, and Y  text boxes:  &lt;p&gt;W: &lt;strong&gt;210&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;H: &lt;strong&gt;235&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;X: &lt;strong&gt;315&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Y: &lt;strong&gt;155&lt;/strong&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click outside the Stage to deselect the &lt;code&gt;9ball&lt;/code&gt; instance. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5805427857369843674?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5805427857369843674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-filter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5805427857369843674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5805427857369843674'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-filter.html' title='Apply a filter'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4941510706136030628</id><published>2009-01-28T16:12:00.001-08:00</published><updated>2009-01-28T16:12:17.592-08:00</updated><title type='text'>Apply filters and blends to the cue ball</title><content type='html'>&lt;p&gt;The last step is to use a color effect and a filter to make the cue ball  appear to be in the background of the Stage.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Drag the CueBall movie clip from the Library panel to the upper-left corner  of the Stage.  &lt;/li&gt;&lt;li&gt;With the new CueBall instance still selected on the Stage, go to the  Transform panel and enter &lt;strong&gt;70&lt;/strong&gt; in the W (Width) and H (Height)  text boxes.  &lt;p&gt;This makes the CueBall instance appear smaller than the 8ball instance.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;With the CueBall instance still selected on the Stage, go to the Property  inspector and select Brightness from the Color menu.  &lt;p&gt;A Brightness Amount slider appears to the right of the Color menu.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Drag the Brightness Amount slider until the value is -48%.  &lt;/li&gt;&lt;li&gt;Enter the following values in the W, H, X, and Y text boxes:  &lt;p&gt;W: &lt;strong&gt;105&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;H: &lt;strong&gt;115&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;X: &lt;strong&gt;95&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Y: &lt;strong&gt;105&lt;/strong&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;With the CueBall instance still selected on the Stage, click the Filters tab  in the Property inspector.  &lt;/li&gt;&lt;li&gt;Click Add Filter and select Blur from the Filter pop-up menu.  &lt;/li&gt;&lt;li&gt;Drag the BlurX slider until the BlurX and BlurY values are each 13.  &lt;p&gt;These text boxes are constrained to match each other by default. Click the  lock icon if they are not.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click outside the Stage to deselect the CueBall instance. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;You have now applied the graphic effects to create a realistic look of depth.  &lt;/p&gt; &lt;p&gt;For more information about using filters and blends, see Using Filters and Blends (Flash  Professional only) in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4941510706136030628?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4941510706136030628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-filters-and-blends-to-cue-ball.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4941510706136030628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4941510706136030628'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-filters-and-blends-to-cue-ball.html' title='Apply filters and blends to the cue ball'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4703126150358856430</id><published>2009-01-28T16:11:00.005-08:00</published><updated>2009-01-28T16:11:58.223-08:00</updated><title type='text'>Text: Add Text to a Document</title><content type='html'>&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; "&gt;Macromedia Flash Basic 8 and Macromedia Flash Professional 8 provide a  variety of text features and options. This lesson introduces you to the three  primary types of text you can add to a document. You can add &lt;em&gt;static  text&lt;/em&gt; for titles, labels, or other text content you want to appear in a  document. You can also use &lt;em&gt;input text&lt;/em&gt; options to allow viewers to  interact with your Flash application--for example, to enter their name or other  information in a form. The third type of text is &lt;em&gt;dynamic text&lt;/em&gt;. You use  dynamic text fields to display text that changes based on criteria you specify.  For example, you might use a dynamic text field to add values stored in other  text fields, such as the sum of two numbers. This tutorial shows you how to add  text and text fields to a Flash document.&lt;/span&gt;&lt;br /&gt;&lt;/h1&gt; &lt;p&gt;After taking this lesson, be sure to explore additional text options  described in "Working with Text" in &lt;em&gt;Using Flash&lt;/em&gt;. &lt;/p&gt; &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Set up your workspace&lt;/p&gt; &lt;p&gt;Create an expanding-width text block&lt;/p&gt; &lt;p&gt;Create a fixed-width text block&lt;/p&gt; &lt;p&gt;Edit text and change font attributes&lt;/p&gt; &lt;p&gt;Select device fonts&lt;/p&gt; &lt;p&gt;Add an input text field&lt;/p&gt; &lt;p&gt;Copy a text field&lt;/p&gt; &lt;p&gt;Assign instance names to text fields&lt;/p&gt; &lt;p&gt;Create a dynamic text field&lt;/p&gt; &lt;p&gt;Specify format options&lt;/p&gt; &lt;p&gt;View ActionScript for the dynamic text  field&lt;/p&gt; &lt;p&gt;Test the SWF file&lt;/p&gt; &lt;p&gt;Check spelling&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4703126150358856430?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4703126150358856430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4703126150358856430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4703126150358856430'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document.html' title='Text: Add Text to a Document'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3688430216459004826</id><published>2009-01-28T16:11:00.003-08:00</published><updated>2009-01-28T16:11:33.095-08:00</updated><title type='text'>Text: Add Text to a Document &gt; Set up your workspace</title><content type='html'>&lt;p&gt;First, you'll open the start file for the lesson and set up your workspace to  use an optimal layout for taking lessons.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;To open your start file, in Flash select File &gt; Open and navigate to  the file:  &lt;ul&gt; &lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\Text\Add Text to a Document and  double-click text_start.fla.  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/Text/Add Text to a Document and  double-click text_start.fla. &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Add Text to a Document folder contains completed versions of the tutorial  FLA files for your reference.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Select File &gt; Save As and save the document with a new name, in the same  folder, to preserve the original start file and to preserve the file's link to  dependent files.  &lt;/li&gt;&lt;li&gt;Select Window &gt; Workspace Layout &gt; Default to modify your workspace  for taking lessons.  &lt;/li&gt;&lt;li&gt;In the Stage View pop-up menu, in the upper-right side of the Timeline,  select Show Frame to view both the Stage and the workspace.  &lt;/li&gt;&lt;li&gt;In the Tools panel, click the Selection tool. Then in the Timeline, click  the Static Text layer to select the layer you'll work in. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3688430216459004826?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3688430216459004826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-set-up-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3688430216459004826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3688430216459004826'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-set-up-your.html' title='Text: Add Text to a Document &gt; Set up your workspace'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6560714600768280064</id><published>2009-01-28T16:11:00.001-08:00</published><updated>2009-01-28T16:11:14.974-08:00</updated><title type='text'>Create an expanding-width text block</title><content type='html'>&lt;p&gt;You can define the size of a text block, or you can use a text block that  expands to fit the text you write. You'll begin this lesson by simply adding  text to a document.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Click in a blank area in the workspace to make sure no Timeline frames or  objects on the Stage are selected.  &lt;/li&gt;&lt;li&gt;In the Tools panel, select the Text tool.  &lt;/li&gt;&lt;li&gt;In the text Property inspector, set the following options:  &lt;ul&gt; &lt;li&gt;In the Text Type pop-up menu, select Static text, if it isn't already  selected.  &lt;/li&gt;&lt;li&gt;For Font, select Arial.  &lt;/li&gt;&lt;li&gt;For Font Size, enter &lt;strong&gt;13&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Click the text color box and select the gray with a hexadecimal value of  #666666.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/colorPickera.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select Align Left, if it isn't already selected. &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;In the Timeline, select the Static Text layer.  &lt;/li&gt;&lt;li&gt;With the Text tool still selected, click the Stage along the left edge of  Text 1 guide, and type &lt;strong&gt;Trio ZX2004 Safety Features&lt;/strong&gt;.  &lt;p&gt;By typing with the Text tool selected, you create a one-line text block that  expands as you type. An expanding-width one-line static text block has a round  handle in the upper-right corner.&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/textHandle.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;If necessary, align the text above the Text 1 guide by clicking the  Selection tool in the Tools panel and dragging the text that you typed to the  guide. &lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Text 1 guide is on a guide layer, which doesn't appear in your SWF  file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6560714600768280064?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6560714600768280064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-expanding-width-text-block.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6560714600768280064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6560714600768280064'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-expanding-width-text-block.html' title='Create an expanding-width text block'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2626462809217006235</id><published>2009-01-28T16:10:00.005-08:00</published><updated>2009-01-28T16:10:57.761-08:00</updated><title type='text'>Create a fixed-width text block</title><content type='html'>&lt;p&gt;In addition to creating a line of text that expands as you type, you can  create a text block that has a fixed width. Text that you enter into a  fixed-width text block wraps to the next line at the edge of the block.&lt;/p&gt; &lt;p&gt;You'll now create a static text block with fixed dimensions.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Verify that the Static Text layer is still selected in the Timeline, and use  the Selection tool to deselect any objects on the Stage or Timeline frames  (click in the workspace, away from objects)  &lt;/li&gt;&lt;li&gt;In the Tools panel, select the Text tool.  &lt;/li&gt;&lt;li&gt;In the Property inspector, change the text size to 10 points.  &lt;/li&gt;&lt;li&gt;On the Stage, drag your pointer over the area of the Text 2 guide.  &lt;p&gt;An extendable one-line static text block has a round handle in the  upper-right corner, and a fixed-width static text block has a square handle.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Inside the text block that you created, type &lt;strong&gt;Want to learn more?  &lt;/strong&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/textFxdHandle.jpg" border="0" /&gt;&lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;You can drag the square handle for a text block to change its width.  Additionally, you can double-click a square handle to convert it into a round  expanding handle.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;If necessary, align the text by clicking the Selection tool in the Tools  panel and dragging the text that you typed above the Text 2 guide. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2626462809217006235?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2626462809217006235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-fixed-width-text-block.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2626462809217006235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2626462809217006235'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-fixed-width-text-block.html' title='Create a fixed-width text block'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1220885107094392883</id><published>2009-01-28T16:10:00.003-08:00</published><updated>2009-01-28T16:10:42.873-08:00</updated><title type='text'>Edit text and change font attributes</title><content type='html'>&lt;p&gt;When you select text, the Property inspector displays standard type  formatting features. You can use the Property inspector to change font and size  properties for a selected text object.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Tools panel, click the Selection tool. Double-click the text on the  Stage that reads "Submit your contact information."  &lt;/li&gt;&lt;li&gt;Select the letter S then type &lt;strong&gt;Please s&lt;/strong&gt;, so that the text  now reads "Please submit your contact information."  &lt;/li&gt;&lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/bold.gif" border="0" /&gt;In the Tools panel,  click the Selection tool. Use the Property inspector to select the bold style.  &lt;/li&gt;&lt;li&gt;Click the text Fill Color control and select a different text color, such as  another shade of gray. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1220885107094392883?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1220885107094392883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/edit-text-and-change-font-attributes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1220885107094392883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1220885107094392883'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/edit-text-and-change-font-attributes.html' title='Edit text and change font attributes'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2296372120238358885</id><published>2009-01-28T16:10:00.001-08:00</published><updated>2009-01-28T16:10:29.097-08:00</updated><title type='text'>Select device fonts</title><content type='html'>&lt;p&gt;When you use a font installed on your system in a Flash document, Flash  embeds the font information in the Flash SWF file to ensure that the font is  displayed properly. In addition to embedding fonts, you can use the device fonts  option. This option finds the fonts on a viewer's computer that most closely  resemble the specified device font. You can use device fonts only with static  text.&lt;/p&gt; &lt;p&gt;You'll specify that the selected text uses device fonts. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;With the "Please submit your contact information" text still selected on the  Stage, in the Font pop-up menu in the Property inspector, select _sans.  &lt;/li&gt;&lt;li&gt;In the Property inspector, select Use Device Fonts.  &lt;p&gt;You will not see a difference in the text if you have the Arial font  installed on your computer. &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2296372120238358885?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2296372120238358885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/select-device-fonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2296372120238358885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2296372120238358885'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/select-device-fonts.html' title='Select device fonts'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5902449718278819975</id><published>2009-01-28T16:09:00.006-08:00</published><updated>2009-01-28T16:10:11.702-08:00</updated><title type='text'>Add an input text field</title><content type='html'>&lt;p&gt;You can use an input text field to allow viewers an opportunity to interact  with your Flash application. For example, input text fields offer an easy way to  create forms. &lt;/p&gt; &lt;p&gt;In a later lesson (select Help &gt; Flash Tutorials &gt; ActionScript: Create  a Form with Conditional Logic and Send Data), you'll learn how to use an input  text field to send data from Flash to a server. Now, you'll add a text field  where viewers will enter their first name.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Timeline, select the Input Text layer.  &lt;/li&gt;&lt;li&gt;Use the Selection tool to click in the workspace, away from the objects on  the Stage.  &lt;/li&gt;&lt;li&gt;In the Tools panel, select the Text tool.  &lt;/li&gt;&lt;li&gt;In the text Property inspector, set the following options:  &lt;ul&gt; &lt;li&gt;Select Input Text in the Text Type pop-up menu  &lt;/li&gt;&lt;li&gt;Select Arial in the Font pop-up menu.  &lt;/li&gt;&lt;li&gt;For the font size, enter &lt;strong&gt;8&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Click the text color box and select a shade of dark blue.  &lt;/li&gt;&lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/text_alias.gif" border="0" /&gt;Select the  Alias Text button.  &lt;p&gt;The Alias Text button renders text so that it appears more readable at small  sizes. For input text, this option is supported if the end user has Macromedia  Flash Player 7 or later. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/text_show_border.gif" border="0" /&gt;Select  Single Line in the Line Type pop-up menu, and verify that Show Border Around  Text is selected.  &lt;p&gt;Single Line displays the text as one line. Show Border Around Text indicates  the boundaries of the text field with a visible border.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;On the Stage, drag the pointer in the area to the right of the First Name  text to create an input text field.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/textInput_drawn.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;If necessary, use the Selection tool to reposition the input text field.  &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5902449718278819975?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5902449718278819975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-input-text-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5902449718278819975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5902449718278819975'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-input-text-field.html' title='Add an input text field'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6555241351974371597</id><published>2009-01-28T16:09:00.005-08:00</published><updated>2009-01-28T16:09:53.619-08:00</updated><title type='text'>Copy a text field</title><content type='html'>&lt;p&gt;One way to quickly duplicate an object on the Stage is to press Alt while  dragging the object. The original object remains in place, allowing you to drag  the duplicate. You'll press Alt to create two copies of the input text field  that you created.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the Stage, with the Selection tool selected, click the input text field  that you created and press Alt. Drag a copy of the text field to the right of  Last Name.  &lt;/li&gt;&lt;li&gt;Alt-click the input text field that you just dragged, and then drag the new  copy of the field to eMail Address. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6555241351974371597?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6555241351974371597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/copy-text-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6555241351974371597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6555241351974371597'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/copy-text-field.html' title='Copy a text field'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4253351359479875279</id><published>2009-01-28T16:09:00.003-08:00</published><updated>2009-01-28T16:09:37.852-08:00</updated><title type='text'>Assign instance names to text fields</title><content type='html'>&lt;p&gt;An input text field on the Stage is an instance of the ActionScript TextField  object, to which you can apply properties and methods. As a best practice, you  should name text field instances so that you or others working on the project  can refer to the instance in ActionScript.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select the input text field that you placed next to First Name. In the  Property inspector, enter &lt;strong&gt;firstName_txt&lt;/strong&gt; in the Instance Name  text box.  &lt;/li&gt;&lt;li&gt;Select the input text field that you placed next to Last Name. In the  Property inspector, enter &lt;strong&gt;lastName_txt &lt;/strong&gt;in the Instance Name  text box.  &lt;/li&gt;&lt;li&gt;Select the input text field that you placed next to eMail Address. In the  Property inspector, enter &lt;strong&gt;eMail_txt&lt;/strong&gt; in the Instance Name text  box. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;To learn more about the TextField object, see "Working with Text" in  &lt;em&gt;Using ActionScript in Flash&lt;/em&gt;. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4253351359479875279?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4253351359479875279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/assign-instance-names-to-text-fields.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4253351359479875279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4253351359479875279'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/assign-instance-names-to-text-fields.html' title='Assign instance names to text fields'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1990937324531598589</id><published>2009-01-28T16:09:00.001-08:00</published><updated>2009-01-28T16:09:21.433-08:00</updated><title type='text'>Create a dynamic text field</title><content type='html'>&lt;p&gt;Dynamic text can display text from external sources at runtime. Next, you'll  create a dynamic text field that links to an external text file. The external  text file you'll use is named safetyFeatures.txt. It is in the same folder as  the lesson FLA file. The FLA file already contains ActionScript that displays  the text when you test or publish the document.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Timeline, select the Dynamic Text layer. Use the Selection tool to  click in the workspace, and to deselect any objects.  &lt;/li&gt;&lt;li&gt;Select the Text tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;In the text Property inspector, set the following options:  &lt;ul&gt; &lt;li&gt;Select Dynamic Text from the Text Type pop-up menu.  &lt;/li&gt;&lt;li&gt;For Text Attributes, set Verdana as the text type, with a font size  of &lt;strong&gt;6&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;For Line Type, select Multiline to ensure the text wraps correctly.  &lt;/li&gt;&lt;li&gt;Click the text color box and select a dark shade of gray.  &lt;/li&gt;&lt;li&gt;Select Align Left as a paragraph attribute, if it isn't already selected.  &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;On the Stage, drag to create a text field in the area between the two  horizontal rules.In the Instance Name text box of the Property inspector, name the dynamic text  field &lt;strong&gt;newFeatures_txt&lt;/strong&gt;.&lt;br /&gt;The ActionScript in this document loads an external text file, which is in  the same folder as your document. The ActionScript is set up to load the text  into a field named newFeatures_txt. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1990937324531598589?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1990937324531598589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-dynamic-text-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1990937324531598589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1990937324531598589'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-dynamic-text-field.html' title='Create a dynamic text field'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8781526631767106423</id><published>2009-01-28T16:08:00.005-08:00</published><updated>2009-01-28T16:08:54.295-08:00</updated><title type='text'>Specify format options</title><content type='html'>&lt;p&gt;The Format Options dialog box allows you to specify margin and indentation  settings for the text.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;With the dynamic text field still selected on the Stage, click Format in the  Property inspector.  &lt;/li&gt;&lt;li&gt;In the Left Margin text box, enter &lt;strong&gt;5&lt;/strong&gt;, and in the Right  Margin text box, enter &lt;strong&gt;5&lt;/strong&gt;. Then click OK.  &lt;p&gt;The dynamic text now has 5-pixel left and right margins within the  text field.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8781526631767106423?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8781526631767106423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/specify-format-options.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8781526631767106423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8781526631767106423'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/specify-format-options.html' title='Specify format options'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8832930826091320362</id><published>2009-01-28T16:08:00.003-08:00</published><updated>2009-01-28T16:08:38.700-08:00</updated><title type='text'>View ActionScript for the dynamic text field</title><content type='html'>&lt;p&gt;You can view the ActionScript that loads text from the external text file  into the dynamic text field. This script uses LoadVars actions to load the  safetyfeatures.txt content in the newFeatures text field.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Timeline, select Frame 1 of the Actions layer.  &lt;/li&gt;&lt;li&gt;Select Window &gt; Actions, or press F9.  &lt;p&gt;The ActionScript appears as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// Load text as variable and assign it to the  // dynamic text field var features_lv:LoadVars = new LoadVars(); features_lv.onLoad = onText; features_lv.load("safetyfeatures.txt"); function onText(success:Boolean) {     if (success) {         newFeatures_txt.text = features_lv.safetyfeatures;     } else {         newFeatures_txt.text = "unable to load text file.";     } } &lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Close the Actions panel. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8832930826091320362?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8832930826091320362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/view-actionscript-for-dynamic-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8832930826091320362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8832930826091320362'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/view-actionscript-for-dynamic-text.html' title='View ActionScript for the dynamic text field'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1672872121576472382</id><published>2009-01-28T16:08:00.001-08:00</published><updated>2009-01-28T16:08:18.917-08:00</updated><title type='text'>Test the SWF file</title><content type='html'>&lt;p&gt;Save and test the document to ensure that the dynamic text loads  correctly.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select File &gt; Save; then select Control &gt; Test Movie.  &lt;p&gt;In the SWF file window, text from the external text file should appear in the  dynamic text field that you created. (If the text does not appear as expected,  check that you entered the instance name correctly: newFeatures_txt. Also check  that you saved your copy of the practice file in the same folder as the original  text_start file.) &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Type in the input text fields.  &lt;/li&gt;&lt;li&gt;When you finish testing the file, close the SWF file window. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1672872121576472382?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1672872121576472382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/test-swf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1672872121576472382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1672872121576472382'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/test-swf-file.html' title='Test the SWF file'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-7956211298548818110</id><published>2009-01-28T16:07:00.003-08:00</published><updated>2009-01-28T16:07:58.106-08:00</updated><title type='text'>Text: Add Text to a Document &gt; Check spelling</title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;/h1&gt; &lt;p&gt;Flash Basic 8 and Flash Professional 8 introduce new features that let you  check spelling in most places where text occurs in your document, including text  fields, layer names, and ActionScript strings. To check spelling, you first  configure the Spelling Setup options, and then run the spell checker.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select Text &gt; Spelling Setup.  &lt;/li&gt;&lt;li&gt;Verify that Check Text Fields Content is selected, and that you've selected  the appropriate dictionary. Select any other options, as desired. Then click OK.   &lt;/li&gt;&lt;li&gt;Select Text &gt; Check Spelling and respond to the dialog boxes that the  spell checker presents. When you finish checking spelling, save your document.  &lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;To check spelling in text in external files, use the spell-check feature  associated with the application that you used to create the external file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-7956211298548818110?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/7956211298548818110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-check.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7956211298548818110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7956211298548818110'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-check.html' title='Text: Add Text to a Document &gt; Check spelling'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-9221725896336776145</id><published>2009-01-28T16:07:00.001-08:00</published><updated>2009-01-28T16:07:37.273-08:00</updated><title type='text'>Text: Add Text to a Document &gt; Summary</title><content type='html'>&lt;h1&gt;Summary&lt;/h1&gt; &lt;p&gt;Congratulations on learning the basic ways in which to add text to your  document. In a few minutes, you learned how to accomplish the  following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Create an expanding-width text block.  &lt;/li&gt;&lt;li&gt;Create a fixed-width text block.  &lt;/li&gt;&lt;li&gt;Edit text and change font attributes.  &lt;/li&gt;&lt;li&gt;Select device fonts.  &lt;/li&gt;&lt;li&gt;Add an input text field.  &lt;/li&gt;&lt;li&gt;Copy a text field.  &lt;/li&gt;&lt;li&gt;Assign instance names to text fields.  &lt;/li&gt;&lt;li&gt;Create a dynamic text field.  &lt;/li&gt;&lt;li&gt;View ActionScript that links the text field to an external text file.  &lt;/li&gt;&lt;li&gt;Set up and check spelling. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;To learn more about the great variety of options you have when adding text to  your document, see Working with  Text in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-9221725896336776145?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/9221725896336776145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-summary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9221725896336776145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9221725896336776145'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/text-add-text-to-document-summary.html' title='Text: Add Text to a Document &gt; Summary'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2460905986484601954</id><published>2009-01-28T16:06:00.002-08:00</published><updated>2009-01-28T16:07:02.685-08:00</updated><title type='text'>ActionScript: Use Script Assist mode</title><content type='html'>&lt;p&gt;This tutorial guides you through using Script Assist mode in Macromedia Flash  Basic 8 and Macromedia Flash Professional 8. &lt;/p&gt; &lt;p&gt;Script Assist mode prompts you to enter the elements of a script, and helps  you to add simple interactivity to your SWF file (a compressed version of a  Flash .fla file with the .swf extension) or application more easily. Script  Assist mode is ideal for users who either aren't comfortable writing their own  scripts, or who just appreciate the ease of use the tool provides. &lt;/p&gt; &lt;p&gt;Used in conjunction with the Actions panel, Script Assist mode prompts you to  select options and enter parameters. For example, instead of writing your own  script, you can select a language element from the Actions toolbox (or the Add  (+) command on the toolbar), drag it onto the Script pane, and then use Script  Assist mode to help you complete the script. &lt;/p&gt; &lt;p&gt;This tutorial guides you through the steps of using Script Assist mode to add  interactivity to a Flash application. You will add ActionScript code to an  object (a button) and to frames in the Timeline. This tutorial also demonstrates  some best practices for adding scripts to your Flash document.&lt;/p&gt; &lt;p&gt;After examining the completed Flash application, you'll begin by opening a  starter Flash document and end by testing the interactivity you've added to an  application by using Script Assist mode. The tutorial should take approximately  20 minutes to complete. &lt;/p&gt; &lt;p&gt;Before you take this tutorial, read Flash Basics in &lt;em&gt;Getting  Started with Flash&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Examine the completed FLA file&lt;/p&gt; &lt;p&gt;Open the starter document&lt;/p&gt; &lt;p&gt;Add a script to a button by using Script  Assist mode&lt;/p&gt; &lt;p&gt;Add frame scripts to the Timeline by using  Script Assist mode&lt;/p&gt; &lt;p&gt;Add a frame script to the Title movie  clip&lt;/p&gt; &lt;p&gt;The tutorial in this chapter follows the order of a typical workflow for  creating a Flash application. Other workflows are also possible. &lt;/p&gt; &lt;p&gt;The tutorial workflow includes the following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Examine the completed FLA file allows you  to look at the completed Flash document.  &lt;/li&gt;&lt;li&gt;Open the starter document lets you begin  the tutorial with a FLA file (a Flash file with the .fla extension) that has the  elements to which you'll use Script Assist mode to add ActionScript.  &lt;/li&gt;&lt;li&gt;Add a script to a button by using Script  Assist mode shows you how to use Script Assist mode to add a script directly  to a button object on the Stage.  &lt;/li&gt;&lt;li&gt;Add frame scripts to the Timeline by using  Script Assist mode shows you how to use Script Assist mode to place scripts  on a frame in the Timeline that affect buttons on the Stage. Placing code in a  frame on the Timeline instead of placing code directly on objects on the Stage  is a better approach to organizing ActionScript within your Flash applications.  &lt;/li&gt;&lt;li&gt;Add a frame script to the Title movie  clip shows you how to place code in the final frame of a movie clip.  &lt;/li&gt;&lt;li&gt;Test the application shows you how to  publish your Flash document to a SWF file and view it in a web browser.  &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2460905986484601954?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2460905986484601954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode_263.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2460905986484601954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2460905986484601954'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode_263.html' title='ActionScript: Use Script Assist mode'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4203222771589874106</id><published>2009-01-28T16:06:00.001-08:00</published><updated>2009-01-28T16:06:33.540-08:00</updated><title type='text'>Examine the completed FLA file</title><content type='html'>&lt;p&gt;As you examine the finished version of an application that you'll create,  you'll also look at the Flash workspace. &lt;/p&gt; &lt;p&gt;In this section, you will complete the following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Open the authoring document  &lt;/li&gt;&lt;li&gt;Review the completed FLA file  &lt;/li&gt;&lt;li&gt;Close the completed FLA file &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;In subsequent sections you'll go through the steps to create the application  yourself.&lt;/p&gt; &lt;h2&gt;&lt;a name="123462"&gt;&lt;/a&gt;Open the authoring document&lt;/h2&gt; &lt;p&gt;It's helpful to analyze the completed authoring document, which is a FLA  file, to see how the author designed the application. You should examine what  kinds of scripts were used to add interactivity, and understand what you are  going to create. &lt;/p&gt; &lt;p&gt;The files for this tutorial are located in the Samples and Tutorials folder  in the Flash installation folder. For many users, particularly in educational  settings, this folder is read-only. Before proceeding with the tutorial, copy  the entire Script Assist tutorial folder to the writable location of your  choice. &lt;/p&gt; &lt;p&gt;On most computers, you will find the Script Assist tutorial folder in the  following locations:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;In Windows: &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash 8\Samples and  Tutorials\Tutorial Assets\ActionScript\Script Assist.  &lt;/li&gt;&lt;li&gt;On the Macintosh: &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia Flash  8/Samples and Tutorials/Tutorial Assets/ActionScript/Script Assist. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Copy the Script Assist folder to another location on your hard disk to which  you have access. In the Script Assist folder, you will find a Flash file called  scriptassist_complete.fla. Double-click the file to open it in Flash. You now  see the completed tutorial file in the Flash authoring environment. &lt;/p&gt; &lt;h2&gt;&lt;a name="123923"&gt;&lt;/a&gt;Review the completed FLA file&lt;/h2&gt; &lt;p&gt;In the completed FLA file, you will see all the objects (buttons, movie  clips, and graphics) that make up the sample application. The application, a  Flash-based company information website, looks like this:&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/complete.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The completed FLA file&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;There are three movie clips in the application:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;The Title movie clip, which displays the section titles of the site when the  user clicks the corresponding navigation links (Home, About, Products, Contact).   &lt;/li&gt;&lt;li&gt;The Menu and Menu tween movie clips, which display the primary navigation  links (buttons) and together create an animation when the application is run.  &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The application has four buttons:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;The About, Products, Contact, and Home buttons provide the navigation for  the application. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;In this tutorial you will add the ActionScript code to enable the buttons to  navigate to the separate sections of the site. &lt;/p&gt; &lt;h2&gt;&lt;a name="137073"&gt;&lt;/a&gt;Close the completed FLA file&lt;/h2&gt; &lt;p&gt;To close the document, select File &gt; Close.&lt;/p&gt; &lt;p&gt;If you prefer to keep the finished file open as a reference while working  with the starter file, be careful not to edit it or save any changes to it.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4203222771589874106?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4203222771589874106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/examine-completed-fla-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4203222771589874106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4203222771589874106'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/examine-completed-fla-file.html' title='Examine the completed FLA file'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8857105468781685752</id><published>2009-01-28T16:05:00.000-08:00</published><updated>2009-01-28T16:06:04.210-08:00</updated><title type='text'>Open the starter document</title><content type='html'>&lt;p&gt;Now that you have seen the completed file, it is time to create your own  Flash document. To get started, you'll open a starter file that contains the  elements to which you will add ActionScript code using Script Assist mode. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8857105468781685752?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8857105468781685752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/open-starter-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8857105468781685752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8857105468781685752'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/open-starter-document.html' title='Open the starter document'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1053905615444785211</id><published>2009-01-28T16:04:00.000-08:00</published><updated>2009-01-28T16:05:44.636-08:00</updated><title type='text'>Add a script to a button by using Script Assist mode</title><content type='html'>&lt;p&gt;In this section you'll use Script Assist mode to add a script to the Home  button. When the sample application is run and the Home button is clicked, the  Home title appears in the Title movie clip. &lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;This section demonstrates how you add scripts directly to objects. Although  this approach can be convenient for adding interactivity to your Flash  applications, you should follow best coding practices and add code to the  Timeline rather than to individual objects. For more information, see Add frame scripts to the Timeline by using Script  Assist mode. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;ol&gt; &lt;li&gt;Click the Selection tool in the Tools panel.  &lt;/li&gt;&lt;li&gt;On the Timeline, select the "menu and button" layer.  &lt;p&gt;If the layer is locked, unlock it. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the upper-right corner of the Stage, select the Home button.  &lt;/li&gt;&lt;li&gt;In the Actions panel, you'll see the Script Assist button above the  ActionScript editor.  &lt;p&gt;Click Script Assist to display Script Assist mode.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;em&gt;With no functions selected, the Script Assist pane is blank.  &lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Initially, the Script Assist portion of the Actions panel is blank. Script  Assist mode prompts you to select options and set parameters for the functions  that you add to the selected button. The parameters are displayed when you add  an ActionScript function. &lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;You may notice that when Script Assist mode is enabled, you cannot directly  edit code in the ActionScript editor, because it is read-only. All interaction  with the code in the editor is through Script Assist mode with one important  exception: you can highlight functions in the ActionScript editor and delete  them. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;To add a function to the button, click Add on the toolbar.&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;em&gt;Clicking the Add button displays all of the predefined ActionScript  functions.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;From the Movie Clip Control option, select the &lt;code&gt;on&lt;/code&gt; event  handler.  &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;An alternative method of adding ActionScript functions is to browse for and  then select them from the Actions toolbox. The Add button on the Actions panel  toolbar and the Actions toolbox display the same categories of functions and you  can add functions to the editor from both.&lt;/p&gt;&lt;li&gt;&lt;p&gt;&lt;em&gt;Script Assist mode prompts you to set the function's  parameters.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The &lt;code&gt;release&lt;/code&gt; event of the &lt;code&gt;on&lt;/code&gt; event handler is  selected by default. &lt;/p&gt; &lt;p&gt;You'll use the &lt;code&gt;release&lt;/code&gt; event to trigger the script action when  the user clicks Home. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click Add again and then select the &lt;code&gt;goto()&lt;/code&gt; function from the  Global Functions &gt; Timeline Control option.&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;em&gt;Adding the function that is triggered when the event occurs&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The &lt;code&gt;goto()&lt;/code&gt; function is added as the action of the  &lt;code&gt;on&lt;/code&gt; event handler. In other words, when the Home button is pressed  (the &lt;code&gt;on&lt;/code&gt; handler) and released (the &lt;code&gt;release&lt;/code&gt; event), the  &lt;code&gt;goto()&lt;/code&gt; action is executed. &lt;/p&gt; &lt;p&gt;When the Home button is clicked, the movie clip should move to and stop at  the Home frame of the Timeline. To do this, you use Script Assist mode to modify  the default parameters of the &lt;code&gt;goto()&lt;/code&gt; function.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Script Assist panel, select the Go To and Stop option.  &lt;/li&gt;&lt;li&gt;Set the Type to Frame Label by selecting it from the Type pop-up menu.  &lt;/li&gt;&lt;li&gt;In the Frame text box, enter &lt;strong&gt;home&lt;/strong&gt;.The changes you made with Script Assist mode are displayed in the  ActionScript editor. You've just created a script without manually writing code  in the ActionScript editor. &lt;p&gt;When you test the application, clicking the Home button will display the  title "Home" in the Title movie clip, indicating that the Home frame is  currently displayed. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/home_title.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Clicking the Home button displays "Home" in the Title movie  clip.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;You could repeat this process for the About, Products, and Contacts buttons.  However, for these buttons you'll use an alternative and preferred method for  creating scripts. &lt;/p&gt; In each case, you want to display the related frames on the Timeline when  each of the buttons are clicked; therefore, you will set the frame target of the  &lt;code&gt;gotoAndStop()&lt;/code&gt; function to the About, Products, and Contacts frames,  as you've just done for the Home button. &lt;/li&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt; &lt;p&gt;&lt;/p&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1053905615444785211?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1053905615444785211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-script-to-button-by-using-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1053905615444785211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1053905615444785211'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-script-to-button-by-using-script.html' title='Add a script to a button by using Script Assist mode'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-487572306995182043</id><published>2009-01-28T16:03:00.003-08:00</published><updated>2009-01-28T16:04:15.373-08:00</updated><title type='text'>Add frame scripts to the Timeline by using Script Assist mode</title><content type='html'>&lt;p&gt;Rather than adding scripts to individual objects, and acting on objects  directly but also dispersing code in many different places in your Flash  document, place the scripts in a frame in the timeline instead. This section  demonstrates how you add scripts to a timeline. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the main Timeline, select Frame 1 of the Actions layer.  &lt;/li&gt;&lt;li&gt;In the Actions panel toolbar, click Script Assist to display the Script  Assist window.  &lt;/li&gt;&lt;li&gt;From the Actions toolbox, select ActionScript 2.0 Classes &gt; Movie &gt;  Button &gt; Events and locate the &lt;code&gt;on(release)&lt;/code&gt; event handler.  &lt;p&gt;Double-click the &lt;code&gt;on(release)&lt;/code&gt; event handler to insert it into the  ActionScript editor. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/timeline_code.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Using the Actions toolbox to insert functions into the  script&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;You'll notice that code placed on a timeline behaves differently than code  placed on objects. In the previous example, you had to specify the target object  for the &lt;code&gt;on(release)&lt;/code&gt; event handler. This is because you're not  adding the script directly to the object, but rather, you're referring to it  from the code in the timeline. It also explicitly uses the &lt;code&gt;function&lt;/code&gt;  keyword to declare a function. You'll see how to use Script Assist mode to  handle these in the following steps. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click in the Object text box.  &lt;p&gt;On the Actions panel toolbox, the Insert a Target Path button is enabled.  &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click the Insert a Target Path button to display the Insert Target Path  dialog box.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/insert_target_path.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Selecting the target object from the Insert Target Path dialog  box&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the About button (&lt;code&gt;about_btn&lt;/code&gt;) from the tween_mc movie  clip.  &lt;/li&gt;&lt;li&gt;Make sure that the Relative Path option is selected and then click OK.  &lt;p&gt;The target object (the Menu tween) is added. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/insert_target_path_2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The path to the target object is added to the event  handler.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;You now need to add the &lt;code&gt;goto()&lt;/code&gt; function, the action that occurs  when the About button is clicked. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;Using the Actions toolbox or the Add button on the Actions panel toolbox,  select Global Functions &gt; Timeline Control and insert the &lt;code&gt;goto&lt;/code&gt;  function.  &lt;/li&gt;&lt;li&gt;In the Script Assist pane, select the Go To and Stop option.  &lt;/li&gt;&lt;li&gt;Set the Type to Frame Label by selecting it from the Type pop-up menu.  &lt;/li&gt;&lt;li&gt;In the Frame text box, enter &lt;strong&gt;about&lt;/strong&gt;.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/timeline_code_final.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The completed Timeline script&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Repeat this process for the Products and Contacts buttons. In each case, when  the buttons are clicked, you want to display the related frames on the Timeline;  therefore, set the frame target of the &lt;code&gt;gotoAndStop()&lt;/code&gt; function to  the Products and Contacts frames as you did for the About button. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-487572306995182043?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/487572306995182043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-scripts-to-timeline-by-using_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/487572306995182043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/487572306995182043'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-scripts-to-timeline-by-using_28.html' title='Add frame scripts to the Timeline by using Script Assist mode'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1015310031474231898</id><published>2009-01-28T16:03:00.002-08:00</published><updated>2009-01-28T16:04:04.393-08:00</updated><title type='text'>Add frame scripts to the Timeline by using Script Assist mode</title><content type='html'>&lt;p&gt;Rather than adding scripts to individual objects, and acting on objects  directly but also dispersing code in many different places in your Flash  document, place the scripts in a frame in the timeline instead. This section  demonstrates how you add scripts to a timeline. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the main Timeline, select Frame 1 of the Actions layer.  &lt;/li&gt;&lt;li&gt;In the Actions panel toolbar, click Script Assist to display the Script  Assist window.  &lt;/li&gt;&lt;li&gt;From the Actions toolbox, select ActionScript 2.0 Classes &gt; Movie &gt;  Button &gt; Events and locate the &lt;code&gt;on(release)&lt;/code&gt; event handler.  &lt;p&gt;Double-click the &lt;code&gt;on(release)&lt;/code&gt; event handler to insert it into the  ActionScript editor. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/timeline_code.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Using the Actions toolbox to insert functions into the  script&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;You'll notice that code placed on a timeline behaves differently than code  placed on objects. In the previous example, you had to specify the target object  for the &lt;code&gt;on(release)&lt;/code&gt; event handler. This is because you're not  adding the script directly to the object, but rather, you're referring to it  from the code in the timeline. It also explicitly uses the &lt;code&gt;function&lt;/code&gt;  keyword to declare a function. You'll see how to use Script Assist mode to  handle these in the following steps. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click in the Object text box.  &lt;p&gt;On the Actions panel toolbox, the Insert a Target Path button is enabled.  &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click the Insert a Target Path button to display the Insert Target Path  dialog box.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/insert_target_path.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Selecting the target object from the Insert Target Path dialog  box&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select the About button (&lt;code&gt;about_btn&lt;/code&gt;) from the tween_mc movie  clip.  &lt;/li&gt;&lt;li&gt;Make sure that the Relative Path option is selected and then click OK.  &lt;p&gt;The target object (the Menu tween) is added. &lt;/p&gt; &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/insert_target_path_2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The path to the target object is added to the event  handler.&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;You now need to add the &lt;code&gt;goto()&lt;/code&gt; function, the action that occurs  when the About button is clicked. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;Using the Actions toolbox or the Add button on the Actions panel toolbox,  select Global Functions &gt; Timeline Control and insert the &lt;code&gt;goto&lt;/code&gt;  function.  &lt;/li&gt;&lt;li&gt;In the Script Assist pane, select the Go To and Stop option.  &lt;/li&gt;&lt;li&gt;Set the Type to Frame Label by selecting it from the Type pop-up menu.  &lt;/li&gt;&lt;li&gt;In the Frame text box, enter &lt;strong&gt;about&lt;/strong&gt;.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/timeline_code_final.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The completed Timeline script&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Repeat this process for the Products and Contacts buttons. In each case, when  the buttons are clicked, you want to display the related frames on the Timeline;  therefore, set the frame target of the &lt;code&gt;gotoAndStop()&lt;/code&gt; function to  the Products and Contacts frames as you did for the About button. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1015310031474231898?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1015310031474231898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-scripts-to-timeline-by-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1015310031474231898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1015310031474231898'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-scripts-to-timeline-by-using.html' title='Add frame scripts to the Timeline by using Script Assist mode'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-467470982039704221</id><published>2009-01-28T16:03:00.001-08:00</published><updated>2009-01-28T16:03:38.924-08:00</updated><title type='text'>Add a frame script to the Title movie clip</title><content type='html'>&lt;p&gt;The final step is to add a script to the last frame of the &lt;code&gt;Title&lt;/code&gt;  movie clip. This script is used to display the text "Home" in the  &lt;code&gt;Title&lt;/code&gt; movie clip when its animation has completed.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;From the Library panel, select the &lt;code&gt;Title&lt;/code&gt; movie clip and its  timeline is displayed.&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;With the Actions layer selected, select the last frame (14) on the Timeline.   &lt;/li&gt;&lt;li&gt;In the Actions panel, click Script Assist to display Script Assist mode.  &lt;/li&gt;&lt;li&gt;Using either the Actions toolbox or the Add button on the Actions panel  toolbar, select Global Functions &gt; Timeline Control and insert the  &lt;code&gt;stop()&lt;/code&gt; function.  &lt;/li&gt;&lt;li&gt;Next, using either the Actions toolbox or the Add button, select  ActionScript 2.0 Classes &gt; Movie &gt; MovieClip &gt; Methods &gt;  gotoAndStop.&lt;ol&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Modifying function parameters to complete the script&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;In the Script Assist panel, select the &lt;code&gt;gotoAndStop&lt;/code&gt; action on  line 2.  &lt;/li&gt;&lt;li&gt;Click in the Object text box.  &lt;/li&gt;&lt;li&gt;Click the Insert Target Path button.  &lt;/li&gt;&lt;li&gt;In the Insert Target Path dialog box, click the &lt;code&gt;_root&lt;/code&gt; object  and click OK.  &lt;/li&gt;&lt;li&gt;In the Frame text box, enter &lt;strong&gt;home&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Deselect the Expression checkbox.  &lt;p&gt;Now, when the &lt;code&gt;Title&lt;/code&gt; movie clip reaches the last frame and the  animation is complete, "Home" is displayed. This is the initial state of the  application, after it loads and before the user clicks any of the buttons. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Save your work. &lt;/li&gt;&lt;/ol&gt; All of the scripts needed to run the sample application are now complete and  the application is ready to be tested. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-467470982039704221?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/467470982039704221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-script-to-title-movie-clip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/467470982039704221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/467470982039704221'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-script-to-title-movie-clip.html' title='Add a frame script to the Title movie clip'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1110643043634144672</id><published>2009-01-28T16:02:00.003-08:00</published><updated>2009-01-28T16:02:53.768-08:00</updated><title type='text'>ActionScript: Use Script Assist mode &gt; Test the application</title><content type='html'>&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Test the application&lt;/span&gt;&lt;/h1&gt; &lt;p&gt;At any point during authoring, you can test how your application plays as a  SWF file. Now that you've added scripts to the application with Script Assist  mode, you can test the interactivity you've just added to it.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select File &gt; Save to save your FLA file.  &lt;/li&gt;&lt;li&gt;Select Control &gt; Test Movie.  &lt;/li&gt;&lt;li&gt;Click any of the buttons (About, Products, Contact, and Home) to test that  those frames are loading and that the corresponding title is displayed in the  Title movie clip.  &lt;/li&gt;&lt;li&gt;When you finish testing the application, close the SWF file by closing the  test window. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;You have now successfully added scripts to a button and both the main and  &lt;code&gt;Title&lt;/code&gt; movie clip timelines. You can use Script Assist mode in many  ways as you work with ActionScript in your Flash documents. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1110643043634144672?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1110643043634144672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1110643043634144672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1110643043634144672'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode_28.html' title='ActionScript: Use Script Assist mode &gt; Test the application'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-326660128651346149</id><published>2009-01-28T16:02:00.001-08:00</published><updated>2009-01-28T16:02:31.303-08:00</updated><title type='text'>ActionScript: Use Script Assist mode &gt; Summary</title><content type='html'>&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Summary&lt;/span&gt;&lt;/h1&gt; &lt;p&gt;Congratulations on using Script Assist mode to add scripts to objects and to  the timeline. In just a few minutes, you learned how to accomplish the following  tasks using Script Assist mode:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Display Script Assist mode in the Actions panel and insert predefined  ActionScript functions.  &lt;/li&gt;&lt;li&gt;Add a script to a button.  &lt;/li&gt;&lt;li&gt;Add frame scripts to the main timeline.  &lt;/li&gt;&lt;li&gt;Add a frame script to the last frame of a movie clip. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;To learn more about ActionScript, take another lesson in the Basic  ActionScript series.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-326660128651346149?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/326660128651346149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/326660128651346149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/326660128651346149'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-use-script-assist-mode.html' title='ActionScript: Use Script Assist mode &gt; Summary'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2757685850417909386</id><published>2009-01-28T16:01:00.001-08:00</published><updated>2009-01-28T16:01:57.692-08:00</updated><title type='text'>ActionScript: Write Scripts</title><content type='html'>&lt;p&gt;The ActionScript language that is part of Macromedia Flash Basic 8 and  Macromedia Flash Professional 8 offers designers and developers a variety of  benefits. With ActionScript you can control document playback in response to  events such as elapsed time and loading data; add interactivity to a document in  response to user actions, such as a button click; use built-in objects, such as  a button object, with built-in associated methods, properties, and events;  create custom classes and objects; and create more compact and efficient  applications than you could create using user interface tools, all with code  that you can reuse.&lt;/p&gt; &lt;p&gt;ActionScript is an object-oriented scripting language that offers control  over how your Flash content plays. In subsequent lessons, you'll see how  ActionScript has evolved into ActionScript 2.0 to comprise a core set of  language elements that make it easier to develop object-oriented programs. &lt;/p&gt; &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Set up your workspace&lt;/p&gt; &lt;p&gt;Create an instance of a symbol&lt;/p&gt; &lt;p&gt;Name button instances&lt;/p&gt; &lt;p&gt;Initialize the document&lt;/p&gt; &lt;p&gt;Apply ActionScript syntax&lt;/p&gt; &lt;p&gt;Locate ActionScript reference  documentation&lt;/p&gt; &lt;p&gt;Add comments to ActionScript&lt;/p&gt; &lt;p&gt;Write a function for a button&lt;/p&gt; &lt;p&gt;Copy and modify a button function&lt;/p&gt; &lt;p&gt;Check syntax and test your application&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2757685850417909386?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2757685850417909386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2757685850417909386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2757685850417909386'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts.html' title='ActionScript: Write Scripts'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6704091286780206017</id><published>2009-01-28T16:00:00.004-08:00</published><updated>2009-01-28T16:01:20.430-08:00</updated><title type='text'>ActionScript: Write Scripts &gt; Set up your workspace</title><content type='html'>&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Set up your workspace&lt;/span&gt;&lt;/h1&gt; &lt;p&gt;First, you'll open the start file for the lesson and set up your workspace to  use an optimal layout for taking lessons.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;To open your start file, in Flash select File &gt; Open and navigate to  the file:  &lt;ul&gt; &lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\ActionScript\Write Scripts and  double-click scripts_start.fla.  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/ActionScript/Write Scripts and  double-click scripts_start.fla. &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Write Scripts folder contains completed versions of the tutorial FLA  files for your reference.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Select File &gt; Save As and save the document with a new name, in the same  folder, to preserve the original start file.  &lt;/li&gt;&lt;li&gt;Select Window &gt; Workspace Layout &gt; Default to set up your workspace  for taking lessons. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6704091286780206017?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6704091286780206017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts-set-up-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6704091286780206017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6704091286780206017'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts-set-up-your.html' title='ActionScript: Write Scripts &gt; Set up your workspace'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3236551709402842771</id><published>2009-01-28T16:00:00.003-08:00</published><updated>2009-01-28T16:00:52.454-08:00</updated><title type='text'>Create an instance of a symbol</title><content type='html'>&lt;p&gt;You'll drag an instance of an animated movie clip from the library to the  Global Positioning System artwork on the Stage. You'll then follow the  recommended practice of always naming instances--both to prompt code hinting and  because in your scripts you generally refer to instance names rather than symbol  names. Code hints are the tooltips that prompt you with the correct ActionScript  syntax.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/selection.gif" border="0" /&gt;In the Tools  panel, click the Selection tool. Select the map layer in the Timeline, and click  the padlock next to the map layer to unlock that layer.  &lt;/li&gt;&lt;li&gt;To place the movie clip accurately, select View &gt; Snapping. Select Snap  Align and Snap to Objects if the commands are not already selected.  &lt;/li&gt;&lt;li&gt;From the Library panel (Window &gt; Library), drag map_skewed to the black  background area of the Stage.  &lt;p&gt;Because guides don't appear when you first drag an object from the Library  panel, you'll release the object, and then drag it again.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Drag the map_skewed movie clip on the Stage again so that the align guides  appear. Use the guides to align the movie clip to the top and left edges of the  GPS screen.  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/03_gps.jpg" border="0" /&gt;&lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;If you make an error in placement, either drag the movie clip again, or press  Control+Z (Windows) or Command+Z (Macintosh) to undo your  changes.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;With the instance of map_skewed selected on the Stage, type  &lt;strong&gt;screen_mc&lt;/strong&gt; in the Instance Name text box of the Property  inspector (Window &gt; Properties).  &lt;p&gt;&lt;img alt="" src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/Tutorials/images/instance_name.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;Flash is designed to present code hints when you name your instances with the  appropriate suffix:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;When naming a movie clip instance, always give the instance a suffix of _mc,  as in screen_mc.  &lt;/li&gt;&lt;li&gt;When naming a button, use the _btn suffix.  &lt;/li&gt;&lt;li&gt;When naming a text field, use the _txt suffix. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;For more information about additional instance name suffixes that prompt code  hints, see About  triggering code hints in &lt;em&gt;Learning ActionScript 2.0 in Flash&lt;/em&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3236551709402842771?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3236551709402842771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-instance-of-symbol.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3236551709402842771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3236551709402842771'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-instance-of-symbol.html' title='Create an instance of a symbol'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6951834863440231172</id><published>2009-01-28T16:00:00.001-08:00</published><updated>2009-01-28T16:00:11.264-08:00</updated><title type='text'>Name button instances</title><content type='html'>&lt;p&gt;Using the appropriate suffix to prompt code hinting, you'll provide instance  names for two button instances that are already on the Stage.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Timeline, unlock the Buttons layer.  &lt;/li&gt;&lt;li&gt;On the Stage, select the instance of play_button (the large green button).  &lt;/li&gt;&lt;li&gt;In the Instance Name text box of the Property inspector, type  &lt;strong&gt;onButton_btn&lt;/strong&gt; to name the instance.  &lt;/li&gt;&lt;li&gt;On the Stage, select the instance of button_stop (the small red button).  &lt;/li&gt;&lt;li&gt;In the Instance Name text box of the Property inspector, type  &lt;strong&gt;offButton_btn&lt;/strong&gt; to name the instance. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6951834863440231172?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6951834863440231172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/name-button-instances_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6951834863440231172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6951834863440231172'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/name-button-instances_28.html' title='Name button instances'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6239720673368123782</id><published>2009-01-28T15:59:00.005-08:00</published><updated>2009-01-28T15:59:55.131-08:00</updated><title type='text'>Initialize the document</title><content type='html'>&lt;p&gt;Applications have an initial state that specifies how the content first  appears to users. You initialize properties and variables in the first frame of  a document. You'll specify that the map movie clip should not be visible when  the SWF file first plays.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select Frame 1 of the Actions layer. If the Actions panel isn't open, select  Window &gt; Actions.  &lt;p&gt;Actions - Frame appears at the top of the panel, which indicates that you  selected a frame in which to apply ActionScript. It's a good practice to verify  that you're attaching ActionScript to the intended frame or object.&lt;/p&gt; &lt;p&gt;The Actions panel includes a Script pane, the blank text entry area, in which  you can enter text directly; an Actions toolbox, which lets you select  ActionScript to add to your script; and a Script navigator, which functions like  the Movie Explorer.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/target_path.gif" border="0" /&gt;Along the top  of the Actions panel, click Insert Target path.  &lt;/li&gt;&lt;li&gt;In the Insert Target Path dialog box, verify that Relative, meaning relative  path, is selected. From the hierarchical tree in the dialog box, select&lt;code&gt;  screen_mc&lt;/code&gt;. Click OK.  &lt;p&gt;A target path tells ActionScript the location of an object within the overall  structure of a document. For more information about paths, see &lt;a href="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/UsingFlash/00000396.html#86880"&gt;Using absolute and relative target  paths&lt;/a&gt; in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click in the Script pane, at the end of the screen_mc text, and type  a period (&lt;code&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/code&gt;).  &lt;/li&gt;&lt;li&gt;When you type the period, code hints appear for the movie clip, because you  used the _mc suffix when naming the instance. Double-click  &lt;code&gt;_visible&lt;/code&gt;&lt;code&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/code&gt;from the list of code hints,  and type the following:  &lt;p&gt;&lt;code&gt;= false;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;This line of code makes the screen_mc movie clip invisible on the Stage.&lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;If code hints don't appear, you don't have code hints selected as a  preference in the Actions panel. You can type  &lt;code&gt;&lt;strong&gt;_visible&lt;/strong&gt;&lt;/code&gt; directly in the Script pane. You can also  change your preferences by clicking the pop-up menu in the upper-right corner of  the Actions panel. From the pop-up menu, select Preferences, and then select  Code Hints on the ActionScript tab.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Throughout authoring, remember to save your document frequently.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6239720673368123782?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6239720673368123782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/initialize-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6239720673368123782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6239720673368123782'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/initialize-document.html' title='Initialize the document'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-366823407306237942</id><published>2009-01-28T15:59:00.003-08:00</published><updated>2009-01-28T15:59:39.463-08:00</updated><title type='text'>Apply ActionScript syntax</title><content type='html'>&lt;p&gt;All languages, whether computer languages or written and spoken "human"  languages, follow specific rules that foster comprehension. These rules are  known as the language syntax.&lt;/p&gt; &lt;p&gt;Flash uses dot syntax, which means that the period (.) links parts of a  script. Other ActionScript syntax elements include the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;A semicolon (;) in an ActionScript statement, like a period in an ordinary  sentence, indicates the end of a statement.  &lt;/li&gt;&lt;li&gt;Parentheses () group arguments that apply to an ActionScript statement.  &lt;/li&gt;&lt;li&gt;Curly braces {} group related ActionScript statements. You can use nested  braces to create a hierarchy of statements. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Later in this lesson, you'll use Flash features that allow you to test  your syntax.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-366823407306237942?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/366823407306237942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-actionscript-syntax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/366823407306237942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/366823407306237942'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/apply-actionscript-syntax.html' title='Apply ActionScript syntax'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-7764597861226441758</id><published>2009-01-28T15:59:00.001-08:00</published><updated>2009-01-28T15:59:22.561-08:00</updated><title type='text'>Locate ActionScript reference documentation</title><content type='html'>&lt;p&gt;During authoring, if you'd like additional information about the ActionScript  that you enter, you can select the action in the Actions toolbox or Script pane  and click Reference. The Help panel displays information about the selected  action.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Script pane of the Actions panel, double-click &lt;code&gt;visible&lt;/code&gt;  to select the term.  &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;After completing the next step, you'll change topics in the Help panel and  you will no longer be on this lesson topic. In the Help panel, click the History  Back icon to return to this topic.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Along the top of the Actions panel, click the Help icon.  &lt;p&gt;The &lt;code&gt;visible&lt;/code&gt; entry in the Help panel appears.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-7764597861226441758?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/7764597861226441758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/locate-actionscript-reference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7764597861226441758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7764597861226441758'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/locate-actionscript-reference.html' title='Locate ActionScript reference documentation'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2400976342018111040</id><published>2009-01-28T15:58:00.006-08:00</published><updated>2009-01-28T15:59:07.077-08:00</updated><title type='text'>Add comments to ActionScript</title><content type='html'>&lt;p&gt;In ActionScript, text after double slashes (//) is commented text, which  Macromedia Flash Player ignores. Commented text often documents script  functionality so that other developers can understand your script, but you can  also use comments to deactivate sections of your script when debugging. As a  best practice, always add comments that explain your scripts.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;In the Script pane of the Actions panel, place the insertion point at the  beginning of the line of code and type&lt;strong&gt; &lt;/strong&gt;&lt;code&gt;&lt;strong&gt;//  Initialize document to hide screen movie clip&lt;/strong&gt;&lt;/code&gt;. Press Enter  (Windows) or Return (Macintosh).  &lt;p&gt;Text in the Script pane appears as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// Initialize document to hide screen movie clip. this.screen_mc._visible = false; &lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;If your commented text is many lines, you can use /* instead of double  slashes for the beginning of the comment, and */ to mark the end of the  comment.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2400976342018111040?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2400976342018111040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-comments-to-actionscript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2400976342018111040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2400976342018111040'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-comments-to-actionscript.html' title='Add comments to ActionScript'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-859349175744234400</id><published>2009-01-28T15:58:00.005-08:00</published><updated>2009-01-28T15:58:52.044-08:00</updated><title type='text'>Write a function for a button</title><content type='html'>&lt;p&gt;A command in ActionScript is called a function. A function is a script that  you can write once and use repeatedly in a document to perform a certain task.  You're going to write a function that makes the screen_mc movie clip appear  (&lt;code&gt;visible = true&lt;/code&gt;) when the user releases the mouse button.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Script pane of the Actions panel, click after the last line of code,  press Enter (Windows) or Return (Macintosh) twice, and type&lt;strong&gt;  &lt;/strong&gt;&lt;code&gt;&lt;strong&gt;// function to show animation&lt;/strong&gt;&lt;/code&gt;  &lt;/li&gt;&lt;li&gt;Press Enter or Return and click Insert Target Path, along the top of the  Actions panel. Select onButton_btn from the hierarchical tree, and click OK.  &lt;/li&gt;&lt;li&gt;In the Script pane, type a period (&lt;strong&gt;.&lt;/strong&gt;) and double-click  &lt;code&gt;onRelease&lt;/code&gt; from the list of code hints that appears.  &lt;/li&gt;&lt;li&gt;In the Script pane, press the Spacebar and type the following:  &lt;p&gt;&lt;code&gt;= function(){&lt;/code&gt;&lt;/p&gt; &lt;p&gt;The line of code that you just completed should appear as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;this.onButton_btn.onRelease = function(){ &lt;/pre&gt;&lt;/div&gt; &lt;p&gt;You already know how to select objects in the Insert Target Path dialog box;  you'll now enter the instance names directly into the Script pane.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Press Enter or Return, and type the following:  &lt;div class="listing"&gt;&lt;pre&gt;screen_mc._visible = true; &lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Press Enter or Return and type &lt;code&gt;&lt;strong&gt;};&lt;/strong&gt;&lt;/code&gt; to specify  the end of the statement.  &lt;p&gt;The function should appear as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// function to show animation this.onButton_btn.onRelease = function(){     screen_mc._visible = true; }; &lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-859349175744234400?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/859349175744234400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/write-function-for-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/859349175744234400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/859349175744234400'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/write-function-for-button.html' title='Write a function for a button'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-550141093698225813</id><published>2009-01-28T15:58:00.003-08:00</published><updated>2009-01-28T15:58:33.586-08:00</updated><title type='text'>Copy and modify a button function</title><content type='html'>&lt;p&gt;You just created one function that sets the &lt;code&gt;visible&lt;/code&gt; property of  a movie clip to &lt;code&gt;true&lt;/code&gt; when the user releases the mouse button after  a button click. You can probably guess how to create another function that hides  the &lt;code&gt;screen_mc&lt;/code&gt; movie clip: by setting the movie clip  &lt;code&gt;_visible&lt;/code&gt; property to &lt;code&gt;false&lt;/code&gt; when the user clicks an Off  button. You'll create that function now.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Script pane, select the entire function that you just typed,  including the comment, curly brackets, and semicolon. Copy the text as you  normally would, using Control+C (Windows) or Command+C (Macintosh).  &lt;/li&gt;&lt;li&gt;In the Script pane, place the insertion point after the last line of code.  Then press Enter (Windows) or Return (Macintosh) twice, and paste the text as  you normally would, using Control+V (Windows) or Command+V (Macintosh).  &lt;/li&gt;&lt;li&gt;In the copied function, change the text in &lt;code&gt;onButton_btn&lt;/code&gt; to read  &lt;code&gt;&lt;strong&gt;offButton_btn&lt;/strong&gt;&lt;/code&gt;.  &lt;p&gt;Remember, earlier you assigned an instance name of &lt;code&gt;offButton_btn&lt;/code&gt;  to an instance.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the copied function, change the &lt;code&gt;visible&lt;/code&gt; property of the  &lt;code&gt;screen_mc &lt;/code&gt;movie clip from &lt;code&gt;true&lt;/code&gt;  to &lt;code&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;In the copied function, change the commented text after the slashes to read  &lt;code&gt;&lt;strong&gt;function to hide animation&lt;/strong&gt;&lt;/code&gt;.  &lt;p&gt;Your entire script should appear as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// Initialize document to hide screen movie clip. this.screen_mc._visible = false;  // function to show animation this.onButton_btn.onRelease = function(){     screen_mc._visible = true; };  // function to hide animation this.offButton_btn.onRelease = function(){     screen_mc._visible = false; }; &lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-550141093698225813?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/550141093698225813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/copy-and-modify-button-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/550141093698225813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/550141093698225813'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/copy-and-modify-button-function.html' title='Copy and modify a button function'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-957104334901642826</id><published>2009-01-28T15:58:00.001-08:00</published><updated>2009-01-28T15:58:16.435-08:00</updated><title type='text'>Check syntax and test your application</title><content type='html'>&lt;p&gt;As you learned earlier in this lesson, ActionScript depends on correct syntax  to execute properly. Flash offers a variety of ways for you to test your syntax.  &lt;/p&gt; &lt;ol&gt; &lt;li&gt;To check the syntax, do one of the following:  &lt;ul&gt; &lt;li&gt;Click the pop-up menu in the upper-right corner of the Actions panel title  bar and select Check Syntax.  &lt;/li&gt;&lt;li&gt;&lt;img src="file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/_sharedassets/icons/actions_checkSyntax.gif" border="0" /&gt;Click  Check Syntax along the top of the Actions panel. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If the syntax is correct, a message appears stating that the script contains  no errors.&lt;/p&gt; &lt;p&gt;If the syntax is incorrect, a message appears stating the script contains  errors; the Output panel opens and displays information about the error. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click OK to close the syntax message.  &lt;/li&gt;&lt;li&gt;After you've verified that your ActionScript does not contain syntax errors,  save the document and select Control &gt; Test Movie.  &lt;p&gt;When the SWF file appears, the animation should not appear in the Global  Positioning System screen, because its initial &lt;code&gt;visible&lt;/code&gt; property is  set to &lt;code&gt;false&lt;/code&gt;. When you click and release the top green button, you  call the function that sets the movie clip's &lt;code&gt;visible&lt;/code&gt; property to  &lt;code&gt;true&lt;/code&gt;. Does the animation play then? Finally, click the red Off  button to see if the &lt;code&gt;visible&lt;/code&gt; property for the animation is again  &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;You can test your SWF content throughout authoring to confirm that it plays  as expected.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-957104334901642826?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/957104334901642826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/check-syntax-and-test-your-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/957104334901642826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/957104334901642826'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/check-syntax-and-test-your-application.html' title='Check syntax and test your application'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1743783888690529853</id><published>2009-01-28T15:57:00.001-08:00</published><updated>2009-01-28T15:57:57.018-08:00</updated><title type='text'>ActionScript: Write Scripts &gt; Summary</title><content type='html'>&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Summary&lt;/span&gt;&lt;/h1&gt; &lt;p&gt;Congratulations on learning a few basics about writing scripts with  ActionScript. In a short amount of time, you learned how to accomplish the  following tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Name instances following recommended practices.  &lt;/li&gt;&lt;li&gt;Initialize a document.  &lt;/li&gt;&lt;li&gt;Apply ActionScript syntax.  &lt;/li&gt;&lt;li&gt;Locate ActionScript reference documentation.  &lt;/li&gt;&lt;li&gt;Add comments to ActionScript.  &lt;/li&gt;&lt;li&gt;Write a function.  &lt;/li&gt;&lt;li&gt;Copy and modify a function.  &lt;/li&gt;&lt;li&gt;Check syntax and test your application. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;To learn more about ActionScript, select Help &gt; Flash Tutorials &gt; Basic  Tasks: Create an Application.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1743783888690529853?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1743783888690529853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts-summary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1743783888690529853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1743783888690529853'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-write-scripts-summary.html' title='ActionScript: Write Scripts &gt; Summary'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-880044866151091793</id><published>2009-01-28T09:49:00.001-08:00</published><updated>2009-01-28T09:49:24.426-08:00</updated><title type='text'>Play a movie clip</title><content type='html'>&lt;p&gt;You can configure your document to play a movie clip at runtime. Using the  &lt;code&gt;attachMovie()&lt;/code&gt; method, you can attach an instance of a movie clip in  the Library panel to the Stage even though you have not placed an instance on  the Stage.&lt;/p&gt; &lt;p&gt;With the &lt;code&gt;attachMovie()&lt;/code&gt; method, you must export the symbol for  ActionScript and assign it a unique linkage identifier, which is different from  the instance name. &lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Library panel, right-click the MCTrio symbol and select Linkage from  the context menu.  &lt;/li&gt;&lt;li&gt;In the Linkage Properties dialog box, select Export for ActionScript.  &lt;/li&gt;&lt;li&gt;In the Identifier text box, verify that MCTrio appears as the linkage name.  &lt;/li&gt;&lt;li&gt;Verify that Export in First Frame is selected, and then click OK.  &lt;p&gt;Movie clips that are exported for use with ActionScript load, by default,  before the first frame of the SWF file that contains them. This can create a  delay before the first frame plays. When you assign a linkage identifier to an  element, you can specify that the movie clip loads on the first frame to avoid  playback delays.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-880044866151091793?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/880044866151091793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/play-movie-clip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/880044866151091793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/880044866151091793'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/play-movie-clip.html' title='Play a movie clip'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3306941699055419007</id><published>2009-01-28T09:48:00.003-08:00</published><updated>2009-01-28T09:48:42.159-08:00</updated><title type='text'>Add navigation to return to Scene 1</title><content type='html'>&lt;p&gt;The function that you'll add to the button in Scene 2, to return the user to  Scene 1, is similar to the function that you wrote to take the user to  Scene 2.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the Scene panel, select Scene 2.  &lt;p&gt;In the Timeline, create a new layer and name it &lt;strong&gt;Actions&lt;/strong&gt;.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select Frame 1 of the Actions layer.  &lt;p&gt;In the Actions panel, enter the following in the Script pane:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;&lt;strong&gt;// function takes user to Scene 1 when back_btn instance&lt;/strong&gt; &lt;strong&gt;// is released&lt;/strong&gt; &lt;strong&gt;back_btn.onRelease = function (){&lt;/strong&gt; &lt;strong&gt;    gotoAndStop("Scene 1", 1);&lt;/strong&gt; &lt;strong&gt;    };&lt;/strong&gt; &lt;/pre&gt;&lt;/div&gt; &lt;p&gt;The only differences between this function and the function in Scene 1 are  the name of the button and the name of the scene.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Scene panel, select Scene 1. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3306941699055419007?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3306941699055419007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-navigation-to-return-to-scene-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3306941699055419007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3306941699055419007'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-navigation-to-return-to-scene-1.html' title='Add navigation to return to Scene 1'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4653119718198128829</id><published>2009-01-28T09:48:00.001-08:00</published><updated>2009-01-28T09:48:24.283-08:00</updated><title type='text'>Link a button to a scene</title><content type='html'>&lt;p&gt;Now that the playhead stops at Frame 1, you'll add ActionScript that takes  the user to Scene 2 upon releasing the goScene_btn instance.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Press Enter (Windows) or Return (Macintosh) twice and type the following  comment. Then write the function that takes users to Scene 2 upon release of the  goScene_btn instance:  &lt;div class="listing"&gt;&lt;pre&gt;// This script takes the user to Scene 2 when goScene_btn // is released. goScene_btn.onRelease = function (){     gotoAndStop("Scene 2", 1); }; &lt;/pre&gt;&lt;/div&gt; &lt;p&gt;In the script that you just typed, you used the &lt;code&gt;onRelease()&lt;/code&gt;  method for the button object. The &lt;code&gt;gotoAndStop() &lt;/code&gt;function is a  timeline control function that lets you specify the scene and frame number. In  this case, you specified Frame 1.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4653119718198128829?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4653119718198128829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/link-button-to-scene.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4653119718198128829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4653119718198128829'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/link-button-to-scene.html' title='Link a button to a scene'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-441570301710882634</id><published>2009-01-28T09:47:00.004-08:00</published><updated>2009-01-28T09:48:01.605-08:00</updated><title type='text'>Control the document with a stop() action</title><content type='html'>&lt;p&gt;When you test or publish a Flash document that contains more than one scene,  by default the scenes play linearly, in the order in which they appear in the  Scenes panel. You'll use a &lt;code&gt;stop()&lt;/code&gt; action for Scene 1 so that the  playhead in the Timeline stops at Frame 1 of Scene 1.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;In the main Timeline for Scene 1, add a new layer and name it  &lt;strong&gt;Actions&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Click Frame 1 of the Actions layer.  &lt;p&gt;In the Script pane of the Actions panel (Window &gt; Actions), type the  following comment followed by the script that stops the playhead on the  frame:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// Stops the playhead at Frame 1. stop();  &lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-441570301710882634?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/441570301710882634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/control-document-with-stop-action.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/441570301710882634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/441570301710882634'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/control-document-with-stop-action.html' title='Control the document with a stop() action'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-7636646716772620120</id><published>2009-01-28T09:47:00.003-08:00</published><updated>2009-01-28T09:47:41.316-08:00</updated><title type='text'>Move between scenes</title><content type='html'>&lt;p&gt;You can move between scenes in the authoring environment by selecting a scene  in the Scene panel.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;To open the Scene panel, select Window &gt; Other Panels &gt; Scene.  &lt;/li&gt;&lt;li&gt;Select Scene 1. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-7636646716772620120?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/7636646716772620120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/move-between-scenes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7636646716772620120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7636646716772620120'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/move-between-scenes.html' title='Move between scenes'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8666365217734750379</id><published>2009-01-28T09:47:00.001-08:00</published><updated>2009-01-28T09:47:22.156-08:00</updated><title type='text'>Add a scene</title><content type='html'>&lt;p&gt;You can use scenes in Flash to organize your document into discrete sections  that can contain content exclusive of other scenes. You'll create and add  content to a new scene.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select Insert &gt; Scene.  &lt;p&gt;You can no longer see Scene 1, and Scene 2 now appears above the Stage. The  Stage is empty.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;From the Library panel (Window &gt; Library), drag the Animation movie clip  to the Stage.  &lt;p&gt;With the movie clip selected, use the Property inspector to give the instance  an &lt;em&gt;x&lt;/em&gt; coordinate of &lt;strong&gt;200&lt;/strong&gt; and a &lt;em&gt;y&lt;/em&gt; coordinate of  &lt;strong&gt;15&lt;/strong&gt;. Press Enter (Windows) or Return (Macintosh).&lt;/p&gt; &lt;p&gt;The movie clip moves to the designated Stage coordinates. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Use the Property inspector to give the Animation movie clip an instance name  of &lt;strong&gt;animation_mc&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Rename Layer 1 &lt;strong&gt;Animation&lt;/strong&gt;.  &lt;p&gt;Create a new layer and name it &lt;strong&gt;Buttons&lt;/strong&gt;. Drag an instance of  the BTNback symbol to the Stage, and place it anywhere to the right of the movie  clip. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Use the Property inspector to give the button an instance name of  &lt;strong&gt;back_btn&lt;/strong&gt;. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8666365217734750379?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8666365217734750379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-scene.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8666365217734750379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8666365217734750379'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-scene.html' title='Add a scene'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-7676815330041372783</id><published>2009-01-28T09:46:00.002-08:00</published><updated>2009-01-28T09:47:03.174-08:00</updated><title type='text'>Name button instances</title><content type='html'>&lt;p&gt;You'll provide instance names for the buttons on the Stage so that you can  refer to the instance names in ActionScript.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the lower-right side of the Stage, select the button at the left.  &lt;p&gt;In the Property inspector (Window &gt; Properties), type &lt;strong&gt;goScene_btn  &lt;/strong&gt;in the Instance Name text box to name the instance of the symbol.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Select the middle button and use the Property inspector to give the button  an instance name of &lt;strong&gt;attachMovie_btn&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Select the far-right button and use the Property inspector to give the  button an instance name of &lt;strong&gt;playSound_btn&lt;/strong&gt;. &lt;/li&gt;&lt;p&gt;&lt;/p&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-7676815330041372783?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/7676815330041372783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/name-button-instances.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7676815330041372783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/7676815330041372783'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/name-button-instances.html' title='Name button instances'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6618269437705938101</id><published>2009-01-28T09:46:00.001-08:00</published><updated>2009-01-28T09:46:28.362-08:00</updated><title type='text'>Set up your workspace</title><content type='html'>&lt;p&gt;First, you'll open the start file for the lesson and set up your workspace to  use an optimal layout for taking lessons.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;To open your start file, in Flash select File &gt; Open and navigate to  the file:  &lt;ul&gt; &lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\ActionScript\Add Interactivity and  double-click interactivity_start.fla.  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/ActionScript/Add Interactivity and  double-click interactivity_start.fla. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The document opens in the Flash authoring environment. &lt;/p&gt; &lt;table class="notesidebar" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt; &lt;p&gt;&lt;/p&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Add Interactivity folder contains completed versions of the tutorial FLA  files for your reference.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Select File &gt; Save As and save the document with a new name, in the same  folder, to preserve the original start file.  &lt;p&gt;As you complete this lesson, remember to save your work frequently.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select Window &gt; Workspace Layout &gt; Default to configure your  workspace.  &lt;/li&gt;&lt;li&gt;In the Stage View pop-up menu, in the upper-right side of the Timeline,  select Show Frame to view both the Stage and the workspace.  &lt;/li&gt;&lt;li&gt;Click in the workspace, away from objects on the Stage, so that no objects  are selected. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6618269437705938101?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6618269437705938101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6618269437705938101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6618269437705938101'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace_28.html' title='Set up your workspace'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6722651067507822025</id><published>2009-01-21T18:37:00.000-08:00</published><updated>2009-01-21T18:40:13.523-08:00</updated><title type='text'>ActionScript: Create a Form with Conditional Logic and Send Data</title><content type='html'>You can create a form with conditional logic that allows the SWF file to  respond to user interaction and send the form data from the SWF file to an  external source. This tutorial shows you how to create a simple form. &lt;p&gt;Before taking this lesson, you should be familiar with writing functions and  variables; to learn about these, select Help &gt; Flash Tutorials &gt; Basic  Tasks: Create an Application.&lt;/p&gt; &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace_21.html"&gt;Set up your workspace&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-input-text-field-to-collect-form.html"&gt;Add an input text field to collect form  data&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-submit-button-to-form.html"&gt;Add a Submit button to the form&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-error-message.html"&gt;Add an error message&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-confirmation-message.html"&gt;Add a confirmation message&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-stop-action.html"&gt;Add a stop() action&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-frame-labels-for-navigation.html"&gt;Add frame labels for navigation&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/add-conditional-logic-for-submit-button.html"&gt;Add conditional logic for the Submit  button&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/pass-data-out-of-swf-file.html"&gt;Pass data out of a SWF file&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/write-function-for-try-again-button.html"&gt;Write a function for the Try Again  button&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/test-your-swf-file.html"&gt;Test your SWF file&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6722651067507822025?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6722651067507822025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-create-form-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6722651067507822025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6722651067507822025'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-create-form-with.html' title='ActionScript: Create a Form with Conditional Logic and Send Data'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-504833931310045459</id><published>2009-01-21T18:36:00.004-08:00</published><updated>2009-01-21T18:37:12.195-08:00</updated><title type='text'>Set up your workspace</title><content type='html'>First, you'll open the start file for the lesson and set up your workspace to  use an optimal layout for taking lessons. &lt;ol&gt;&lt;li&gt;To open your start file, in Flash select File &gt; Open and navigate to the  file:  &lt;ul&gt;&lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\ActionScript\Create a Form and  double-click simpleForm_start.fla.  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/ActionScript/Create a Form and  double-click simpleForm_start.fla. &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Create a Form folder contains completed versions of the tutorial FLA  files for your reference.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Select File &gt; Save As and save the document with a new name, in the same  folder, to preserve the original start file.  &lt;/li&gt;&lt;li&gt;Select Window &gt; Workspace Layout &gt; Default to set up your workspace  for taking lessons.  &lt;/li&gt;&lt;li&gt;If necessary, drag the lower edge of the timeline (Window &gt; Timeline)  down to enlarge the timeline view. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-504833931310045459?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/504833931310045459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace_21.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/504833931310045459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/504833931310045459'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace_21.html' title='Set up your workspace'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4230808778367003941</id><published>2009-01-21T18:36:00.003-08:00</published><updated>2009-01-21T18:36:48.840-08:00</updated><title type='text'>Add an input text field to collect form data</title><content type='html'>You'll start by inserting a text field in your document in which viewers can  enter data. You will also name the text field so you can later reference the  text field as you use ActionScript in your Flash application. &lt;ol&gt;&lt;li&gt;Click in the workspace, away from objects on the Stage, so that no objects  are selected.  &lt;/li&gt;&lt;li&gt;In the Tools panel, select the Text tool.  &lt;/li&gt;&lt;li&gt;In the Property inspector, do the following to set text attributes:  &lt;ul&gt;&lt;li&gt;Select Input Text from the Text Type pop-up menu.  &lt;/li&gt;&lt;li&gt;Select _sans from the Font pop-up menu.  &lt;/li&gt;&lt;li&gt;Enter &lt;strong&gt;10&lt;/strong&gt; in the Font Size text box.  &lt;/li&gt;&lt;li&gt;Click the text color box and select a shade of dark blue.  &lt;/li&gt;&lt;li&gt;Verify that Align Left is selected.  &lt;/li&gt;&lt;li&gt;Verify that Single Line is selected in the Line Type pop-up menu. &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;In the Timeline, select Frame 1 of the Input Text layer.  &lt;/li&gt;&lt;li&gt;On the Stage, drag the Text tool to create an input text field to the right  of the http:// text.  &lt;p&gt;&lt;img alt="" src="images/textbox.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;If necessary, use the Selection tool to drag the text field or use the  arrows keys to adjust the position.  &lt;/li&gt;&lt;li&gt;With the input text field still selected, in the Property inspector, type  &lt;strong&gt;url_txt&lt;/strong&gt; in the Instance Name text box.  &lt;p&gt;You'll refer to the instance name later when you add ActionScript.  &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4230808778367003941?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4230808778367003941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-input-text-field-to-collect-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4230808778367003941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4230808778367003941'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-input-text-field-to-collect-form.html' title='Add an input text field to collect form data'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2033669160552216672</id><published>2009-01-21T18:36:00.001-08:00</published><updated>2009-01-21T18:36:25.949-08:00</updated><title type='text'>Add a Submit button to the form</title><content type='html'>The Library panel contains a Submit button symbol that you will add to the  form. &lt;ol&gt;&lt;li&gt;From the Library panel (Window &gt; Library), drag the Submit button to the  Stage and place it over the SubmitURL guide.  &lt;p&gt;&lt;img alt="" src="images/submitAdded.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Drag the button or use the arrows keys to adjust the position, if necessary.   &lt;/li&gt;&lt;li&gt;In the Property inspector, type &lt;strong&gt;submit_btn&lt;/strong&gt; in the Instance  Name text box. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2033669160552216672?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2033669160552216672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-submit-button-to-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2033669160552216672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2033669160552216672'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-submit-button-to-form.html' title='Add a Submit button to the form'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4498273500609432599</id><published>2009-01-21T18:35:00.004-08:00</published><updated>2009-01-21T18:36:06.154-08:00</updated><title type='text'>Add an error message</title><content type='html'>You'll add a message to display if the user clicks the Submit button before  entering data.  &lt;ol&gt;&lt;li&gt;In the Timeline, with the Branding layer selected, click Insert Layer and  name the layer &lt;strong&gt;Dialog Boxes&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Select Frame 5 of the Dialog Boxes layer.  &lt;p&gt;Right-click (Windows) or Control-click (Macintosh) the selected layer and  select Insert Blank Keyframe from the context menu. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;From the Library panel, drag the &lt;code&gt;Dialog Box-error&lt;/code&gt; movie clip to  the center of the Stage.  &lt;p&gt;&lt;img alt="" src="images/errMsg_stage.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Timeline, select Frame 5 of the Buttons layer.  &lt;/li&gt;&lt;li&gt;Drag the Try Again Button symbol from the Library panel to the Stage,  placing the button below the error message text.  &lt;p&gt;&lt;img alt="" src="images/tryAgain.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;With the button still selected, in the Property inspector, enter  &lt;strong&gt;tryAgain_btn &lt;/strong&gt;in the Instance Name text box. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4498273500609432599?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4498273500609432599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-error-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4498273500609432599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4498273500609432599'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-error-message.html' title='Add an error message'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6825303815287626443</id><published>2009-01-21T18:35:00.003-08:00</published><updated>2009-01-21T18:35:51.390-08:00</updated><title type='text'>Add a confirmation message</title><content type='html'>Next, you'll add a message to display when the user submits an entry in the  text field. &lt;ol&gt;&lt;li&gt;In the Dialog Boxes layer, select Frame 10.  &lt;p&gt;Right-click (Windows) or Control-click (Macintosh) the selected frame and  select Insert Blank Keyframe from the context menu.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;From the Library panel, drag the &lt;code&gt;Dialog Box-confirm&lt;/code&gt; movie clip  to the center of the Stage.  &lt;/li&gt;&lt;li&gt;Close the Library panel. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6825303815287626443?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6825303815287626443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-confirmation-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6825303815287626443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6825303815287626443'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-confirmation-message.html' title='Add a confirmation message'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5784614278266914169</id><published>2009-01-21T18:35:00.001-08:00</published><updated>2009-01-21T18:35:30.556-08:00</updated><title type='text'>Add a stop() action</title><content type='html'>&lt;p&gt;When a Flash application loads in Flash Player, it automatically plays in a  continuous loop. You use ActionScript to control playhead movement in a  timeline. You will add a &lt;code&gt;stop()&lt;/code&gt; action in the first frame of your  application so the user can make an entry in the input text field. &lt;/p&gt; &lt;ol&gt;&lt;li&gt;In the Timeline, with the Input Text layer selected, add a new layer and  name it &lt;strong&gt;Actions&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Select Frame 1 of the Actions layer.  &lt;/li&gt;&lt;li&gt;In the Actions panel (Window &gt; Actions), verify that Frame 1 is selected.   &lt;p&gt;&lt;img alt="" src="images/actionsPanel.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click in the Script pane of the Actions panel, and type the following  comment:  &lt;p&gt;&lt;code&gt;&lt;strong&gt;// Stops the playhead at Frame 1&lt;/strong&gt;&lt;/code&gt;. &lt;/p&gt; &lt;p&gt;Press Enter (Windows) or Return (Macintosh). &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Type &lt;code&gt;&lt;strong&gt;stop()&lt;/strong&gt;&lt;/code&gt;&lt;strong&gt;; &lt;/strong&gt;to add the stop  action.  &lt;p&gt;&lt;img alt="" src="images/actionStop.jpg" border="0" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5784614278266914169?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5784614278266914169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-stop-action.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5784614278266914169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5784614278266914169'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-stop-action.html' title='Add a stop() action'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1376971822289117747</id><published>2009-01-21T18:34:00.006-08:00</published><updated>2009-01-21T18:35:11.081-08:00</updated><title type='text'>Add frame labels for navigation</title><content type='html'>When the viewer presses the Submit button, you want Flash to jump to either  the error message or the confirmation message, depending on what is entered in  the text field. Labeling a frame helps you reference it in ActionScript easily.  This is helpful for sending the playhead to a specific frame. &lt;p&gt;Next, you'll add frame labels to help you navigate your Flash  application.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Add a keyframe (Insert &gt; Timeline &gt; Keyframe) to Frame 5 of the  Actions layer.  &lt;/li&gt;&lt;li&gt;In the Property inspector, type &lt;strong&gt;error&lt;/strong&gt; in the Frame Label  text box.  &lt;p&gt;Press Enter (Windows) or Return (Macintosh). The label text and a flag appear  in Frame 5 of the Timeline.&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="images/labelError.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Add a keyframe to Frame 10 of the Actions layer.  &lt;p&gt;In the Property inspector, type &lt;strong&gt;confirm&lt;/strong&gt; in the Frame Label  text box. Press Enter or Return.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1376971822289117747?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1376971822289117747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-labels-for-navigation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1376971822289117747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1376971822289117747'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-frame-labels-for-navigation.html' title='Add frame labels for navigation'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8666212403347613769</id><published>2009-01-21T18:34:00.005-08:00</published><updated>2009-01-21T18:34:52.436-08:00</updated><title type='text'>Add conditional logic for the Submit button</title><content type='html'>With ActionScript, you can have Flash compare information and take action  based on criteria you specify. In this example, you'll add ActionScript for  Flash to take one action if the user enters no data in the text field, and a  different action if the user does enter data.  &lt;ol&gt;&lt;li&gt;Select Frame 1 of the Actions layer.  &lt;p&gt;In the Script pane, place the insertion point after the &lt;code&gt;stop();&lt;/code&gt;  code. Press Enter (Windows) or Return (Macintosh).&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Type the following comment:  &lt;p&gt;&lt;code&gt;&lt;strong&gt;// Adds conditional logic for the Submit button  that&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;strong&gt;// validates user input&lt;/strong&gt;&lt;/code&gt;. &lt;/p&gt; &lt;p&gt;Press Enter or Return.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Actions  panel, click Insert a Target Path, located at the top of the panel.  &lt;/li&gt;&lt;li&gt;In the Insert Target Path dialog box, verify that Relative is selected.  &lt;p&gt;Click submit_btn on the hierarchical tree, and click OK.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Script pane, type a period (&lt;strong&gt;.&lt;/strong&gt;) after  &lt;code&gt;submit_btn&lt;/code&gt;, and then type &lt;code&gt;&lt;strong&gt;onRelease&lt;/strong&gt;&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;With the insertion point after &lt;code&gt;onRelease&lt;/code&gt;, type &lt;code&gt;&lt;strong&gt;=  function (){}&lt;/strong&gt;&lt;/code&gt; in the Script pane.  &lt;/li&gt;&lt;li&gt;Place the insertion point between the curly braces and press Enter or  Return, and then type&lt;strong&gt; &lt;/strong&gt;&lt;code&gt;&lt;strong&gt;if (url_txt.text == null ||  url_txt.text == ""){&lt;/strong&gt;&lt;/code&gt;&lt;strong&gt; &lt;/strong&gt;in the Script pane.  &lt;p&gt;The parallel lines are equivalent to logical &lt;em&gt;or&lt;/em&gt; in ActionScript.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;With the insertion point still inside the curly braces, press Enter or  Return.  &lt;/li&gt;&lt;li&gt;Type&lt;code&gt;&lt;strong&gt; gotoAndStop("error");&lt;/strong&gt;&lt;/code&gt;&lt;strong&gt; &lt;/strong&gt;in  the Script pane.  &lt;p&gt;Press Enter or Return. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Place the insertion point after the curly brace and type&lt;strong&gt;  &lt;/strong&gt;&lt;code&gt;&lt;strong&gt;else{&lt;/strong&gt;&lt;/code&gt; in the Script pane.  &lt;p&gt;Press Enter or Return. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Type &lt;code&gt;&lt;strong&gt;gotoAndStop("confirm")&lt;/strong&gt;&lt;/code&gt; in the Script  pane.  &lt;p&gt;Press Enter or Return, and type &lt;code&gt;&lt;strong&gt;},&lt;/strong&gt;&lt;/code&gt; and then  press Enter or Return again and type&lt;strong&gt;  &lt;/strong&gt;&lt;code&gt;&lt;strong&gt;};&lt;/strong&gt;&lt;/code&gt;. Your script should appear as  follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;// Stops the playhead at Frame 1.&lt;br /&gt;stop();&lt;br /&gt;// Adds conditional logic for the Submit button that&lt;br /&gt;// validates user input.&lt;br /&gt;this.submit_btn.onRelease = function(){&lt;br /&gt;   if (url_txt.text == null || url_txt.text ==""){&lt;br /&gt;       gotoAndStop("error");&lt;br /&gt;} else {&lt;br /&gt;       gotoAndStop("confirm")&lt;br /&gt;   }&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8666212403347613769?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8666212403347613769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-conditional-logic-for-submit-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8666212403347613769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8666212403347613769'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-conditional-logic-for-submit-button.html' title='Add conditional logic for the Submit button'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2070833717083600891</id><published>2009-01-21T18:34:00.003-08:00</published><updated>2009-01-21T18:34:28.582-08:00</updated><title type='text'>Pass data out of a SWF file</title><content type='html'>You can send data from a Flash application in various ways--for example, in  this lesson you send data to a web server to load a web page in the browser.  After the &lt;code&gt;else&lt;/code&gt; statement, you'll add the ActionScript to have Flash  go to the URL the viewer enters in the input text field. &lt;ol&gt;&lt;li&gt;In the Script pane, place the insertion point in front of the line that  reads &lt;code&gt;gotoAndStop("confirm")&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;In the Actions toolbox, select Global Functions &gt; Browser/Network and  double-click &lt;code&gt;getURL&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;With the insertion point between the &lt;code&gt;getURL()&lt;/code&gt; parentheses, type  &lt;code&gt;&lt;strong&gt;"http://"+url_txt.text&lt;/strong&gt;&lt;/code&gt; to specify the data that  should pass from the SWF file.  &lt;p&gt;(Do not leave spaces in the code.) Your script should look like the  following:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;stop();&lt;br /&gt;this.submit_btn.onRelease = function(){&lt;br /&gt;   if (url_txt.text == null || url_txt.text ==""){&lt;br /&gt;       gotoAndStop("Error");&lt;br /&gt;} else {&lt;br /&gt;       getUrl ("http://"+url_txt.text);&lt;br /&gt;       gotoAndStop("Confirm")&lt;br /&gt;   }&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2070833717083600891?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2070833717083600891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/pass-data-out-of-swf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2070833717083600891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2070833717083600891'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/pass-data-out-of-swf-file.html' title='Pass data out of a SWF file'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3423231050052915862</id><published>2009-01-21T18:34:00.001-08:00</published><updated>2009-01-21T18:34:13.180-08:00</updated><title type='text'>Write a function for the Try Again button</title><content type='html'>A function is a script that you can use repeatedly to perform a specific  task. You can pass parameters to a function, and it can return a value. In this  example, when the user clicks the Try Again button, a function runs that returns  the playhead to Frame 1.  &lt;p&gt;You'll write that function now. In this script, you'll type the frame number,  because you did not label Frame 1. &lt;/p&gt; &lt;ol&gt;&lt;li&gt;In the Timeline, select Frame 5 of the Actions layer.  &lt;/li&gt;&lt;li&gt;In the Script pane, type the following comment:  &lt;p&gt;&lt;code&gt;&lt;strong&gt;// button function returns user to Frame 1&lt;/strong&gt;&lt;/code&gt;.  &lt;/p&gt; &lt;p&gt;Press Enter (Windows) or Return (Macintosh).&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Type &lt;code&gt;&lt;strong&gt;tryAgain_btn.onRelease = function(){&lt;/strong&gt;&lt;/code&gt;, and  then press Enter or Return.  &lt;/li&gt;&lt;li&gt;Type &lt;code&gt;&lt;strong&gt;gotoAndStop(1);&lt;/strong&gt;&lt;/code&gt;, and then press Enter or  Return and type &lt;code&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/code&gt; to complete the script.  &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3423231050052915862?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3423231050052915862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/write-function-for-try-again-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3423231050052915862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3423231050052915862'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/write-function-for-try-again-button.html' title='Write a function for the Try Again button'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1751516830286767008</id><published>2009-01-21T18:33:00.001-08:00</published><updated>2009-01-21T18:33:55.900-08:00</updated><title type='text'>Test your SWF file</title><content type='html'>&lt;table class="nav" border="0" cellpadding="0" cellspacing="0" width="100%"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td colspan="4"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;You'll test your document by entering a URL and checking whether it works as  expected. &lt;ol&gt;&lt;li&gt;Select Control &gt; Test Movie.  &lt;/li&gt;&lt;li&gt;When the SWF file appears, click Submit before typing anything in the input  text field.  &lt;p&gt;The error message appears.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Click Try Again, and then type the URL of a valid website in the input text  field.  &lt;p&gt;Click Submit.&lt;/p&gt; &lt;p&gt;Your default browser opens the web page.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1751516830286767008?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1751516830286767008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/test-your-swf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1751516830286767008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1751516830286767008'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/test-your-swf-file.html' title='Test your SWF file'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1167614043410163660</id><published>2009-01-21T18:22:00.000-08:00</published><updated>2009-01-21T18:30:33.142-08:00</updated><title type='text'>ActionScript: Work with Objects and Classes</title><content type='html'>Classes are the blueprint for objects in Macromedia Flash Basic 8 and Macromedia Flash Professional 8. All objects in Flash have an underlying class; for example, all movie clips have a method called getURL(), and getURL() is defined in the class definition for a movie clip. Flash contains many predefined classes, such as the MovieClip class, the Array class, the Color class, and the CheckBox class. This tutorial will show you how to create and modify classes. &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace.html"&gt;Set up your workspace&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/learn-about-classes-and-object-types.html"&gt;Learn about classes and object types&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/create-object-from-class.html"&gt;Create an object from a class&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/create-custom-class.html"&gt;Create a custom class&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/create-two-objects-from-product-class.html"&gt;Create two objects from the Product   class&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/learn-about-extending-existing-classes.html"&gt;Learn about extending existing classes&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/extend-movieclip-class-to-create-new.html"&gt;Extend the MovieClip class to create a new   class&lt;/a&gt;&lt;/p&gt; &lt;table border="0" cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;     &lt;tr&gt;       &lt;td width="5"&gt;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;       &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt;       &lt;td&gt;&lt;p&gt;This tutorial is designed for Flash developers who are familiar with basic   Flash and ActionScript concepts.&lt;/p&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt; &lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1167614043410163660?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1167614043410163660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-work-with-objects-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1167614043410163660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1167614043410163660'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/actionscript-work-with-objects-and.html' title='ActionScript: Work with Objects and Classes'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5779594673437964482</id><published>2009-01-21T18:21:00.004-08:00</published><updated>2009-01-21T18:22:17.903-08:00</updated><title type='text'>Summary</title><content type='html'>Congratulations on learning how to work with objects and classes in  ActionScript 2.0. In a few minutes, you learned how to accomplish the following  tasks: &lt;ul&gt;&lt;li&gt;Create and use objects from existing classes.  &lt;/li&gt;&lt;li&gt;Create a custom class.  &lt;/li&gt;&lt;li&gt;Create a property within a custom class.  &lt;/li&gt;&lt;li&gt;Create a method within a custom class.  &lt;/li&gt;&lt;li&gt;Extend an existing class and take advantage of inheritance. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5779594673437964482?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5779594673437964482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/summary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5779594673437964482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5779594673437964482'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/summary.html' title='Summary'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-304281262415725273</id><published>2009-01-21T18:21:00.003-08:00</published><updated>2009-01-21T18:21:54.814-08:00</updated><title type='text'>Extend the MovieClip class to create a new class</title><content type='html'>You'll create a new class by extending the built-in MovieClip class.  &lt;ol&gt;&lt;li&gt;Create a new Flash document and name it &lt;strong&gt;Shape.fla&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Using the drawing tools, draw a shape on the Stage.  &lt;p&gt;With the entire shape selected, right-click (Windows) or Control-click  (Macintosh) the shape and select Convert to Symbol from the context menu.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Convert to Symbol dialog box, select Movie Clip as the behavior, and  click Advanced.  &lt;p&gt;Select Export for ActionScript.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Name text box, enter &lt;strong&gt;myShape&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the AS 2.0 Class text box, enter &lt;strong&gt;Drag&lt;/strong&gt;.  &lt;p&gt;Click OK. This associates the movie clip with the Drag class that you'll  create. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Using the Property inspector, assign the movie clip an instance name, then  save the FLA file.  &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;A finished sample file of the document you just created, named handson3.fla,  is located in your finished files folder. For the path, see Set up your  workspace.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Create an ActionScript file by doing one of the following:  &lt;ul&gt;&lt;li&gt;If you're using Flash Professional 8, select File &gt; New &gt; ActionScript  File (Not Flash Document). Save the document with the name  &lt;strong&gt;Drag&lt;/strong&gt;, in the same location where you saved Shape.fla.  &lt;/li&gt;&lt;li&gt;If you're using Flash Basic 8, open a text editor, such as Notepad. Save the  file with the name &lt;strong&gt;Drag.as&lt;/strong&gt;, in the same location where you  saved Shape.fla. &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;In the ActionScript file that you just created, create a new class and  constructor called &lt;code&gt;Drag&lt;/code&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;class Drag extends MovieClip&lt;br /&gt;   {&lt;br /&gt;       function Drag ()&lt;br /&gt;       {&lt;br /&gt;           onPress=doDrag;&lt;br /&gt;   onRelease=doDrop;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Define private methods in the class that use the existing movie clip  methods, &lt;code&gt;startDrag()&lt;/code&gt; and &lt;code&gt;stopDrag()&lt;/code&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;class Drag extends MovieClip&lt;br /&gt; {&lt;br /&gt;function Drag()&lt;br /&gt;{&lt;br /&gt;   onPress=doDrag;&lt;br /&gt;   onRelease=doDrop;&lt;br /&gt;}&lt;br /&gt;private function doDrag():Void&lt;br /&gt;{&lt;br /&gt;this.startDrag();&lt;br /&gt;}&lt;br /&gt;private function doDrop():Void&lt;br /&gt;{&lt;br /&gt;   this.stopDrag()&lt;br /&gt;}   &lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Save the ActionScript file.  &lt;/li&gt;&lt;li&gt;Test the Shape.fla file.  &lt;p&gt;You should be able to drag the movie clip. &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;An example of the ActionScript file you just created, named Drag.as, is  located in your finished files folder. For the path, see Set up your workspace.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-304281262415725273?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/304281262415725273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/extend-movieclip-class-to-create-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/304281262415725273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/304281262415725273'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/extend-movieclip-class-to-create-new.html' title='Extend the MovieClip class to create a new class'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4255689393062525042</id><published>2009-01-21T18:21:00.001-08:00</published><updated>2009-01-21T18:21:23.227-08:00</updated><title type='text'>Learn about extending existing classes</title><content type='html'>The &lt;code&gt;extends&lt;/code&gt; keyword in ActionScript 2.0 allows you to use all  the methods and properties of an existing class in a new class. For example, if  you wanted to define a class called Drag that inherited everything from the  MovieClip class, you could use the following: &lt;div class="listing"&gt;&lt;pre&gt;class Drag extends MovieClip&lt;br /&gt;{}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;The Drag class now inherits all properties and methods from the existing  MovieClip class, and you can use MovieClip properties and methods anywhere  within the class definition, as in the following example:&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The following ActionScript is an example only. Do not enter the script in  your lesson FLA file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="listing"&gt;&lt;pre&gt;class Drag extends MovieClip&lt;br /&gt;{&lt;br /&gt;       // constructor&lt;br /&gt;       function Drag ()&lt;br /&gt;       {&lt;br /&gt;           onPress=doDrag;&lt;br /&gt;           onRelease=doDrop; &lt;br /&gt;       }&lt;br /&gt;       private function doDrag():Void&lt;br /&gt;       {&lt;br /&gt;           this.startDrag();&lt;br /&gt;       }&lt;br /&gt;       private function doDrop():Void&lt;br /&gt;       {&lt;br /&gt;           this.stopDrag();&lt;br /&gt;       }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The Convert to Symbol dialog box now offers a class field in which you can  associate visual objects (such as movie clip) with any class that you define in  ActionScript 2.0.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4255689393062525042?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4255689393062525042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/learn-about-extending-existing-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4255689393062525042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4255689393062525042'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/learn-about-extending-existing-classes.html' title='Learn about extending existing classes'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6704167418865024019</id><published>2009-01-21T18:20:00.003-08:00</published><updated>2009-01-21T18:20:59.847-08:00</updated><title type='text'>Create two objects from the Product class</title><content type='html'>You'll create a new FLA file, and then create two objects from the Product  class. &lt;ol&gt;&lt;li&gt;Open a new Flash document and save it in the same location where you saved  Product.as.  &lt;/li&gt;&lt;li&gt;In the new document, select Frame 1 in the Timeline.  &lt;/li&gt;&lt;li&gt;In the Actions panel, create two objects from the Product class using the  data shown in the following table (the ActionScript that you'll create appears  after the table).  &lt;table border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;th&gt; &lt;p&gt;Instance name&lt;/p&gt;&lt;/th&gt; &lt;th&gt; &lt;p&gt;Data&lt;/p&gt;&lt;/th&gt; &lt;th&gt;&lt;br /&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;pedals&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;id&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;0&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr bgcolor="#f8f8f8"&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;prodName&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;Clipless Pedals&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;description&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;Excellent cleat engagement&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr bgcolor="#f8f8f8"&gt; &lt;td&gt;&lt;code&gt;handleBars&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;id&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;1&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;prodName&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;ATB&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr bgcolor="#f8f8f8"&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;description&lt;/code&gt; &lt;/td&gt; &lt;td&gt;&lt;code&gt;Available in comfort and aero design&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Verify that you created the objects as follows:  &lt;div class="listing"&gt;&lt;pre&gt;var handleBars:Product = new Product (1, "ATB", "Available in comfort and aero design");&lt;br /&gt;var pedals:Product=new Product(0,"Clipless Pedals","Excellent cleat engagement");&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Trace the description property of pedals:  &lt;div class="listing"&gt;&lt;pre&gt;trace (pedals.getDescription ());&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Save and test the document.  &lt;p&gt;You should see the description of pedals in the Output panel.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;A finished sample file of the document you just created, named handson2.fla,  is located in your finished files folder. For the path, see Set up your workspace.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6704167418865024019?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6704167418865024019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-two-objects-from-product-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6704167418865024019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6704167418865024019'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-two-objects-from-product-class.html' title='Create two objects from the Product class'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1395878198638014703</id><published>2009-01-21T18:20:00.001-08:00</published><updated>2009-01-21T18:20:18.414-08:00</updated><title type='text'>Create a custom class</title><content type='html'>Although ActionScript includes many classes of objects, such as the MovieClip  class and the Color class, there will be times when you need to construct your  own classes so you can create objects based on a particular set of properties or  methods.  &lt;p&gt;To create a class that defines each of the new objects, you create a  constructor for a custom object class and then create new object instances based  on that new class, as in the following example:&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The following ActionScript is an example only. Do not enter the script in  your lesson FLA file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="listing"&gt;&lt;pre&gt;function Product (id:Number, prodName:String, price:Number)&lt;br /&gt;{&lt;br /&gt;   this.id = id;&lt;br /&gt;   this.prodName = prodName;&lt;br /&gt;   this.price = price;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;To properly define a class in ActionScript 2.0, you must surround all classes  by the &lt;code&gt;class&lt;/code&gt; keyword, and you must declare all variables in the  constructor outside of the constructor. &lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The following ActionScript is an example only. Do not enter the script in  your lesson FLA file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="listing"&gt;&lt;pre&gt;class Product&lt;br /&gt;{&lt;br /&gt;   // variable declarations&lt;br /&gt;   var id:Number&lt;br /&gt;   var prodName:String&lt;br /&gt;   var price:Number&lt;br /&gt;   // constructor&lt;br /&gt;   function Product (id:Number, prodName:String, price:Number){&lt;br /&gt;       this.id  = id;&lt;br /&gt;       this.prodName = prodName;&lt;br /&gt;       this.price = price;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;To create objects from this class, you could now use the following code:&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The following ActionScript is an example only. Do not enter the script in  your lesson FLA file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="listing"&gt;&lt;pre&gt;var cliplessPedal:Product=new Product(1, "Clipless Pedal", 11);&lt;br /&gt;var monkeyBar:Product=new Product(2, "Monkey Bar", 10);&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;However, in ActionScript 2.0, variables that are part of a class structure  should not be accessed directly. Write methods within the class that will access  these variables directly. Different methods should get and set properties (known  as "getter" and "setter" methods). You must indicate the data type for both a  method's return value and any parameters that are passed to the method when it  is called.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1395878198638014703?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1395878198638014703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-custom-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1395878198638014703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1395878198638014703'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-custom-class.html' title='Create a custom class'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8397405302872364509</id><published>2009-01-21T18:19:00.003-08:00</published><updated>2009-01-21T18:19:56.520-08:00</updated><title type='text'>Build a custom class</title><content type='html'>You'll now build a new Product class with getter and setter methods and  create an object from the Product class.  &lt;ol&gt;&lt;li&gt;Create an ActionScript file by doing one of the following:  &lt;ul&gt;&lt;li&gt;If you're using Flash Professional 8, select File &gt; New &gt; ActionScript  File (Not Flash Document). Save the document with the name  &lt;strong&gt;Product&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;If you're using Flash Basic 8, open a text editor, such as Notepad. Save the  file with the name &lt;strong&gt;Product.as&lt;/strong&gt;. (Remember to give the file the  .as extension, to create an ActionScript file.) &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Create a constructor for a Product class by creating a function called  Product that takes the arguments &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;prodName&lt;/code&gt;, and  &lt;code&gt;description&lt;/code&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;function Product (id:Number, prodName:String, description:String)&lt;br /&gt;{}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;In the constructor function, set the properties of the Product class equal  to the setter methods that you will create:  &lt;div class="listing"&gt;&lt;pre&gt;setID(id);&lt;br /&gt;setProdName(prodName);&lt;br /&gt;setDescription(description);&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Surround the &lt;code&gt;class&lt;/code&gt; keyword with the constructor function.  &lt;p&gt;Declare each variable used in the class:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;class Product&lt;br /&gt;{&lt;br /&gt;   var id:Number;&lt;br /&gt;   var prodName:String;&lt;br /&gt;   var description:String&lt;br /&gt;&lt;br /&gt;   function Product (id:Number, prodName:String, description:String)&lt;br /&gt;{&lt;br /&gt;       setID(id);&lt;br /&gt;       setProdName(prodName);&lt;br /&gt;       setDescription(description);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Define getter and setter methods for each property of the class, as in the  following example.  &lt;p&gt;Specify &lt;code&gt;Void&lt;/code&gt; as the return type for the setter methods, and  indicate the data type returned for the getter methods. &lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;class Product&lt;br /&gt;{&lt;br /&gt;       var id:Number;&lt;br /&gt;       var prodName:String;&lt;br /&gt;       var description:String&lt;br /&gt;      &lt;br /&gt;       function Product (id:Number, prodName:String, description:String) {&lt;br /&gt;           setID(id);&lt;br /&gt;           setProdName(prodName);&lt;br /&gt;           setDescription(description);&lt;br /&gt;}&lt;br /&gt;       public function setID (id:Number) :Void&lt;br /&gt;{&lt;br /&gt;           this.id = id;&lt;br /&gt;}&lt;br /&gt;       public function setProdName (prodName:String) :Void&lt;br /&gt;{&lt;br /&gt;           this.prodName = prodName;&lt;br /&gt;}&lt;br /&gt;       public function setDescription (description:String)  :Void&lt;br /&gt;{&lt;br /&gt;           this.description = description;&lt;br /&gt;}&lt;br /&gt;       public function getID () :Number {&lt;br /&gt;           return id;&lt;br /&gt;}&lt;br /&gt;       public function getProdName () :String {&lt;br /&gt;           return prodName&lt;br /&gt;}&lt;br /&gt;       public function getDescription () :String {&lt;br /&gt;           return description;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Save your file. &lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;A finished sample file of the file you just created, named Product.as, is  located in your finished files folder. For the path, see Set up your workspace.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8397405302872364509?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8397405302872364509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/build-custom-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8397405302872364509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8397405302872364509'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/build-custom-class.html' title='Build a custom class'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3192583338134970440</id><published>2009-01-21T18:19:00.001-08:00</published><updated>2009-01-21T18:19:23.699-08:00</updated><title type='text'>Specify the data type for method return values</title><content type='html'>You must indicate data types for values returned by methods after the method  name and list of parameters, as in the following example: &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The following ActionScript is an example only. Do not enter the script in  your lesson FLA file.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;div class="listing"&gt;&lt;pre&gt;public function getProductName() :String&lt;br /&gt;{&lt;br /&gt;   return name;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt;If no value is returned (for example, a property is being set), the data type  is &lt;code&gt;Void&lt;/code&gt;:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;public function setProductName(productName:String) :Void&lt;br /&gt;{&lt;br /&gt;   this.productName=productName;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3192583338134970440?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3192583338134970440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/specify-data-type-for-method-return.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3192583338134970440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3192583338134970440'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/specify-data-type-for-method-return.html' title='Specify the data type for method return values'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8054011274129155083</id><published>2009-01-21T18:18:00.002-08:00</published><updated>2009-01-21T18:19:01.292-08:00</updated><title type='text'>Create an object from a class</title><content type='html'>You'll create an existing class using visual tools (the TextField class) and  code (using the Date class).  &lt;ol&gt;&lt;li&gt;Open a new Flash document and change the name of Layer 1 to  &lt;strong&gt;Text&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the Text layer, create a dynamic text field and assign it the instance  name of &lt;strong&gt;currentDate_txt&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Create an Actions layer.  &lt;p&gt;With Frame 1 of the Actions layer selected, open the Actions panel.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Create, or instantiate, an object from the Date class, named  &lt;strong&gt;myDate&lt;/strong&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;var myDate:Date=new Date();&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Create a variable called &lt;strong&gt;currentMonth&lt;/strong&gt; equal to the  &lt;code&gt;getMonth()&lt;/code&gt; method:  &lt;div class="listing"&gt;&lt;pre&gt;var currentMonth:Number = myDate.getMonth();&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Trace the value of &lt;code&gt;currentMonth&lt;/code&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;trace (currentMonth);&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Save and test the document.  &lt;p&gt;You should see a number in the Output panel that represents the month.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;getMonth()&lt;/code&gt; method displays the current month. The  &lt;code&gt;getMonth()&lt;/code&gt; method is zero-indexed, meaning the numbering begins at  zero rather than one, so the number displayed is one less than what you would  expect. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Close the Output panel and the SWF file window. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8054011274129155083?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8054011274129155083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-object-from-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8054011274129155083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8054011274129155083'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-object-from-class.html' title='Create an object from a class'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-143541237748384519</id><published>2009-01-21T18:18:00.001-08:00</published><updated>2009-01-21T18:18:35.305-08:00</updated><title type='text'>Modify your script</title><content type='html'>You'll modify your script to compensate for the zero indexing. &lt;ol&gt;&lt;li&gt;Add &lt;strong&gt;+1&lt;/strong&gt; to the value when you create  &lt;code&gt;currentMonth,&lt;/code&gt; and test your document to be sure the expected month  number appears.  &lt;p&gt;That line of script should read as follows:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;var currentMonth:Number = myDate.getMonth()+1;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Comment the trace statement:  &lt;div class="listing"&gt;&lt;pre&gt;// trace (currentMonth);&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Below the trace statement, set the &lt;code&gt;autoSize&lt;/code&gt; property of your  text box to &lt;code&gt;true&lt;/code&gt;:  &lt;div class="listing"&gt;&lt;pre&gt;currentDate_txt.autoSize = true;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Use the text property of your text box to display today's date in the form  Today is mm/dd/yyyy.  &lt;p&gt;Use the &lt;code&gt;currentMonth&lt;/code&gt; variable you already created, plus the  &lt;code&gt;getDate()&lt;/code&gt; and &lt;code&gt;getFullYear()&lt;/code&gt; methods of the Date  object:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;currentDate_txt.text="Today is "+currentMonth+"/"+ myDate.getDate() + "/"+myDate.getFullYear();&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Verify that your script appears as follows:  &lt;div class="listing"&gt;&lt;pre&gt;var myDate:Date=new Date();&lt;br /&gt;var currentMonth:Number = myDate.getMonth()+1;&lt;br /&gt;// trace (currentMonth);&lt;br /&gt;currentDate_txt.autoSize = true;&lt;br /&gt;currentDate_txt.text="Today is "+currentMonth+"/"+ myDate.getDate() + "/"+myDate.getFullYear();&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Save and test the document.  &lt;p&gt;The current date should appear in the SWF file window.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;A finished sample file of the document you just created, named handson1.fla,  is located in your finished files folder. For the path, see Set up your workspace.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-143541237748384519?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/143541237748384519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/modify-your-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/143541237748384519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/143541237748384519'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/modify-your-script.html' title='Modify your script'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8391674883613419541</id><published>2009-01-21T18:17:00.003-08:00</published><updated>2009-01-21T18:17:55.623-08:00</updated><title type='text'>Learn about classes and object types</title><content type='html'>A &lt;em&gt;class,&lt;/em&gt; also referred to as an &lt;em&gt;object type,&lt;/em&gt; is like a  blueprint. An object doesn't exist until you create it, or instantiate it, from  a class definition. An object is an instance of a class. &lt;p&gt;Properties are the characteristics of an object. For example, when you align  movie clips, you change the &lt;code&gt;_x&lt;/code&gt; and &lt;code&gt;_y&lt;/code&gt; properties of  the MovieClip object. A property is a variable that is attached to a class. A  property can either be public, which means it is accessible outside the class,  or private, which means it can be accessed only within the class.&lt;/p&gt; &lt;p&gt;In object-oriented terms, a method is a behavior or procedure that can act on  the object. A hypothetical &lt;code&gt;throw()&lt;/code&gt; method on a ball would know the  size and weight of the ball. A method is aware of the object and all the  properties that it contains and can work on that object.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8391674883613419541?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8391674883613419541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/learn-about-classes-and-object-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8391674883613419541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8391674883613419541'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/learn-about-classes-and-object-types.html' title='Learn about classes and object types'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2388259385576130461</id><published>2009-01-21T18:17:00.001-08:00</published><updated>2009-01-21T18:17:38.474-08:00</updated><title type='text'>Set up your workspace</title><content type='html'>First, you'll view the finished files and set up your workspace to use an  optimal layout for taking lessons. &lt;ol&gt;&lt;li&gt;View the finished files.  &lt;p&gt;This lesson does not include start files. You can find finished files of  handson1.fla, handson2.fla, handson3.fla, Product.as, and Drag.as, which are  examples of the files that you'll create in this lesson:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\ActionScript\Work with Objects and  Classes.  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/ActionScript/Work with Objects and  Classes. &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Select Window &gt; Workspace Layout &gt; Default to configure your  workspace. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2388259385576130461?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2388259385576130461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2388259385576130461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2388259385576130461'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/set-up-your-workspace.html' title='Set up your workspace'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5701589314727917586</id><published>2009-01-21T18:15:00.000-08:00</published><updated>2009-01-21T18:17:02.312-08:00</updated><title type='text'>Data Integration: Overview (Flash Professional Only)</title><content type='html'>The following tutorials illustrate several ways to use data binding and the  data components in Macromedia Flash Professional 8. Many of the tutorials use  public web services and therefore require that you have an Internet connection.  In addition, the tutorials won't work in a browser because of sandbox  restrictions, but they will work in the Flash authoring environment or Flash  Player. &lt;ul&gt;&lt;li&gt;Data Integration: Using the Macromedia Tips  Web Service (Flash Professional Only)  &lt;/li&gt;&lt;li&gt;Data Integration: Using XML for a Timesheet  (Flash Professional Only)  &lt;/li&gt;&lt;li&gt;Data Integration: Using XUpdate to Update the  Timesheet (Flash Professional Only) &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;To complete the timesheet tutorials, you must download the file  data.xml.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;These tutorials are working models that illustrate how to use the data  components (XMLConnector, WebServices Connector, RDMBSResolver and  XUpdateResolver) with data binding in Flash Professional 8. They are not  intended to be production-ready applications.&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The use of public web services in these tutorials does not imply that you  should use them for real-world applications. In fact, Macromedia does not  recommend using public web services directly from within any client-side  application. For more information, see "Applications and Web Services" in the  "Data Integration" chapter in &lt;em&gt;Using Flash&lt;/em&gt; (in Flash, select Help &gt;  Using Flash).&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;If you have trouble downloading or decompressing the files, see TechNote  13686 at www.macromedia.com/support/general/ts/documents/downfiles.htm&lt;a href="http://www.macromedia.com/support/general/ts/documents/downfiles.htm" target="mm_window"&gt;.&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5701589314727917586?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5701589314727917586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-overview-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5701589314727917586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5701589314727917586'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-overview-flash.html' title='Data Integration: Overview (Flash Professional Only)'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4435338557200595945</id><published>2009-01-21T18:08:00.002-08:00</published><updated>2009-01-21T18:09:42.470-08:00</updated><title type='text'>Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)</title><content type='html'>In this tutorial, you use the Web Services panel to connect to a web service,  which you use to return a random tip about Macromedia software. You then use  components to set up a simple user interface. &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the Macro media Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;Connect to a public web service&lt;/p&gt; &lt;p&gt;Create a user interface and bind the  components with the web service&lt;/p&gt; &lt;p&gt;This tutorial uses a public web service and therefore requires that you have  an Internet connection.&lt;/p&gt; &lt;p&gt;If you have trouble downloading or decompressing the files, see TechNote  13686 at www.macromedia.com/support/general/ts/documents/downfiles.htm.&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The use of a public web service in this tutorial does not imply that you  should use one for real-world applications. In fact, Macromedia does not  recommend using public web services directly from within any client-side  application. For more information, see "About data connectivity and security in  Flash Player" in the "Data Integration" chapter in &lt;em&gt;Using Flash&lt;/em&gt; (in  Flash, select Help &gt; Using Flash). In a production environment, you should  use web services that are placed on your own web  server.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;The finished FLA file for this tutorial is installed with Flash. The  following list provides the typical paths to this directory.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\Data Integration\Tips  &lt;/li&gt;&lt;li&gt;On the Macintosh: browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/Data Integration/Tips &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4435338557200595945?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4435338557200595945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-macromedia-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4435338557200595945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4435338557200595945'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-macromedia-tips.html' title='Data Integration: Using the Macromedia Tips Web Service (Flash Professional Only)'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4620434223511835953</id><published>2009-01-21T18:08:00.001-08:00</published><updated>2009-01-21T18:08:39.987-08:00</updated><title type='text'>Connect to a public web service</title><content type='html'>Define a web service in Flash that will connect to a public web service. &lt;ol&gt;&lt;li&gt;Create a new Flash document using Flash Professional 8. Make sure your  computer is connected to the Internet.  &lt;/li&gt;&lt;li&gt;Open the Web Services panel (Window &gt; Other Panels &gt; Web Services),  and click Define Web Services.  &lt;/li&gt;&lt;li&gt;In the Define Web Services dialog box that appears, click Add Web Service  (+), and then click the highlighted line to edit it.  &lt;/li&gt;&lt;li&gt;Enter the URL &lt;strong&gt;http://www.flash-mx.com/mm/tips/tips.cfc?WSDL&lt;/strong&gt;  and click OK.  &lt;p&gt;&lt;img alt="" src="images/define_ws.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Web Services panel, inspect the methods, parameters, and results of  the Macromedia Tips web service.  &lt;p&gt;&lt;img alt="" src="images/ws_panel.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;The web service has one method, called &lt;code&gt;getTipByProduct()&lt;/code&gt;. This  method accepts a single parameter called &lt;code&gt;product&lt;/code&gt;. The parameter is  a string that tells the web service what Macromedia product you want to see a  tip for. In the next step, you bind this parameter with a ComboBox instance in  your application.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Right-click the &lt;code&gt;getTipByProduct()&lt;/code&gt; method, and select Add Method  Call from the context menu.  &lt;p&gt;&lt;img alt="" src="images/add_method.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;An instance of the WebServiceConnector component is added to the Stage.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Property inspector, enter the instance name  &lt;strong&gt;tips_wsc&lt;/strong&gt;.  &lt;p&gt;The component is now configured and on the Stage. You can place the component  anywhere on or off the Stage--it is invisible when you run the  application.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4620434223511835953?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4620434223511835953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/connect-to-public-web-service_21.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4620434223511835953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4620434223511835953'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/connect-to-public-web-service_21.html' title='Connect to a public web service'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-6007962355169405104</id><published>2009-01-21T18:07:00.002-08:00</published><updated>2009-01-21T18:08:13.107-08:00</updated><title type='text'>Create a user interface and bind the components with the web service</title><content type='html'>Next, you use components to create a simple user interface that you can use  to select a product, click a button, and see a random tip about the product. You  create this application by binding the user interface components on the Stage to  the parameters and returned results of the Macromedia Tips web service. &lt;ol&gt;&lt;li&gt;In the Components panel, select UI Components &gt; ComboBox. Drag a ComboBox  component to the Stage. In the Property inspector, enter the instance name  &lt;strong&gt;products_cb&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the Components panel, select UI Components &gt; Button. Drag a Button  component to the Stage. In the Property inspector, enter the instance name  &lt;strong&gt;submit_button&lt;/strong&gt; and for the label property type &lt;strong&gt;Get  Tip&lt;/strong&gt;, as follows:  &lt;p&gt;&lt;img alt="" src="images/button_label.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Components panel, select UI Components &gt; TextArea. Drag the  component onto the Stage. In the Property inspector, enter the instance name  &lt;strong&gt;tip_ta&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the Components panel, select UI Components &gt; Label and drag a Label  component onto the Stage. Place it above the ComboBox component.  &lt;/li&gt;&lt;li&gt;In the Property inspector, in the Instance name field type  &lt;strong&gt;products_lbl&lt;/strong&gt; and for the text property type &lt;strong&gt;Select a  Product&lt;/strong&gt;, as follows:  &lt;p&gt;&lt;img alt="" src="images/select_product.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;The Property inspector showing the instance name products_lbl and the  text "Select a Product"&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Drag another Label component above the &lt;code&gt;tip_ta&lt;/code&gt; TextArea  component. In the Property inspector, give it the Instance name  &lt;strong&gt;tip_lbl&lt;/strong&gt; and in the text field type &lt;strong&gt;Tip&lt;/strong&gt;s.  &lt;p&gt;&lt;img alt="" src="images/tip_interface.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;Now add a binding for the WebService connector component from the Macromedia  Tip web service to ComboBox component that allows the user to choose a product  and return a tip about the product.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select the WebServiceConnector component on the Stage. Open the Component  inspector and click the Bindings tab. Click Add Binding (+). In the Add Binding  dialog box, select &lt;code&gt;product:String&lt;/code&gt; (under  &lt;code&gt;params:Object)&lt;/code&gt; and click OK.  &lt;p&gt;&lt;img alt="" src="images/tip_addbinding.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Component inspector, double-click the empty value in the Bound To  field. In the Bound To dialog box, select &lt;code&gt;ComboBox,  &lt;products_cb&gt;&lt;/code&gt; for the component path and &lt;code&gt;value:String&lt;/code&gt;  for the schema location. Click OK.  &lt;p&gt;&lt;img alt="" src="images/tip_bindings.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Bound To field in the Component inspector&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img alt="" src="images/tip_boundto.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Selecting the component path and schema location in the Bound To  dialog box&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Next, you will bind the &lt;code&gt;results &lt;/code&gt;parameter in the web service  connector to the TextArea component on the Stage.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Component inspector, click Add Binding (+) again. In the Add Binding  dialog box, select &lt;code&gt;results:String&lt;/code&gt;, and then click OK. In the  Component inspector, double-click the empty value in the Bound To field, and in  the Bound To dialog box, select &lt;code&gt;TextArea, &lt;tip_ta&gt;&lt;/code&gt; as the  component path and &lt;code&gt;text:String&lt;/code&gt; as the schema location. Click OK.  &lt;p&gt;Finally, you will use a Button component and the &lt;code&gt;trigger()&lt;/code&gt;  method to trigger the service. You use the trigger method to attempt to retrieve  a tip whenever you click the button.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Open the Actions panel and add the following ActionScript on Frame 1 of the  Timeline:  &lt;div class="listing"&gt;&lt;pre&gt;submit_button.onRelease = function(){&lt;br /&gt;   tips_wsc.trigger();&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Next, add the following ActionScript after the code from step 10. The code  uses the &lt;code&gt;dataProvider&lt;/code&gt; property to set the items in the ComboBox  instance to the contents of the array.  &lt;div class="listing"&gt;&lt;pre&gt;products_cb.dataProvider = ["Flash", "Dreamweaver"];&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;If necessary, you can use the &lt;code&gt;setStyle()&lt;/code&gt; method to change the  color of the Label instance text to white using  &lt;code&gt;products_lbl.setStyle("color",  0xFFFFFF);&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Save your file.  &lt;/li&gt;&lt;li&gt;Test the application (Control &gt; Test Movie). Select  &lt;strong&gt;Flash&lt;/strong&gt; from the ComboBox instance and click Get Tip. The results  should look similar to the following screen shot:  &lt;p&gt;&lt;img alt="" src="images/tip_finalproduct.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select &lt;strong&gt;Dreamweaver&lt;/strong&gt; and click Get Tip again to view another  tip. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-6007962355169405104?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/6007962355169405104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-user-interface-and-bind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6007962355169405104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/6007962355169405104'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-user-interface-and-bind.html' title='Create a user interface and bind the components with the web service'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-5352102476206884819</id><published>2009-01-21T18:07:00.001-08:00</published><updated>2009-01-21T18:07:38.984-08:00</updated><title type='text'>Connect to a public web service</title><content type='html'>Define a web service in Flash that will connect to a public web service. &lt;ol&gt;&lt;li&gt;Create a new Flash document using Flash Professional 8. Make sure your  computer is connected to the Internet.  &lt;/li&gt;&lt;li&gt;Open the Web Services panel (Window &gt; Other Panels &gt; Web Services),  and click Define Web Services.  &lt;/li&gt;&lt;li&gt;In the Define Web Services dialog box that appears, click Add Web Service  (+), and then click the highlighted line to edit it.  &lt;/li&gt;&lt;li&gt;Enter the URL &lt;strong&gt;http://www.flash-mx.com/mm/tips/tips.cfc?WSDL&lt;/strong&gt;  and click OK.  &lt;p&gt;&lt;img alt="" src="images/define_ws.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Web Services panel, inspect the methods, parameters, and results of  the Macromedia Tips web service.  &lt;p&gt;&lt;img alt="" src="images/ws_panel.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;The web service has one method, called &lt;code&gt;getTipByProduct()&lt;/code&gt;. This  method accepts a single parameter called &lt;code&gt;product&lt;/code&gt;. The parameter is  a string that tells the web service what Macromedia product you want to see a  tip for. In the next step, you bind this parameter with a ComboBox instance in  your application.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Right-click the &lt;code&gt;getTipByProduct()&lt;/code&gt; method, and select Add Method  Call from the context menu.  &lt;p&gt;&lt;img alt="" src="images/add_method.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;An instance of the WebServiceConnector component is added to the Stage.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Property inspector, enter the instance name  &lt;strong&gt;tips_wsc&lt;/strong&gt;.  &lt;p&gt;The component is now configured and on the Stage. You can place the component  anywhere on or off the Stage--it is invisible when you run the  application.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-5352102476206884819?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/5352102476206884819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/connect-to-public-web-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5352102476206884819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/5352102476206884819'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/connect-to-public-web-service.html' title='Connect to a public web service'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-3653626910868022247</id><published>2009-01-21T18:06:00.000-08:00</published><updated>2009-01-21T18:07:08.415-08:00</updated><title type='text'>Data Integration: Using XML for a Timesheet (Flash Professional Only)</title><content type='html'>This tutorial shows you how to create an application for editing timesheet  data. The timesheet data is stored as XML within a native XML database. The  XUpdateResolver component is the best choice for this type of application,  because it generates XUpdate statements that can be sent to the server to update  the data.  &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following tasks:&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/create-user-interface.html"&gt;Create the user interface&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://flash-tutorial-help.blogspot.com/2009/01/edit-data.html"&gt;Edit the data&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This tutorial uses a public web service and therefore requires that you have  an Internet connection. In addition, the tutorial won't work in a browser  because of sandbox restrictions, but will work in the Flash authoring  environment or the stand-alone Flash Player.&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The use of a public web service in this tutorial does not imply that you  should use one for real-world applications. In fact, Macromedia does not  recommend using public web services directly from within any client-side  application. For more information, see About data connectivity and security  in Flash Player in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;For this tutorial, you will need to the data.xml file provided in the  Tutorial Assets folder. This file can be found in one of the following  locations: &lt;/p&gt; &lt;ul&gt;&lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\Data Integration\Using XML for a  Timesheet\data.xml  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/Data Integration/Using XML for a  Timesheet/data.xml &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;For demonstration purposes, you will access the XML data from your hard disk  and display the &lt;code&gt;DeltaPacket&lt;/code&gt; property within your screen. In the  real world, the XUpdate would be sent to the server for processing.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-3653626910868022247?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/3653626910868022247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-xml-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3653626910868022247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/3653626910868022247'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-xml-for.html' title='Data Integration: Using XML for a Timesheet (Flash Professional Only)'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-8976320964561642038</id><published>2009-01-21T18:04:00.001-08:00</published><updated>2009-01-21T18:04:57.477-08:00</updated><title type='text'>Edit the data</title><content type='html'>&lt;p&gt;Now you will modify the application so that you can edit data through the  DataGrid component.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;On the Stage, select the DataGrid component. Then click the Parameters tab  in the Component inspector.  &lt;/li&gt;&lt;li&gt;Set the &lt;code&gt;editable&lt;/code&gt; property to &lt;code&gt;true&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;Run the application.  &lt;p&gt;You can now edit the data within the grid.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-8976320964561642038?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/8976320964561642038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/edit-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8976320964561642038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/8976320964561642038'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/edit-data.html' title='Edit the data'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-2394067651542675237</id><published>2009-01-21T18:03:00.002-08:00</published><updated>2009-01-21T18:04:38.768-08:00</updated><title type='text'>Create the user interface</title><content type='html'>You will begin by creating a user interface, which displays the information  in the XML file. &lt;h2&gt;&lt;a name="115476"&gt;&lt;/a&gt;Add XMLConnector and DataSet Components&lt;/h2&gt; &lt;p&gt;First you will add the components that will manage the data.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Create a new Flash document using Flash Professional 8. Make sure your  computer is connected to the Internet.  &lt;/li&gt;&lt;li&gt;From the Components panel, open the Data category and drag an XMLConnector  component on the Stage. In the Property inspector, enter the instance name  &lt;strong&gt;timeInfo_con&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the Component inspector or the Property inspector, click the Parameters  tab. For the URL parameter, enter &lt;strong&gt;data.xml,&lt;/strong&gt; and for the  &lt;code&gt;Direction&lt;/code&gt; parameter, select Receive from the pop-up menu.  &lt;/li&gt;&lt;li&gt;From the Components panel, drag a DataSet component on the Stage. In the  Property inspector, enter the instance name &lt;strong&gt;timeInfo_ds&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;On the Stage, select the XMLConnector component. In the Component inspector,  click the Schema tab. Select the &lt;code&gt;results:XML&lt;/code&gt; property, and then  click Import a Schema from a Sample XML File on the upper-right side of the  Schema tab.  &lt;p&gt;&lt;img alt="" src="images/import_schema_btn.jpg" border="0" /&gt;&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;Alternatively, you can select Import XML Schema from the Component inspector  title bar menu.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Browse to where you saved the data.xml file, and select the file.  &lt;p&gt;The Schema tab now shows the structure of the data in the file. The  &lt;code&gt;row&lt;/code&gt; node is mapped to an ActionScript array of anonymous objects,  because it repeats several times within the XML file. Any subnodes or attributes  directly under the row node are considered properties of the anonymous objects  contained within the array. &lt;/p&gt; &lt;p&gt;For more information about how Flash translates XML documents into an  internal schema representation, see Data Integration (Flash Professional  Only) in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&lt;img alt="" src="images/imported_schema.jpg" border="0" /&gt;&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The XMLConnector component stores information internally as strings. When a  request is made for the data through a DataBinding component, you can define how  the string data is converted into the correct ActionScript types. This is  accomplished by selecting an item within the Schema Tree pane and modifying its  settings.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Select the Date schema field. Its type is set to String. This is because the  Flash authoring tool cannot determine that it is a date type based on its value.  You need to give Flash some additional information to encode this value  correctly.  &lt;/li&gt;&lt;li&gt;Select the Data Type parameter for the Date schema field and change it to  Date. This tells the DataBinding component to try to work with this value as a  date.  &lt;p&gt;&lt;img alt="" src="images/date_date.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;For more information on data binding and data types, see About handling data types in data  binding (Flash Professional only) in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select the encoder parameter for the Date schema field and change it to  Date. Select the &lt;code&gt;encoder options&lt;/code&gt; parameter and select the value  "MM/DD/YYYY". This tells the DataBinding component how the string value is  represented in the XML file. With this information, the DataBinding component  can successfully take any string in this format and convert it into an  ActionScript date object.  &lt;p&gt;&lt;img alt="" src="images/date_date2.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;For more information on data binding and encoders, see Schema encoders in &lt;em&gt;Using  Flash&lt;/em&gt; (in Flash, select Help &gt; Using Flash).&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select the &lt;code&gt;@billable&lt;/code&gt; schema field.  &lt;p&gt;The field's data type was automatically set to Boolean by the authoring tool,  which looks for certain patterns to guess the type of an XML element. However,  you need to modify the encoder options for the field. For Boolean data types,  the encoder options specify strings that indicate true and false values.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;With the &lt;code&gt;@billable&lt;/code&gt; schema field still selected, double-click  the Encoder Options field.  &lt;/li&gt;&lt;li&gt;In the Boolean Encoder dialog box that appears, enter &lt;strong&gt;true&lt;/strong&gt;  in the Strings That Mean True text box and enter &lt;strong&gt;false&lt;/strong&gt; in the  Strings That Mean False text box.  &lt;/li&gt;&lt;li&gt;Select the &lt;code&gt;@duration&lt;/code&gt; schema field.  &lt;p&gt;The field's data type was automatically set to Integer. This is because the  sample XML field contained only whole number values for this attribute. &lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select the Data Type setting for the &lt;code&gt;@duration&lt;/code&gt; schema field and  change it to Number so that it is not limited to integer values.  &lt;/li&gt;&lt;li&gt;In the Component inspector, click the Bindings tab.  &lt;/li&gt;&lt;li&gt;Click the Add Binding button.  &lt;/li&gt;&lt;li&gt;In the Add Binding dialog box, select the row: Array item and click OK.  &lt;/li&gt;&lt;li&gt;In the Component inspector, select the Direction property and set it to  &lt;code&gt;Out&lt;/code&gt;.  &lt;/li&gt;&lt;li&gt;Double-click the Bound To property.  &lt;/li&gt;&lt;li&gt;In the Bound To dialog box, click the Data Set component, and then select  the dataProvider: Array schema location and click OK.  &lt;p&gt;&lt;img alt="" src="images/parm_data_packet.jpg" border="0" /&gt;&lt;/p&gt; &lt;p&gt;The DataBinding component copies each object within the &lt;code&gt;row&lt;/code&gt;  array into a new record (transfer object) within the DataSet component. It  applies the settings you selected as the data is copied so that the DataSet  component receives ActionScript Date, Boolean, and Number fields for the  &lt;code&gt;@date&lt;/code&gt;, &lt;code&gt;@billable&lt;/code&gt;, and &lt;code&gt;@duration&lt;/code&gt;  attributes.&lt;/p&gt; &lt;p&gt;Next, you will create fields for the DataSet component that match those in  the XMLConnector component.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;On the Stage, select the DataSet component. In the Component inspector,  click the Schema tab.  &lt;/li&gt;&lt;li&gt;Click Add a Component Property (+) and enter &lt;strong&gt;id&lt;/strong&gt; for Field  Name and &lt;strong&gt;Integer&lt;/strong&gt; for Data Type.  &lt;/li&gt;&lt;li&gt;Using the same method, create the following new fields:  &lt;ul&gt;&lt;li&gt;Field Name = &lt;strong&gt;billable&lt;/strong&gt;, Data Type = &lt;strong&gt;Boolean&lt;/strong&gt;   &lt;/li&gt;&lt;li&gt;Field Name = &lt;strong&gt;date&lt;/strong&gt;, Data Type = &lt;strong&gt;Date&lt;/strong&gt;  &lt;/li&gt;&lt;li&gt;Field Name = &lt;strong&gt;duration&lt;/strong&gt;, Data Type = &lt;strong&gt;Number&lt;/strong&gt;  &lt;/li&gt;&lt;li&gt;Field Name = &lt;strong&gt;rate&lt;/strong&gt;, Data Type = &lt;strong&gt;Number&lt;/strong&gt;  &lt;/li&gt;&lt;/ul&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The field names must exactly match the names of their corresponding  properties within the XMLConnector component (@date = &lt;code&gt;date&lt;/code&gt;,  @billable = &lt;code&gt;billable&lt;/code&gt;, @duration = &lt;code&gt;duration&lt;/code&gt;), including  capitalization.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;img alt="" src="images/new_fields.jpg" border="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Select the Date field that you just created. Select the encoder setting and  change it to DateToNumber.  &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The DataSet component needs to store date values internally in their numeric  format so that they can be sorted correctly. The DateToNumber encoder converts a  date into a number whenever the value is set. It converts a number into a date  whenever the value is accessed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;With the Date field still selected, double-click the Formatter field in the  Component inspector and select Date from the pop-up menu.  &lt;/li&gt;&lt;li&gt;Double-click the Formatter Options field in the Component inspector.  &lt;/li&gt;&lt;li&gt;In the Date Formatter Settings dialog box that appears, enter  &lt;strong&gt;MM-DD-YYYY&lt;/strong&gt; in the Format text box. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-2394067651542675237?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/2394067651542675237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-user-interface.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2394067651542675237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/2394067651542675237'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/create-user-interface.html' title='Create the user interface'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-4451643974327373267</id><published>2009-01-21T18:03:00.001-08:00</published><updated>2009-01-21T18:03:46.418-08:00</updated><title type='text'>Add DataGrid and Button components</title><content type='html'>Next you will add components for displaying the data. &lt;ol&gt;&lt;li&gt;From the Components panel, open the User Interface category and drag a  DataGrid component to the Stage.  &lt;/li&gt;&lt;li&gt;In the Property inspector enter the instance name  &lt;strong&gt;timeInfo_grd&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Still in the Property inspector, set the Width to &lt;strong&gt;360&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;In the Component inspector, click the Bindings tab.  &lt;/li&gt;&lt;li&gt;Click the Add Binding button.  &lt;/li&gt;&lt;li&gt;In the Add Binding dialog box, select the dataProvider: Array item and click  OK.  &lt;/li&gt;&lt;li&gt;In the Bindings tab, click the Bound To property.  &lt;/li&gt;&lt;li&gt;In the Bound To dialog box, click the Data Set component, and then select  the dataProvider: Array schema location and click OK.  &lt;/li&gt;&lt;li&gt;In the Bindings tab, set the Direction to In.  &lt;/li&gt;&lt;li&gt;With the Data Grid still selected, go to the Component inspector Bindings  tab and click the Add Binding button.  &lt;/li&gt;&lt;li&gt;In the Add Binding dialog box, select the selectedIndex: Number item and  click OK.  &lt;/li&gt;&lt;li&gt;Double-click the Bound To property.  &lt;/li&gt;&lt;li&gt;In the Bound To dialog box, click the Data Set component, and then select  the selectedIndex: Number schema location and click OK.  &lt;/li&gt;&lt;li&gt;Leave the Direction property set to In/Out.  &lt;/li&gt;&lt;li&gt;Drag a Button component to the Stage, and give it the instance name  &lt;strong&gt;loadData_btn&lt;/strong&gt; in the Property inspector.  &lt;/li&gt;&lt;li&gt;In the Component inspector, click the Parameters tab. In the Label field,  type &lt;strong&gt;Load Data&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;With the button still selected on the Stage, open the Behaviors panel  (Window &gt; Behaviors).  &lt;/li&gt;&lt;li&gt;Click Add Behavior (+), and select Data &gt; Trigger Data Source. In the  Trigger Data Source dialog box, select the timeInfo_con component, and click OK.   &lt;/li&gt;&lt;li&gt;Save the file in the same folder where the data.xml file resides.  &lt;/li&gt;&lt;li&gt;Run the application, and click Load Data.  &lt;p&gt;The XML data is retrieved, converted, and loaded into the DataSet component.  The binding between the DataSet and the DataGrid copies the data into the grid  for display. &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-4451643974327373267?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/4451643974327373267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-datagrid-and-button-components.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4451643974327373267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/4451643974327373267'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/add-datagrid-and-button-components.html' title='Add DataGrid and Button components'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-1873556770425137798</id><published>2009-01-21T18:02:00.000-08:00</published><updated>2009-01-21T18:03:07.703-08:00</updated><title type='text'>Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)</title><content type='html'>&lt;strong&gt;Prerequisite: &lt;/strong&gt;Data  Integration: Using XML for a Timesheet (Flash Professional Only) &lt;p&gt;This tutorial starts where the Data  Integration: Using XML for a Timesheet (Flash Professional Only) tutorial  left off. Now that the DataSet component is managing the data, it is tracking  changes that are made to the data into the &lt;code&gt;DeltaPacket&lt;/code&gt; property. A  resolver is needed to send the changes back to the server in an optimized way.  The XUpdateResolver component is the best choice for updating an XML source,  because it generates XUpdate statements that can be sent to the server to update  the data. &lt;/p&gt; &lt;p&gt;You can print this tutorial by downloading a PDF version of it from the  Macromedia Flash Documentation page at www.macromedia.com/go/fl_documentation.&lt;/p&gt; &lt;p&gt;In this tutorial, you will complete the following task:&lt;/p&gt; &lt;p&gt;Update the timesheet&lt;/p&gt; &lt;p&gt;This tutorial uses a public web service and therefore requires that you have  an Internet connection. In addition, the tutorial won't work in a browser  because of sandbox restrictions, but will work in the Flash authoring  environment or Flash Player.&lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The use of a public web service in this tutorial does not imply that you  should use one for real-world applications. In fact, Macromedia does not  recommend using public web services directly from within any client-side  application. For more information, see About data connectivity and security  in Flash Player in &lt;em&gt;Using Flash&lt;/em&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;For this tutorial, you will need to the data.xml file provided in the  Tutorial Assets folder. This file can be found in one of the following  locations: &lt;/p&gt; &lt;ul&gt;&lt;li&gt;In Windows, browse to &lt;em&gt;boot drive&lt;/em&gt;\Program Files\Macromedia\Flash  8\Samples and Tutorials\Tutorial Assets\Data Integration\Using XML for a  Timesheet\data.xml  &lt;/li&gt;&lt;li&gt;On the Macintosh, browse to &lt;em&gt;Macintosh HD&lt;/em&gt;/Applications/Macromedia  Flash 8/Samples and Tutorials/Tutorial Assets/Data Integration/Using XML for a  Timesheet/data.xml  &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;For demonstration purposes, you will access the XML data from your hard disk  and display the &lt;code&gt;DeltaPacket&lt;/code&gt; property within your screen. In the  real world, the XUpdate would be sent to the server for processing.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-1873556770425137798?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/1873556770425137798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-xupdate-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1873556770425137798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/1873556770425137798'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/data-integration-using-xupdate-to.html' title='Data Integration: Using XUpdate to Update the Timesheet (Flash Professional Only)'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3372001843010663899.post-9075755848686469874</id><published>2009-01-21T18:00:00.000-08:00</published><updated>2009-01-21T18:02:09.357-08:00</updated><title type='text'>Update the timesheet</title><content type='html'>Now you will set up the bindings to allow the time sheet to be updated. &lt;ol&gt;&lt;li&gt;Begin with the file you created in the Data  Integration: Using XML for a Time sheet (Flash Professional Only) tutorial.  &lt;/li&gt;&lt;li&gt;In the Components panel, open the Data category and drag an XUpdateResolver  component to the Stage.  &lt;/li&gt;&lt;li&gt;In the Property inspector, enter the instance name  &lt;strong&gt;timeInfo_rs&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Click the Schema tab in the Component inspector, and select the  &lt;code&gt;deltaPacket&lt;/code&gt; component property within the Schema Tree pane.  &lt;/li&gt;&lt;li&gt;Change the DeltaPacket component's encoder setting to  DataSetDeltaToXUpdateDelta.  &lt;p&gt;This encoder converts data within the DeltaPacket into XPath statements that  are supplied to the XUpdateResolver component, but it needs additional  information from you to do its job.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;Double-click the &lt;code&gt;encoder options&lt;/code&gt; property. When prompted for a  value for the &lt;code&gt;rowNodeKey&lt;/code&gt; property, type  &lt;strong&gt;datapacket/row[@id='?id']&lt;/strong&gt;&lt;code&gt;.&lt;/code&gt;  &lt;p&gt;This property identifies which node within the XML file will be treated as a  record within the data set. It also defines which element or attribute  combination makes the row node unique, as well as the schema field within the  DataSet component that will represent it. See Updates sent to an external data  source in &lt;em&gt;Using Flash&lt;/em&gt; (in Flash, select Help &gt; Using Flash).&lt;/p&gt; &lt;p&gt;In the sample XML file, the &lt;code&gt;id&lt;/code&gt; attribute of the  &lt;code&gt;datapacket/row&lt;/code&gt; node is the unique identifier, and it will be mapped  to the DataSet component's ID schema field. This is defined with the following  expression:&lt;/p&gt; &lt;div class="listing"&gt;&lt;pre&gt;datapacket/row[@id='?id']&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;In the Component inspector, click the Bindings tab.  &lt;/li&gt;&lt;li&gt;Click the Add Binding button.  &lt;/li&gt;&lt;li&gt;In the Add Binding dialog box, click the &lt;code&gt;deltaPacket&lt;/code&gt; property  and click OK.  &lt;/li&gt;&lt;li&gt;In the Component inspector Bindings tab, double-click the Bound To property.   &lt;/li&gt;&lt;li&gt;In the Bound To dialog box, click the Data Set component, and then click the  &lt;code&gt;deltaPacket&lt;/code&gt; schema location and click OK.  &lt;p&gt;This binding will copy the DeltaPacket component to the XUpdateResolver  component so that it can be manipulated before it is sent to the server. &lt;/p&gt; &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;The data is copied after the DataSet component's &lt;code&gt;applyUpdates()&lt;/code&gt;  method is called.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Drag a TextArea component onto the Stage, and in the Property inspector  enter the instance name &lt;strong&gt;deltaText&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Still in the Property inspector, set the Width to &lt;strong&gt;360&lt;/strong&gt;.  &lt;/li&gt;&lt;li&gt;Select the component, and then in the Component inspector, click the  Bindings tab.  &lt;/li&gt;&lt;li&gt;Click the Add Binding button.  &lt;/li&gt;&lt;li&gt;In the Add Binding dialog box, click the &lt;code&gt;text: String&lt;/code&gt; property  and click OK.  &lt;/li&gt;&lt;li&gt;In the Bindings tab, double-click the Bound To property.  &lt;/li&gt;&lt;li&gt;In the Bound To dialog box, click the XUpdateResolver component, and then  click the &lt;code&gt;xupdatePacket&lt;/code&gt; schema location and click OK.  &lt;p&gt;The update packet contains the modified version of the DeltaPacket that will  be sent to the server.&lt;/p&gt; &lt;/li&gt;&lt;li&gt;In the Components panel, open the User Interface category and drag a Button  component onto the Stage.  &lt;/li&gt;&lt;li&gt;In the Property inspector, enter the instance name  &lt;strong&gt;btn_show&lt;/strong&gt;. In the Component inspector, click the Parameters tab  and change the label to Show Updates.  &lt;/li&gt;&lt;li&gt;With the button selected, open the Actions panel (F9) and enter the  following code:  &lt;div class="listing"&gt;&lt;pre&gt;on (click) {&lt;br /&gt;  _parent.timeInfo_ds.applyUpdates();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt;Test the application (Control &gt; Test Movie). Load the data and make a  change to one or more fields in multiple records.  &lt;/li&gt;&lt;li&gt;Click Show Updates. Review the XML packet in the TextArea component.  &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;TIP&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;You can copy the XML data into your favorite XML editor to make it easier to  read.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/li&gt;&lt;li&gt;Try setting the &lt;code&gt;includeDeltaPacketInfo&lt;/code&gt; parameter of the  XUpdateResolver component to &lt;code&gt;true&lt;/code&gt; using the Component inspector.  &lt;table class="notesidebar" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width="5"&gt; &lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width="1"&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt; &lt;p&gt;Additional information is added to the update packet. This information can be  used by the server to uniquely identify this update operation. With this  information, the server can generate a result packet that can be used by the  XUpdateResolver component and the DataSet component to update the client data  with changes from the server.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3372001843010663899-9075755848686469874?l=flash-tutorial-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flash-tutorial-help.blogspot.com/feeds/9075755848686469874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/update-timesheet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9075755848686469874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3372001843010663899/posts/default/9075755848686469874'/><link rel='alternate' type='text/html' href='http://flash-tutorial-help.blogspot.com/2009/01/update-timesheet.html' title='Update the timesheet'/><author><name>Visuals India</name><uri>http://www.blogger.com/profile/16899761912357885086</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
