A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: accessing a stage instance from a class other the document?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    18

    accessing a stage instance from a class other the document?

    Hi all hope you can help?

    I have a main document class with another class instanciated (mouse follower.as) within it. I want the mouse follower class to access a stage instance. How is this done?

    All else is okay just wondering how to this?


    Hope you can help???

    much appreciated!!!!!!

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    MovieClip(root).functionName();

    or

    MovieClip(parent).functionName();

    Using those are almost the equivalent of using _root.
    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