Skip to main content
Apr 22, 2013 3:54 PM UTC
Question

Embed Tag no longer working

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)

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Nimisha1
Participating Frequently
Apr 22, 2013 4:50 PM UTC

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 .

Translate
Apr 22, 2013 5:01 PM UTC

Am I right that a new SWF created in a FLash CS6 with just animation on timeline does not content ABC?

Translate
Adobe Employee
Apr 22, 2013 4:02 PM UTC

Thank you for your issue report. Could you please share the IDE and sdk version you are using.

Regards,

Nimit

Translate
Apr 22, 2013 4:09 PM UTC

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().

Translate
Apr 22, 2013 4:25 PM UTC

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

Translate