InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 600
     pixelHeight 400
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows script loading URL" "" "GPAC Regression Tests" "$Date: 2008-07-18 17:27:50 $ - $Revision: 1.3 $" "(C) 2002-2004 GPAC Team"]
   title "Script URL loading"
  }
  Transform2D {
   children [
    DEF TS TouchSensor {}
    Shape {
     appearance Appearance {
      material DEF MAT Material2D {
       emissiveColor 1 0 0
       filled TRUE
      }
     }
     geometry Rectangle {
      size 50 50
     }
    }
   ]
  }
  DEF TR Transform2D {
   translation -150 -120
  }
  DEF SCRIPT Script {
   eventIn SFBool act
   field SFNode t USE TR
   url ["javascript: 
    function act(value, timestamp) {
     if (!value) return; 
     str = new MFString('http://gpac.sourceforge.net'); 
     Browser.loadURL(str) ;
    }
    "   ]
  }
 ]
}

ROUTE TS.isActive TO SCRIPT.act

