dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: DevilMayCry

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. If there's anyone awake here's another peace of...

    If there's anyone awake here's another peace of code that generates same event overflow error :(

    What am I doing wrong :confused:



    package {
    import flash.display.Sprite;
    import...
  2. A little modified code says that it loops exactly...

    A little modified code says that it loops exactly 1000 times. And in one book is written:


    I am also reading about stopPropagation( ), stopImmediatePropagation( ) and public, internal and global...
  3. Ok, thanks for all replies. So can anyone of this...

    Ok, thanks for all replies. So can anyone of this help me overcome event recursion as I intended to use f1() and f2()?
  4. Exactly 5TOF! Exactly! I had an idea, coded it,...

    Exactly 5TOF! Exactly! I had an idea, coded it, tested it and nothing. Event error :(
    If flash player uses regular events there should not be event overflow. Ever!

    But it seems it didn't. It's...
  5. Thanks for reply! If I wasn't clear, let me...

    Thanks for reply!

    If I wasn't clear, let me try another way...

    1.
    {
    :label z:
    ...
    some code
    ...
  6. Exactly! All I want is infinite loop!!! By...

    Exactly! All I want is infinite loop!!! By calling functions.

    Like:
    while(true){...do something...}

    I have Event stack overflow. That is my real problem.


    The for(100000){} is only for...
  7. Error #2094: Event dispatch recursion overflow

    Or, my question should be: Why the heck this doesn't work?
    And how to overcome " Error #2094: Event dispatch recursion overflow."


    package {
    import flash.display.Sprite;
    import...
  8. I made one with timer 0. so when f1 end it's...

    I made one with timer 0.
    so when f1 end it's calculations, call timer0 to start f2.
    and f2 use same timer to call f1.

    Ugly, I know. anything better, cleaner?
  9. Shouldn't it be: function...

    Shouldn't it be:

    function finished(e:Event):void{ ...
  10. [flex as3]function non recursive call. how?

    So, I create standard AS3 flex project. In constructor goes only start();


    rest of functions are basically this:

    private start():void { f1();}

    private function f1():void { f2();}

    private...
  11. Replies
    47
    Views
    8,429

    I don't follow you 5TFlax... I don't want to give...

    I don't follow you 5TFlax... I don't want to give a code to end user. And he/she doesn't want it anyway.
    I want to give them .swf. That's what they really want ;)

    But to make it as hard as...
  12. Replies
    47
    Views
    8,429

    Ah, thanks guy's! For a moment I felt sick. To...

    Ah, thanks guy's! For a moment I felt sick. To think all this coding could be taken away just like that. Not good.

    Further more:
    - that bmd could be chopped into few little pictures
    - one big...
  13. Replies
    47
    Views
    8,429

    :( So basically you are all saying that there's...

    :(
    So basically you are all saying that there's no protection for AS3 code!?

    Very not good :(
  14. Replies
    4
    Views
    2,519

    private function doCircle():Shape { var...

    private function doCircle():Shape
    {
    var circ:Shape= new Shape();
    circ.graphics.beginFill(0xff0000);
    circ.graphics.drawCircle(0,0,50);
    circ.graphics.endFill();
    return circ;
    }...
  15. Thank you all for helping. I'll use 2.5D array ;)...

    Thank you all for helping. I'll use 2.5D array ;) Only AS3 allows that :D

    Yet I still can not believe that I have to use loops to create arrays. Goes with a job I guess...
  16. As expected putting premultiplied variable was a...

    As expected putting premultiplied variable was a success! 30ms gain :)
    int was faster than Number by few milliseconds.

    EDIT:

    I have to correct myself. 2D and 3D array access is FASTER by...
  17. Thanks neznein9, that's similar to post #9. ...

    Thanks neznein9, that's similar to post #9.


    @5TonsOfFlax:

    I tried timing single array and math approach. It's a little slower that [x][y] access.
    If you have 4D array, math gets really...
  18. Ok, but how to make var test:Array of 100*1000...

    Ok, but how to make var test:Array of 100*1000 elements?



    It will be sprite :)

    @5TonsOfFlax:
    Yes! I googled your post earlier. It could be done that way and your math is right....
  19. I just tested what sphoenixee suggested. It is...

    I just tested what sphoenixee suggested. It is horribly slow at creating but it works.



    That makes niz:Array of 10000*100*10. And I can add values like this: niz[x][y][z] = "value";

    We...
  20. I am making a tile based game... And I figure...

    I am making a tile based game... And I figure that Array is fastest way to deal with huge amount of data. So my thoughts was like this:

    Arr[i][j][k][l]

    i =number of "objects"
    j*k = defines...
  21. Ok, so I have to make 4 loops if I need...

    Ok, so I have to make 4 loops if I need 4-dimension array?
    And CPU has to loop through all of it just to do simple
    var arr dim(100,100,1000,5);


    What a lovely, lovely language ;)
  22. [RESOLVED] how to create multidimensinal arrays? AS3

    var test:Array = new Array();

    test[1][55][10][38] = "some value"; //is not working
    test[2] = "value"; //is working

    Though I think this code will work for...
  23. [AS3] how to scroll 20000x20000px bitmap?

    It will be huge waste of memory if that big bmp was in memory at one. So I'l make a lot of 2880x2880 and load one file, scroll it at the stage, discard it, load another, scroll it, etc.

    What's the...
  24. Replies
    5
    Views
    425

    Like dukes90 said use enterFrame for animations...

    Like dukes90 said use enterFrame for animations like changing x.y pos of _mc.

    var yorMovClip:className = new className(); // linkage class name

    addChild(yorMovClip); //or addChildAt(yorMovClip,...
  25. scrollRect in animation over multiple bitmaps ?

    Hi people,

    I was wondering how to make scrollRect able to 'jump' from one to another big bitmap in the animation.

    Pure jumping is easy, and it works in animation only if I make bitmapData...
Results 1 to 25 of 34
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center