dimanche 20 novembre 2016

how to change width of object in pixles, 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 pixels 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? thank you

Aucun commentaire:

Enregistrer un commentaire