Trying to embedding SWF made by TW into my SWF
Hello there,
I'm trying to embedding a SWF made by TourWeaver 7.96 with method "Pano VR(swf)" into my own SWF (ActionScript 3.0). This is the code I used:
var VRArea:MovieClip = new MovieClip(); VRArea.x = 0; VRArea.y = 96; VRArea.width = 1920; VRArea.height = 888; addChild(VRArea); var my_Loader:Loader = new Loader(); var urlRequest : URLRequest = new URLRequest("vr/myTW.swf"); my_Loader.load(urlRequest); my_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete); function loaderComplete(e:Event):void { VRArea.addChild(my_Loader); }
I'm getting this list of errors:
TypeError: Error #2007: Il valore del parametro type deve essere diverso da null. at flash.events::EventDispatcher/addEventListener() at `[::-V/5?() at ->::4J/Step4_2_startUI() at ->::4J/`Z() at [A::&=/1?() at [A::%c/dispatch() at !A::%D/load() at ->::4J/Step3_1_LoadConfig() at ->::4J/Step3() at ->::4J/Step2_createContext3D() at ->::4J/%$() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at $::TWLoadingWindow/+&() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at 0M::1X/;$() at 0M::1X/3@() at Function/http://adobe.com/AS3/2006/builtin::apply() at 0M::>5/&S()
What am I doing wrong? Thanks for replies
Nicolangelo