[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [x3d-public] NullPointerException when loading scene with script node



On Wednesday 22 March 2006 20:28, you wrote:
> #X3D V3.0 utf8
> PROFILE Immersive
> DEF s Shape {
> appearance Appearance { }
> geometry Box { }
> }
> DEF sc Script {
> eventIn SFTime test
> url "javascript: function test(value) { }"
> }
This is VRML syntax, the correct X3D is:
#X3D V3.0 utf8
PROFILE Immersive
DEF s Shape {
appearance Appearance { }
geometry Box { }
}
DEF sc Script {
inputOnly SFTime test
url "ecmascript: function test(value) { }"
}

Jens
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html