RE: [Flashcoders] The Amazing infinite call stack

2005-12-13 Thread Chris Wilson
You're looking for infinite recursion. Generally speaking, your application might be better served with a for() loop to iterate through the command queue within a single function call. There are times when recursive functions (i.e., functions that call themselves) are more elegant, though.

RE: [Flashcoders] The Amazing infinite call stack, part 2

2005-12-13 Thread Chris Wilson
Since Flash is event-driven, how about setting it up in such a way that whatever part of your script adds the command to the queue dispatches an event to a listener that then executes that command? That way you avoid recursion, and you also avoid a for() loop that's outside the internal Flash

RE: [Flashcoders] Flash security advisories from U.S. Navy/Marines?

2005-12-02 Thread Chris Wilson
The vulnerabilities were reported on Bugtraq (http://search.securityfocus.com/swsearch?query=macromediasbm=%2Fsubmit=Se arch%21metaname=alldocsort=swishlastmodified) a couple weeks ago. The vulnerabilities involve an attacker creating a malicious .swf file and tricking a user into downloading it,

RE: [Flashcoders] TextArea - Impossible requests?

2005-11-15 Thread Chris Wilson
For the first problem, how about adding a number of blank lines to the end of the news story so the total number of lines is a multiple of the TextArea's visible page size to allow a full scroll? -Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [Flashcoders] onMouseMove false

2005-11-11 Thread Chris Wilson
I think you'll have to use an interval, but you don't have to constantly check the mouse. Pseudo-code below: this.onMouseMove = function(){ // When the mouse is moved, clear any pending not moved timeout // interval so the callback *isn't* called (Note // clearMouseNotMoveTimeout isn't a

RE: [Flashcoders] Logic Help

2005-11-11 Thread Chris Wilson
var scaling_factor:Number = Math.min(357 / image_mc.width, 394 / image_mc.height); loader_mc._xscale = scaling_factor; loader_mc._yscale = scaling_factor; -Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lehr, Theodore M. Sent: Thursday, November

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Chris Wilson
Why should a public constructor prevent the creation of a Singleton? All you need is a static getInstance() method and a private attribute to hold the created instance. Sure, the public constructor means someone else could instantiate the class on their own without using getInstance(), but if

RE: [Flashcoders] Singleton in AS3

2005-11-11 Thread Chris Wilson
programming patterns such as Singleton. Supporting design patterns in a language, to me is iffy, but there are a enough business use cases in my opinion to support it. - Original Message - From: Chris Wilson [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] secure png

2005-11-07 Thread Chris Wilson
I don't know of a way to do that, but what's the point? All the competitor needs is a screen capture utility (or just ctrl-Print Screen in Windows) and the image is theirs... -Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maxime Sent: Monday,

RE: [Flashcoders] secure png

2005-11-07 Thread Chris Wilson
png The goal of the client is to customize an image with a lot of 3d rendered png alpha layers. They don't care if the competitors do a screen capture, they don't want their competitors to know how they treat the image(alpha) for the layering of images. Chris Wilson a écrit : I don't know

RE: [Flashcoders] secure png

2005-11-07 Thread Chris Wilson
: [Flashcoders] secure png raw data: that IS possible ! Only compression get's lost, but you could write your own serverside and clientside compression and decompression algorithm. Good luck. Chris Wilson wrote: I see. Thanks for clarifying. I'm not sure how to disable the caching, unfortunately

RE: [Flashcoders] V2 Components - Themes/Styles/Skins -Window/ComboBox/Button

2005-11-04 Thread Chris Wilson
Without having to change the skin entirely, you can change the halo color to a light grey with the following: _global.style.setStyle(themeColor, 0xee); -Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Warren Sent: Friday, November 04,

RE: [Flashcoders] V2 Components - Themes/Styles/Skins-Window/ComboBox/Button

2005-11-04 Thread Chris Wilson
? Thanks Chris. -steve On 11/4/05, Chris Wilson [EMAIL PROTECTED] wrote: Without having to change the skin entirely, you can change the halo color to a light grey with the following: _global.style.setStyle(themeColor, 0xee); -Chris

RE: [Flashcoders] Addressing dynamically named movie clip

2005-10-26 Thread Chris Wilson
If I understand the locations of your dynamic clips correctly, then _root[sSelected]._mc.hresizer.setSize... should work. Basically, access the dynamic clip by treating _root as an associative array. If the clips aren't created in _root, then substitute the parent movie clip's name for _root