Hi!
I have a panorama where a number of textfield pluging appears on user clicks. It acts like a tooltip. Is there any way to close previsiously opened textfield plugin?
Every time user clicks on some hotspot the textfield apears visible. Clicking on tooltip user can close it. Also, clicking on other hotspots brings user new tooltip.
Is there any way to remember current active textfield plugin so I can close it further?
This is my code:
Code
<action name="show_html_field">
set(plugin[%1].y,-1500);
tween(plugin[%1].alpha, get(HOTSPOT_OPACITY), 0.3);
tween(plugin[%1].textblur,0,0);
tween(plugin[%1].blur,0,0);
set(plugin[%1].visible,true);
set(plugin[%1].enabled,true);
tween(plugin[%1].y,0);
</action>
I've tried to set %1 to a variable to do like this:
Code
<action name="show_html_field">
trace(plugin[get(CURRENT_TEXTFIELD)].name);
set(plugin[get(CURRENT_TEXTFIELD)].visible, false);
set(plugin[%1].y,-1500);
tween(plugin[%1].alpha, get(HOTSPOT_OPACITY), 0.3);
tween(plugin[%1].textblur,0,0);
tween(plugin[%1].blur,0,0);
set(plugin[%1].visible,true);
set(plugin[%1].enabled,true);
tween(plugin[%1].y,0);
set(CURRENT_TEXTFIELD, get(%1));
</action>
Display More
But this doesn't work. trace result is: "INFO: get(current_textfield)".
Any ideas?