|
Free Open Book
Macromedia Flash 8 Bible |
Phase 5: Finalizing the ComponentYou've completed all of the scripting for the Gallery component — Congratulations! You can now deploy Flash movies with the Gallery component. In this last section, you learn how to enable inspectable properties of the Gallery class to display in the Parameters tab of the Property inspector (or Component Inspector panel). Adding the Component DefinitionIf you open the Library panel of the main_starter.fla document, you can see that the symbol type of the Gallery symbol is a Movie Clip. In order to convert the component to a fullfledged component (complete with component icon!), you need to specify the Gallery class in the Component Definition dialog box.
Now, you can change the thumbnail height, server host, and thumbnail script values directly in the Property inspector.
Changing Script Paths for Final DeploymentWhen you're ready to deploy a Flash movie featuring the Gallery component, keep in mind that you may very likely need to change to the values used in the frame 1 script to initiate loading of the XML data from the files.php script. Make sure you specify a valid Web folder name (or path) as the dir value appended to the files.php filename in the XML.load() handler. You may also need to update the name and path to the resize.php script in the onFileData() handler written within the frame 1 script.
|
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |