?
Solved

Flash application - Live updating ?

Posted on 2006-11-05
2
Medium Priority
?
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
AngryBinary earned 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

801 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