A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: this is probably really easy

  1. #1
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118

    this is probably really easy

    All I want is for when any key is hit on the keyboard, root plays the next frame.

    there has to be a way.

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    code:


    stop();

    _root.onKeyDown = function()
    {
    this.nextFrame();
    }

    Key.addListener(_root);


  3. #3
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    WOW that was quick !

    Thanks Jim


    Man...I did everything you said to on the menu thing and it still choppy....

    do PNGs slow things down like gradients?

    I cant for the life of me figger it out

  4. #4
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    PNGs slow things down, yes. Specially if they contain an alpha channel. If doesn't contain alpha, you might want to flatten it or try converting it to JPEG.

  5. #5
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    cause there is no vector.......I made everything in PS and it has alpha......thats gotta be the reason.

    Thanks Jim

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