Skip navigation
hungdo1988
Currently Being Moderated

Error URLRequest

Apr 22, 2013 1:54 AM

Tags: #flash #server #media #urlloader #urlrequest

Dear all.

 

I want to write an application in flash media server.

I installed FMS 4.5 Enterprise.

I want to get web content that it is json format.

 

My code:

//Get web content example 1

                var url = "http://10.84.70.133:8084/?q=external_api_transcode/getProgramByChannel AndDate&channel=vtv3&date=20130404";

                var request = new URLRequest(url);

                var loader = new URLLoader();

                loader.load(request);

                trace(loader.data);

 

 

But when I load this application then there is error related URLRequest as below:


Sending error message: /opt/adobe/fms/applications/dvrcast_origin/main.asc: line 44: ReferenceError: URLRequest is not defined-

 

I don't know why error appeared?

 

Can you help me as soon as?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points