From 444af0eaf4c8727b14345d26dc06b1e9970e3b67 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Wed, 25 Oct 2023 18:55:29 +0200 Subject: [PATCH] avm2: Add AIR flash.system::ImageDecodingPolicy --- core/src/avm2/globals/flash/system/ImageDecodingPolicy.as | 6 ++++++ core/src/avm2/globals/globals.as | 1 + 2 files changed, 7 insertions(+) create mode 100644 core/src/avm2/globals/flash/system/ImageDecodingPolicy.as diff --git a/core/src/avm2/globals/flash/system/ImageDecodingPolicy.as b/core/src/avm2/globals/flash/system/ImageDecodingPolicy.as new file mode 100644 index 000000000000..6481bfff38dc --- /dev/null +++ b/core/src/avm2/globals/flash/system/ImageDecodingPolicy.as @@ -0,0 +1,6 @@ +package flash.system { + public final class ImageDecodingPolicy { + public static const ON_DEMAND:String = "onDemand"; + public static const ON_LOAD:String = "onLoad"; + } +} diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index e2670d51f82c..44f58b3f4f7c 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -306,6 +306,7 @@ include "flash/system/ApplicationDomain.as" include "flash/system/Capabilities.as" include "flash/system/IME.as" include "flash/system/IMEConversionMode.as" +include "flash/system/ImageDecodingPolicy.as" include "flash/system/LoaderContext.as" include "flash/system/JPEGLoaderContext.as" include "flash/system/MessageChannelState.as"