Jump to content
GreenSock

dheinz

Members
  • Posts

    3
  • Joined

  • Last visited

dheinz's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi! Please, Can someone export the example in CS3? Thanks a lot, dheinz
  2. Hi there! I am using CS3 with Flashdevelop. How can i add a MovieClip from loaded Test.swf to Main.swf? I always get this error: My CS3 Settings My StartupApp class public class StartupApp { private var _base:Main; private var _complete:Function; private var _preloader:templatePreloader = new templatePreloader(); private var _loader:LoaderMax; public function StartupApp(base:Main,complete:Function):void { _base = base; _complete = complete; initialize(); } private function initialize():void { _loader = new LoaderMax( { name:"StartupApp", onComplete: onComplete, onProgress:onProgress, onError:onError } ); _loader.append(new XMLLoader("content/navigation.xml", { name:"navigation" } )); _loader.append(new SWFLoader("swf/Test.swf", { name:"template" } )); _loader.load(true); } private function onError(e:LoaderEvent):void { trace("ERROR: " + e.text); } private function onProgress(e:LoaderEvent):void { trace("PROGRESS: " + _loader.progress * 100); } private function onComplete(e:LoaderEvent):void { _base.XMLnavigation = new XML(_loader.getContent("navigation")); _base.site.addChild(_loader.getContent("template")); var appDomain:ApplicationDomain = _loader.getLoader("template").content.loaderInfo.applicationDomain; var appClass:Class = appDomain.getDefinition("Hallo") as Class; var mc:MovieClip = new appClass() as MovieClip; trace("COMPLETE: "); _complete(); } } Thanks for helping! EDIT / SOLUTION: Sorry, i found my problem on: viewtopic.php?f=6&t=3353 Try to use "rawContent" not "content"! var appDomain:ApplicationDomain = _loader.getLoader("template").rawContent.loaderInfo.applicationDomain;
×