PDA

View Full Version : How to embed panos in Flash?


hyung
11-10-2009, 06:48 AM
Hi,

I am referring to the "embedPano.fla" example which is the FPP package. This example works fine but when I replace the existing pano with my pano, which uses an xml file, the pano wouldn't appear properly on the web browser. When I run it on Flash CS3 by typing Ctrl+Enter, I can see the panorama but not on the web browser. Could the reason be different versions of Flash Players? My Flash CS3 seems to use Flash Player 9 and my web browser uses Flash Player 10.

What I am trying to do is to make my pano communicate with external .swf via ExternalInterface.

Could anybody please have a look at my example?

You can view the original pano here:
http://www.vr-net.co.kr/biz/fpp/vr.html

and the embedded version:
http://www.vr-net.co.kr/biz/fpp/embedPano.html

You can download my example from the following link:
http://www.vr-net.co.kr/biz/fpp/embedPano.zip

Any comments would be appreciated!

Hyung

allSaints
11-10-2009, 07:28 AM
Hyang,

I'm no sure this is any help, but when I open your web page, I get the following error messages from the Flash Debug Player 10:
CubePanorama v2.3 loaded.
Load XML: vr.xml
Load layer 6: plugin/menuFullscreen.swf
Load layer 2: plugin/vxtooltips.swf
Load layer 4: plugin/ExtensibleMeter.swf
Load layer 7: plugin/limits.swf
Load layer 1: plugin/hotspots.swf
ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.
at flash.ui::ContextMenu/initLinkAndClipboardProperties()
at flash.ui::ContextMenu()
at PanoController/createContextMenu()
at PanoController/initHandler()
at PanoController/initFlash10()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Timeline0_a1aee3791c29f8449ebf6648f3f33b62/initHandler()

...

ReferenceError: Error #1065: Variable flash.display::TriangleCulling is not defined.
at 1_fla::MainTimeline/drawSide10()
at CubePanorama/redraw()
at CubePanorama/loadImages()
at PanoController/loadImages()
at PanoController/initPanorama()
at PanoController/loadPanorama()
at Hotspots/loadPano()
at Hotspots/execute()
at Hotspots/executeFunction()
at Hotspots/execute()
at Hotspots/addGlobal()
at Hotspots/parseHotspots()
at Hotspots/waitForParameters()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()



Tommy

Jochum
11-11-2009, 03:54 PM
Have you checked so you renamed the filename correctly inside the xml? (panoName=XXX)
And then I'm not sure if you can use a xml when embedding the fpp.swf inside another swf, and how the links/searchways goes between there, if I recall right if you embed a swf inside another swf thats located somewhere else the links to the files needed goes wrong because the flashplayer now assumes the links are in relation with the swf that holds the pano.swf instead of that inside, if you understand... could have with that to do, just throwing that in, I don't have practice with embedding panos inside swf so I dont know, just suggesting some things to investigate.

colchagua007
11-17-2009, 09:55 PM
Does anybody knows who created this "embedPano.fla" tutorial for the FPP?

At the moment it is driving me bonkers, I am seen to be just runing in circles.

kind regards,

Rodrigo