How to remove traces of old elements from your flex stage

Did it happen to you that you removed or moved around an image or some other flex element and you could still see traces of that element in the initial position? It happened to me the other day and it took me a bit of time to find out a way of doing it. Here is what I came up with: yourDirtyFlexComponent.graphics.clear() or, depending on your application, you might want to do something likeĀ yourDirtyFlexComponent.parentApplication.graphics.clear(). Do you know another way of doing this? I would like to hear some alternatives.

Here is what a “dirty” stage might look like:

Dirty Stage

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment