2 Replies Latest reply on Nov 16, 2006 2:17 PM by Newsgroup_User

    Window component problem

    Level 7
      Flash 8.

      I have created a new movie with a window component in the library.

      A button click as follows:

      on (release) {
      /**
      Requires:
      - Window component in library
      */

      import mx.managers.PopUpManager;
      import mx.containers.Window;

      System.security.allowDomain(" http://80.5.54.164");

      var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
      {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});
      var winListener:Object = new Object();
      winListener.click = function(evt_obj:Object) {
      my_win.deletePopUp();
      };
      winListener.complete = function(evt_obj:Object) {
      my_win.setSize(my_win.content._width, my_win.content._height + 25);
      }
      my_win.addEventListener("click", winListener);
      my_win.addEventListener("complete", winListener);


      }

      This workd fine and bring up a window with the movie and I can move the
      window and close the window.

      However when I try to add this to a current. ie add window component to
      libray new button with same code project I am getting the following errors:

      **Error** C:\Documents and Settings\stevew\Local Settings\Application
      Data\Macromedia\Flash
      8\en\Configuration\Classes\mx\managers\PopUpManager.as: Line 123: There is
      no method with the name 'deactivate'.
      SystemManager.deactivate(o);

      **Error** C:\Documents and Settings\stevew\Local Settings\Application
      Data\Macromedia\Flash 8\en\Configuration\Classes\mx\containers\Window.as:
      Line 348: There is no property with the name 'clickHandler'.
      button_mc.clickHandler = delegateClick;

      **Error** C:\Documents and Settings\stevew\Local Settings\Application
      Data\Macromedia\Flash
      8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line 272:
      There is no property with the name 'height'.
      var y:Number = ((pos-minPos) *
      (scrollTrack_mc.height-scrollThumb_mc._height) / (maxPos - minPos)) +
      scrollTrack_mc.top;

      **Error** C:\Documents and Settings\stevew\Local Settings\Application
      Data\Macromedia\Flash
      8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line 494:
      There is no property with the name 'height'.
      thumbHeight = pageSize / (maxPos-minPos+pageSize) * o.height;

      **Error** C:\Documents and Settings\stevew\Local Settings\Application
      Data\Macromedia\Flash
      8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line 497:
      There is no property with the name 'height'.
      if (o.height < st.minHeight)

      **Warning** Scene=Scene 1, layer=Vocalise.MC, frame=1:Line 12: There is no
      class or package with the name 'mx.containers' found in package 'mx'.
      var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
      {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});

      Total ActionScript Errors: 6 Reported Errors: 6

      Both movies are set to publish flash 8.

      Any help appreciated

      SteveW


        • 1. Re: Window component problem
          Level 7
          I have just noticed that when I save my fla then try to run it I get the
          same error. I presume this is to do with paths somewhere but have no idea
          what is happening.

          Cheers

          SteveW



          > Flash 8.
          >
          > I have created a new movie with a window component in the library.
          >
          > A button click as follows:
          >
          > on (release) {
          > /**
          > Requires:
          > - Window component in library
          > */
          >
          > import mx.managers.PopUpManager;
          > import mx.containers.Window;
          >
          > System.security.allowDomain(" http://80.5.54.164");
          >
          > var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
          > {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});
          > var winListener:Object = new Object();
          > winListener.click = function(evt_obj:Object) {
          > my_win.deletePopUp();
          > };
          > winListener.complete = function(evt_obj:Object) {
          > my_win.setSize(my_win.content._width, my_win.content._height + 25);
          > }
          > my_win.addEventListener("click", winListener);
          > my_win.addEventListener("complete", winListener);
          >
          >
          > }
          >
          > This workd fine and bring up a window with the movie and I can move the
          > window and close the window.
          >
          > However when I try to add this to a current. ie add window component to
          > libray new button with same code project I am getting the following
          > errors:
          >
          > **Error** C:\Documents and Settings\stevew\Local Settings\Application
          > Data\Macromedia\Flash
          > 8\en\Configuration\Classes\mx\managers\PopUpManager.as: Line 123: There is
          > no method with the name 'deactivate'.
          > SystemManager.deactivate(o);
          >
          > **Error** C:\Documents and Settings\stevew\Local Settings\Application
          > Data\Macromedia\Flash 8\en\Configuration\Classes\mx\containers\Window.as:
          > Line 348: There is no property with the name 'clickHandler'.
          > button_mc.clickHandler = delegateClick;
          >
          > **Error** C:\Documents and Settings\stevew\Local Settings\Application
          > Data\Macromedia\Flash
          > 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
          > 272: There is no property with the name 'height'.
          > var y:Number = ((pos-minPos) *
          > (scrollTrack_mc.height-scrollThumb_mc._height) / (maxPos - minPos)) +
          > scrollTrack_mc.top;
          >
          > **Error** C:\Documents and Settings\stevew\Local Settings\Application
          > Data\Macromedia\Flash
          > 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
          > 494: There is no property with the name 'height'.
          > thumbHeight = pageSize / (maxPos-minPos+pageSize) * o.height;
          >
          > **Error** C:\Documents and Settings\stevew\Local Settings\Application
          > Data\Macromedia\Flash
          > 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
          > 497: There is no property with the name 'height'.
          > if (o.height < st.minHeight)
          >
          > **Warning** Scene=Scene 1, layer=Vocalise.MC, frame=1:Line 12: There is no
          > class or package with the name 'mx.containers' found in package 'mx'.
          > var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
          > {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});
          >
          > Total ActionScript Errors: 6 Reported Errors: 6
          >
          > Both movies are set to publish flash 8.
          >
          > Any help appreciated
          >
          > SteveW
          >


          • 2. Re: Window component problem
            Level 7
            If I save the movie to another drive the movie runs fine. I have been saving
            to the drive that IIS runs on. IE the the drive that 80.5.54.164 mapps to
            from the internet.

            It makes no difference if I take out any references to the domain.

            Very strange

            SteveW


            >I have just noticed that when I save my fla then try to run it I get the
            >same error. I presume this is to do with paths somewhere but have no idea
            >what is happening.
            >
            > Cheers
            >
            > SteveW
            >
            >
            >
            >> Flash 8.
            >>
            >> I have created a new movie with a window component in the library.
            >>
            >> A button click as follows:
            >>
            >> on (release) {
            >> /**
            >> Requires:
            >> - Window component in library
            >> */
            >>
            >> import mx.managers.PopUpManager;
            >> import mx.containers.Window;
            >>
            >> System.security.allowDomain(" http://80.5.54.164");
            >>
            >> var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
            >> {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});
            >> var winListener:Object = new Object();
            >> winListener.click = function(evt_obj:Object) {
            >> my_win.deletePopUp();
            >> };
            >> winListener.complete = function(evt_obj:Object) {
            >> my_win.setSize(my_win.content._width, my_win.content._height + 25);
            >> }
            >> my_win.addEventListener("click", winListener);
            >> my_win.addEventListener("complete", winListener);
            >>
            >>
            >> }
            >>
            >> This workd fine and bring up a window with the movie and I can move the
            >> window and close the window.
            >>
            >> However when I try to add this to a current. ie add window component to
            >> libray new button with same code project I am getting the following
            >> errors:
            >>
            >> **Error** C:\Documents and Settings\stevew\Local Settings\Application
            >> Data\Macromedia\Flash
            >> 8\en\Configuration\Classes\mx\managers\PopUpManager.as: Line 123: There
            >> is no method with the name 'deactivate'.
            >> SystemManager.deactivate(o);
            >>
            >> **Error** C:\Documents and Settings\stevew\Local Settings\Application
            >> Data\Macromedia\Flash 8\en\Configuration\Classes\mx\containers\Window.as:
            >> Line 348: There is no property with the name 'clickHandler'.
            >> button_mc.clickHandler = delegateClick;
            >>
            >> **Error** C:\Documents and Settings\stevew\Local Settings\Application
            >> Data\Macromedia\Flash
            >> 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
            >> 272: There is no property with the name 'height'.
            >> var y:Number = ((pos-minPos) *
            >> (scrollTrack_mc.height-scrollThumb_mc._height) / (maxPos - minPos)) +
            >> scrollTrack_mc.top;
            >>
            >> **Error** C:\Documents and Settings\stevew\Local Settings\Application
            >> Data\Macromedia\Flash
            >> 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
            >> 494: There is no property with the name 'height'.
            >> thumbHeight = pageSize / (maxPos-minPos+pageSize) * o.height;
            >>
            >> **Error** C:\Documents and Settings\stevew\Local Settings\Application
            >> Data\Macromedia\Flash
            >> 8\en\Configuration\Classes\mx\controls\scrollClasses\ScrollBar.as: Line
            >> 497: There is no property with the name 'height'.
            >> if (o.height < st.minHeight)
            >>
            >> **Warning** Scene=Scene 1, layer=Vocalise.MC, frame=1:Line 12: There is
            >> no class or package with the name 'mx.containers' found in package 'mx'.
            >> var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
            >> {closeButton:true, contentPath:" http://80.5.54.164/swiff/kingnut.swf"});
            >>
            >> Total ActionScript Errors: 6 Reported Errors: 6
            >>
            >> Both movies are set to publish flash 8.
            >>
            >> Any help appreciated
            >>
            >> SteveW
            >>
            >
            >