私はこのコードを持っています(より大きなスクリプトの一部):
flashvars.xmlSource = "datasource.xml";
datasource.xml は次のようになります。
<?xml version="1.0" encoding="utf-8"?>
<Object>
<Contents>
<Source="address" Title="title"></Source>
<Description><h1>New hot Features</h1><p>The all new Piecemaker comes with lots of new features, making it even more slick.</p><p>Just to mention a few - you can now specify unlimited transition styles, include your own SWF and Video files, add hyperlinks to images and info texts with all special characters.</p><p>We also impoved the navigation and the animation with animated shadows and pixel-perfect transitions.</p></Description>
(...)
</Contents>
</Object>
foreach ループを使用して動的に datasource.xml を生成したいと考えています。
ファイル拡張子を .php に変更しましたが、これは簡単ではありません ;)
何か案は?