Re: [Flashcoders] Known memory leaks in FP10

2010-01-31 Thread Henrik Andersson

W.R. de Boer wrote:

Maybe I should change it to code block below? The dispose()-method tries to 
stop any Timer-instances and removes event listeners and nullifies any objects 
(i.e. not Numbers or ints).

if ( _element != null ) {
 _element.dispose();
 removeChild( _element );
delete _element;
_element = null;
}



The order of the removal and disposal shouldn't matter as far as garbage 
collection goes (your logic might care). But the delete operator is not 
to be used here. It is for removing dynamic properties. A local variable 
is not a dynamic property.

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


Re: [Flashcoders] WIRED hates Flash

2010-01-31 Thread allandt bik-elliott (thefieldcomic.com)
do we know what kind of functionality they're up to?

i'd heard fp1 and no as but that was a couple of weeks ago and i don't know
how seriously they're working on this

a

On Sun, Jan 31, 2010 at 11:08 PM, Carl Welch wrote:

> OMG! My faith in humanity has been restored! Thanks!!!
>
> On Sun, Jan 31, 2010 at 2:46 PM, Laurent Kappler
>  wrote:
> > Carl Welch a écrit :
> >>
> >> This pic perfectly illustrates the Flash-less browsing experience on the
> >> iPad:
> >> http://theflashblog.com/images/ipud.jpg
> >>
> >> despite the file's name, this is safe for work (this is the one place
> >> the swf acronym may have caused confusion).
> >>
> >>
> >>
> >
> > I think apple store and adobe flash have big chance to be flipfloped
> anyway:
> > http://paulirish.com/work/gordon/demos/
> >
> > OPENED FOR GOOD SAKE!!
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> Carl Welch
> http://www.carlwelch.com
> 805.403.4819
>
> ___
> 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


Re: [Flashcoders] WIRED hates Flash

2010-01-31 Thread Carl Welch
OMG! My faith in humanity has been restored! Thanks!!!

On Sun, Jan 31, 2010 at 2:46 PM, Laurent Kappler
 wrote:
> Carl Welch a écrit :
>>
>> This pic perfectly illustrates the Flash-less browsing experience on the
>> iPad:
>> http://theflashblog.com/images/ipud.jpg
>>
>> despite the file's name, this is safe for work (this is the one place
>> the swf acronym may have caused confusion).
>>
>>
>>
>
> I think apple store and adobe flash have big chance to be flipfloped anyway:
> http://paulirish.com/work/gordon/demos/
>
> OPENED FOR GOOD SAKE!!
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Carl Welch
http://www.carlwelch.com
805.403.4819

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


Re: [Flashcoders] WIRED hates Flash

2010-01-31 Thread Laurent Kappler

Carl Welch a écrit :

This pic perfectly illustrates the Flash-less browsing experience on the iPad:
http://theflashblog.com/images/ipud.jpg

despite the file's name, this is safe for work (this is the one place
the swf acronym may have caused confusion).


  

I think apple store and adobe flash have big chance to be flipfloped anyway:
http://paulirish.com/work/gordon/demos/

OPENED FOR GOOD SAKE!!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Known memory leaks in FP10

2010-01-31 Thread W.R. de Boer
Hmm, thanks. Currently, I am doing the following:

if ( _element != null ) {
_element.dispose();
removeChild( _element );
   _element = null;
}

Maybe I should change it to code block below? The dispose()-method tries to 
stop any Timer-instances and removes event listeners and nullifies any objects 
(i.e. not Numbers or ints).

if ( _element != null ) {
_element.dispose();
removeChild( _element );
   delete _element;
   _element = null;
}

I think it's a bit confusing for me :) I will re-watch the presentation 
tomorrow.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Known memory leaks in FP10

2010-01-31 Thread Henrik Andersson

Jer Brand wrote:

I'm sure someone will correct me if I'm wrong, but it's not just
listeners. It's references to objects in the swf you want to unload.
So say if your code creates a reference to a movieClip in that swf,
you have to clear that reference or the GC won't reclaim the memory.

I was also under the impression that any timeline animations would
continue to run unless stopped, until the GC removed them. This might
be especially problematic if said timeline animation has frame script.


All that is fully correct. You have to remove all references to the 
objects. After all, what if you did not have to do that? Strange runtime 
errors, that's what!

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


Re: [Flashcoders] AS2 ComboBox breaks tabEnabled of TextFields

