4 Replies Latest reply on Jan 21, 2007 7:24 AM by Newsgroup_User

    quirky annoying

    jagguy99
      Hi,

      I run this simple pogram in a c:\flash\image dir
      where the mc and text is designed at authoring time.
      You simple press the mc and text appear in the input textbox.
      It works fine.
      mc1.onPress = function () {
      txt1.text="asas";
      }

      I create the same file and copy/paste the code into a c:\www\flash\newfile.fla and no text loads. I checked the mc and input textfield was created correctly and correct names

      mc1.onPress = function () {
      txt1.text="asas"; //nothing on click mc!
      }

      I get no ouput. After rebooting the PC and throwing a book at the screen what quirk is there with this?
      Flash seems to have a lot of quirks (loose error checking)and I am finding it time consuming to use.
        • 1. Re: quirky annoying
          Level 7
          jagguy99,

          > I create the same file and copy/paste the code into a
          > c:\www\flash\newfile.fla and no text loads.

          Obviously time for some troubleshooting!

          > I checked the mc and input textfield was created
          > correctly and correct names

          For what version of ActionScript is this new file set to publish? Is
          the font color of your text field the same color as the background?

          > mc1.onPress = function () {
          > txt1.text="asas"; //nothing on click mc!
          > }

          This this text field (txt1) in a position where it is visible to the mc1
          movie clip? Have you done any troubleshooting, such as trace(), to take a
          peek under the hood?

          // e.g.
          mc1.onPress = function() {
          trace(txt1);
          }

          > I get no ouput.

          What do you mean by "no output"?

          > After rebooting the PC and throwing a book at the
          > screen what quirk is there with this?

          Heh, well ... if you threw a book at your screen, who knows, at this
          point? Could be a broken hardware issue. ;) Seriously, though, what
          you're talking about is not complex at all. Flash has quirks, as every
          complex software does, but you can certainly count on consistency in basic
          issues of scope and pathing. As long as you've built your FLA correctly,
          the sample code you've shown will work fine. There's something you've
          missed, or there's something else you haven't told us yet.

          > Flash seems to have a lot of quirks (loose error checking)
          > and I am finding it time consuming to use.

          What do you mean by "loose error checking"? You've run into a single
          problem, yet Flash seems to have "a lot" of quirks? It sounds like you're
          frustrated and haven't applied any debugging in this situation. Programming
          isn't easy, no matter what platform you're on. JavaScript has quirks, Java
          has quirks. Programmers have quirks. ;) Your success depends on your
          determination.


          David Stiller
          Adobe Community Expert
          Dev blog, http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re: quirky annoying
            jagguy99 Level 1
            well I have done a lot of c++,VB, and some Java but flash has its moments. It has poor error checking like allowing non declared variables, no error on using a MC that hasn't been created before being used. Many things I have come across but it has many good points to. The help docs are just OK. Anyway I avoid authoring time like the plague because I think pure code provides the less problems. It takes too long to remember the authoring time orocedures if you don't use it all the time.

            I am taking longet than expected to do a bit of flash and yes that has bugged me. No i didn't throw a book at the screen

            As for my error I believe the text font color was white, and I changed it back to black. It didn't give me correct results straight away.

            Anyway thank god for forums.
            • 3. Re: quirky annoying
              Level 7
              jagguy99,

              > well I have done a lot of c++,VB, and some Java but
              > flash has its moments.

              Heh, sure ... if you've done C++, I can understand your sentiment. Bear
              in mind that Flash didn't start life as a programming platform. It has
              evolved in that direction over a (mere) span of 10 years, and until
              ActionScript 3.0 -- which you may really appreciate, actually -- Flash
              developers (as opposed to designers) have been dealing with
              legacy/historical quirks.

              > It has poor error checking like allowing non declared
              > variables, no error on using a MC that hasn't been
              > created before being used.

              Some would argue VB in similar ways. ;) Check out ActionScript 3.0,
              though, seriously. I think you'll be pleasantly surprised.

              http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html
              http://livedocs.macromedia.com/flex/201/langref/index.html

              > I avoid authoring time like the plague because I think
              > pure code provides the less problems. It takes too
              > long to remember the authoring time orocedures if
              > you don't use it all the time.

              Not unusual at all for traditional programmers. In that regard -- the
              authortime timeline metaphor -- I agree, Flash is quirky if you aren't
              familiar with it.

              The Flex SDK is free, which means you can author AS3 SWFs from a command
              line without spending a cent.


              David Stiller
              Adobe Community Expert
              Dev blog, http://www.quip.net/blog/
              "Luck is the residue of good design."


              • 4. Re: quirky annoying
                kglad Adobe Community Professional & MVP
                so, is your issue resolved?