Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
but I think I understand the concept.best regards,hotspot name="spot1" style="cog_hotspot" ath="6.3" atv="-1.4" onhover="showtext(Clique para más info, buttonstyle);" onclick="showImage(url=graphics/car_lift.png,url=graphics/text_area.png)" />
When I click on spot1 in the tour I get an error message:
WARNING: not local trusted - ExternalInterface disabled!
ERROR: download of "url=graphics/car_lift.png" failed
ERROR: download of "url=graphics/text_area.png" failed
|
|
Quellcode |
1 |
tween(width,get(stagewidth),0.2,easeOutQuad, set(width,100%); tween(height,get(stageheight),0.2,easeOutQuad, set(height,100%) ) ); |
Hi Klaus,On the good advice of VN2011, I'm using the following action to show an image which changes the colour of a car:
<action name="changeTruck">
set(hotspot[truck].url,%1);
tween(hotspot[truck].alpha,1,1.2);
</action>
This works perfectly for one colour change but when another colour is selected, the first colour disappears immediately. as the url is replaced with the onClick command.
What I would liketo happen is for the selected colour to fade out as the new one fades in.
Possible?
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<action name="fadeout"> tween(hotspot[%1].alpha, 0.0, 0.5, default, set(hotspot[%1].visible,false)); </action> <action name="fadein"> set(hotspot[%1].visible,true); tween(hotspot[%1].alpha, 1.0, 0.5, default); </action> <action name="fadeout_all_colors"> fadeout(color1); fadeout(color2); fadeout(color3); ... </action> <hotspot name="color1" ... onclick="fadeout_all_colors(); fadein(color1);" /> <hotspot name="color2" ... onclick="fadeout_all_colors(); fadein(color2);" /> ... |