Topic: [solved] flash embed tiltviewer gallery.xml did not display drupal)

Hello tiltviewer support

sorry for my english i am not a foreign english language speaker.

I am using Drupal Swftools and my own modul Dynamic gallery creator to display the tiltviewer embed.

I try to embed a flv video as background in the tiltviewer-pro swf . but the images did not display

What i have done:

I create a .fla in the folder http://localhost/sites/default/files/SWFTOOLS/tilt/...    with the following code:

 * For documentation visit:
import flash.display.*;

//turn off stage auto resizing
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;        
//load TiltViewer SWF
var ldr:Loader = new Loader();
var url:String = "http://localhost/modul/sites/default/files/SWFTOOLS/tilt/TiltViewer.swf"; 
var urlReq:URLRequest = new URLRequest(url);

//Set tilviewer options here. 
//These options will override options set via the HTML flashvars.
// For a description of config options, go to: 
ldr.contentLoaderInfo.addEventListener(Event.INIT, setOptions);
function setOptions(e:Event){    
    var options:Object = Object(ldr.content).embedOptions;
    //Set example options here
    options.columns = 3;
    options.rows = 1;    
    options.useReloadButton = false;
    options.bkgndTransparent = true;
    options.useFlickr = false;
    options.xmlURL = "http://localhost/modul/sites/default/files/SWFTOOLS/tilt/gallery.xml";
    options.maxJPGSize = 1300;
    options.frameWidth = 5;
    options.zoomedInDistance = 1000;
    options.zoomedOutDistance = 1800;

this files are included in the /tilt/ folder: ,tilt.swf ,tilt.fla ,TiltViewer.swf, gallery.xml, (image folder).

Now i use to display the tilt.swf SWFTOOLS (drupal)

what get me this html output :

<script type="text/javascript">
swfobject.embedSWF("http://localhost/modul/sites/default/files/SWFTOOLS/tilt/tilt.swf", "swfobject2-id-12682311961", "900", "360", "7", "", { "xmlURL": "http://localhost/modul/sites/default/files/playlists/d3d5716f86348ffd3f7d332ce5cbbde9.xml" }, { "swliveconnect": "default", "play": "true", "loop": "true", "menu": "false", "quality": "autohigh", "scale": "showall", "align": "l", "salign": "tl", "wmode": "transparent", "bgcolor": "#FFFFFF", "version": "7", "allowfullscreen": "true", "allowscriptaccess": "sameDomain", "base": "http://localhost/modul/sites/default/files/", "src": "http://localhost/modul/sites/default/files/SWFTOOLS/tilt/tilt.swf", "height": 360, "width": 900 }, { "id": "swf12682311961" });

What now happens is tilt.swf displays on my page then the swf try to load the image and stopp , i only can see 3 blank square

hopefully you can give me some advice to fix my problem.


simpleviewer asked for a relativ  path i think.
my files are located in the files directory ''sites/default/files/'' in the folder  ''sites/default/files/SWFTOOLS/tilt/''
in my logfiles the tilt.swf asked me for the path 'sites/default/files/imgs/image.jpg'' that is wrong, so i have to make this path in the gallery.xml ''SWFTOOLS/tilt/imgs/image.swf''
to all picture display.

Thanks for the nice gallery swf ; hand have a look in future on my self programed modul dynamic gallery creator with this you can use all the gallerys from your website tilt-,auto-,postcard-,simple-,viewer in drupal with swftools

Last edited by Karl2011 (2010-03-11 08:08:48)