A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: refer to the instance of documentclass

  1. #1
    Senior Member
    Join Date
    Jul 2008

    refer to the instance of documentclass

    i need to refer to a variable within the only instance of the documentclass. i tried to just say BallController.points, doesnt work. root.points doesnt work either. how is it done?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Austin, TX
    blah blah blah, cast root to MovieClip blah blah search.

    Or, if you know that your class is going to be the document class, you could make the properties you need static, and you could refer to them as BallController.points (assuming BallController is the class).

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