PDA

View Full Version : loadPano errors...


djsegler
04-23-2008, 12:58 PM
I'm following the method described in the tutorials for using loadPano (which also matches how several have described here in the forum)... but I keep getting an actionscript error window that pops up whenever I click the hotspot that activates the loadPano command...

Here's what's in the error box:
ReferenceError: Error #1069: Property qualityController not found on CubePanorama and there is no default value.
at Hotspots/panoCreated()
at Hotspots/newPano()
at PanoController/::initPanorama()
at PanoController/loadPanorama()
at Hotspots/loadPano()
at Hotspots/execute()
at Hotspots/executeFunction()
at Attributes/onDone()
at AttributeChanger/remove()
at AttributeChanger/::calc()
at AttributeChanger/::onTime()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()

What am I doing wrong?

Here's my XML:
---------------------------
<?xml version = '1.0'?>
<panorama>
<parameters>

panoName = images/ramp
zoomHome = 1.0
zoomMin = 0
zoomMax = 2
panHome = 75
tiltHome = 0
friction=0.91
sensitivity=40
tiltHome=0
loaderTextColor = #FFFFFF
loaderBackColor = #000000
loaderText=

layer_2 = files/loadmeter.swf
layer_4 = files/hotspots.swf
<!-- layer_8 = files/menuFullscreen.swf -->
layer_6 = files/autorotator.swf
layer_8 = files/editor.swf


</parameters>

<autorotator>
speed = 0.5
interval = 30
pause = 2000
quality = low
</autorotator>

<hotspots>

<global
onStart="external.autorotator.disabled=1"

goUp="
pano.qualityStatic=low
saturation=0,300
contrast=.1,300
alpha=1,800
depth=30
static=1
scaleable=0
staticX=0
staticY=0
scale=0.9,400
distance=1
rotationX=0
rotationY=0
rotationZ=0
global.timer=1,1000,-,restoreQuality
"

goDown="
pano.qualityStatic=low
saturation=-0.5,700
alpha=0,500
depth=10
static=1
scaleable=0
scale=.25,300,easyOut
distance=1.5,600
rotationX=0,600
rotationY=0,600
rotationZ=0,600
global.timer=1,500,-,restoreQuality
"

restoreQuality="
pano.qualityStatic=best
external.autorotator.disabled=1
">

<pano leash="free"/>

<!-- View Button -->
<box id="crosshair" linked="images/ramp" url="images/crosshair.png"
pan="63" tilt="-1" distance="2" orientation="sphere" rotationX="0" rotationY="0" rotationZ="0" depth="11" scaleX="1.5"
scaleY="1" alpha="0.5" glow="0"
onLoad="alpha=0"
onOver="alpha=.7,100; scale=1.3,600,elastic"
onOut="alpha=0,250; scale=1.0,600,elastic"
onClick="cabinFocus()"
cabinFocus="pano.qualityStatic=low;pano.pan_v=0;pano.tilt_v=0; pano.zoom_v=0;pano.tilt=-4,400;pano.zoom=2,400;timer+=1,300,,rotate_me"
rotate_me="pano.pan=0,500;pano.tilt=-11,300;timer+=1,200,,zoom_me"
zoom_me="pano.zoom=1,800;timer+=1,300,,load_me"
load_me="pano.leash=free;loadPano(panoName=images/cabin&pan=0&tilt=0,1000,fade)" />
</global>
</hotspots>
</panorama>

------------------------------

Note that there's some left over junk in there from previous projects, but nothing harmful I don't think.

Also note that even though I have the editor.swf plugin set to load - it never loads. I'm not sure why.

djsegler
04-23-2008, 01:07 PM
While I still get the errors, if I click Dismiss All, the pano goes black and then the new pano appears.

I had to add a question park in the loadPano command as follows:
loadPano(?panoName=images/cabin&panHome=0&tiltHome=0&pan=0&tilt=0,1000,fade)"

Not sure why the fade transition doesn't work.

Gotta fix the errors though.

Please help!!

djsegler
04-23-2008, 06:08 PM
Tested an my PC that doesn't have FLASH CS3 installed - and no errors... although the fade function isn't working for some reason.

The screen goes black and then the new pano opens suddenly.

Any idea on how to configure Flash CS3 to suppress AS3 errors in the browser?

djsegler
04-23-2008, 07:18 PM
I've discovered that the 2nd pano does eventually load... but no transition.

Here's the error I'm getting:
ReferenceError: Error #1069: Property qualityController not found on CubePanorama and there is no default value.
at Hotspots/panoCreated()
at Hotspots/newPano()
at PanoController/::initPanorama()
at PanoController/loadPanorama()
at Hotspots/loadPano()
at Hotspots/execute()
at Hotspots/executeFunction()
at Attributes/onDone()
at AttributeChanger/remove()
at AttributeChanger/::calc()

I'm using the standard command format from the documentation. Here's the line I call in the XML that's attached to an onclick result for one of my hotspots (called load_me):

load_me="pano.leash=free;loadPano(?panoName=images/cabin&panHome=-50&tiltHome=0&zoomHome=1&pan=0&tilt=0&zoom=1,,1000,fade)"

The new pano loads in the right pan/tilt/zoom position - just no transition and the error above.

Ideas? What am I doing wrong? Is it tied to the version of the flash player I'm using? Bugs?

djsegler
04-23-2008, 08:16 PM
I also notice after the first pano loads, that if I click somewhere on the screen (but not on the hotspot box), I get the following error as well:

ReferenceError: Error #1069: Property qualityController not found on CubePanorama and there is no default value.
at Hotspots/doPress()

Please help!

cheathamlane
04-23-2008, 09:55 PM
Hey djsegler:

Your "fade" is actually working on the "tilt" function you have in there... so, your tilt is probably fading just fine. :)

For putting a fade on "loadPano" it is structured like:
loadPano([panorama], [time for transition effect], [transition effect])

So you'd end up with something like:
loadPano(?panoName=images/cabin,1000,fade)

So, maybe for your example, try:

loadPano(?panoName=images/cabin&panHome=-50&tiltHome=0&zoomHome=1&,1000 ,fade)
//notice the extra "&" in there

djsegler
04-23-2008, 10:25 PM
I was using the wrong pano0.swf file. All seems to be fixed now.

Thanks for the tip on the extra & though. I wasn't able to adjust the fade speed, so it probably isn't taking it without the extra delimiter.

Thanks again!