PDA

View Full Version : Several hotspot problems and questions


nmendes
08-30-2007, 12:33 PM
I'm having trouble dealing with swf (Flash) hotspots.
1)
I can use PNG images as hotspots without any problem, but when I change the XML file to load a .swf instead of a .png for the hotspot, I get the hotspots moving from their location when I rotate the panorama. Why is that?

2) I need to have different text appearing next to the hotspot. As I can't find any other way, I thought that it could be done with a swf as a hotspot with a textfield to which I could pass the text. But how can I pass a parameter like a string to the swf hotspot?

Thank you.

nmendes
08-30-2007, 03:23 PM
Ok, about my question 1) above, I found out that the weird behaviour was because the stage size of the flash movie was bigger (was the default size) than the object I've used inside. I've resized the stage to the size of the object and it's working ok now.

zleifr
09-14-2007, 06:40 PM
Don't know if you've solved it on your own. I just solved it for myself:

Make a dynamic text field with instance name Caption_txt

put this in actions:
Caption_txt.text = root.loaderInfo.parameters.cpn;

Save as textPrint.swf

Then in the spot xml call url="textPrint.swf?cpn=Caption Text here"