List of Listings


Chapter 17: Displaying Video

Listing 17-1: The Frame 1 Script
Listing 17-2: The XML Cue Point data
Listing 17-3: The XML Parsing Routine
Listing 17-4: The SMIL Data
Listing 17-5: Initiating SMIL Data for Streaming Video
Listing 17-6: Creating a Bandwidth Detection Script
Listing 17-7: Using Alpha Video as a Mouse Cursor

Chapter 22: Integrating Flash Content with Web Pages

Listing 22-1: The Detection Script on Frame 2 of the actions Layer
Listing 22-2: The Script on the checkPlayer Frame of the actions Layer
Listing 22-3: The JavaScript Code to Enable the ExternalInterface Actions
Listing 22-4: The JavaScript Code for the percentLoaded() Function

Chapter 27: Interacting with Movie Clips

Listing 27-1: The onMouseMove() Handler for the circleLarge_mc Instance
Listing 27-2: Checking for the Pass Red Label
Listing 27-3: Checking for the rabid Label0
Listing 27-4: Checking for the Restore Label
Listing 27-5: The createLib() Function
Listing 27-6: The printContent() Function
Listing 27-7: Scaling Content in the printContent() Function
Listing 27-8: Resetting the Scale of the clip Instance

Chapter 28: Sharing and Loading Assets

Listing 28-1: The Preloading Script Routine
Listing 28-2: The Preloading Script Routine
Listing 28-3: The Listener Code for the cbtLoad Instance
Listing 28-4: Modifying the oLoader.click() Handler
Listing 28-5: An Example of a MovieClipLoader Object at Work
Listing 28-6: Using loadSound() for External MP3 Files
Listing 28-7: Creating a NetStream Object to Access Flash Video Content
Listing 28-8: The Updated onMetaData() Handler
Listing 28-9: The loaderClip Symbol Code
Listing 28-10: The loadFile.as Script
Listing 28-11: The Modified loadFile_component.as Script
Listing 28-12: Modifying the Code for the ProgressBar Component

Chapter 29: Sending Data In and Out of Flash

Listing 29-1: The sendComments() Function

Chapter 30: Applying HTML and Text Field Formatting

Listing 30-1: The h1, h2, and Body Styles
Listing 30-2: The movieStyle Object
Listing 30-3: The showText() function
Listing 30-4: The Modified showText() Function
Listing 30-5: Applying Anti-Aliasing to TextField Instances
Listing 30-6: Creating a Rectangle Object
Listing 30-7: Attaching a UIScrollBar Component

Chapter 32: Managing and Troubleshooting Flash Movies

Listing 32-1: Sample Code to Aid Syntax Color Settings
Listing 32-2: A Sample Script Using Strong Data Typing

Chapter 33: Using Components

Listing 33-1: The text_data Object
Listing 33-2: The onSignUpClick() Handler for the Button component
Listing 33-3: The onSectionChange() Handler for the ComboBox Component
Listing 33-4: An Example of Using the _global.style Object
Listing 33-5: Changing the Style of a Specific Component Class

Chapter 34: Binding Data and Events to Components

Listing 34-1: The List of Video Assets
Listing 34-2: Auto-playing the First Video Clip
Listing 34-3: Capturing Metadata from the .flv File
Listing 34-4: Creating Custom Header Text for DataGrid Columns

Chapter 35: Building an Image Gallery Component

Listing 35-1: The XML Data for the JPEG Files
Listing 35-2: The Gallery Class Constructor
Listing 35-3: The Data Properties of the Gallery Class
Listing 35-4: The Thumbnail Creation Process
Listing 35-5: Loading the XML Data
Listing 35-6: Tracking the Active Thumbnail
Listing 35-7: The onLoadInit() and updateScroller() Functions
Listing 35-8: Framing the Selected Thumbnail
Listing 35-9: Copying and Blurring the Thumbnail Image
Listing 35-10: Tweening the Thumbnail States
Listing 35-11: The displayCaption() Function
Listing 35-12: The onRollOver() and onRollOut() Thumbnail Handlers
Listing 35-13: Utilizing the FileReference API




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net