Flash and XML Question

  • manuel2283
  • Novice
  • Novice
  • manuel2283
  • Posts: 26

Post 3+ Months Ago

I go this combox that was created in flash, which loads urls using a simple xml files

See Example Here

http://www.flash-db.com/Components/?swf ... ombo%20Box

How can Use the same method but instead of loading external url, how can I load another swf on the same page.

Code: [ Select ]
<?php
// This array would normally be coming from a database
// We just simplified it by putting it in an Array for now.
$NameArr = array("Flash-db.com", "FlashKit", "PHP.net","MySQL","Flash Magazine", "CNN");
$DataArr = array("http://www.flash-db.com", "http://www.flashkit.com", "http://www.php.net", "http://www.mysql.com","http://www.flashmagazine.com", "http://www.cnn.com");

$numReturn = count($NameArr);
$i = 0;

// Prints out the necessary XML
print "<dataSet>";
  while ($i < $numReturn) {
    print "<data>";
    print "<name>".$NameArr[$i]."</name>";
    print "<dataRow>".$DataArr[$i]."</dataRow>";
    print "</data>";
    $i++;
  }
print "</dataSet>";
?>
  1. <?php
  2. // This array would normally be coming from a database
  3. // We just simplified it by putting it in an Array for now.
  4. $NameArr = array("Flash-db.com", "FlashKit", "PHP.net","MySQL","Flash Magazine", "CNN");
  5. $DataArr = array("http://www.flash-db.com", "http://www.flashkit.com", "http://www.php.net", "http://www.mysql.com","http://www.flashmagazine.com", "http://www.cnn.com");
  6. $numReturn = count($NameArr);
  7. $i = 0;
  8. // Prints out the necessary XML
  9. print "<dataSet>";
  10.   while ($i < $numReturn) {
  11.     print "<data>";
  12.     print "<name>".$NameArr[$i]."</name>";
  13.     print "<dataRow>".$DataArr[$i]."</dataRow>";
  14.     print "</data>";
  15.     $i++;
  16.   }
  17. print "</dataSet>";
  18. ?>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Do you mean load in another movie via loadMovie()?

If so, just change the getURL in the .fla file (on line 49 of the functions layer of the example .fla) to a loadMovie action.

If you mean dynamically displaying a .swf file in the page, that is a whole 'nother level. I have no idea about how to do that.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.