> For that sort of navigational items, it would be nice if there came 
> some
> Flash components that understood navigation lists  (the nl element from
> XHTML 2).
>
> And let me give a syntax suggestion:
> <cfobject data="menu.swf" type="application/shockwave">
>    <nl>
>      <name>Character Options</name>
>      <li href="stay.html">Stay</li>
>      <nl>
>        <name>Leave</name>
>        <li href="newjob.html">Job transfer</li>
>        <li href="divorce.html">Divorce</li>
>        <li href="fataldisease.html">Fatal disease</li>
>      </nl>
>      <li href="backburner.html">Back Burner</li>
>    </nl>
> </cfobject>

You can actually do this already to some extent.  One way:

<object ...>
        <param name="movie" value="menu.swf" />
        <param name="flashvars" value="name1=value1&name2=value2" />
</object>

This is pretty clunky, as you can imagine, but the better way to do it 
is to have your Flash movie load some XML (which might look just like 
the menu structure you wrote above) from the server and build itself 
dynamically that way.  So the only difference ends up being that the 
menu description is in its own file on the server rather than being 
integrated into your CF page.

Christian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to