Basic HTML version of Foils prepared March 18 1998

Foil 41 Browser Object Through ECMAScript - II

From Scripting and EAI in VRML97 CPS616 -- Information Track of CPS -- Spring Semester 98. by Hasan Ozdemir (Geoffrey C. Fox)


DEF Box1 Transform { ... DEF Start TouchSensor {} ...}
DEF DATA Transform { }
DEF BxAction Script {
eventIn SFBool isActive
field SFNode node USE DATA // A node to add these objects
field SFInt32 cone_count 0
url "vrmlscript:
function isActive(value,time)
{ if(value==true)
{ node.addChildren = Browser.createVrmlFromString(' DEF Bx_'+
cone_count+' Transform { children Shape { geometry Box {} }}');
cone_count++;}
}" }
ROUTE Start.isActive TO BxAction.isActive



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998