A Flash Developer Resource Site

Search:

Type: Posts; User: mRNA

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    7
    Views
    3,391

    So, you mean to say, if I haven't resorted to...

    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...
  2. Replies
    7
    Views
    3,391

    Why is this? I can understand why a Sprite is...

    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...
  3. Replies
    7
    Views
    3,391

    Creating properties in Movieclips and Sprites

    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);...
  4. Replies
    0
    Views
    397

    The best way to handle keyboard input

    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()] =...
  5. Replies
    6
    Views
    1,473

    That is very handy! It means that the entire...

    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...
  6. Replies
    6
    Views
    1,473

    I'd like to know if anyone else has noticed this:...

    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.*;?
  7. Replies
    67
    Views
    16,176

    I'll give this a shot. :) In Actionscript 2,...

    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,...
  8. Replies
    1
    Views
    426

    Updating the Embedded Flash Player

    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)...
  9. Replies
    0
    Views
    373

    Flash and a warping effect

    '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.
    ...
  10. Replies
    3
    Views
    1,390

    Methods of collision

    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...
  11. Replies
    0
    Views
    624

    Tutorials for creating custom Flash commands

    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"...
  12. Replies
    1
    Views
    324

    Have you tried representing the letters as ASCII...

    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...
  13. Replies
    0
    Views
    286

    What's the deal with Flash's Mac interface?

    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...
  14. Replies
    0
    Views
    341

    Project management

    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...
  15. Replies
    6
    Views
    511

    "++" is an operator that means, "add one to this...

    "++" 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...
  16. Replies
    3
    Views
    441

    First, I'm pretty sure that "break;" doesn't...

    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.
    ...
  17. Replies
    3
    Views
    441

    Breaking out of multiple loops

    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;...
  18. Replies
    1
    Views
    310

    Prototyping conventions

    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...
  19. Thread: movieclip oddity

    by mRNA
    Replies
    3
    Views
    393

    This is true, but isn't there some way I can just...

    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...
  20. Thread: movieclip oddity

    by mRNA
    Replies
    3
    Views
    393

    movieclip oddity

    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...
  21. Replies
    1
    Views
    407

    Does code run simultaneously?

    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...
  22. Replies
    1
    Views
    344

    Levels and Flash's performance

    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-...
  23. Replies
    1
    Views
    443

    Assigning a value to multiple array elements

    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...
  24. Thread: Image Tracing

    by mRNA
    Replies
    2
    Views
    620

    I don't know how well it'll perform (it may slow...

    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...
  25. Duplicating clips, transferring currentframe of old clip

    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...
Results 1 to 25 of 48
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center