| Tuesday 07 June 2005 12:07:57 am 
                                                                 
Hi,I tried also to create a menu with flash as also showing content with flash. As I know, there are actually 3 possibilities, which are usefull for different tasks:
 1) URL Variables 
{*Flash Menu*}
{let hyperlinks=""
	 linktexts=""
	 mainMenu=treemenu( $module_result.path,
                                    $module_result.node_id,
                                    array('folder'), 0, 1 )}
{section var=menu loop=$mainMenu}
	{set hyperlinks=concat($hyperlinks,'&link',$menu.index,'=/mydesign',$menu.item.url_alias)}
	{set linktexts=concat($linktexts,'&text',$menu.index,'=',$menu.item.text)}
{/section}
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="180" HEIGHT="300" id="flash_menu" ALIGN="">
	<PARAM NAME=movie VALUE="{concat("/design/mydesign/images/flash_menu.swf?l=0",$hyperlinks,$linktexts)}">
	<PARAM NAME=quality VALUE=high>
	<PARAM NAME=bgcolor VALUE=#FFFFFF>
	<EMBED src={concat("images/flash_menu.swf")|ezdesign} quality=high bgcolor=#FFFFFF  WIDTH="180" HEIGHT="300" NAME="flash_menu" ALIGN=""  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
{/let}
remark: I have a problem using ezdesign and concatenating $hyperlinks and $linktexts to the flash file. In the flash file you have to loop over the variables with actionscript. 
2) RSSInserting a flash file e.g. as an embed object and asking inside from actionscript the RSS, e.g.:
 
urlXML = new XML ();
urlXML.ignoreWhite = true;
urlXML.onLoad = function (success) {
        if (success) {
	  var_title = this.firstChild.firstChild.nextSibling.childNodes[0].firstChild.nodeValue;
	  var_link = this.firstChild.firstChild.nextSibling.childNodes[1].firstChild.nodeValue;
	  var_descr = this.firstChild.firstChild.nextSibling.childNodes[2].firstChild.nodeValue;
	}
};
urlXML.load ("http://myserver/index.php/mydesign/rss/feed/testing");
3. layoutCreating an extra layout, which delivers xml to the flash file. I haven't tried it already, and I don't know it its working, because a site request requires two calls to the eZ system, one for the normal pagelayout and one for the xml content in the extra layout.
 Since now I haven't any of this solutions in a production site, so I can't tell you, how this behave in a real website. 
Regards,Heiner
 |