dimanche 24 mai 2015

Change text in text box when something is dragged (AS3)

I want to change the text in the text box when different images is dragged. However, I'm not so sure how to do the function for it. If anyone can help me an example of this, that'd be greatly appreciated. Thank you.

So far I only have the var of textfield and var of the textformat

var onStart:TextField = new TextField();
var onFormat:TextFormat = new TextFormat();

    onStart.x = 76;
    onStart.y = 60;
    onStart.width = 162;
    onStart.height = 68;
    onFormat.font = "Calibri";
    onFormat.size = 30;
    onStart.defaultTextFormat = onFormat;

Aucun commentaire:

Enregistrer un commentaire