Jayp <[EMAIL PROTECTED]> wrote:

> What am I doing wrong here...
>  sprite (me.spritenum).member.width  = (thenewwidth)
>  sprite (me.spritenum).member.height = (thenewheight)

Hi Jayp,

You are instructing Director to change the size of a member.  Director much
prefers to change the size of a sprite.  Try:

on exitframe me
  tSprite = sprite(me.spritenum)
  tMember = member(150)
  tSprite.member = tMember
  
  maxWidth  = 350
  maxHeight = 174
  
  tWidth  = tMember.width
  tHeight = tMember.height
  
  if tWidth > 350 then
    tWidth = tWidth * 0.75
    tHeight = tHeight * 0.75
    tSprite.width = tWidth
    tSprite.height = tHeight
  end if 
end

You can change the size of a bitmap sprite using imaging Lingo.  Your code
(minus the asterisks) will actually work with text members in Director 8,
since the width of the member is a settable property.

Cheers,

James

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

Reply via email to