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

  • SEARCH
  • Home
  • 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 7868249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:56:33+00:00 2026-06-03T00:56:33+00:00

can someone please suggest way to communicate between Air(Action script) App and node.js server?

  • 0

can someone please suggest way to communicate between Air(Action script) App and node.js server?

e.g.

  1. Communication between PHP and Flash(Action Script) application using AMFPHP

  2. BlazeDS for Java+Adobe Flex and Adobe Integrated Runtime (AIR)

Please send me your suggestions, any tutorial, or PoC sample code

Thanks in Advance.

  • 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-06-03T00:56:35+00:00Added an answer on June 3, 2026 at 12:56 am

    Here is a sample I wrote for a blog. I think the code itself pretty much explains itself.


    Client Side AS3 Code :

    var urlString:String = "http://localhost:1337/"; 
    
    function Submit():void
    {
        var requestVars:URLVariables = new URLVariables();
        requestVars.Username = "guest";
    
        var request:URLRequest = new URLRequest();
        request.url = urlString;
        request.method = URLRequestMethod.GET;
        request.data = requestVars;
    
        var loader:URLLoader = new URLLoader();
        loader.dataFormat = URLLoaderDataFormat.TEXT;
        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
    
        try { loader.load(request); }
    
        catch (error:Error) { // Handle Immediate Errors }
    }
    
    function loaderCompleteHandler(e:Event):void
    {
        trace(e.target.data); // Response Text
    }
    

    Brief about the code snippet:

    • We fill in the request data by instantiating a URLVariables class as
      requestVars.
    • We fill in the url & method by instantiating URLRequest class as request.
    • We attach an load complete event Handler to handle the response.
    • Wrapping up for catching errors, we call the load method.
    • URL is set to Localhost port 1337 where the nodeJS would be hosted.

    • The variable set is a test field UserName which is checked for in the server script.


    Server Side NodeJS Code :

    var http = require('http'), url = require('url');
    
    http.createServer(function (req, res) {
    
      res.writeHead(200, {'Content-Type': 'text/plain'});
    
      var urlObj = url.parse(req.url, true);
    
      if(urlObj.query["Username"] == "guest") res.end("True");    
    
      else res.end("False");    
    
    }).listen(1337, "127.0.0.1");
    
    console.log('Server running at http://127.0.0.1:1337/');
    

    Brief about the code snippet:

    • The code listens at port 1337 in the localhost server where it is hosted.
    • The query string is unwrapped to get the UserName variable & tested.
    • Server Responds with true since the value equates to guest.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone suggest an elegant way to solve the following problem please? I have
Can someone please help me figure out why my accordion script at http://www.mincovlaw.com/services/copyright gets
Can someone please point me to the easiest way to have a timer in
Can someone please explain me what's the difference between Swing and AWT? Are there
Using jQuery and the HTML below, can someone please suggest what's the best (ie.
I am unable to apply color and syntax setting. Can someone please suggest me
Could someone please suggest a good way of taking a global seed value e.g.
Can someone please explaing why the string is not splitted in the following code
Can someone please show me how to get to label1 inside the iframe via
Can someone please show me/link a simple multipart form data, http post file upload

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.