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 sending eventOuts" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "Script eventOut test" } Transform2D { translation -150 -120 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry DEF TEXT Text { string ["What"] fontStyle FontStyle { justify ["BEGIN" "BEGIN"] size 20 } } } ] } Transform2D { translation 150 -120 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry DEF TEXT_TEST Text { string ["T"] fontStyle FontStyle { justify ["BEGIN" "BEGIN"] size 20 } } } ] } DEF TS TimeSensor { cycleInterval 0.1 loop TRUE } DEF SCRIPT Script { eventIn SFTime act field SFInt32 int_val 0 field SFNode txt USE TEXT field SFNode txt2 USE TEXT_TEST url ["javascript: function initialize(value, timestamp) {int_val = txt.string[0].charCodeAt(0);txt2.string[0] = 'char val: ' + String.fromCharCode(int_val) + ' ' + int_val;}" ] } ] }