<scene name='scene_01' title='pano_a' .....
<hotspot name='hs1' linkedscene='scene_01'/>
now i click hotsopt to read the scene name---scene_01, and change the prefix 'scene_' to 'li_', i want got a string li_01;
my code is following:
|
Source code
|
1
2
3
|
txtreplace(li_num,get(linkedscene),'scene_','li_');
trace(li_num);
showlog();
|
the result should be the 'li_01';
but the true log result is 'li_num', doesn't get the number;
when i use the following:
|
Source code
|
1
2
3
4
|
subtxt(sce_num, get(linkedscene),6,2); //the sce_num is 01;
txtadd(li_num,'li_',sce_num);
trace(li_num);
showlog()
|
the li_num should be 'li_01';
but the true log result is 'li_num', still doesn't get the number;
why?