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 8327367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:05:12+00:00 2026-06-09T01:05:12+00:00

Situation: I’m trying to replace Flash Socket communication (byte-range) with javascript, to avoid the

  • 0

Situation: I’m trying to replace Flash Socket communication (byte-range) with javascript, to avoid the flash socket security policy file restrictions.

Details: I have binary data from javascript, and I can pass it to flash by base64 encoding/decoding, but this is too slow. Saving to disk and passing the local url is not an option (and not just for speed, but also clients prefer everything in memory, and the swf file may be restricted from loading local files). Furthermore, not using base64 doesn’t work, as flash’s ExternalInterface uses XML (which isn’t designed to carry binary data) to pass the data to AS3.

Question: Is there any way to get binary data from JS to AS3 without writing to disk and not bae64 encoding?

I am aware of Action Message Format (AMF) but it seems to add way to many external dependencies, and may still be slow?

Note: My program needs to be as browser compatible as possible, and it’s downloaded by clients (so needs to be small) and it also needs to run as fast as possible…

thanks!

  • 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-09T01:05:14+00:00Added an answer on June 9, 2026 at 1:05 am

    I’ve modified my thinking slightly about this problem:

    There is no straight forward way to send binary data between Flash and Javascript without marshaling it into a text based format first (ie: base64 encoding it).

    As noted by the OP, to facilitate communication between Actionscript and Javascript the ExternalInterface class actually marshals objects/data into an XML format. As such the binary data would need to go through this conversion to XML.

    New thought: when you use ExternalInterface the Flash application actually modifies the DOM, adding methods that serialize/deserialize the data to/from XML (reference needed, I’ve read about this but cannot find it now). Technically, it might be possible to re-define these methods in Javascript and fix the XML parsing errors you saw when trying to pass binary data. You’d have to determine the names of the names of these methods (I recall them starting with __Flash__ or something similar).

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

Sidebar

Related Questions

Situation: I am trying to write a efficient query using "LIKE" statement to look
Situation: I am building a page in ASP.NET from an HTML file with markup
Situation / Question Here's the situation. In Flash Professional, I have a MovieClip and
Situation: I am trying to construct a simple method that accepts two different integers
Situation: our production mysql database makes a daily dump into a .sql file. I'd
Situation is simple: I post a plain HTML form with a textarea. Then, in
Situation: I'm working with Adobe Livecycle ES2 and Flex In our project we show
Situation: 1. Linux TCP server 2 Windows C# client application The server receives messages
Situation: I have an index page which loads pages into it with ajax as
Situation: I often run into this problematic and never know how to solve it.

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.