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
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:
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
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
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
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
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())
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
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
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
, 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
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
[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
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
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
15 matches
Mail list logo