I am trying to compare the linkedscene var against xml.scene using the indexoftext and tolower functions:
I am using tolower because xml.scene appears to always be lowercase. However, the first trace outputs the linkedscene attribute as expected, whereas the second just outputs the text between the parentheses. Can someone help me with the syntax please?
Code
<style
name="skin_hotspotstyle_setupChange"
url="%SWFPATH%/skin/hotspot_Dinner.png"
onloaded="hotspot_setupChange()"
/>
<action name="hotspot_setupChange">
showlog(true);
trace( linkedscene );
trace( tolower(linkedscene) );
</action>
Hope you can help!
EDIT: perhaps my understanding of the the tolower function is lacking: If I trace( tolower( 'TEST' ) ) the output is 'TEST'. Can anyone point me in the right direction to find out how to work with string variables in krpano?