all groups > flash data integration > january 2006 >
You're in the

flash data integration

group:

Flash Updates When XML Is Updated


Re: Flash Updates When XML Is Updated Motion Maker
1/8/2006 8:17:35 PM
flash data integration:
[quoted text, click to view]

You can create a timer (Flash AS setInterval) in Flash and use the Flash XML
and XMLNode classes to retrieve the static XML file on an interval as small
as a fraction of a second. Then upload your renewed XML file as needed using
FTP or whatever.

I am not sure how the server bandwidth and performance will compare use of a
server Socket with repeated Http requests which is what the XML class is
doing. However the general rule of thumb is bandwidth and transfer is not
free and unlimited.

The point is that the timer will continually request data regardless if a
user is present, so you might want to use mouse movements or some other
technique to detect if the user is watching. I would think the same is true
with sockets, but I do not have socket coding experience to know.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hello,

I would like to first start out describing what I am trying to do and
explain
what I think I need to in order to accomplish my goal.

Ok, so this is what I am trying to accomplish. I have an XML file, which
contains statistics from a sport. It is game data. Basically there is a
program
that you input plays and then it creates a new XML file each time a play is
inputted. I want to provide ?live? stats on the web for people that can not
make it to the game. I have decided to use flash to format the data, but I
want
the flash movie to update automatically every time there is a new file. The
XML
file builds on itself throughout the game so it would just need to load the
updated stuff each time.

So, after doing some research, this is what I have come up with. I
basically
would need to use the XMLSocket object. This would require a program set up
on
a server to be able to use the object.

Would that be all I need to do in order to accomplish my task? All I need
to
do is retrieve data and NOT send it so would this be the best way to go? I
don?t like the idea of having to get a program set up on a server, but if it
is
the only way to do what I want, I guess it will have to be.

Hope I was specific enough but let me know if you need more info. Hope
someone
can help.

Flash Updates When XML Is Updated kevinm9876
1/8/2006 8:50:53 PM
Hello,

I would like to first start out describing what I am trying to do and explain
what I think I need to in order to accomplish my goal.

Ok, so this is what I am trying to accomplish. I have an XML file, which
contains statistics from a sport. It is game data. Basically there is a program
that you input plays and then it creates a new XML file each time a play is
inputted. I want to provide ?live? stats on the web for people that can not
make it to the game. I have decided to use flash to format the data, but I want
the flash movie to update automatically every time there is a new file. The XML
file builds on itself throughout the game so it would just need to load the
updated stuff each time.

So, after doing some research, this is what I have come up with. I basically
would need to use the XMLSocket object. This would require a program set up on
a server to be able to use the object.

Would that be all I need to do in order to accomplish my task? All I need to
do is retrieve data and NOT send it so would this be the best way to go? I
don?t like the idea of having to get a program set up on a server, but if it is
the only way to do what I want, I guess it will have to be.

Hope I was specific enough but let me know if you need more info. Hope someone
can help.
AddThis Social Bookmark Button