A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: How to? A live "idea" stream?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    11

    How to? A live "idea" stream?

    I've been trying to google this and I can't seem to get any traction and I just need a push in the right direction...

    We're trying to have a flash file pull an XML file and display the latest results "live" to it. We can load an XML file and get the results and display them, it is this "live" part that we just can't figure out how to do.

    So we have a bunch of speech bubbles floating across the screen. We have an HTML form that writes to a MySQL database and exports the results to an XML file. The flash file loads the XML and displays the "ideas" into each speech bubble that is floating across the screen.

    We just don't know how to have the flash file "constantly check" the XML file for the newest additions and display them in the speech bubbles floating across the screen.

    Any push in the right direction would be appreciated! Trying to find help with Flash is near impossible on Google as typing in "flash" brings in so many other results not related to the program. Plus I'm not sure what I should be looking for.

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    The easiest way would be to poll that file at an interval. This is not "constantly" checking, but instead just checking often. You may have to add a cachebuster parameter to the urlrequest to prevent the browser from giving flash a cached version.

    If you do want "push" functionality, you could establish a socket connection with your server and push new items through that, or even just push a notification that there are new items.

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    1,017
    for that flash media server was created, u can call the client from the server, instead of interval call from the client

    search "live chat flash media server" in google
    mey the swartz be with you

    http://www.amirlotan.com

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Media Server is overkill for a project like this. A simple java process (or any other server side process) can handle it.

    If you do want to look at full-blown streaming servers (no idea why), look into Red5.

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    1,017
    Quote Originally Posted by 5TonsOfFlax View Post
    Media Server is overkill for a project like this. A simple java process (or any other server side process) can handle it.

    If you do want to look at full-blown streaming servers (no idea why), look into Red5.
    if u have 100K clients calling to get update it will kill the server.

    you need server that can push, media server can push, and you can develop in action script.

    u can use red 5 and develop in java
    mey the swartz be with you

    http://www.amirlotan.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center