dcsimg
A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Something miss

  1. #1
    Vivian
    Join Date
    May 2006
    Location
    China
    Posts
    7

    Something miss

    Thanks for displaying my tutorial! But I have to say there is a mistake

    The tutorial is here:
    http://www.flashkit.com/tutorials/Ac...1351/index.php

    The missed code are in yellow green:

    For checking <Left>, you can use ActionScript as follows:

    Code:
    on (keyPress "<Left>") {
    trace("Left is pressed");
    }

    You can input various "on" function or combine various events in a "on" function. Customizing your shortcut keys comes easily in this way. I will give you an example as follows:

    Code:
    on (keyPress "<Left>") {
    _root.myMC.prevFrame();
    }
    on (keyPress "<Right>") {
    _root.myMC.nextFrame();
    }


    Really hope you can correct it for me. Thanks in advance!

  2. #2
    I'll update this shortly. Also, just a heads up, we're working on a system that will allow folks to go in and update or correcte their own resources. Hopefully we'll have it going within a month or two. Thanks!

  3. #3
    Vivian
    Join Date
    May 2006
    Location
    China
    Posts
    7
    Thanks a lot!!!

  4. #4
    Vivian, the code reads as follows:

    Code:
    on (keyPress "<Left>") { <br />
                  trace("Left is pressed"); <br />
                }</td>
            </tr>
          </table>
           <br />
    You can input various "on" function or combine various events in a "on" function. Customizing your shortcut keys comes easily in this way. I will give you an example as follows: <br />
    <br />
          
          <table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
            <tr>
              <td> <b>Code:</b> </td>
            </tr>
            <tr>
              <td>on (keyPress "<Left>") { <br />
                  _root.myMC.prevFrame(); <br />
                } <br />
                on (keyPress "<Right>") { <br />
                  _root.myMC.nextFrame(); <br />
                }
    Is there something missing?
    Thanks.

  5. #5
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    Planet, I just checked it as well and IE and Firefox are both detecting <left> and <right> as html tags so even though they are in the code they don't appear on the page.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  6. #6

  7. #7
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    I checked in Firefox and IE again and it is still broke...and yes I cleared my cache first.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  8. #8
    Writer and E-Music Hobbyist Cemrin's Avatar
    Join Date
    Jan 2006
    Location
    My Studio
    Posts
    101
    Mine does that too... both in Firefox and IE....

    I wonder if there is such thing as a <nohtml> tag or something to list the code "As is" ?

    I wonder if you can use an XML syntax:

    <!--<left>-->
    Maybe not?
    "Music is the swirl of invisible light that bonds and seperates the world..."

  9. #9
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    You can use & lt; for the < symbol and & gt; for the > symbol...just take the spaces out
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center