• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Error URLRequest

New Here ,
Apr 22, 2013 Apr 22, 2013

Copy link to clipboard

Copied

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/getProgramByChannelAndDate&channel=vtv3&date=2013...";

                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?

Views

962

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

Copy link to clipboard

Copied

Hi,

Server-Side ActionScript Language Reference does not have URLRequest and URLLoader class. You can use LoadVars class for the same purpose. Check the following link to know more about the LoadVars class:

http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7ff7SSASLR....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2013 Apr 23, 2013

Copy link to clipboard

Copied

My code :

///////////////////////////////////////////////////

var url = "http://10.84.70.133:8084/?q=external_api_transcode/getProgramByChannelAndDate&channel=vtv3&date=2013...";

        var loadvar = new LoadVars();

        loadvar.onData = function(src) {

        if (src == undefined) {

                trace("Error loading content.");

                return;

        }

        trace(src);

        }

        loadvar.load(url,loadvar,"GET");

        trace(loadvar.toString());

////////////////////////////////////////////////////

But it is not ok.

Can you help me?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2013 Apr 24, 2013

Copy link to clipboard

Copied

LATEST

Who can help me?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines