hey list --
i have a problem. i am trying to limit the number of graphic cast members
that i have for navigation. I was attempting to create 1 text cast member
with return delimited lines. Then using mouseWithin i get the line loc and
swap my colors ect. I have tried this before but had to abandon because it
seemed as if when you are using mouseWithin it slow the rest of the
animations down at the same time. I am including the code. Can someone guide
me on the "right/better" way of accomplishing this? much thanks
-- carol
property spriteNum
property initCrumb
property itemNum
property origDelimeter
property line1
property line2
property line3
property line4
property crumbLines
property currentDown
on getPropertyDescriptionList
description = []
addProp description, #line1,[#default "template2", #format#string,
#comment"line1"]
addProp description, #line2,[#default "template2", #format#string,
#comment"line2"]
addProp description, #line3,[#default "template2", #format#string,
#comment"line3"]
addProp description, #line4,[#default "template2", #format#string,
#comment"line4"]
return description
end getPropertyDescriptionList
on isOKToAttach (me, aSpriteType, aSpriteNum)
case aSpriteType of
#graphic
return TRUE
#script
return FALSE
end case
end isOKToAttach
on beginSprite me
initCrumb = sprite(spriteNum).member
member(initCrumb).color = rgb(186,188,181)
crumbLines = member(initCrumb).line.count
end
on mouseWithin me
itemNum = sprite(spriteNum).pointToLine(the mouseLoc)
member(initCrumb).color = rgb(186,188,181)
case itemNum of
1 member(initCrumb).line[1].color = rgb(255,255,255)
2 member(initCrumb).line[2].color = rgb(255,255,255)
3 member(initCrumb).line[3].color = rgb(255,255,255)
4 member(initCrumb).line[4].color = rgb(255,255,255)
end case
if currentDown <> void then member(initCrumb).line[currentDown].color =
rgb(255,255,255)
end
on mouseLeave me
case itemNum of
1 member(initCrumb).line[1].color = rgb(186,188,181)
2 member(initCrumb).line[2].color = rgb(186,188,181)
3 member(initCrumb).line[3].color = rgb(186,188,181)
4 member(initCrumb).line[4].color = rgb(186,188,181)
end case
if currentDown <> void then member(initCrumb).line[currentDown].color =
rgb(255,255,255)
end
on mouseDown me
put itemNum
currentDown = itemNum
end
[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!]