RE: [Flashcoders] Object Detection AS3

2007-07-19 Thread Douglas Pearson
If you want to check first whether the object is on the display list you can use the contains method of DisplayObjectContainer: // Won't throw any errors if (myObject != null parent.contains(myObject)) parent.removeChild(myObject) Doug -Original Message- From: Michael Trim

[Flashcoders] RE: obfuscation swf !

2007-07-18 Thread Douglas Pearson
Since we're talking about obfuscation/encryption does anyone know of a tool that works for AS3 yet? All the standard tools seem to stop with Flash 8/AS2. Doug -Original Message- From: Sunil Jolly [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 2:09 AM To:

[Flashcoders] Automated test tools?

2007-06-12 Thread Douglas Pearson
Can anyone recommend any good automated test tools for Flash? Thanks, Doug ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by

RE: [Flashcoders] AS3 Mouse suggestions?

2007-05-17 Thread Douglas Pearson
How about if (not blocked by mushroom) playerSpeedX = this.mouseX - previousX ; else playerSpeedX = 0 ; thisPlayer.x += playerSpeedX ; Same for playerSpeedY. This should behave like #1 in the open field and #2 when you run into a mushroom. Not blocked by mushroom would be something like

[Flashcoders] How to call a global method like trace--not the class method?

2007-04-28 Thread Douglas Pearson
We have a class used in a lot of code that has a trace method in it: class Debug { public function trace(str:String):void { .. } } Now we'd like to call the regular trace method from within that class, but all of our efforts call to the class's trace method. In C++ you use :: to indicate

RE: [Flashcoders] Javascript SetVariable -- when does Flash seethechange?

2007-04-25 Thread Douglas Pearson
Thanks JD. That helps to explain the behavior we're seeing. Doug -Original Message- From: John Dowdell [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 10:33 PM To: flashcoders@chattyfig.figleaf.com; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Javascript

[Flashcoders] Javascript SetVariable -- when does Flash see the change?

2007-04-24 Thread Douglas Pearson
We have a piece of JavaScript like this: swf.SetVariable(_level1.myvar,myvalue) ; This JS code is triggered by a piece of Flash code that is executed when the SWF loads. However, it appears that the variable is not immediately set: // Called at load time for the SWF getURL(javascript:doSet())

RE: [Flashcoders] One more AS3 question!

2007-04-04 Thread Douglas Pearson
Ben you're doing the right thing by having MyClass contain the clip you load rather than extend it. You can't cast a MovieClip (or any object) to a new type that's lower in the class hierarchy than the original object. Doug -Original Message- From: ben gomez farrell [mailto:[EMAIL

RE: [Flashcoders] Confused about accessing nested movieclips in AS3

2007-03-29 Thread Douglas Pearson
Ben, We ran into the same problem with Embedded clips and couldn't find a solution. However, if you save as an AS3 SWF through Flash 9 alpha, and then load the clip dynamically you will get a MovieClip back. Then use getChildren to pull out any subclips you need access to, as you described. If

[Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Douglas Pearson
Anyone know if there's a way to draw the contents of a SWF to a Bitmap/BitmapData object within Flash? I have a SWF that involves lots of complex rendering steps and I want to be export it as a bitmap. The export part should be fine (using a server to actually save the file) if I can figure out

RE: [Flashcoders] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Douglas Pearson
, Douglas Pearson [EMAIL PROTECTED] wrote: Anyone know if there's a way to draw the contents of a SWF to a Bitmap/BitmapData object within Flash? I have a SWF that involves lots of complex rendering steps and I want to be export it as a bitmap. The export part should be fine (using

[Flashcoders] AS3 ApplicationDomain example fails to compile

2007-03-16 Thread Douglas Pearson
Does anyone have a simple example of compiling AS3 classes into one SWF and loading and accessing them from a second SWF? The example from Programming ActionScript 3.0 showing how to do this doesn't seem to compile: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?hr

RE: [Flashcoders] Number -- how good for use as an integer?

2007-03-06 Thread Douglas Pearson
[mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 4:35 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Number -- how good for use as an integer? Douglas Pearson wrote: Can someone clarify whether Number is actually just a simple wrapper round a double precision

[Flashcoders] Number -- how good for use as an integer?

2007-03-05 Thread Douglas Pearson
Can someone clarify whether Number is actually just a simple wrapper round a double precision floating point value? The reason I'm asking is I'd like to know how accurately Flash can store integers. With AS3 there's a true int type added but in AS2 how reliable is Number at storing and

RE: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread Douglas Pearson
I'd be interested in tools for monitoring this too. To avoid holding onto objects through addEventListener, have you tried the weak reference option? We've been using that increasingly as the default way to add listeners, so objects don't hang around when we think we're finished with them. Doug