I reviewed : http://blogs.adobe.com/pdfdevjunkie/2008/08/saving_the_state_of_swf_conten.php
I really helped, but...
I am writting an flash app where the user can rearange objects on an board.
The user can save the current configuration by pressing a Save button.
He can also reload a SAVED configuration by pressing a RELOAD button.
When he reuses the app he expects to see the last saved state.
No problem saving.
On startup of the app, my read fails.
I have tried using the Event.INIT and Event.COMPLETE messages
stage.addEventListener(Event.COMPLETE, myCheckComplete);
INIT, occurs , then COMPLETE.
In myCheckComplete call Readit(), where I attempt to read the stored data.
This call is unsuccessful.
When I click on a Reload button my read works.
I believe my problem is in the timming.
Is there an EVENT I should be monitoring from ACROBAT telling me, everything is OK now, you may execute your ExternalInterface.call("multimedia_loadSettingsString")?
I validate ExternalInterface.available prior to each call...
Thank you in advance for your time and effort.
We tend to make a dummy call to Acrobat JS as part of the SWF's initial code - e.g. ExternalInterface.call("eval(1+1)") - and we loop a few times if there's a null return. That way we can give AcroJS time to get out of bed, but also the SWF can fail gracefully if the user's disabled it (in which case, .available will STILL be true, even though there's nothing listening).