Skip to main content
Participant
April 1, 2010
Question

flash cftree problem

  • April 1, 2010
  • 1 reply
  • 619 views

I'm creating a file/directory browser using cfdirectory and cftree in flash format.  the problem is that if a folder does not contain any files, it displays with a document icon instead of a folder icon.  I tried setting the img to "folder" but it doesn't look like thats supported in the flash version.  Any suggestions on how to correct this?  See the screenshot below for details.

    This topic has been closed for replies.

    1 reply

    Fernis
    Inspiring
    April 6, 2010

    A tree node without children is not a folder, logically.

    But you can set the icons manually for each node if you wish. Use the IMG attribute of CFTREEITEM. So, set it to folder for the nodes which are folders.

    It should work for query-populated cftreeitem as well. It's just a matter of constructing the query properly then, so that "folderimage" column has the correct content - then you would use <cftreeitem query= ... ...folder="#folderimage#"...>

    Hope this helps.

    --

    -Fernis - fernis.net

    jcdev01Author
    Participant
    April 7, 2010

    I appreciate the reply but as stated above im using the flash cftree format which does not support the "img" attribute.  You mention a "folder" attribute in your example but that doesn't appear to exist in the cftreeitem documentation (i think you meant to type img="#folderimage#" which still wouldn't work in flash format).

    Fernis
    Inspiring
    April 8, 2010

    Sorry about that - you're right, you can't use img attribute in flash cftree.

    With a bit of styling, a HTML format of the menu wouldn't look all that bad, although I know it's not as sleek as the flash one.

    Unless you're building a flash-heavy site, I'd stop using the flash forms. Or seek help from the Flex (community).

    -Fernis