1// javascript-flash utilities 2// depends: /iwetc/res/js/common.js:getObj() 3// e.g.: jsExpression("1+1","myFlash","_root.myComponent","expressionEvaluated","_root.T_expressionResult") 4function jfEval(jsExpr,flashInstanceName,resultListenerPath,resultListenerLabel,resultPath) { 5 var result=eval(jsExpr); 6 jfSetVarAndGoto(flashInstanceName,resultListenerPath,resultListenerLabel,resultPath,result); 7} 8function jfSetVarAndGoto(flashInstanceName,valueListenerPath,valueListenerLabel,valuePath,value) { 9 var flashInstance=getObj(flashInstanceName); 10 var dbg="jf.js:\n"; 11 dbg+="flashInstanceName="+flashInstanceName+"\n"; 12 dbg+="flashInstance="+flashInstance+"\n"; 13 dbg+="valueListenerPath="+valueListenerPath+"\n"; 14 dbg+="valueListenerLabel="+valueListenerLabel+"\n"; 15 dbg+="value="+value+"\n"; 16 dbg+="typeof(flashInstance.SetVariable)="+typeof(flashInstance.SetVariable)+"\n"; 17 if (flashInstance!=null && typeof(flashInstance.SetVariable)!='undefined') { 18 dbg+="inside if \n"; 19 flashInstance.SetVariable(valuePath,value); 20 flashInstance.TGotoLabel(valueListenerPath,valueListenerLabel); 21 } 22 // alert(dbg); 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.