You are not logged in.

el-si

Beginner

  • "el-si" started this thread

Posts: 13

Location: New York

  • Send private message

1

Tuesday, January 21st 2014, 2:53pm

Get triggered hotspot name without set it in parameter of action?

Hi everyone,
is anyone have idea how to get triggered hotspot name without set it in parameter of action?
I have an hotspot in scene1

Quoted

<hotspot name="spot1" style="skin_hotspotstyle" ath="5.394" atv="15.437" linkedscene="scene_2" />


I have an hotspotstyle

Quoted


<style name="skin_hotspotstyle" url="%SWFPATH%/skin/hotspot.png" edge="top" oy="0"
distorted="true"
onclick="if(linkedscene, tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );"
onhover="showtext(get(scene[get(linkedscene)].title));action();"
/>
I have action

Quoted



<action name="action">
...
</action>
Any ideas? is it possible?

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, January 21st 2014, 4:41pm

try tracing variable name: name in action to check?
trace(get(name));

el-si

Beginner

  • "el-si" started this thread

Posts: 13

Location: New York

  • Send private message

3

Tuesday, January 21st 2014, 5:50pm

try tracing variable name: name in action to check?
trace(get(name));
it worked

This post has been edited 2 times, last edit by "el-si" (Jan 21st 2014, 6:58pm)