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

Shared Objects ios

New Here ,
May 07, 2014 May 07, 2014

Hello,

I created a simple game for mobile devices using AIR. I use shared objects to save a few achievements and high scores to the device. The problem is that this works perfectly for android devices but the very same code does not work for the iPhone. Anyone else have this problem?

TOPICS
ActionScript
132
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
New Here ,
May 07, 2014 May 07, 2014
LATEST

FIXED - For some reason I had to run flush() in the DEACTIVATE method. Didn't have to do this for Android.

NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE , handleDeactivate, false, 0, true);

function handleDeactivate(event:Event):void {

    volLevel = 0;

    volTransform.volume = volLevel;

    musicChannel.soundTransform = volTransform;

   

    achieve.flush();

    sStar.flush();

}

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