Just curious to know if the index effect the scope of an object because I am creating a game and for some reason, I get an error like below
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.objects::Torret/updateObject()
at com.objects::EngineApi/loop()
depending on where I put my o...
hi I have created an actionscript function which stops an animation on a specific frame which works fine. I have then loaded in a php file with a variable which will contain the number for the frame i want the animation to stop on. This has loaded in fine and i have loaded it in a function. what i cant seem to do is to get the variable i...
I am asking this question as a complete Flash novice, so please do point out if I'm doing anything wrong here (I suspect I am).
I have a Flash MPU size animation with a link in it which has been created by using a full sized transparent layer as a button (is that the correct way) with the following ActionScript:
on(release){
getURL("...
Is there a practical "crash" guide for writing ActionScript 3. There's migration books from as2 to as3, but I'm not migrating.
People that have programmed in C seem to understand the math concepts and arguments. Books, links, a better debugging panel would all be helpful.
Here's my ideas, any suggestions.
SIMPLE EXAMPLES
"." is the ...
How to get HTML text from inputed and edited text into Adobe Flex Builder RichTextEditor control? I mean with valid HTML coming from the Flex RichTextEditor component
Not Badly formated HTML, with no spaces, with tags not closed!
So we have some text edited with RTE a-la
We want to get its content as HTML. how to do such thing?
...
I wrote a collision detection class that works off using BitmapData.hitTest. Basically, every update, the .draw method is called and then two BitmapData's are hitTest'ed against each other to see if there is a collision.
It works pretty well, however if I start rotating the source MovieClip I use for the BitmapData, the transformations ...
So I know as3 doesn't have pointers, but I thought there might be a way to use object variables as pointers.
Right now I'm relying on passing a function that gets the get function, it's not a very elegant solution something like this:
myvar = function():int{return objectName.getVarValue};
The other option would be to change all the g...
I recieve the following error..
Type Coercion failed: cannot convert Stinger@d8d43a1 to Array.
In a summary. This is what I am trying to do...
var laser = new StingerLaser();
laser.laserDir = dir1;
laser.wielder.push(this);
laser.x = x + 20;
laser.y = y + 40;
eApi.addGameChild(laser);
where laser.wielder is an...
How to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and Audio will be sinchronised?
Open Source libs and
Blog aricales are wellcomed!)
...
There is an .fla file that has a sound wave in it's library. However I do not have this sound wave saved on my computer so I can not edit or open this sound in another application. I was wanting to know if its possible to extract this *.wav file from out of the fla library? I did some research and they said to goto export movie and expor...
Hey,
I have a code here that drops a first row then drops a second row down right after. First row drops right away and second row is on a timer.
// Bring in first row
var blueY:Tween = new Tween(blue, "y", Bounce.easeOut, -295, -49, 2, true);
var pinkertonY:Tween = new Tween(pinkerton, "y", Bounce.easeOut, -295, -49, 2, true);
var odd...
I'm trying to figure out how to dynamically place numbers around a circle (similar to a clock face) but dynamically so if the number of numbers around the circle is 5 or 27.. they would space out correctly.
I found some code (below) that looked like it might help but I'm having trouble implementing it. I don't know how I actually tie ...
I am trying to use boxes for hit collision. I want to be precise with the collision so I was thinking about making multiple small boxes and checking for collision that way. This maybe a stupid idea or a smart one. Who knows, thats why i am asking you guys. If I do this way will that affect the performance of the game even though the boxe...
Is it possible to check a class to see whether it has a method or not ? Or even a particular property
...
It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below:
package com.objects{
import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundCh...
Hey all,
I'm looking to be able to run some actionscript 3 in the background to handle some audio and build a javascript front-end. I heard that you can simply compile actionscript 3 and run it using the flex framework, but I'm new to all of this and am not really sure the difference between flex and actionscript. Any help would be grea...
I got a problem with processing an array in actionScript.
I removed the last element of an array through array.pop();
After that I would like to put this removed display-object back to the beginning of the array.
(array.unshift(object))
The object is now the first element of the array but it got still its old label (number of the last el...
Just curious, if I have a sprite on the stage with the alpha set to 0 does that take up just as much memory as a sprite that is visible?
I imagine it does because it draws the sprite to the stage and then it has to set the alpha to zero.
It may seem like a stupid question but I just wanted to verify.
...
I'm looking for a way to do a traceroute client-side, i.e. in a browser.
As far as I know, it's not possible to send ICMP, UDP or TCP packets with arbitraty TTL values via Javascript or Flash. I know Flash allows TCP connections via the Socket class in Actionscript but it doesn't seem useful for a traceroute implementation.
Is the only...
I need to move a ring with a solid border over an an image. I figured I would make the ring's inner area transparent using the bitmap.threshold() method and move it over the image. However the threshold() method's sourceRect parameter is a Rectangle and I need mine to be a circle.
This is the method:
**public function threshold(sourceB...