First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Jonathan Kaye | Website: http://www.amethyst-research.com


With a custom user interface (UI), you set values within the xch object to transfer to the component. With Live Preview, you read values from the xch object. Unlike making a custom UI, you do not have to create the xch object for your Live Preview movie. Whenever the user has made a change to a component property, Flash invokes a function you define in the Live Preview called onUpdate. In that way, you are told when it may be necessary to update the preview you are displaying.

The Live Preview movie is designed for previewing basic characteristics of the component, such as color and size, rather than previewing animation, since the movie runs only at one (1) frame per second. This is designed not to hurt the performance of the authoring environment.

Let's now make a live preview movie for the triangle component. Before we begin, however, we need to consider how the Live Preview will be different from the actual component. In many circumstances, they will not be different, and it is perfectly acceptable to use and control an instance of your component within a Live Preview movie. In our situation, when we are using the real component, turning on the tint cannot be reversed. In the design phase, however, we may want to see what the triangle is like tinted and non-tinted. Therefore, we cannot use the same tinting code we did for the real component. Instead, we make two triangles, one for non-tinted viewing and one for tinted viewing. When the designer wants to see tinting, we apply the tinting, display the tinted triangle, and hide the non-tinted triangle. When the designer wants not to see the tinting, we hide the tinted view and display the non-tinted triangle.

» Level Intermediate

Added: 2002-04-16
Rating: 8 Votes: 55
(10 being the highest)
» Author
Jonathan Kaye, PhD, is the President and CTO of Amethyst Research LLC, an award-winning interactive design and engineering firm specializing in the creation of online device simulations. He and David Castillo are the authors of "Flash for Interactive Simulation: How to Construct and Use Device Simulations", to be published by Delmar Thomson Learning in November, 2002 (the accompanying web site will be www.FlashSim.com).
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


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

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

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

Audio Player

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

Audio Player

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