Hi guys,
All your answers put me in the right direction, thanks a bunch for that.
After some deep digging i found 2 things needed to delete the instance of my
dataGrid (for real).

1. locking the root of the container movieClip.
2. swapping depths of the dynamically added (container) movieclip before
purging it.

But, that puts me back to the question of using destroyObject() vs.
delete().
Can anyone shed some light on the difference between them?
Both seems to be doing the same thing memorywise.

Thanks again for good info as always.

/Micke


-----Ursprungligt meddelande-----
Från: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com]för Karl DeSaulniers
Skickat: den 5 oktober 2009 01:07
Till: Flash Coders List
Ämne: Re: [Flashcoders] Component (dataGrid) issues flash 8
destroyObjectvs removeMovieClip


Possibly, but I have not worked with data grids.
But deleting it completely will clear it so when you load it again it
will probably let the scroll bar get the correct height.
I'm thinking.

Karl


On Oct 4, 2009, at 5:57 PM, Paul Andrews wrote:

> Mikael Wirén wrote:
>> Hi folks,
>> New member, or actually old member back on the list.
>>
>>
>> Backstory:
>> I am doing a flash piece for a clients intranet. Due to update
>> policies i
>> have to work with flash player 8.
>> So i´m back to Flash 8 =).
>> I never did any component work back then.
>>
>> Now i´m using a data grid component in one part of the movie.
>> Can anyone point me to some good reading about unloading a dataGrid
>> component.
>> Now i use:
>>  destroyObject("my_dg")
>> to get rid of it.
>> But for some reason that plays havoc with removing the container
>> movieClip
>> with:
>>  removeMovieClip(content_clip)
>> Plus 2nd time i load the data grid the scrollbar is about 10px
>> shorter than
>> the actual dataGrid?
>> It seems someone in their marketing staff got a look at the
>> prototype and
>> decided to use it in a live presentation tomorrow.
>> So my work week starts early =)
>> And i had to do a pretty darn bad movieClip removal. I´m actually
>> forcing
>> the container out by creating an empty movieClip at the same depth.
>> I have no clue what this does for preformance.
>>
>> Any pointers to any documentation / resources / examples are greatly
>> appreciated.
>>
> A lot of people seem always to remove and recreate components.
> Would it be possible to keep the component and just hide it, rather
> than remove and recreate all the time?
>
> Paul
>> Best regards
>>
>> Micke
>>
>> ----------------------------------------------
>> Mikael Wirén
>> Flash Monkey / Co founder
>> Madness Marketing
>> http://www.madnessmarketing.com
>> mi...@madnessmarketing.com
>>
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to