![]() shockwave list o' sites code snippet | show it | return | |
on mouseUp
-- get the name of the field in use (three are possible)
put the name of member (the memberNum of sprite the clickOn) into currField
-- clear out any old net references
put netDone() into x
-- set a highlight color
set the forecolor of line the mouseLine of field currField to 29
-- check for valid line number
if the mouseLine > 0 AND the mouseLine < the number of lines of field currField then
-- go to site in a new window
goToNetPage (the last word of line the mouseLine of field currField, "view")
else
set the forecolor of field currField to 235
end if
end
|
The listing of sites as in format:
site title <TAB> urlso on a mouseUp on a field, we first had to get the name fo the field, the line number clicked. The URl then would be the last word in that line. lingo era = v4.0-5.0 This could be much cleaner with some dot syntax! Also, in D7 there is no more 32k limit on the fields/text members, so they could be lumped into one. |