Quantcast
Viewing all articles
Browse latest Browse all 2010

iOS app crashes loading ext. swf calling a class with specific name

Adobe Air SDK 3.7.0.1860 for iOS

 

I load an external swf from my Main fla with this code.

 

var mLoader:Loader = new Loader  ;

var mRequest:URLRequest = new URLRequest("fileName.swf");

var loaderContext:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain,null);

mLoader.load(mRequest, loaderContext);

addChild(mLoader);

 

All goes well but if from the swf I create an instance of a class named GeneralFunctions the app crashes.

 

On the stage of the swf I have a MC with associated a Class named Activity.

 

This is the Activity Class code.

 

          public class Activity extends MovieClip {

                    public function Activity() {

                              var generalFunctions:GeneralFunctions;

                              generalFunctions = new GeneralFunctions;

                    }

          }

 

This is the GeneralFunctions class.

 

          public class GeneralFunctions {

                    public function GeneralFunctions() {

                              trace("GeneralFunctions")

                    }

          }

 

If I change the class name all goes well…I cannot believe…where I'm wrong?


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>