media @ VU
proto-slide-helper-touchanchor.vr
proto-slide-helper-touchanchor.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
anchor
Web3D/VR
proto
PROTO TouchAnchor [
exposedField SFString href ""
exposedField MFString parameters []
] {
body
DEF GROUP Group {}
DEF SCRIPT Script {
directOutput TRUE
field SFNode me USE SCRIPT
field SFString href IS href
field MFString parameters IS parameters
eventIn SFTime touched
functions
url "javascript:
function initialize() {
if(href != '') {
var touch = Browser.createVrmlFromString(' TouchSensor{} ');
transform.addChildren = touch;
Browser.addRoute(touch[0],'touchTime',me,'touched');
}
}
function touched(v,t) {
Browser.loadURLrel(href,parameter);
// Change, this for absolute URLs
// Browser.loadURL(href,parameter);
}
"
}
}
(C) A. Eliëns
21/5/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.