Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:31:07+00:00 2026-05-13T05:31:07+00:00

URLRequest not working in Cross domain in AS3? <?xml version=1.0 encoding=utf-8?> <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute

  • 0

URLRequest not working in Cross domain in AS3?

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">
    <mx:Button x="35" y="22" label="Button" click="test()"/>
    <mx:TextArea x="35" y="65" width="365" height="254" id="aaa"/>
    <mx:Script>
        <![CDATA[

            function init():void {
      Security.allowDomain("*");  // localhost, 192.168.0.19
    Security.loadPolicyFile("http://abcomp01.thaifasthost.com/crossdomain.xml"); 
   }

            function test():void {
            var url:String = "http://bbs.pramool.com/webboard/view.php3?katoo=j530492";
            var request:URLRequest = new URLRequest(url);
            var loader : URLLoader = new URLLoader();
            request.url = url;

            request.method = URLRequestMethod.POST;
            loader.addEventListener(Event.COMPLETE, on_complete);
            loader.addEventListener(IOErrorEvent.IO_ERROR, on_error);       
            //navigateToURL(request);
                        try {
                loader.load(request);
            } 
            catch (error:Error) {
            }

            }


            function on_complete(e : Event):void{
            var loader:URLLoader = e.target as URLLoader;
            if (loader != null)
            {
                aaa.text = loader.data;
            }
        }
        function on_error(e : Event):void{
        }   
        ]]>
    </mx:Script>
</mx:Application>

In XML cross domain:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>

How can I fix this?

It works when I upload to my own hosting but not when on my local machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:31:08+00:00Added an answer on May 13, 2026 at 5:31 am

    What are you doing with the URLRequest object? One thing to make sure of is that there is a crossdomain.xml policy file on the server you are trying to connect to that server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The SSL Certificate is not trusted. dialog occurs in Adobe AIR application. How can
Quite simple really: var req:URLRequest=new URLRequest(); req.url=http://somesite.com; var header:URLRequestHeader=new URLRequestHeader(my-bespoke-header,1); req.requestHeaders.push(header); req.method=URLRequestMethod.GET; stream.load(req); Yet,
I'm currently experimenting with loading external SWF files from both an standard AS3 application,
I am working with URLLoader and URLRequest in this case. I have two buttons.
I can show a swf into flash simply with this code var request:URLRequest =
I'm loading the XML in, and I'm able to read the XML nodes into
I'm building a remote presentation tool in AS3. In a nutshell, one user (the
I am working with a loader to request an image from a WMS(Web Mapping
I have a file to which I do not have the source - a
I have seen a similar line of code floating about in Apples code: (void)[[URLRequest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.