Skip to main content
Known Participant
May 7, 2014
質問

Shared Objects ios

  • May 7, 2014
  • 返信数 1.
  • 149 ビュー

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?

このトピックへの返信は締め切られました。

返信数 1

TomahawknCJ10作成者
Known Participant
May 7, 2014

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();

}