Hello All-

I'm trying to create a shape on the fly from a behavior, and slap it on
stage. The first part works fine - the member is created and the puts
come out the same whether "popup1" is in the cast or not- but then:

We enter the twilight zone.

Two things don't work:
1.
The sprite never shows on stage.
2.
The new cast member shows up in the cast, but cannot be dragged from the
cast after the movie is stopped.

Any ideas?
Script follows.

Regards, Clars
-------------------------------------------
--Behavior (well, sprite)script:

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
  else
    mem = member(aName)
  end if

  put mem
  put mem.name
  
  puppetSprite (20), TRUE
  sprite(20).member = mem
  sprite(20).loc = point(10, 10)
  sprite(20).color = rgb(0, 255, 0)
  sprite(20).width = 50
  sprite(20).height = 50
  updateStage
  --    puppetSprite (20), FALSE
end
-------------------------------------------

[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!]

Reply via email to