vendredi 19 février 2016

Flash AS3. Changing the size of a MovieClip with input text

I have a project where a MovieClip can be dragged by clicking on it, and would like to know how to make it possible to edit the size of this MovieClip after it is released, by inserting numbers in an empty textbox that would appear after releasing the MovieClip + when clicking on it. After adding the number, the textbox would dissappear.

So essentially it would work like this:

  1. The user drags the MovieClip somewhere on stage
  2. After releasing the MovieClip a textbox would appear below the movieclip where inserting a value would change the size of the MovieClip
  3. Clicking on the MovieClip would cause the same textbox to reappear enabling the same action as step 2.

I tried searching for an answer for quite a while, but could not find an answer/tutorial with the same scenario as the one described above.

Aucun commentaire:

Enregistrer un commentaire