i have action script in first layer , imports customsocket
class external .as file. when receive command on socket want edit gui objects. example, when command time 23
server want change dynamic text box timerbox
value 23
. have method called processcommand(cmd:string)
in customsocket class, don't know how change text. can timerbox.text = "23";
doesn't work in external class?
if 'customsocket' not document class, need specify reference timeline in class.
for general example,
while importing class,
import customsocket; csobj:customsocket = new customsocket(this);
then, inside class, in constructor
public function librarys(_ref:object):void { timelineref = _ref; }
then in class can say,
timelineref.timebox.text = "23";
Comments
Post a Comment