Hi,
I have the same problem where my intro image is bigger than the scene area when viewing the pano on the facebook feed.
This is my code for my intro image:
|
Source code
|
1
2
3
4
5
6
7
8
9
|
<!-- INTRO IMAGE -->
<plugin name="introimage" HasBeenPlayed="false" keep="true" url="skin/Click-N-Drag_icon.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();" scale="1"/>
<action name="hideintroimage">
if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
</action>
<action name="autohideintroimage">
if(plugin[introimage].HasBeenPlayed == false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT); delayedcall(5, hideintroimage()); set(plugin[introimage].HasBeenPlayed,true); );
</action>
<!-- END INTRO IMAGE -->
|
And I tried to insert the following and some modifications to it, both before and after the above code, but without any success:
|
Source code
|
1
|
<events name="scale_plugin" onresize="if(plugin[introimage].imageheight GT stageheight, set(plugin[introimage].height, 95%); set(plugin[introimage].width, prop); );" />
|
The attached image is what it looks like in the facebook feed, and the red circle is to illustrate how big the image is to see that it's bigger than the stage.
Anyone got any idea how to solve it?
Thanks guys! :)