-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Problem Description
- AIR SDK 51.3.1.2
- Linux ARM64, Ubuntu 24.04 LTS on Raspberry Pi 5 (the same code work on Linux AMD64)
My app crash when I use EncryptedLocalStore.
Steps to Reproduce
minimal example:
package
{
import flash.data.EncryptedLocalStore;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.utils.ByteArray;
public class Main extends Sprite
{
public function Main() {
this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
}
private function addedToStageHandler(e:Event):void
{
this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0x0000FF);
sprite.graphics.drawRect( 0, 0, 100, 100);
sprite.graphics.endFill();
sprite.buttonMode = true;
sprite.addEventListener(MouseEvent.CLICK, clickHandler);
this.addChild( sprite );
}
private function clickHandler(event : MouseEvent) : void
{
var testByteArray:ByteArray = new ByteArray();
testByteArray.writeUTFBytes("test");
EncryptedLocalStore.setItem("test_crash", testByteArray);
}
}
}
Known Workarounds
No workaroud
Reactions are currently unavailable