A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Embedded swf in another swf and keyboard events

  1. #1
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Paris, France

    Embedded swf in another swf and keyboard events

    It's surely stupid, but I can't manage to make the keyboard events working for a swf embedded in another swf.

    Usually I use root.stage.addEventListener(KeyboarEvent.DOWN etc...)

    And it works when the movie is played alone.

    But when the movie is loaded into another swf, the stage parameter is null and there is no way to refer to the stage of the main swf...

    I tried root.addEventListener(KeyboardEvent...) but it doesn't work the events are not grabbed....

    Thx for yuor help!

  2. #2

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