My Account
Bookmark and Share

Art Photo Gallery

Art Photo Gallery organically blends with any design thanks to flexible appearance settings. You can publish any photos and images on your site in a matter of minutes using this photo gallery. More Info

Help  >  FAQ  >  Publishing A Gallery Component Without Using An Xml File (using API Functions)


Publishing a gallery component without using an XML file (using API functions)

 

IMPORTANT: To publish a gallery component without using an XML file, you need ActionScript 3.0 programming skills. If you are not familiar with ActionScript 3.0, we suggest you publish the component using an XML file.


To successfully use gallery components in your Flash projects, it suffices to install an MXP-file (GalleryNameCS3.mxp or GalleryNameCS4.mxp) - package of the Flash-Component.

 

Let’s analyze the gallery publishing procedure step by step:

  1. To start with, make sure the Flash component is installed. To do so, open the Components panel in Adobe Flash and make sure the gallery name is displayed in the “flash-gallery.com” component group.
  2. Drag the component from the Components panel to the stage of your Flash movie.
  3. After activating the component, you first have to specify the name for the component instance on the stage (e.g., GalleryInstance).
  4. Then, to work with the gallery without using the XML file, you need to use API functions that you can find in the relevant help section.
  5. To apply all changes, call the buildGallery() function.
    Note: You will not see images in your gallery until you call the buildGallery() function.
  6. Compile your .fla file.