[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

dynamic xml from php

Hello EE

i have a problem.
I use slideshowpro component for flash and have create a dinamyc gallery.
i use a file php to generate a xml file , and its work fine.

My problem is that my file php works only if i pass it a variable:
example

http://www.mydomain.com/images.php?id=80

ok?
now slideshow work with a xml file into file fla.
How i can link xml file external fla file?

Regards
Denis
0
denny3d
Asked:
denny3d
  • 2
1 Solution
 
asafadisCommented:
Can you not use a URL with parameters in flash?
0
 
Ray PaseurCommented:
Any chance you could post a link to the pages and the code you're using?  It is hard to guess what is wrong without that.
0
 
denny3dAuthor Commented:
ok, but now i dont use a code for flash file
i use only a file php like this:
********
<?php
      
/*
      CONFIGURATION
*/
require_once "./settings/config.php";

$large_folder = 'large';
$medium_folder = 'medium';
$thumb_folder = 'thumb';
      

/*
      END CONFIGURATION
*/
      // Set up paths
      define('DS', DIRECTORY_SEPARATOR);
      $dir = dirname(__FILE__);
      $server = 'http://' . $_SERVER['HTTP_HOST'];
      $rel_path = "admin/foto/";
      $path = $server . $rel_path;
      $iptc = is_callable('iptcparse');

      
      // Start writing XML
      $o = '<?xml version="1.0" encoding="utf-8"?>' . "\n<gallery>\n";

                  // Album tag
                  //$o .= "\t" . '<album title="' . $title . '" description="" lgPath="' . $rel_path . $medium_folder . '>' . "\n";
                  $o .= "\t" . '<album lgpath="' . $rel_path . $medium_folder . DS . '" tnpath="' . $rel_path . $thumb_folder . DS . '">' . "\n";
                  
                  // SELECT FOTO DA ID VEICOLO
                  $sel_foto = "SELECT * FROM tbl_foto WHERE id_veicolo = '{$_GET['id']}'";
                  $ris_foto = @mysql_query($sel_foto);
                  //$r_foto = @mysql_fetch_object($ris_foto);
                  while($r_foto = @mysql_fetch_object($ris_foto)){
                        
                        $o .= "\t\t" . '<img src="' . $r_foto->foto . '" caption="' . $caption . '" link="' . $link . '" />' . "\n";
                  }
                  
                  
                  
                  
                  // Close the album tag
                  $o .= "\t</album>\n";

      // Close gallery tag, set header and output XML
      $o .= "</gallery>";
      header('Content-type: text/xml');
      die($o);
?>
********


but the problem is in file fla or in file that load a swf file
0
 
denny3dAuthor Commented:
i attach html file and the code that i have insert into file fla:

*****
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (var param in paramObj) {
   if (param == "xmlfile") {
      my_ssp.xmlFilePath = paramObj[param];
   }
   if (param == "xmlfiletype") {
      my_ssp.xmlFileType = paramObj[param];
   }
}
****
veicoli-ssp.html
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now