Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
StuntRacer
Resizing Flash Sprite to its Original Size
Russian site
Set Castmember properties for DirectMedia member
base64 encode/decode
PC Mac Lan
Camtasia
Milliseconds
Regular expressions
Radians to degrees, degrees to radians
 

 

 

Behavior XML Parser List Converter

Added on 5/14/2000

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: LucasMeijer

Converts a list received from the XMLParser to a nice looking one. Watch out with tags consisting out of more words. I chose to limit a tag to one word, so I can use nice symbol lists instead of the "NAME":"LUCAS" option which I dislike.

on makeNiceList uglyList
  niceList=[:]
  repeat with i=1 to uglyList.count
    name=uglyList.getPropAt(i)
    if char 1 of name = "!" then delete char 1 of name
    if ilk(uglyList[i])=#proplist then    
      niceList.addProp(symbol(name),makeNiceList(uglyList[i]))  -- Recurse.
    else
      niceList.addProp(symbol(name),uglyList[i])
    end if
  end repeat
  return niceList
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail