You are not logged in.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Friday, July 1st 2011, 10:20pm

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

Source code

1
2
3
4
5
6
7
	<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
Steph

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Saturday, July 2nd 2011, 3:00am

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.

3

Saturday, July 2nd 2011, 12:40pm

Hi,

you can show how the "cligno" action was called the first time?
does it work in Flash?

best regards,
Klaus