How to control a MovieClip inside the TouchSprite? (1 post)

Topic tags: button, child, movieclip, sprite, touchsprite
  • Profile picture of Yap Kwang Yik Yap Kwang Yik said 12 months ago:

    Hi,

    I’ve a vector map on stage name “map”. Inside the “map” have few “state”.

    Here is my code:
    myDisplay.addChild(map);
    addChild(myDisplay);

    myDisplay.map.state.addEventListener(MouseEvent.CLICK, stateTouch);

    Then I’ll get error 1119.

    How can I control any child inside the TouchSprite?

  

This material is based upon work supported by the National Science Foundation under Grant Number #1010028 Division of Research on Learning in formal and informal settings. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.


Open Exhibits was developed by Ideum, makers of GestureWorks. Open Exhibits SDK is free for non-commercial use.

Connect