Solved

Flash application - Live updating ?

Posted on 2006-11-05
2
184 Views
Last Modified: 2010-04-16
Hi,
    I have been asked to create a flash application to emvbed into a website that auto-updates matches and scores, what scripting language could i use for this?
0
Comment
Question by:ashburn69
2 Comments
 
LVL 13

Accepted Solution

by:
AngryBinary earned 250 total points
ID: 17882006
This solution depends primarily upon what the source of the match/score data is, and secondarily what platform it is being served from. PHP is a very widely used tool for this particular purpose. The script would have to retrieve the data from a database or consume an RSS feed and print the data to the output stream (more simply put, "print()" or "echo()") in either XML or some other parseable format, like a comma delimited list of values, or a query string style expression. You would then use Flash's XML classes to read in the file output in something like the following manner:

var scores = new XML();
scores.load("myPHPscript.php");
scores.onLoad = function()
{
    trace(this.toString());
    //do something with the scores here
}

If the scores will be written by hand, uploaded via FTP, or stored in some manner of text file, the above method will also work.

If the scores are being pushed out via a webservice, Flash also has built in capability to handle that. You will need to include the webservice components in your movie, which can be parameterized to call a specific webservice method, or you can fire it up at runtime:

var ws = new WebService("http://www.scoresite.com/wsdlAddress.asmx?wsdl");
var callBack = ws.GetScores(); //"GetScores" must be a method defined by the webservice
callBack.onResult = function(result)
{
   //do something with scores here
}

Randall
0
 
LVL 1

Author Comment

by:ashburn69
ID: 17883479
Ok, thanks ill find out the source of the scores and get back to you!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Add mobile access to browser application 3 133
wordsWithout 49 80
tidtcpserver connection lost handle 2 49
Birthdays 3 21
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now