Re: [Flashcoders] hen's teeth...

2010-01-07 Thread John McCormack
Thank you for that, it was very interesting. It was certainly faster for those operations. opcodes which aren't available in AS3 It doesn't seem possible that those opcodes, for direct memory access, are not used by Adobe. Why would that be? John Meinte van't Kruis wrote: Joa Ebert's

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread Glen Pike
sandbox? Am guessing direct memory access maybe disallowed because people could try to exploit buffer overflows... John McCormack wrote: Thank you for that, it was very interesting. It was certainly faster for those operations. opcodes which aren't available in AS3 It doesn't seem possible

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread Henrik Andersson
Glen Pike wrote: sandbox? Am guessing direct memory access maybe disallowed because people could try to exploit buffer overflows... You think that they honestly allows unbounded random memory access? They don't. It is restricted to the reservated memory area.

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread John McCormack
It looks as if the memory is protected anyway, according to: http://ncannasse.fr/blog/adobe_alchemy ... As a reminder, the Alchemy pipeline is the following : .c file *-* LLVM intermediate bytecode *-* AVM2 bytecode However, in general, doing so reduces a lot the performances. Especially since

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread Henrik Andersson
John McCormack wrote: It looks as if the memory is protected anyway, according to: http://ncannasse.fr/blog/adobe_alchemy ... As a reminder, the Alchemy pipeline is the following : .c file *-* LLVM intermediate bytecode *-* AVM2 bytecode However, in general, doing so reduces a lot the

Re: [Flashcoders] hen's teeth...

2010-01-07 Thread John McCormack
So the performance gains will end up in AS3, sometime: http://labs.adobe.com/wiki/index.php/Alchemy:FAQ Why can't the ActionScript compiler generate byte code that executes as quickly as Alchemy? Compiling with LLVM tools (included as part of Alchemy) allows compile and link time

[Flashcoders] Problem with poping up a window

2010-01-07 Thread Lehr, Ross (N-SGIS)
I'm working with flash 8 and AS2. I'm loading text from a XML file If I load a href=javascript:openPop('pop.html');open pop/a in a textbox I can access a JavaScript function called openPop() in the HTML code of the page that loads the. Swf If I load the same code in a TextArea component, the

[Flashcoders] Repost: how to reduce file size caused by redundant classes in loaded-in movies

2010-01-07 Thread Andrew Sinning
Sorry about this. I posted this yesterday, but my inbox has been down for the past 3 days and all of my incoming mail appears to have been black-holed. A swf that I am loading in to a parent movie has symbols that are linked to classes that are already available in the parent movie. This

Re: [Flashcoders] detect and remove listeners

2010-01-07 Thread Ktu
Have you seen Grant Skinner's Janitor class? http://gskinner.com/talks/resource-management/ - slide 32 talks about it click download source at the bottom to get the code. even this looks interesting: http://blog.open-design.be/2009/01/29/events-manager-as3-classes/ I just googled AS3 event