Hi Whit,

Thanks. Brilliant idea. Why didn't I think of that (setting the directToStage property)?

Only thing is I think the order of the directToStage setting is backwards below. I expect that directToStage should be set to FALSE when you want to hide it, and set back to TRUE when you want to see it.

I also agree that just going to a frame without the sprite would generally be easier but my student is initialising some of the 3D resources into property variables in a beginSprite handler attached to the 3D sprite. This causes a problem when coming back to the 3D sprite because the 3D resources already exist in memory (even though they are not longer associated with the property variable which has been deleted) and an error message pops up saying that the object(s) already exist. I expect that he can get around this by using global variables instead of property variables and then testing whether the globals exist before re-itialising.

However I think your solution of resetting the DirectToStage property is probably easier in this case.

Thanks again,
John


--__--__--

Message: 4
Date: Wed, 29 Oct 2003 17:13:25 -0600
From: Whit Anderson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: <lingo-l> Re: Refresh and SW3D
Reply-To: [EMAIL PROTECTED]

John--

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 = FALSE

Setting the directToStage to true also allowed me to change the location of the sprite.

HTH

--Whit



[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