FLASH, Actionscript, XML & PHP
Here is how we display date and time in a flash movie. Take a dynamic text field named as ‘Mytime’ which will be used in scripting and in dynamic text field time will appear. Adjust font color and size of text according to your need.
With Flash, XML and PHP you can create very professional, interactive, dynamic and customizable slideshows, galleries and lot more. We basically control back-end by PHP and create XML file which is called in flash to show the dynamic content. This section is bringing PHP, XML and Flash based scripts.
Following is a little example on how we can fetch data from PHP script into Flash swf file.
Setting Up SWF File
In order for Flash to get data from an external source, you need to make use of dynamic text fields. Simply place a blank dynamic text field on the stage and make sure you give it a variable name (NB: dynamic text fields have both an instance AND a variable names. In this case we want to focus on the variable name). Note the name you give to the field’s variable name, as we’ll need it when we write our PHP script.
In some cases we need transparent background for swf in web pages. For that a little property of SWF movie as a parameter will do. The background of a Flash movie can be set to transparent. This allows the background color or image of the HTML page that contains the Flash movie to show through and allows the layering of Flash content with DHTML content.