A Flash Developer Resource Site

Search:

Type: Posts; User: PLyczkowski

Search: Search took 0.01 seconds.

  1. Replies
    228
    Views
    313,043

    Sticky: A sci-fi game where you fly your ship through...

    A sci-fi game where you fly your ship through swarms of enemies on a war-torn planet.

    http://img825.imageshack.us/img825/5681/promo2icon.png

    Hope you'll like it.
  2. Yes, because I want to add a preloader, and I...

    Yes, because I want to add a preloader, and I don't know how to do it via document class... all the tutorials are for code in the first frame.
  3. Yeah, I did. As I said, the same setup works...

    Yeah, I did. As I said, the same setup works flawlessly on a new fla file...
  4. aaa.scaleX = 0.2; is the code that is throwing...

    aaa.scaleX = 0.2; is the code that is throwing the error, placed in the first frame.

    There is a movie clip on the stage called aaa.
  5. Referencing a clip on stage not working

    In a new document when I create a movie clip on the stage and reference it in a script in the first keyframe, like aaa.scaleX = 0.2;, everything works fine.

    But when I try this in the game I'm...
  6. Solved with stage.focus = stage;

    Solved with stage.focus = stage;
  7. Help! A function stops working with no apparent reason!

    I'm developing a game, here is a screenshot:

    http://img697.imageshack.us/img697/4415/85906798.jpg

    I have a function in my main loop called moveShip that moves the player's ship if some buttons...
  8. Yeah, it worked! Each frame in the movie clip...

    Yeah, it worked! Each frame in the movie clip contains ->

    dispatchEvent(new Event("level screen ready"));

    which fires processLevelSelection function. Thanks!
  9. That sounds promising, I'll learn more about...

    That sounds promising, I'll learn more about events.
  10. Hmm, level2_btn still registers as null, even...

    Hmm, level2_btn still registers as null, even with your function...
  11. Oh yeah, thanks. Yeah, but doing it in...

    Oh yeah, thanks.



    Yeah, but doing it in frames is much more comfortable, if I will get it to work.

    I'm trying to implement your code now, does not work yet...
  12. That is what I mean. I did not know that, thanks....

    That is what I mean. I did not know that, thanks. So, what is the most elegant way to wait that frame? The command I have are in a "loadLevelSelectionMenu" function. Here it is:

    public function...
  13. Yeah, but it should exist already in the second...

    Yeah, but it should exist already in the second frame. The command for the movie clip to go to the second frame is before the command that references the button in this movie clip.
  14. Why a movieclip has to be already in the first frame to be targetable by script?

    My document class adds a movie clip, and then fires gotoAndStop(2) at him. I have a button in the movie clip, and a command command targeting this button. Now, if the button exists in the second...
  15. So I need my document class ("Test" at the...

    So I need my document class ("Test" at the moment) to look like this? ->

    package
    {
    import flash.display.MovieClip;

    public class Test extends MovieClip
    {
    public var engine:Engine;
  16. Yes to both.

    Yes to both.
  17. Flash Game - Can't add my level movie clip to the stage.

    Hey there.

    I'm creating a game, here is a screenshot:

    http://img515.imageshack.us/img515/8274/capturemw.jpg

    I'm trying to implement a scene system in an easy way (I'm a beginner).

    In this...
Results 1 to 17 of 17




Click Here to Expand Forum to Full Width

HTML5 Development Center