Class: FZGetGalleryManager


Class allow you to get photogallery configuration XML (small images URL, big images URL, description and other) by photogallery ID.

Function getGallery


public static function getGallery(rootId:String, onReceive:Function, onFault:Function = null):void


Example:

public function loadFromXML(value:XML):void {
  var nodeId:String = value.nodeId;
  if(nodeId != "-1" && nodeId != "0" && nodeId != "") { 
    FZGetGalleryManager.getGallery(nodeId, photoDataReceive);
  } 
}
 
public function photoDataReceive(msg:String):void {
  var resXML: XML = new XML(msg);
  // XML processing
}


Photogallery XML example:

<node data="Gallery" id="2">
  <!-- data, related to 'Gallery' node -->
  <addinfo><info> 
    <uf1><![CDATA[http://test/gallery.jpg]]></uf1> 
    <uf2><![CDATA[http://test/gallerysmall.jpg]]></uf2>
    <description><![CDATA[Description gallery 1]]></description>
    <link><![CDATA[ ]]></link> 
    <txt1><![CDATA[1]]></txt1> 
    <txt2><![CDATA[2]]></txt2> 
    <txt3><![CDATA[3]]></txt3> 
    <txt4><![CDATA[4]]></txt4> 
  </info></addinfo>
  <!-- photo 1 data -->
  <node data="Photo 1" id="6">
    <addinfo><info> 
      <uf1><![CDATA[http://test/1.jpg]]></uf1> 
      <uf2><![CDATA[http://test/1small.jpg]]></uf2> 
      <description><![CDATA[Desc photo 1]]></description> 
      <link><![CDATA[http://site1.com/]]></link> 
      <txt1><![CDATA[]]></txt1>
      <txt2><![CDATA[]]></txt2>
      <txt3><![CDATA[]]></txt3>
      <txt4><![CDATA[]]></txt4> 
    </info></addinfo>
  </node>
  <!-- photo 2 data -->
  <node data="Photo 2" id="7">
    <addinfo><info> 
      <uf1><![CDATA[http://test/2.jpg]]></uf1> 
      <uf2><![CDATA[http://test/2small.jpg]]></uf2> 
      <description><![CDATA[Desc photo 2]]></description> 
      <link><![CDATA[http://site2.com/]]></link> 
      <txt1><![CDATA[]]></txt1>
      <txt2><![CDATA[]]></txt2>
      <txt3><![CDATA[]]></txt3>
      <txt4><![CDATA[]]></txt4> 
    </info></addinfo>
  </node>
  <!-- photo 3 data -->
  <node data="Photo 3" id="8">
    <addinfo><info> 
      <uf1><![CDATA[http://test/3.jpg]]></uf1> 
      <uf2><![CDATA[http://test/3small.jpg]]></uf2> 
      <description><![CDATA[Desc 3]]></description> 
      <link><![CDATA[http://site3.com/]]></link> 
      <txt1><![CDATA[]]></txt1>
      <txt2><![CDATA[]]></txt2>
      <txt3><![CDATA[]]></txt3>
      <txt4><![CDATA[]]></txt4> 
    </info></addinfo>
  </node>
</node>


 

Developer guide


Overview

API

Lessons