Hi.
Not really a question, but a friendly request :)
New director 2004 Flash Components seem(are!) to be cool... BUT(!), not many
documentation about it.
I suppose if someone post a white paper about populate a Tree or list component from
""v12"" data... many user will be interested by... :)
Here's a "small" bit of code who take some result from DB and put it in Tree
component...
if someone have other "bit", plase share. (i'm particulary interested about List Flash
component, with Icons, etc...)
Have a nice day!
Francois
--- Pupulate a Tree component
on GenTree
myTree = sprite(5)
strRef="inf666-999"
lConfs=GetDbConf()
repeat with lConf in lConfs
if strRef<>lConf[1].char[1..6] then
rootNode = myTree.addTreeNode(lConf[1].char[1..6])
iRefNode=0
end if
rootNode.addTreeNodeAt(iRefNode, lConf[1])
strRef=lConf[1].char[1..6]
iRefNode=iRefNode+1
end repeat
end GenTree
-- Put SelectedNodes Infos in a list...
on CreateConfListFromNodes(lConfList)
if voidP(sprite(5).selectednodes) then return lConfList
sList=sprite(5).selectednodes.tostring()
sOldItemDelimiter=the itemdelimiter
the itemdelimiter=","
repeat with i=0 to sList.items.count -1
lConfList.add(sprite(5).selectednodes[i].attributes.label)
end repeat
the itemdelimiter=sOldItemDelimiter
return lConfList
end CreateConfListFromNodes
__________________________________________________________
L�che-vitrine ou l�che-�cran ?
magasinage.yahoo.ca
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]