Thanks for the speedy reply. It works! (which is always a heartening
first step)
Brennan Young wrote:
> Confirmed here, and it should always be remembered that shape members
> are strange beasts. John Dowdell talks about first class and second
> class citizens in Director.
-Strange beasts indeed. They've always been sort of tricky with color.
Pattern, eh? That would have taken awhile for me to find.
> You should also use 'forecolor' instead of 'color', which means using a
> palette index, not an rgb color.
-Hmmm... 'color' works fine on win98, now that the shape shows on stage.
Is this not the case on Mac? I'm trying to avoid palette indexes in this
project.
------------
on mouseDown me
createShape(me, "popup1", #rect, TRUE)
end
on createShape me, aName, asType, aFilled
if member(aName).name = "" then
mem = new(#shape)
mem.name = aName
mem.shapeType = asType
mem.filled = aFilled
mem.rect = rect(0,0,50,50)
mem.pattern = 1
else
mem = member(aName)
end if
puppetSprite (20), TRUE
sprite(20).member = mem
sprite(20).loc = point(10, 10)
sprite(20).color = rgb (0, 255, 0)
-- sprite(20).forecolor = 185 -- mac palette index for rgb (0, 255, 0)
sprite(20).width = 50
sprite(20).height = 50
updateStage
end
on endsprite me
puppetSprite (20), FALSE
end
---------------------
Regards, Clars
[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!]