A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Im struggling with _parent .root

  1. #1
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157

    Im struggling with _parent .root

    what is the purpose of _parent and .root??
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  2. #2
    Ximensions.com Sul's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    423
    _root refers to the main timeline - the very top level of your movie. _parent refers to the movieclip the current one is embedded in.

    So for example say you have 2 movie clips - movieclip1 is on the main stage, movieclip2 is inside movieclip1. Here _root will be the main stage, and if you make reference to _parent inside movieclip2, it will be actually referring to movieclip1.

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