Search:
Type: Posts; User: mRNA
Search:
Search took 0.04 seconds.
-
So, you mean to say, if I haven't resorted to extending the Sprite class, then the property I want to dynamically "plant" on it probably doesn't belong there anyway.
I agree with that; I'm now...
-
Why is this? I can understand why a Sprite is static, but if that's the case, then MovieClips ought to be as well. And if Adobe wanted people's AS2 code to be easier to migrate to AS3, then they...
-
Howdy.
In AS2, if I want to make an object that stores data, it's relatively simple:
var myObj:Object = new Object();
myObj.propertyA = new Number(0);
myObj.propertyB = new Boolean(false);...
-
I'm using the following code structure to handle keyboard input in my Flash game:
Key.addListener(this);
keyStateArray = new Array();
function onKeyDown(){
keyStateArray[Key.getCode()] =...
-
That is very handy!
It means that the entire library of flash.* rides piggyback on the Timeline. That'll allow Flash developers to hash out prototypes and conceptual projects without working with...
-
I'd like to know if anyone else has noticed this: when using AS3 in Flash, does it not matter if you write import statements, such as import flash.event.*;?
-
I'll give this a shot. :)
In Actionscript 2, if you had a movieclip in the Library that you wished to copy to the stage (using attachMovie() ), you would need to give it a "Linkage" identifier,...
-
Flash 8 has Flash Player 8 embedded in it. Flash Player 8 has some bugs, and Flash Player 9 just works better, frankly, so I've upgraded my Player to 9.
But, Flash 8 (the authoring environment)...
-
'Sup.
I'm making a clone of an arcade classic. Let's assume that I have the entire game in a single movieclip, which runs without a hitch. This "game" movieclip is the only thing on the Stage.
...
-
Hello, folks.
I'm working on several games that involve the collision and sometimes bouncing of objects. In some games, I'd like to experiment with extremely realistic systems, the kinds that...
-
Hi there.
I've recently upgraded to Flash 8, and I liked the idea of tabbed windows. I've noticed that there is also a menu item in the Window menu that allows me to duplicate the current "window"...
-
Have you tried representing the letters as ASCII code?
The Actionscript Dictionary's entry for the "Key.IsDown" function is very vague about this matter, but if you want to detect a letter or...
-
Flash has had a history for being inconsistent with its programs' interfaces across different platforms. But even Flash 8 seems to have the same symptoms of bad interface design as what I'm...
-
Hi there. I'm just starting to step out of the "FLA bubble"- that is, I'm figuring out how to set up a Flash project, version control, and improved organization of my stuff in general, instead of...
-
"++" is an operator that means, "add one to this variable". In this case, the variable b is incrementing by one. It's basically a shorthand to make code simpler and more flexible.
If you put it...
-
First, I'm pretty sure that "break;" doesn't break an if-else block of code; it just seemingly ignores all statements after "break;" that come before the "}" signifying the end of the loop body.
...
-
Imagine you have code in a nested loop. You want to break out of both loops as a result of a condition. Something like this:
for (var j = 0; j < HEIGHT; j++){
for (var k = 0; k < WIDTH;...
-
I'm adding a method to the MovieClip class. I've been told that I should put this code in a .as file, but I'm not at the point yet that I can comfortably put code outside my .fla file.
Supposing...
-
This is true, but isn't there some way I can just define the function within the movieclip in the library, and not have to bother with the referencing? I mean, the whole point of holder_mc is to...
-
So I have a movieclip in the Library with the AS identifier "holder_mc", and in its first frame is a function called tester().
In the main timeline, I instantiate holder_mc as "holder1" in level...
-
I have code in the first frame of "mother_mc" that defines certain functions. I have code attached to "child1_mc" in mother_mc that calls "function1" on ClipEvent(enterframe). I also have code...
-
Quick question: If I attach a movieclip to level 1 million, will Flash perform worse than if I attach the same movieclip to level 1?
I ask because I plan on creating a collage program for Flash-...
-
I currently have a two-dimensional array that represents a gameboard. I have functions that assign values to every element in that array. I currently use two "for" loops to go through the array like...
-
I don't know how well it'll perform (it may slow down quite a bit if the point count is too high), but try this:
-The first time the mouse button is held down, its coordinates are copied to a...
-
I have a system that behaves something like this:
There's a movieclip called in the library with several frames. It's stop();-ed. One instance of it, called "mc_block", is attached to the stage. A...
|
Click Here to Expand Forum to Full Width
|