3 Replies Latest reply on Feb 20, 2013 7:09 PM by kglad

    Help about web page _main.xml file

    star4sindzo

      I had realy big problem for my web ...

       

      Scene=Scene 1, layer=Action Layer, frame=5, Line 41There is no property with the name 'displayState'.
      Symbol=sprite 339, layer=Layer 5, frame=1, Line 3There is no property with the name 'displayState'.
      Symbol=sprite 339, layer=Layer 5, frame=1, Line 5There is no property with the name 'displayState'.
      Symbol=sprite 339, layer=Layer 5, frame=1, Line 9There is no property with the name 'displayState'.

      For firs code is

              {

                  closeObjSeand.useHandCursor = true;

                  textObj.htmlText = " ";

                  closeObjSeand._visible = false;

                  closeObjClear._visible = false;

              } // end else if

          };

      *   if (Stage.displayState == "fullScreen")

          {

       

      next

      on (release)

      {

      *    if (Stage.displayState == "normal")

          {

              Stage.displayState = "fullScreen";

          }

          else

          {

              Stage.displayState = "normal";

          } // end else if

      }

      on (rollOver)

      {

          _parent.gotoAndPlay("s1");

      }

      on (releaseOutside, rollOut)

      {

          _parent.gotoAndPlay("s2");

      }

       

      next

      the same as the previous

       

      and final

       

      on (release)

      {

          if (Stage.displayState == "normal")

          {

              Stage.displayState = "fullScreen";

          }

          else

          {

      *       Stage.displayState = "normal";

          } // end else if

      }

      on (rollOver)

      {

          _parent.gotoAndPlay("s1");

      }

      on (releaseOutside, rollOut)

      {

          _parent.gotoAndPlay("s2");

       

      and when i go to Controls >>> test movie >> test

      I have this mistake

      XML FAILED TO LOAD! (33634_main.xml)

      Error opening URL 'file:///C|/Users/name/Desktop/33634/33634_main.xml'

       

      I do not know what the problem was, if someone can say to me I would be grateful!!!

      And when I export the .swf file will not begin I have to press Enter to make the video started

       

      Best regards!

        • 1. Re: Help about web page _main.xml file
          kglad Adobe Community Professional & MVP

          you're using as1/as2 code and publishing for as3.

           

          change your publish settings (file>publish settings>flash or swf) to use as2.

          • 2. Re: Help about web page _main.xml file
            star4sindzo Level 1

            Nothing has changed, and is still the same

            and AS has already been in AS2

             

            I can send to you files of this website to see what is wrong if you agree?

             

            ty

            1 person found this helpful
            • 3. Re: Help about web page _main.xml file
              kglad Adobe Community Professional & MVP

              create a new fla with as2 publish settings in a new directory.  don't put anything in the fla and test.

               

              any problem?

               

              if not, add a movieclip with instance name mc to the stage and add the following to your actions panel and test:

               

              mc.onRelease=function(){

              Stage.displayState = "fullScreen";

              }

               

              any problem?

               

              if not, copy the movieclips/buttons from your problematic fla's stage and paste those movieclips/buttons onto the stage of the new fla and test.

               

              any problem?

               

              if yes, remove code except what you showed in your first message and whatever is needed to make the code work and retest.

               

              any  problem?

               

              if yes, paste here the code you're testing.