0 Replies Latest reply on Dec 13, 2006 2:34 AM by deepakgsd

    Getting Error : Error #1053: Illegal override of automationName in mx.core.Container

    deepakgsd
      I have Flex Data Service on Tomcat 4.1. (i.e. extracted flex.war in webapps/flex directorry of tomcat. "webapps/flex - flex directory is created inside the webapps"). Tried with the request for a sample mxml in the browser and able to see an swf file creation out of that and i am able to get that swf file in the browser. Thats fine.
      Now my scenario is as below:
      I request a sample html, in which an embedded sample swf with only one button on it. The request is to asp.net application. The request url is :
      http://localhost/FirstSite/Sample.html.
      I am able to get the initial swf file with this.
      Now on click of a button i will send request to an aspx page which again sends a request for an mxml to the tomcat (say tomcat has Sample2.mxml) as,

      HttpWebRequest req = (HttpWebRequest)WebRequest.Create(" http://localhost:8080/flex/generated/Sample2.mxml");
      HttpWebResponse res = (HttpWebResponse)req.GetResponse();

      After execution of the second line i am able to see the creation of Sample2.swf in the tomcat's webapps/flex/generated folder.
      Now after the second line, that aspx will write an url string as respose to the client as,

      Response.write(" http://localhost:8080/flex/generated/Sample2.swf");

      In the action script i am able to get this url when printed in trace at the client. Now i am trying to load that Sample2.swf with the lines in action script...

      var requiredURL:String = " http://localhost:8080/flex/generated/Sample2.swf";
      var urlReq:URLRequest = new URLRequest(requiredURL);
      var ldr:Loader = new Loader();
      ldr.load(urlReq);
      ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
      function loaded(e:Event):void {
      removeChildAt(0);
      stage.addChild(ldr);
      }

      When i try this am getting error as,
      VerifyError: Error #1053: Illegal override of automationName in mx.core.Container.
      at flash.display::MovieClip/gotoAndStop()
      at mx.managers::SystemManager/::preloader_initProgressHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/::timerHandler()
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
      at flash.utils::Timer/flash.utils:Timer::tick()

      Followed by series of errors like,
      ReferenceError: Error #1065: Variable _PanelStyle__embed_css_Assets_swf_CloseButtonUp_638970594 is not defined.
      at flash.display::MovieClip/gotoAndStop()
      at mx.managers::SystemManager/::preloader_initProgressHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/::timerHandler()
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
      at flash.utils::Timer/flash.utils:Timer::tick()
      ReferenceError: Error #1065: Variable _LoaderStyle__embed_css_Assets_swf___brokenImage_416519517 is not defined.
      at flash.display::MovieClip/gotoAndStop()
      at mx.managers::SystemManager/::preloader_initProgressHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/::timerHandler()
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()

      .................. much more error trace like above...............

      I have placed crossdomail.xml file at each and every part of the application like at IIS and also at Tomcat.
      But now luck with that.
      Any thing am i missing?
      Waiting for the suggestions and thanks in advance.
      Deepak