how give the same action to several hotspots ?

  • Hi,

    I've got a pano built for iphone with 3 hotpsots.
    To give a movement by scaling the hotspots, i wrote a simple action

    Code
    <action name="cligno">
    	
    		delayedcall(1.0, tween(hotspot[get(name)].scale, 0.8,0.4));
    		delayedcall(2.0, tween(hotspot[get(name)].scale, 0.6,1));
    		delayedcall(2.2, cligno() );				
    		
    	</action>


    Called from each hotspot. Problem is only the first one is moving not the others ?!

    Is there a kind of restriction with iphone or something ?

    Thanks for your help. *smile*
    Steph

  • no idea why that does not work but tweening takes alot of cpu its proably not the best solution for idevices. you would be better off using a strip jpg image with the same icon in 3-4 different sizes and using the crop setting to switch between them quickly to simulate movement other wise just go with static hotspots. look at the way klaus does the animated hotspots in his examples.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!