PDA

View Full Version : So fustrated with this!


kineticvision
11-24-2007, 07:18 PM
When I purchased FPP I had no idea it was going to be so difficult to use. I mean, all this coding is crazy! Am I missing something? Are you supposed to be a coder or developer in order to use this?

I personally know html and I understand the basics of flash and xml but....

I can't even get my pano to load the plugins! Should I just give up now?

I'm sorry guys. I've just been sitting in front of this computer 3 hours a day for the past 3 days trying to learn this thing and I feel like the dumbest kid in the class.

testure
11-24-2007, 07:26 PM
give us some example code, and maybe we could help. it really is quite simple to get started with simple projects. But it can also be very difficult if you try advanced scripting.

kineticvision
11-24-2007, 07:45 PM
give us some example code, and maybe we could help. it really is quite simple to get started with simple projects. But it can also be very difficult if you try advanced scripting.

For starters, I was hoping to have a small example pano on the homepage of my site. I was successful at embedding the pano but for some reason it is not reading the xml file with the plugins.

Here is the html I am usin to embed-

<script type="text/javascript" src="files/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("testpano/nature", "pano", "533", "172", "9", "#666666");
so.addVariable("panoName", "testpano/nature");
so.write("flashcontent");
</script>

and here is my xml file-

<?xml version="1.0" ?>
<panorama>
<parameters>
tiltHome = 80
zoomHome = 2
layer_2 = autorotator.swf

</parameters>
<autorotator>
speed = -0.1
interval = 30
pause = 1000
quality = low
</autorotator>
</panorama>

I'm not sure what I'm doing wrong and it's driving me nuts!

Now, that's just the start. I'd eventually like the panos I deliver to clients to look something like the the "Nexus" ones offered here - http://www.virtually-anywhere.com/index.php (top right of the screen).

Am I ever gonna get to that point or is that something that is going to be super complicated?

zleifr
11-24-2007, 11:21 PM
You need a link to the xml file in the javascript embedding code in the html. Try something like this:
<script type="text/javascript">
var so = new SWFObject("testpano/pano.swf", "pano", "533", "172", "9", "#666666");
so.addVariable("xml_file","params.xml");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();
</script>

As I have the above written you will need to place params.xml in the same folder as the html, if you want it elsewhere, change the path.

AND change nature back to pano.swf
AND in the xml in the <parameters> section put this: panoName = testpano/nature

jaaaab
11-25-2007, 01:04 PM
Using relative paths is quite tricky.

All you paths in the xml file have to be relative from the html page location.

If you start using FPP, you should better avoir relative paths.

++