ç ãã«å°±ãåã®ãããã®ä¸ã§ååã®ã¨ã³ããªã¼ãã©ããæ°ã«ãªã£ã¦èãã¦ãããå¥ã®æ¹æ³ãæãã¤ãã¾ããã ãªã¹ãã¼ç»é²ãããªãã¸ã§ã¯ãã®dispatchEventãå¼ãã§ããã ããå®éã«ã¯ã¯ãªãã¯ã¯ãã¦ããªããã ããã©ãæåã§ã¯ãªãã¯ã¤ãã³ããçºçãããããã§ããããããªãã¤ãã³ããªã¹ãã¼ãååããã©ã¡ã¼ã¿ã®åãæ¬æ¥éãã®MouseEventã®ã¾ã¾ã§OKã var sprite:Sprite = new Sprite(); sprite.graphics.beginFill(0x333333); sprite.graphics.drawRect(0, 0, 100, 20); sprite.graphics.endFill(); addChild(sprite); sprite.addEventListener(MouseEvent.CLICK, myMethod); sprite.dispat
{{#tags}}- {{label}}
{{/tags}}