Search:
Type: Posts; User: Len Rooney
Search:
Search took 0.05 seconds.
-
Idea: You should try removing the first listener from the circle object before adding the second (see: removeEventListener)
-
Well, it turns out that there was nothing wrong with my function. Adding the listener to the stage instance worked as advertised. I still have trouble interpreting AS3 compiler messages because it...
-
Here's an example with multiple images:
var imgArray:Array = new Array(
"images/logs.jpg",
"images/birdhouse.jpg",
"images/sign.jpg");
var loaders:Array=new Array();
-
Here's some more information. I'm very close to solving this and I hoping one of you gooroos can tell me where I'm going wrong.
First, here's a simplified demo of the problem that actually works!...
-
Thanks Gohloum,
I've actually tried registering a listener to the stage instance and that does indeed work, however I should explain a bit further.
I need a click event that calls the Document...
-
Try changing these two lines
addChild (plane);
addChild (backmap);
to
-
I'm an AS3 and OOP newb, but I need some help with something that should be quite simple.
I have a single frame movie that is based on AS3 that has been written AS2 style, as a timeline attached...
-
I think your Array syntax is off. Shouldn't it be:
var myArray:Array = [box1_mc, box2_mc, box3_mc, box4_mc];
trace(myArray);
-
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
root.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function progressHandler(event:ProgressEvent):void {
...
-
Thanks deadlock,
I was trying that earlier and just tried it again:
import fzip.src.deng.fzip.FZip;
(fzip/src/deng/fzip/FZip.as)
Would be the full path to the FZip.as file but I still get...
-
Total CS/AS3 noob, I'm trying to install/include a class I wish to use with CS -- Fzip
The Fzip files can be found here: http://codeazur.com.br/lab/
Once downloaded, I have a package of files,...
-
Thanks for writing out all of the above. Total CS/AS3 class noob, I'm trying to understand it and apply it to class I wish to use with CS -- Fzip
The Fzip files can be found here:...
-
Doh! Luckily I only make those mistakes in public ;)
Thanks again 5Tons! I'll get this eventually.
Len
-
So far, the only method I've found is to give Clip4 a variable name at the very beginning:
var Clip1:Sprite = new Sprite;
addChild(Clip1);
var Clip2:Sprite = new Sprite;
var Clip3:Sprite =...
-
Thanks eggler, but that doesn't work. Just asking for the children of Clip2 returns "Cannot access a property or method of a null object reference" error messages.
Notice that Clip2 is actually a...
-
Still trying to grok the new Display List.
How do I, as in what is the most efficient syntax, to address the children of nested container objects? Here's an example:
var Clip1:Sprite = new...
-
MOUSE_MOVE --nice!
Thanks again for the help 5Tons!
Len
-
Wait a minute, success! Why was I trying to pass the value of handle.y to a global var anyway?
var handle:Sprite = new Sprite();
handle.graphics.beginFill(0x4075ED);...
-
Thanks Kid Charlie! but your suggestions returns error messages, "Access of undefined property dgtimer" for all 4 instances.
I also tried the following, but still no luck:
var handle:Sprite =...
-
AS3 noob questions:
I'm trying to write a live drag in AS3 but I've had no luck so far. Here's my latest failed prototype:
var handle:Sprite = new Sprite();...
-
Thanks Josh!
//a container
var intrcptrs:Sprite = new Sprite();
clip.addChild(intrcptrs);
//loop out the intrcpts
for (i=0; i<points.length; i++) {
this.intrcpt[i] = new Sprite();
-
OK, now I'm starting to get it a little bit more:
var intcpt:DisplayObject = clip.getChildAt(4);
intcpt.x += 10;
Has anybody got some similar dynamic content code samples I can look at, or...
-
Well, that's not working.
Here's my code:
for (i=0; i<points.length; i++) {
var intrcpt:Sprite = new Sprite();
intrcpt.name = "intcpt"+i;
intrcpt.addEventListener(MouseEvent.ROLL_OVER,...
-
Ah, I'm beginning to see the AS3 Display List light =)
Thanks @5tons, ATaco!
After doing AS2 for so long, it feels like the rug has been pulled out from under me and I'm having to relearn...
-
OK, so how would I tell the 3rd box you created to move 3px to the right?
|
Click Here to Expand Forum to Full Width
|