>> Just curious could it be done with html styles??
>
> Good question--I would know how to do it in a browser, with the map tag. In
> Lingo, I'd use a list of coordinates.
>
> Does anybody know if Director supports HTML maps? It would be great for
> defining different polygons.
Writing a parsing method to turn an html map tag's content into whatever
form you want it in should be a simple matter. Here's a quick version that
can be vastly improved on (it assumes that you've dropped the html source in
a field):
on parseMap whatField
returnList = []
tempText = member(whatField).text
tempText = tempText.char[offset("<map>", tempText) + 6..offset("</map>",
tempText) -1]
repeat while tempText contains "coords"
startChar = offset("coords", tempText)
endChar = startChar + 35 --This is a bit hardcoded, but should do the
trick
coordString = tempText.char[startChar..endChar]
delete tempText.char[startChar..endChar]
delete coordString.char[1..offset(Quote, coordString)]
delete coordString.char[offset(Quote, coordString)..(the number of chars
in coordString)]
temprect =
rect(integer(coordString.item[1]),integer(coordString.item[2]),integer(coord
String.item[3]),integer(coordString.item[4]))
returnList.add(tempRect)
end repeat
return returnList
end
-Kurt
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]