mardi 22 novembre 2016

how to change width of object in pixels, inside adobe animate html5 project?

I stopped working with adobe flash a while ago and after this while tried to work with adobe animate, converting AS3 to JavaScript was straight forward for few things I've tried but I can't find how to change the width of an object by pixel value. I was expecting the code below to work but it didn't.

this.bar.addEventListener("click", fl_ClickToHide.bind(this));

function fl_ClickToHide() {
        this.bar.width += 10;
}
found nothing on the web about it either, while posting here I found "scaleX" in the suggestions but it seems to work in percents, Can somebody point me to the right direction please?

Aucun commentaire:

Enregistrer un commentaire