|
|
||
| 1. Justification |
|
|
|
||
|
|
||
| 2. Not enough interpolators built into VRML |
|
|
|
||
|
|
||
| 3. More complex interactions |
|
|
|
||
|
|
||
| 4. Elements of the script node |
|
|
|
||
|
|
||
| 6. eventOut |
|
|
|
||
|
|
||
| 7. field |
|
|
|
||
|
|
||
| 8. URL |
|
|
|
||
|
|
||
| 9. Using inline JS scripts |
|
|
|
||
|
|
||
| 10. Organization of a script |
|
|
|
||
|
|
||
| 11. Example: |
|
|
|
||
eventIn type name
eventIn SFBool set_status
eventOut type name
eventOut SFBool status_changed
field type name
field SFInt32 count
field SFNode output USE textbox
eventIn SFBool value_changed
url " javascript:
function value_changed(val, time){
//code goes here
} // end function
"