panorama software,virtual tour software
Alternate Text
Joined: 2014-05-29
Send Msg:
Posts: 2
2015-07-10
#1

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
Alternate Text
Super Admin
Joined: 2014-06-12
Send Msg:
Posts: 32
2015-07-17
#2

Dear Nicola,

As we talked on Skype, after update your Adobe Flash CS5 to CS6,it worked: )


Best Regards,


Marzo