Skip to main content
Known Participant
March 28, 2011
Question

destructionPolicy not working?

  • March 28, 2011
  • 1 reply
  • 564 views

assuming a View has these sett in mxml and the init meothd is there in a block.

        creationComplete="init()"
        destructionPolicy="none"

my init is called repeatedly when the view is pushed with pushView I expected it to only call it once with desructionPolicy none and an activateview event instead on the second push.

This topic has been closed for replies.

1 reply

as4moreAuthor
Known Participant
March 28, 2011

further this page documents the word "never" not "none" and it causes a compiler error!?

I suspect a mixup somewhere to do with that wordage. Anyway somethings wrong I'm pretty sure.

I put this in my init as well...

destructionPolicy = "never";

it also failed to preform the behaviour I expect (same result repeated calls to init).