• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Embed Tag no longer working

Guest
Apr 22, 2013 Apr 22, 2013

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)

TOPICS
Air beta

Views

2.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 22, 2013 Apr 22, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 22, 2013 Apr 22, 2013

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 .

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 22, 2013 Apr 22, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 22, 2013 Apr 22, 2013

Copy link to clipboard

Copied

Hi the bug number is

3547101

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 09, 2013 May 09, 2013

Copy link to clipboard

Copied

is this fixed in 3.8 beta?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 15, 2013 May 15, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 14, 2013 Jul 14, 2013

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines