AFComponents.com

Working with Properties in 3D Flow list: Creating a Preview Clip for Items
Updated: Mar 26, 2008   Views: 1228  
Description: This tutorial will show you how to take a movie Clip from your library and connect it to your 3D Flow list AS3.0 Component so that it displays as a placeholder immediately at the start until your images load.


Set-Up and Add Content Using through XML


Before you begin make sure that you have successfully installed the component inspector have been able to load content into the 3d Flow list component using XML. Also make sure that you give your 3d Flow list has an instance name of myFlow.

Creating the Preview Clip Movie Clip


Next, you will need to create your Preview Clip. Create a new movie clip (Insert > New Symbol). Give it a name: PreviewClip and select type: Movie Clip. You can now create your graphic or animation using the timeline.

Export our Preview Clip for ActionScript

We now need to export our new preview clip for ActionScript. We do this by opening our library (Window > Library) and finding our Movie Clip that we created and right clicking and selecting Linkage. Check the box Export for ActionScript, make sure Export for first frame is checked, and give it a Class name of PreviewClip.

Setting the Preview Clip Property of the 3D Flow list Component

Next, we need to connect our preview clip to our 3D Flow list Component. We do this by selecting our 3D Flow list Component on the stage and opening either the Parameters Panel (Window > Properties) or Component Inspector (Window > Component Inspector). We find the previewClip property and set this to the class name that we used in the last step: PreviewClip.

This can also be done in ActionScript:

myFlow.previewClip = "PreviewClip";


© 2005-2007 advanced flash components