I hope I have understood the problem.
Just changing the location of a 3d sprite doesn't hide it on my Mac. I have, however, not had a problem when I leave a frame and go to a frame without the 3d sprite. It doesn't leave any trace on my screen. When I go back to the frame with the 3d sprite, everything is as it should be.
I tried setting the visible of the 3d sprite to false without leaving the frame to see if I could make it invisible. That only works if I set the directToStage to TRUE and then change the visible to false.
In other words, this works on my Mac:
-- hide the 3d castmember
member("3d").directToStage = TRUE
sprite(1).visible = FALSE-- do stuff here without the user seeing the 3d castmember
-- now restore the 3d castmember
sprite(1).visible = TRUE
member("3d").directToStage = FALSESetting the directToStage to true also allowed me to change the location of the sprite.
HTH
--Whit
On Wednesday, October 29, 2003, at 11:01 AM, [EMAIL PROTECTED] wrote:
--__--__--
Message: 4 Date: Wed, 29 Oct 2003 16:46:46 +1100 From: John Waller <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: <lingo-l> Refresh and SW3D Reply-To: [EMAIL PROTECTED]
Hi,
One of my students is having a problem with SW3D and refreshing the screen on Macs.
He has a SW3D sprite which takes up the whole stage. The user clicks on
an object in the 3D world and is taken to a 2D screen. We are trying to
just move the SW3D sprite outside the stage but still leave it in the
score so that we don't have to reinitialise it. Apparently it works OK
on the student's PC at home but it won't on the Macs in the University's
computer lab or on my Mac.
The sprite moves off the stage alright (I tested its position using the Message window) but the screen doesn't seem to refresh. We can still only see the (now non-functioning) 3D image. I've tried setting the stageColor to the stageColor (as I've used in the past to get over QuickTime refresh problems) and setting (the stage).bgColor to itself and updateStage but to no avail.
I've found that if I make the stage bigger than the SW3D sprite, or even
if I just stretch the stage window larger than the stage, it works ok in
Authoring mode. But once I make a projector it doesn't work any more.
If we jump out of the 3D sprite altogether there is no refresh problem,
but then we have to reinitalise the 3D sprite which takes time and takes
us back to the initial view of the 3D sprite rather than where the
viewer left off.
Can anybody please suggest any solutions.
Many thanks, John
[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!]
