You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here com.distriqt.Core is the only extension with a valid macOS implementation. After the load however I can still access the default lib from Exceptions eg Exceptions.service.version returns correctly so something is loaded?
It seems like we may have caused some issues when trying to ensure that the extensions' swf definitions were available from worker threads.. the mechanism we added there involved tracking the 'toplevel' object that was used when creating the initial reference to the extension (i.e. when we parse the XML descriptor file at start-up). So a worker that's then coming later with its own toplevel shouldn't be able to load extensions, but should be able to get at the swf definitions.
The issue though is caused by the fact that during start-up, it's an "internal" toplevel object that's being used when the extensions are first registered, but when you access things from your SWF code it's then a "content" toplevel object... so the loading of the SWF data did probably work, but the state was not being set to "loaded".
The thing I can't quite work out is how come some of them ended up with a loaded state of "true"..! if they are mentioned in the app descriptor with 'delayLoad' set, then the loaded state should be incorrect the whole time...
We have a fix for this though - just need to ensure it doesn't then break the Worker scenarios..!
I'm attempting to ascertain whether an extension has been loaded at runtime after specifying the extension is to be "delay load".
Problem Description
Firstly I flag the extension as delay load:
I'm attempting to get the extension loaded state at runtime (without knowing/specifying a class contained in the extension) :
At this point the
info.isLoaded
isfalse
as expected.Then I attempt to load the extension:
Following this I attempt to check the load state by getting the info again:
I'm finding that
info.isLoaded
is inconsistent, especially when loading multiple extensions. Generally it seems to always befalse
.One thing I have noted is that it seems to vary based on the supported platforms for an extension. eg on macOS I get:
Here
com.distriqt.Core
is the only extension with a valid macOS implementation. After the load however I can still access the default lib from Exceptions egExceptions.service.version
returns correctly so something is loaded?However on Android:
I get
com.distriqt.Exceptions
,com.distriqt.Core
andcom.distriqt.Adverts
loading but the others not.Is this state tied to the supported platforms for an extension? Or does the
isLoaded
flag mean something different than documented? (https://airsdk.dev/reference/actionscript/3.0/flash/external/ExtensionInfo.html#isLoaded)The text was updated successfully, but these errors were encountered: