A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Keypress event not working in second scene

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Unhappy Keypress event not working in second scene

    I am a high school teacher who is teaching Actionscript 3.0 for the first time. I am teaching my students how to create multiple scenes to understand actionscipt interactivity. The first scene has a button. The second scene has something happen when a key is pressed. The problem is that the second scene doesn't work. Flash doesn't even show the trace command that a key has been pressed. Keypresses work fine when done in the first scene, but when put in the second scene after a button has been pressed, it doesn't recognize the keypress event.

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Well don't forget that what appears in the first scene doesn't exist in the second automatically. You need to treat them as if they are two separate SWF files. If you can get it to work in the first scene, then you need to duplicate that ENTIRE function in the second scene.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

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