开发者

how to give properties and methods to objects inside a movieclip with reference to frame label/number in actionscript 3?

开发者 https://www.devze.com 2023-02-16 10:40 出处:网络
there is a movieclip named movie with instance name movie.Inside this movie there is a textb开发者_StackOverflow中文版ox in frame 1.I want togive properties and methods to that textbox.

there is a movieclip named movie with instance name movie.Inside this movie there is a textb开发者_StackOverflow中文版ox in frame 1.I want to give properties and methods to that textbox.

like this

this.movie[1].tbox.text="helo";


Your question is a bit unclear but if you are using a document class I recommend you to first declare:

public var movie:MovieClip;

Then you can access the properties of the textfield like this:

TextField(movie.tbox).text = "hello";

Otherwise this will do the job:

this.movie.tbox.text="helo";
0

精彩评论

暂无评论...
验证码 换一张
取 消