PDA

View Full Version : controlling a swf file with external data


Cowgirl32
01-19-2006, 05:14 PM
i am wanting to make a swf file that can be changed by external data.

For example:

if I was doing a meter for a company that would like to know how hot their machines are running. I would like external data to change the color of the swf file meter.

Does anyone know of a tutorial on controlling swf files with external data. I am not sure where to begin with this. Any suggestion or ideas would be greatly appriciated.

Alvin
01-20-2006, 03:03 PM
Instead of "controlling swf with external data", can you try to use a loop loading external data within the swf and change color by itself?

carriker
01-23-2006, 11:08 PM
Yeah, creating a function that loops at a set interval in your swf is going to be the easiest way to update the swf file itself.

However, when it comes to getting the data from an external source it kind of depends on what your data source is. If it's an XML document you can use the XMLConnector component or just create and XML object. You can use LoadVars if the data is in a text file. If your stored data is in something more complicated like a database then you'll probably have to get PHP involved and be setup with a server. Anyway, there's lots of ways to do it, but it all depends on how your external data is stored.