PDA

View Full Version : popups reappearing!?!


adriansalisbury
09-28-2009, 08:21 PM
Hi all, if anyone can fix this I'll be your best friend forever! I know some of you love a challenge ;)

Have a look here http://axis.uk-virtualtours.co.uk/development/

If you click some of the hotspots like the ones behind you in the opening tour, close the popups and then move into the third tour (top right). Let the new tour load then come back to the initial tour. When you do, the popups that you first loaded reappear as the tour opens.

Any ideas what might be causing it? I'm running out of ideas and am desperate.

This should have gone live today and now I feel that I may have to strip it right back and rebuild it, what a nightmare!

HansNyberg
09-28-2009, 10:26 PM
Hi Adrian

If you close the text-popup.swf by clicking on the info button it does not pop up again.

<spot id="azlanpopup" url="navigation/text-popup.swf" linked="images/1" depth="100" smoothing="1" static="1" visible="0" buttonMode="0" onOver="pano.disableWheel=1; pano.disableKeys=1"
onOut="pano.disableWheel=0; pano.disableKeys=0" blockMouse="1" />

I can not find out how you close it using the X on the text-popup.swf
Is this something included in the swf. I have never used anything like that.

My guess is you have to use an invisible hotspot on the X sign to close it or just use it on the swf itself.


Hans

adriansalisbury
09-29-2009, 07:33 AM
Hans, my hero, I could have guessed you would work it out! The close function was built in by my flash developer as part of the swf file. I have no idea about action scripting or how it works. I will ask him to look into it first and reluctantly put invisible close buttons if I have to but it seems to be a big step backwards.

Many thanks for your testing Hans, I was really struggling and going through my xml file looking for errors that might have thrown it out.

Will let you know how I get on.

adriansalisbury
10-01-2009, 02:13 PM
After Hans narrowed it down to the popups themselves I got my Flash developer to look at his code and he wonders if there is some kind of 'registry' in a particular scene that remembers which popups to have open, and while I am visually hiding the popup, the scene doesn't know and assumes you want
it open again when you come back?

Here is the code in his swf to close the popup:

close_btn.addEventListener(MouseEvent.CLICK, function (event:MouseEvent):void {
(loaderInfo.loader as Object).parent.visible = false; });


Does anyone understand this that might be able to help us?!?