actionscriptflashswx

Flash: What is the SWX data format?


What is this SWX data format that I keep hearing about?

Does this mean that:


Solution

  • "SWX is the native data format for the Flash Platform" is a very confusing statement. The short answer to your question is (from Wikipedia):

    SWX data files can be loaded into Flash movies with:

    • ActionScript 2, using the Flash internal function loadMovie().
    • ActionScript 3, using an SWX API function, when data is received, SWX
      dispatches custom events.

    This means SWX is not a "data format", but rather the specification for something written in normal SWF bytecode. Otherwise it would not be loadable using internal Flash functions. (The reason why AS3 needs an SWX API function is that AS3 is less forgiving than AS2.) So your first alternative ("following the open Adobe SWF") is correct. A good example on the official web page is:

    just like JSON is a subset of JavaScript

    In your terms, JSON is JavaScript, and correspondingly, SWX is SWF.