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

access the main time line function

Participant ,
Sep 30, 2012 Sep 30, 2012

Hi all,

In as2 we can use _root to access the main timeline function from the inside some movieclip or button.

In as3 how to access the main timeline function from inside the movieclip or button.can any one please tell me.

TOPICS
ActionScript
1.2K
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 , Oct 01, 2012 Oct 01, 2012

"root" is the AS3 equivalent, but using it alone will often not wortk.  You more often need to cast it as some form of object before the compiler will recognize it.  Using "MovieClip(root)" will usually do the trick.

Translate
LEGEND ,
Oct 01, 2012 Oct 01, 2012

"root" is the AS3 equivalent, but using it alone will often not wortk.  You more often need to cast it as some form of object before the compiler will recognize it.  Using "MovieClip(root)" will usually do the trick.

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
Participant ,
Oct 01, 2012 Oct 01, 2012

ok thanks

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
Participant ,
Oct 03, 2012 Oct 03, 2012
LATEST

yes it is working

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