MouseMove error
Posted: Tue Apr 30, 2013 11:00 pm
Hi Folks,
I am trying to use the following code in the "Link text rollover effect" in the LiveCode Lessons How To samples:
## first unhighlight the "old" phrase if necessary:
if storedHilitedChunk is not empty and storedHilitedChunk is not overChunk then
set the backgroundColor of storedHilitedChunk to empty
put empty into storedHilitedChunk
end if
## highlight if the text under the mouse is linked:
if overChunk is not empty then
if the textStyle of overChunk is "link" then
set the backgroundColor of overChunk to "yellow"
## saved for later unhighlighting
put overChunk into storedHilitedChunk
end if
end if
pass mouseMove
end mouseMove
but I am getting the following error:
field "Server Documents" execution error at line n/a (Chunk: error in object expression near storedHilitedChunk", char 1
and have not been able to find any reference to this error.
Any help would be greatly appreciated.
Thanks,
Daryl
I am trying to use the following code in the "Link text rollover effect" in the LiveCode Lessons How To samples:
## first unhighlight the "old" phrase if necessary:
if storedHilitedChunk is not empty and storedHilitedChunk is not overChunk then
set the backgroundColor of storedHilitedChunk to empty
put empty into storedHilitedChunk
end if
## highlight if the text under the mouse is linked:
if overChunk is not empty then
if the textStyle of overChunk is "link" then
set the backgroundColor of overChunk to "yellow"
## saved for later unhighlighting
put overChunk into storedHilitedChunk
end if
end if
pass mouseMove
end mouseMove
but I am getting the following error:
field "Server Documents" execution error at line n/a (Chunk: error in object expression near storedHilitedChunk", char 1
and have not been able to find any reference to this error.
Any help would be greatly appreciated.
Thanks,
Daryl