Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

in action 2 there I have seen _root

Community Beginner ,
Jul 06, 2009 Jul 06, 2009

what does it mean _root and how to convert in AS3 for _root. Is  _root supportable in AS3 ?

TOPICS
ActionScript
575
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 06, 2009 Jul 06, 2009

_root in AS2 refers to the main timeline.  In AS3, the equivaslent is root, though to access it in AS3 you normally cast it as a MovieClip... MovieClip(root).

Translate
LEGEND ,
Jul 06, 2009 Jul 06, 2009

_root in AS2 refers to the main timeline.  In AS3, the equivaslent is root, though to access it in AS3 you normally cast it as a MovieClip... MovieClip(root).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 06, 2009 Jul 06, 2009

what i understand is "root" is the main timeline,which we can control whole movie clip and stage. For example play,stop etc. Am am not sure, if i am right.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 06, 2009 Jul 06, 2009

You can use the root reference to target the main timeline and anything that lives in it that is targetable.  Sometimes when you get tangled deep into submovies, it is easier to use the root to target something than it is to try to use parent references.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 06, 2009 Jul 06, 2009
LATEST

thank u very much

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines