Skip to main content
Participant
October 14, 2015
Question

how to use this.symbol?

  • October 14, 2015
  • 2 replies
  • 275 views

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

sorry for my bad english

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
October 15, 2015

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"]

Inspiring
October 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;