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

setProperty ("", _y, -45); what does "" means and how to convert it to as3

Contributor ,
Jan 25, 2016 Jan 25, 2016

the know standard as2 format is like that

setProperty(myClip, _width, 200);

and its as3 format is

myClip.width = 200;

but here it should be

"".width=-45 

but it will show error . in this case what is the solution ? how can i convert it to as3

TOPICS
ActionScript
295
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

Community Expert , Jan 25, 2016 Jan 25, 2016

setProperty("",_y,-45);  // as1

this.y = -45;  // as3

// but because that code may be attached to an object (instead of a timeline), you would need assign an instance name (eg, objectname in the properties panel) and use that name in your code that's attached to the timeline that contains the object:

objectname.y = -45;

// or, even better, move all the code to one timeline

// or, even better, use class files

Translate
Community Expert ,
Jan 25, 2016 Jan 25, 2016
LATEST

setProperty("",_y,-45);  // as1

this.y = -45;  // as3

// but because that code may be attached to an object (instead of a timeline), you would need assign an instance name (eg, objectname in the properties panel) and use that name in your code that's attached to the timeline that contains the object:

objectname.y = -45;

// or, even better, move all the code to one timeline

// or, even better, use class files

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