OK, I think I have it down to one point, which should get me working again.
The code for the image below is shown at the bottom of the post:
On the left, the output from the example on the krpano Example page popup.xml. This is a HTML scrolling window. it appears at a fixed point on the STAGE.
On the right, a window frame to surround the first window. This can be moved/dragged around the STAGE by clicking the border.
How do I combine these so the window on the left keeps working, is inside the frame on the right and they both can move around together?
Thanks
James
Supporting Code: LEFT HTML scrolling
addlayer('popup_bg', popup_bg);
linkeventscope(popup_bg);
set(popup_bg,
type=container,
align=top,
width=100%,
height=100%,
zorder=99,
handcursor=false,
bgroundedge='0 0 7 7',
bgcapture=true,
capture=false,
bgblur=0,
bgcolor=0xFFFF00,
bgalpha=0.0,
onloaded='tween(caller.bgblur,15); tween(caller.bgalpha,0.0);', // bgalpha > 0 => colorize the background
onclick='popup_close()'
);
addlayer('popup', popup);
set(popup,
type=container,
parent='popup_bg',
popupwidth=get(width),
popupheight=get(height),
popupaspect=0,
width=get(width),
height=get(height),
align=center,
bgborder='1 0x555555 1',
bgcolor=0x555555,
bgalpha=0.7,
bgshadow='0 10 20 0x000000 0.5',
bgcapture=true,
maskchildren=false,
capture=true,
handcursor=false,
alpha=0,
htmllinkcolor='',
);
if(type == 'html',
set(popup.type, html);
copy(popup.html, content);
copy(popup.htmlscrollbars, scrollbars);
,type == 'image',
set(popup,
bgcolor=0xFFFFFF,
bgalpha=1,
);
addlayer("popup_image", img);
set(img,
url=get(content),
align=center,
width=-20, height=-20,
parent=get(popup.name),
onloaded='parentobject.popupwidth=imagewidth+40; parentobject.popupheight=imageheight+40; parentobject.popupaspect=imagewidth/imageheight; parentobject.parentobject.triggerevent(onresize);'
);
);
Supporting Code: RIGHT dragable frame
addlayer('popupframe', popupframe);
set(popupframe,
type=text,
popupwidth=700,
popupheight=500,
popupaspect=1.4,
width=700,
height=500,
align=center,
bgborder='30,5,5,5 0x111199',
bgalpha=0.4,
bgshadow='16 16 20 0x444444 0.5',
bgroundedge='0 0 9 9',
bgcapture=true
maskchildren=false,
capture=true,
handcursor=false,
alpha=0.8,
htmllinkcolor='',
ondown="draglayer();"
);