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

write/read actionscript array to/from file for use in actionscript

Mentor ,
Aug 25, 2013 Aug 25, 2013

Hi.  I've managed to create an array that I can use while the SWF is open.

However, how do I go about saving this array to a file that I can later open with my SWF and read back into the SWF so that I can do something like play back a sound sequence that has been created in the initial SWF array?

TOPICS
ActionScript
604
Translate
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
Mentor ,
Aug 25, 2013 Aug 25, 2013

After having found some good resources it seems that this sort of thing cannot easily be done within Flash itself but rather more easily with the packages available to AIR using Flash Builder or Flex

Translate
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
LEGEND ,
Aug 25, 2013 Aug 25, 2013
LATEST

AIR is available with Flash, so you could work it thru there.  If you plan to implement this as a locally installed desktop application, that would be the way to go.

As far as "easily done" goes, that's more relative to experience than accessibility.  While it is not extremely difficult to do, especially if you have a good tutorial to work with, it is not a simple thing to comprehend without a reasonable level of experience. 

If this is something you plan to have ionline, you could probably do this just as easily using server-side processing (PHP), possibly even just relying on the SharedObject class, but even the complexity will vary depending on how you really intend to utilize/present the finished design.

Translate
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