Class: FZGetMenuManager


Class allow you to get menu configuration XML (id, text and link) by node ID.

Function getMenu


public static function getMenu(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 != "") { 
    FZGetMenuManager.getGallery(nodeId, menuDataReceive);
  } 
}
 
public function menuDataReceive(msg:String):void {
  var resXML: XML = new XML(msg);
  // XML processing
}


Menu XML example:

<node data="Demo" id="7" link="">
  <node data="1: Base blocks" id="8" 
    link="thissite://XmAdvPage-main/Demo1"/>
  <node data="2: Other blocks" id="14" 
    link="thissite://XmAdvPage-main/Demo3"/>
  <node data="3: PDF-publication master" id="11" 
    link="thissite://XmAdvPage-main/Demo4"/>
</node>


 

Developer guide


Overview

API

Lessons