Hello all, it's been a while since I posted last so I guess I'm getting better at this, at least mildly.
I'm building an automatic loop for generating image hotspots over existing hotspots when loading a scene, this worked perfecly in flash but in html5 I found some trouble. So, within the onstart event of the scene I assign this loop action:
Code
<action name="hs_generator">
for(set(h,0), h LT hotspot.count, inc(h),
txtadd(img_hs,get(hotspot[get(h)].name),'_img');
addhotspot(get(img_hs));
);
</action>
In html5 this crashes and tells me there is actions overflow. I found that by switching the hotspot.count to another variable I could bridge the problem this way:
Code
<action name="hs_generator">
copy(hscount,hotspot.count);
for(set(h,0), h LT hscount, inc(h),
txtadd(img_hs,get(hotspot[get(h)].name),'_img');
addhotspot(get(img_hs));
);
</action>
Display More
Now this works in HTML5 but not in Flash. I'm looking for a solution that can work in both platforms, otherwise I will have to do the unthinkable and build two different actions.
Any thoughts?
Alberto.