Sie sind nicht angemeldet.

1

Montag, 25. Juni 2012, 16:24

matching the size of a hotspot with plugin

Hi,

(I'm reposting this from the Viewer pages, I just found this section of the forum)

I'm having trouble getting the dimensions of images to match. To speed up loading I've used a low quality preview image for a flyuot and I've added a high quality plugin to blend in with a delayedcall().

Tour
http://p2vhost.pan2view.com/tests/ipad/tour.html

Code:

div(screen_sideaspect, stagewidth, stageheight);
div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height);

if(screen_sideaspect LT hotspot_sideaspect,

set(hotspot[%1].width,80%);
set(hotspot[%1].height,prop);
,

set(hotspot[%1].width,prop);
set(hotspot[%1].height,80%);
);

set(plugin[%1].width,get(hotspot[%1].width));
set(plugin[%1].height,get(hotspot[%1].height));




XML
http://p2vhost.pan2view.com/tests/ipad/tour.xml

Cheers
Y.S