2010-01-31 Thread Jer Brand
If my poor memory serves, you only have to set that on the container
clip and not up the parent chain, as it's only important for MC's that
have tabenabled children -- but you should probably test that theory
as I've never applied this to the components, just MC's and imported
MC's.

Let me know if I'm wrong on this.

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


Re: [Flashcoders] Known memory leaks in FP10

2010-01-31 Thread Jer Brand
I'm sure someone will correct me if I'm wrong, but it's not just
listeners. It's references to objects in the swf you want to unload.
So say if your code creates a reference to a movieClip in that swf,
you have to clear that reference or the GC won't reclaim the memory.

I was also under the impression that any timeline animations would
continue to run unless stopped, until the GC removed them. This might
be especially problematic if said timeline animation has frame script.
I'd guess you've seen this before, but if not:
http://www.gskinner.com/talks/resource-management/ has some good info.
I know he's got other articles on his site on this topic, but my
google skills are failing me at the moment.

Hope this helps.

Jer


On Sun, Jan 31, 2010 at 4:07 AM, Weyert de Boer  wrote:
> Hmm, I am reading 8 XML files every 30 seconds using XMLList and XML objects. 
> Are you saying that AS3 XML objects have a big memory leak? Hopefully, the 
> profiler will work tomorrow so I can try to hunt down some issues.
>
> If I remember correctly, I don't need to release timeline 
> animations/movieclips manually when removing the SWF, right? As long I 
> haven't attached any event handlers to it? Correct?
> ___
> 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


Re: [Flashcoders] AS2 ComboBox breaks tabEnabled of TextFields

2010-01-31 Thread Andrew Sinning
So, I needed to set the tabChildren = true for the container MovieClip, 
then it worked.


question: how far up the parent-chain does the tabChildren property need 
to be set?  All the way up to _root?  If a swf is imported into a clip, 
does it need to get set all the way up to _level1?


Andrew Sinning wrote:
In trouble shooting a problem tabbing between TextFields, I pasted my 
form layout into a simple movie.  The tabbing was still broken.  I 
stripped it down to just the TFs, still broken.


Finally, I simply removed the ComboBox component from my library and 
tabbing works just fine.  Put the ComboBox back in the library, 
tabbing is broken.


What's up with this?
___
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


[Flashcoders] AS2 ComboBox breaks tabEnabled of TextFields

2010-01-31 Thread Andrew Sinning
In trouble shooting a problem tabbing between TextFields, I pasted my 
form layout into a simple movie.  The tabbing was still broken.  I 
stripped it down to just the TFs, still broken.


Finally, I simply removed the ComboBox component from my library and 
tabbing works just fine.  Put the ComboBox back in the library, tabbing 
is broken.


What's up with this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: FDT and AIR?

2010-01-31 Thread Omar Fouad
Nothing yet?

On Sat, Jan 30, 2010 at 9:39 PM, Omar Fouad  wrote:

> Hey guys,
> I'm using FDT with Eclipse 3.5 on Snow Leopard and I am trying to export an
> AIR package. I've set everything such as application descriptor xml file,
> certificate etc.
> I'm getting a strange error in the console:
>
> at least one file is required
> usage:
>   adt -checkstore SIGNING_OPTIONS
>   adt -certificate -cn  ( -ou  )? ( -o  )? ( -c
>  )?   
>   adt -help
>   adt -migrate SIGNING_OTIONS  
>   adt -package SIGNING_OPTIONS   FILE_ARGS
>   adt -prepare   FILE_ARGS
>   adt -sign SIGNING_OPTIONS  
>   adt -version
>
> SIGNING_OPTIONS: -storetype  ( -keystore  )? ( -storepass
>  )? ( -keypass  )? ( -providerName  )? ( -tsa  )?
> FILE_ARGS: * (( -C  + ) | ( -e   ))*
>
> Any suggestions?
>
> --
> Omar M. Fouad - Adobe™ Flash© Platform Developer
> http://omarfouad.net
> Cell: (+20) 234.66.33
>
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>



-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://omarfouad.net
Cell: (+20) 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Known memory leaks in FP10

2010-01-31 Thread Weyert de Boer
Hmm, I am reading 8 XML files every 30 seconds using XMLList and XML objects. 
Are you saying that AS3 XML objects have a big memory leak? Hopefully, the 
profiler will work tomorrow so I can try to hunt down some issues.

If I remember correctly, I don't need to release timeline animations/movieclips 
manually when removing the SWF, right? As long I haven't attached any event 
handlers to it? Correct?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders