Skip to main content
Inspiring
October 14, 2013
Answered

can't package swf animation inside AIR app with target ipa-ad-hoc

  • October 14, 2013
  • 1 reply
  • 523 views

I included a little animation today in my AIR app using a swf movie clip as below

    private var myLoader:Loader = new Loader();  // connecting animation

    private var url:URLRequest = new URLRequest("../../../data/ConnectingAnim.swf");

    .... code to add the loader and position it

It works fine when I deploy to my device via the USB but when I try to package it for ad hoc distribution, the resulting ipa isn't right. The screen with the animation is broken.

I am guessing packaging for the app store is probably broken too.

Am I missing something?

Thanks!

Message was edited by: mu.a

This topic has been closed for replies.
Correct answer Colin Holgate

You have to use a loader context, except when using interpreter mode. Read this article:

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7de0.html

You want the context.applicationDomain = ApplicationDomain.currentDomain; variation.

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
October 14, 2013

You have to use a loader context, except when using interpreter mode. Read this article:

http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7de0.html

You want the context.applicationDomain = ApplicationDomain.currentDomain; variation.

mu_aAuthor
Inspiring
October 14, 2013

thx! works now