Comments (5)
Hello,
I have no experience in iOS development, but have to remind you:
If you tries to load SWF in AIR app on iOS, due to Apple's policy, applications are not allowed to load external code or other JIT technologies without being reviewed by the App Store. So AIR for iOS can't load SWF, and they are not using ABC as software.
For other OS, loading external SWF is a very normal behavior. You should show more information about the issue, including SDK version, sample code and so onβ¦
from adobe-runtime-support.
Could you provide sample code for android OS
from adobe-runtime-support.
I think load SWF from a server is clear easy and isn't it a basic operation in Flash development?
Just something like this:
package yourpackagename {
import flash.display.Sprite;
import flash.display.Loader;
import flash.events.Event;
import flash.net.URLRequest;
public class SimpleClass extends Sprite {
private var loader:Loader = new Loader();
public function SimpleClass() {
loader.load(new URLRequest("http://yourDomain.com/URL/to/SWF/file.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handlerForLoadComplete);
}
private function handlerForLoadComplete(e:Event) {
//things to do on load complete
//For example: Add as child
addChild(e.target.content);
}
}
}
I think this is enough, isn't it the same operation as on Windows/MacOS? I did the same when developing Android. Or do you encounter problems during regular loading?
from adobe-runtime-support.
Let me implement the codes you have given and get back to you with the result. Thanks
from adobe-runtime-support.
If you're just looking at SWFs with resources, then that should work, but I think if you want to access AS3/code definitions from the loaded SWF within your main application then you'd also need to pass in a LoaderContext to the load() command, with the "allowCodeImport" value set to true.
from adobe-runtime-support.
Related Issues (20)
- armv HOT 1
- [Windows] Non-embedded fonts displayed without anti-aliasing (smoothing)
- TextField: Incorrect double-click behavior HOT 2
- adl quit unexpectedly HOT 8
- [AIR SDK 50.2.5.1][Linux] `Worker::start()` cause crash HOT 2
- Error on constructing XML from a file created by Visual Studio HOT 1
- AIR 50.2.5 Crashing in Debug Mode on Mac OS HOT 4
- i am using air sdk 50.2.25 , getting error while publish for android HOT 1
- i am using air sdk 50.2.2.5 , getting error while publishing for android HOT 2
- [Linux] `NativeWindow` creation cause crash without adl in some cases HOT 2
- [AIR 51.0.0.4][Linux] AIR applications doesn't work before Ubuntu 22.04 HOT 1
- After updating AIR SDK to version 50.2.4.5 Huge Spike in Crashes on iOS devices HOT 14
- [Issue] Context3d fail to initialize on Android
- ABB and armv7? HOT 2
- [ISSUE] Digest and Encryption not working on IOS HOT 2
- When using SDK 50.2.4.5, error #2004 occurs in NetStream.play(). HOT 7
- [Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
- IOS Photo Library Access
- ANR extremely high on CPU: ARM Cortex-A53 (3,40%) HOT 3
- [ISSUE] TextField (input) issue on IOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.