PDA

View Full Version : Flex 3 app into FlashPanoramaPlayer


BionicDroid
02-04-2009, 06:45 PM
First of all congratulations for FPP team, this is a fantastic tool :D, second i explain my problem.
I create in Flex 3 a simple combox and i want put this simple Flex appp into FPP, but when i load initial pano embedded in html page the Flash Player reports "An ActionScript error has occurred"

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///Z:/myProject/hotspots.swf cannot load file:///Z:/myProject/test.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.
The pano load right but Flex app no, what's wrong?

Code of mxml application:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:ComboBox x="10" y="10" id="myComboBox">
<mx:dataProvider>
<mx:Array>
<mx:Object label="garden" />
<mx:Object label="house" />
</mx:Array>
</mx:dataProvider>
</mx:ComboBox>
</mx:Application>

part code of html:
<body>
<script type="text/javascript" src="swfobject.js">
</script>
<div id="garden">
</div>
<script type="text/javascript">
var so = new SWFObject("garden.swf", "pano", "100%", "100%", "9", "#333333");
so.write("garden");
</script>
</body>


code of garden.xml:
<?xml version="1.0" encoding="utf-8"?>
<panorama>
<parameters>
tiltHome = 0
zoomHome = -2
layer_1 = hotspots.swf
</parameters>

<hotspots>
<global>
<!-- begin call flex application-->
<box id="myComboBox" url="test.swf" pan="45" refreshRate="20" />
<!-- end call flex application -->
</global>
</hotspots>
</panorama>

Note:
The myComboBox ID that's the name i tell in flex properties to combobox object.

The file test.swf is in same folder pano


What's wrong? Thank's.

BionicDroid
02-12-2009, 06:12 PM
The answer is simple, the FPP was not running on the local server, now if i run in local server my FPP who have inside a combox made with Flex 3 now i can see myComboBox