Yet another KRPANO MYSTERY waiting to be solved!

  • 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:

    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.

  • Add a hotspot into a hotspots loop on each loop is the best way to have an infinite loop :)
    So do you really need to add hostpots corresponding to other hotspots or a layer can do the job ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!