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

how to use this.symbol?

New Here ,
Oct 14, 2015 Oct 14, 2015

in unity i can use this.gameObject,can i use something like that in flash?

sorry for my bad english

TOPICS
ActionScript
249
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
Enthusiast ,
Oct 14, 2015 Oct 14, 2015

Give an instance name for the object (if the object is on the stage: select it > go to properties window > type a name in Instance Name field, for example my_mc)

then you can call it in ActionScript:

my_mc.alpha = .5;

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 ,
Oct 15, 2015 Oct 15, 2015
LATEST

There is little need to use 'this.symbol' in AS3 though you can if you wish to.  Just using 'symbol' alone is sufficient.  'this' becomes more useful when you are using bracket notation for a string to target an object, as in...  this["symbol_string"]

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