Copy link to clipboard
Copied
Hi,
I have a pure AS3 project which uses Embed tag for iOS. I have been using 3.4 to 3.6 and 3.7 betas.
Now i updated to the official release of 3.7 sdk but when i test with my project I got the Error.
[Fault] exception, information=Error: Error #3747: Multiple application domains are not supported on this operating system.
package {
import flash.display.MovieClip;
import flash.display.Sprite;
public class TestAirIntelliJ extends Sprite {
[Embed(source="../assets/bling.swf")]
private var FaceBling:Class;
public function TestAirIntelliJ() {
var mc:MovieClip = new FaceBling()
addChild(mc)
}
}
}
The SWF files has no AS3 code in it, it's a plain timeline animation swf
What should i do to make it work with SDK 3.7 (I really don't want to write loads of code as I have LOTS of Embed tag in the project)
Copy link to clipboard
Copied
Thank you for your issue report. Could you please share the IDE and sdk version you are using.
Regards,
Nimit
Copy link to clipboard
Copied
Hi I am using the official release of Air 3.7 SDK. Was using IntelliJ Idea 12.1
Is it true that Embed tag no longer work even with plain animation SWF? Is there anyway I can check if the SWF is 100% without any code eg. stop() play().
Copy link to clipboard
Copied
I just tested a simple example with a new SWF plain timeline animation only. It's still having the same error with AIR 3.7
Copy link to clipboard
Copied
Hey lenglsh,
The easiest way to identify if your swf has code or not is to simply run swfdump on your swf and then search for a DoABC2 tag. The executable swfdump is available as part of the SDK.
FlexSDK/bin/swfdump mySWF.swf | grep DoABC2 (On MAC)
FlexSDK/bin/swfdump.exe mySWF.swf | find “DoABC2″ (On Windows)
Also note that there is a current limitation on iOS that embedding SWFs(having ABC code) using [Embed] tag will NOT work on iOS .
Copy link to clipboard
Copied
Am I right that a new SWF created in a FLash CS6 with just animation on timeline does not content ABC?
Copy link to clipboard
Copied
Hi I have tested both SWF, the output for swfdump grep DoABC2 is:
Leng-MacBook-Air:bin leng$ ./swfdump "/Users/leng/Documents/Projects/TestAirIntelliJ/assets/bling.swf" | grep DoABC2
Adobe SWF Dump Utility
Version 2.0.0 build 353448
Copyright 2003-2012 Adobe Systems Incorporated. All rights reserved.
Copy link to clipboard
Copied
So is this a bug in Air 3.7 where Embed tag is totally useless even with SWFs without ABC code?
Copy link to clipboard
Copied
Okay your SWFs don't contain any ABC code so this is definitely a bug. Please log a bug with a sample app(which should include sources, assets, swf and app-xml) and steps to reproduce. Also please share your bug number here so that Adobe team can look into it.
Copy link to clipboard
Copied
Hi the bug number is
Copy link to clipboard
Copied
is this fixed in 3.8 beta?
Copy link to clipboard
Copied
I have just checked the child SWF that you have provided in the bug and I found that on following command:
java -jar /Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0/lib/swfdump.jar ~/Documents/TestAirIntelliJ/assets/bb.swf | grep DoABC2
I get the output:
<DoABC2 name=''>
</DoABC2>
Which means that child SWF contains a null DoABC2 tag which is there because there is an AS linkage for the MyUI component in your FLA.
To have no DoABC2 tag your FLA shouldn't have any AS Linkage.
Since your SWF contains DoABC2 tag so this error is expected as here in the blog http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-io... we have mentioned that [Embed] tag is not working instead you can use Loader.
Copy link to clipboard
Copied
I am experiencing the same bug.
I have attached a file that is triggering this for me to the bugthat lenglsh opened.
I have run swfdump on this file and it shows no DoABC2 nodes.