Cheers Tom, you were right, damn resetworld!!

-----Original Message-----
From: Thomas Higgins [mailto:[EMAIL PROTECTED] 
Sent: 08 December 2005 19:47
To: Lingo programming discussion list
Subject: RE: <lingo-l> Adding 3D behaviours to Shockwave 3D object

> Am I missing something here or do behaviours purely only work for 
> imported Shockwave3D fiels and not Shockwave3D files created in 
> Lingo..

I'm guessing that the behaviors are referencing the camera on
beginSprite, then some time after that you are calling resetWorld()
which then invalidates the behavior-stored camera references (sets them
to VOID) causing these errors. The thing you might be "missing" here is
that references to objects in your 3D world do not survive calls to
resetWorld() even if the object does. Is there any chance that you're
calling resetWorld() after the behaviors receive their beginSprite
events? If so then the solution options are to (a) not call resetWorld()
after the beginSprite event occurs (or until after the point the
behavior references the camera - I believe that's on beginSprite), or to
(b) update the behaviors so that they check to see if pCamera is VOID
before accessing any properties/methods, if it is then you have it store
a "fresh" camera object reference.


Cheers,
Tom Higgins - Technical Product Manager
Macromedia Director & the Shockwave Player
http://weblogs.macromedia.com/thiggins/

... 

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


-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of DA Group.


[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