Can you please file this as an enhancement at http://www.adobe.com/go/wish?

 

An engineer said that you should be able to get close by setting the target to null and the instanceCreated property (which is mx_internal) to false when you’re leaving the state.  I haven’t experimented, not quite sure what needs to be done actually J

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Paul Spitzer
Sent: Monday, October 09, 2006 1:29 PM
To: [email protected]
Subject: Re: [flexcoders] Switching View States - Destroying Resources

 

Hey Daniel,

I posted about this a while back. See my post "States - add/remove vs
create/destroy". I didn't hear a peep from anyone. I'm not sure if it's
something that is natively supported by the framework. I don't think so,
but I could be wrong. The closest thing I found was the creationPolicy
property. Setting that to NONE will get you about an eighth of the way
there. I started to write TransientAddChild and TransientRemoveChild
classes that extend their mx counterparts, AddChild and RemoveChild but
I aborted mission halfway through and chose not to deal with it at this
point -- for better or worse.

I definitely still think it is a valid concern and would like to
eventually have a solution.

best,

Paul

Daniel Wabyick wrote:
> Is there some way to have objects that were added using <mx:AddChild />
> completely destroyed instead of just removed from the DisplayList?
>
>
> The reason for this is that my added panels are bound into a data model
> and may end up performing computationally expensive tasks when they
> aren't visible. Ideally I would like to completely destroy the component.
>
> Is this possible with the current API, or does it require some fancy
> footwork?
>
> Thanks,
> -Daniel
>
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to