Hi. I've been trying to get this right, but it just doesn't seem to work. Advice? I want to have buttons that can be changed according to a list of text, so I borrowed the web trick of corners and sides, except since we don't have tables, I just auto generated the locations for the buttons based on the text box containing the content of the button. This is the code I made as an experiment, and it worked fine. (I put the text box and all corners and sides on stage, and everything, zhwooop! goes into place when the sprite begins) on beginsprite me zNW = sprite(me.spritenum +1) zN = sprite(me.spritenum +2) zNE = sprite(me.spritenum +3) zW = sprite(me.spritenum +4) zC = sprite(me.spriteNum) zE = sprite(me.spritenum +5) zSW = sprite(me.spritenum +6) zS = sprite(me.spritenum +7) zSE = sprite(me.spritenum +8) zMyNWCorn = zC.loc zMyNECorn = zC.loc + point(zC.width, 0) zMySWCorn = zC.loc + point(0,zC.height) zMySECorn = zC.loc + point(zC.width,zC.height) zNW.loc = zMyNWCorn + point(-zNW.width *.5, -zNW.height *.5) zNE.loc = zMyNECorn + point(zNE.width *.5, -zNE.height *.5) zSW.loc = zMySWCorn + point(-zSW.width *.5, zSW.height *.5) zSE.loc = zMySECorn + point(zSE.width *.5, zSE.height *.5) zN.width = zC.width zS.width = zC.width zW.height = zC.height zE.height = zC.height zN.loc = point(zNW.locH + zNW.width *.5, zNW.locV) zS.loc = point(zSW.locH + zSW.width *.5, zSW.locV) zW.loc = point(zNW.locH, zNW.locV + zNW.height *.5) zE.loc = point(zNE.locH, zNE.locV + zNE.height *.5) end beginsprite Then I realized I would have a lot of buttons so I thought, hmmm.. Maybe I could just layout the question and have the sides thrown on in the score by using lingo? So I added this to the top on beginsprite me zNW = sprite(me.spritenum +1) zN = sprite(me.spritenum +2) zNE = sprite(me.spritenum +3) zW = sprite(me.spritenum +4) zC = sprite(me.spriteNum) zE = sprite(me.spritenum +5) zSW = sprite(me.spritenum +6) zS = sprite(me.spritenum +7) zSE = sprite(me.spritenum +8) zNW.member = "button_northwest" zN.member = "button_north" zNE.member = "button_northeast" zW.member = "button_west" zE.member = "button_east" zSW.member = "button_southwest" zS.member = "button_south" zSE.member = "button_southeast" zMyNWCorn = zC.loc zMyNECorn = zC.loc + point(zC.width, 0) zMySWCorn = zC.loc + point(0,zC.height) zMySECorn = zC.loc + point(zC.width,zC.height) zNW.loc = zMyNWCorn + point(-zNW.width *.5, -zNW.height *.5) zNE.loc = zMyNECorn + point(zNE.width *.5, -zNE.height *.5) zSW.loc = zMySWCorn + point(-zSW.width *.5, zSW.height *.5) zSE.loc = zMySECorn + point(zSE.width *.5, zSE.height *.5) zN.width = zC.width zS.width = zC.width zW.height = zC.height zE.height = zC.height zN.loc = point(zNW.locH + zNW.width *.5, zNW.locV) zS.loc = point(zSW.locH + zSW.width *.5, zSW.locV) zW.loc = point(zNW.locH, zNW.locV + zNW.height *.5) zE.loc = point(zNE.locH, zNE.locV + zNE.height *.5) end beginsprite The only problem is that when I do it this way, the sides don't change width or height. Any idea why not? I thought it was because they were not written to the score, so I tried using the beginRecording but am having problems with that as well. (-- is they _ANY_ way to put a member on the score and with one keyframe and set the length to an arbitrary number????? *boggle*) Hope kind soul can help shed some light on my mis-direction. M. [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!]
