At 05:37 25/10/2000, you wrote:
>Dear Moller!
>
>It is not working.
>Regards.
>
>Mahmood
>
>> >
>> Try:
>> (the stage).rect = rect(0, 0, 2, 2)

Hi,

(the stage).rect works, but be sure to update the stage, by procedint to another 
frame, or just by ending your script by updateStage ()

You might also take a look in the Lingo dictionary at (the stage).drawRect, else you 
might encounter strange (logic bu not what you'll trying I guess) results.

Just to try the rect of the stage property, put this little frame script and run the 
movie, you'll your stage width and height move :

property pPulseIndex
on exitFrame me
  StageRect = the rect of the stage
  
  pPulseIndex = (pPulseIndex + 1) mod 10
  StageRect[1] = StageRect[1] - pPulseIndex
  StageRect[2] = StageRect[2] - pPulseIndex
  StageRect[3] = StageRect[3] + pPulseIndex
  StageRect[4] = StageRect[4] + pPulseIndex
  
  (the stage).rect = StageRect

  -- first try with the lines below as remaks, then try with 
  -- these lines executed
  -- StageRect = the drawRect of the stage
  -- 
  -- pPulseIndex = (pPulseIndex + 1) mod 10
  -- StageRect[1] = StageRect[1] - pPulseIndex
  -- StageRect[2] = StageRect[2] - pPulseIndex
  -- StageRect[3] = StageRect[3] + pPulseIndex
  -- StageRect[4] = StageRect[4] + pPulseIndex

  -- (the stage).drawRect = StageRect

  go the frame -1
end

Hope this helps,
Sébastien


[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