A Flash Developer Resource Site

Search:

Type: Posts; User: gukinator

Page 1 of 6 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    3,066

    CS3 Heres a quick example i wrote that just has a...

    Heres a quick example i wrote that just has a simple ball bouncing off the bounding walls of the stage, you should be able to modify your code using my attached .fla as reference
  2. Replies
    3
    Views
    2,170

    Since each tile is placed dynamically, i can't...

    Since each tile is placed dynamically, i can't place code on the mc without replacing attachMovie with duplicateMovie. If i were to do this, flash would have to create a new thread for each movie...
  3. Replies
    3
    Views
    2,170

    Inexplicable Bug

    So I'm programming a (hex) tile based game, and after running the drawHexMap function shown here with drawHexMap(map1, storageArray, 30, 50, 50)
    The storageArray array is filled with the pointers to...
  4. Replies
    8
    Views
    626

    i think im not explaining myself clearly im...

    i think im not explaining myself clearly
    im getting random array indicies, i was using round to get an integer instead of a decimal value but i dont need to any more since im not using...
  5. Replies
    8
    Views
    626

    why? later in my code i have an if statement that...

    why? later in my code i have an if statement that returns true all of the time


    if (mainArray[i-1][j] == 'X' && mainArray[i][j] != 'X') {
    mainArray[i][j] += 1;
    }

    ive found that " and ' are...
  6. Replies
    8
    Views
    626

    heres the code again, it had a few errors sorry ...

    heres the code again, it had a few errors sorry


    for(var i = 1;i<=bombs;i++){
    var randNum1 = random(10)+1;
    var randNum2 = random(10)+1;
    if(mainArray[randNum1][randNum2] != "X"){...
  7. Replies
    4
    Views
    605

    nstaniani, flash has a built in random function...

    nstaniani, flash has a built in random function to simplify things

    Math.round(Math.random()*3+1) generates a number between 0 and 1, then multiplies it by 3 and adds one, then rounds it to the...
  8. Replies
    4
    Views
    605

    var rand = random(3); if(rand == 0){ goto #1 }...

    var rand = random(3);
    if(rand == 0){
    goto #1
    } else if(rand ==1){
    goto #2
    } else if (rand ==2){
    goto #3
    }
    no other way that i know of
  9. Replies
    8
    Views
    626

    how is this even possible??

    i have this code


    var bombs = 10;
    mainArray = new Array();

    for (var i=1; i<=10; i++) {
    mainArray[i] = new Array();
    for (j=1; j<=10; j++) {
    mainArray[i][j] = " ";
  10. since ur using a gotoAndPlay, onEnterFrame will...

    since ur using a gotoAndPlay, onEnterFrame will make it act like a gotoAndStop, because it will be repeatedly going to that frame, just remove the functions all together, change

    onRollOver =...
  11. Replies
    1
    Views
    568

    well this might be your problem, if(!upclose)...

    well this might be your problem, if(!upclose) means if(upclose == false)
    so the first if statement (minus the tweening code) says


    if(upclose == false){
    upclose = false;
    }

    that would...
  12. Replies
    0
    Views
    438

    algorithm help

    im making this optical illusion in flash
    http://boomeryearbook.com/blog/wp-content/uploads/2009/03/cafe-wall-illusion_online-optical-image-n.jpg

    i have the actionscript down but im stuck on the...
  13. Replies
    3
    Views
    553

    sorry i dont think i know enough about arrays to...

    sorry i dont think i know enough about arrays to answer your question :/
    but i will bump this thread so maybe someone else can anser
  14. Replies
    2
    Views
    841

    http://www.actionscript.org/resources/articles/760...

    http://www.actionscript.org/resources/articles/760/1/Simple-reflection-effect-with-AS2/Page1.html

    dont forget page 2
  15. Replies
    3
    Views
    553

    you can as far as i know ive done things similar...

    you can as far as i know ive done things similar to what you did but i--
    or start with i as -100 or something, calling menuitems[-10] or something (if you put that in) would work fine. so to answer...
  16. Replies
    5
    Views
    2,053

    CS3 oh, i get it now. try this box1.onPress =...

    oh, i get it now. try this


    box1.onPress = function() {
    n++;
    Name = "dup"+n;
    duplicateMovieClip("box1", Name, n);
    startDrag(Name, false, 0, 0, 550, 483);
    for (var i = 1; i<n+1; i++) {...
  17. Replies
    5
    Views
    2,053

    CS3 i mean on this board, when you post code put [...

    i mean on this board, when you post code put [ PHP ] (without the spaces) before your code and [ /PHP] (without the spaces) after your code

    that code i posted should fix your problem, does it...
  18. Replies
    5
    Views
    2,053

    CS3 please use the php tags for code segments its...

    please use the php tags for code segments

    its a depth issue


    box1.onPress = function() {
    var dupBox1 = box1+1;
    duplicateMovieClip(_root.main.box1, "(dupBox1)",_root.getNextHighestDepth());...
  19. Replies
    8
    Views
    1,684

    are you sure blurFilter works in flash lite 3.1?...

    are you sure blurFilter works in flash lite 3.1? ive looked around on some adobe resources and it keeps saying its not supported:
    ...
  20. Replies
    0
    Views
    735

    advanced hitTest

    can someone tell me how its possible to get this kind of hitTest?
    http://www.kongregate.com/games/ChronoBell/leading-edge
    it just seems so perfect, is it tile based?
  21. Replies
    3
    Views
    613

    yeah it seems that for some reason it keeps...

    yeah it seems that for some reason it keeps looping the gotoAndPlay. to fix it, replace the code on the frame with


    onLoad = function(){
    t1.gotoAndPlay("s");
    }
  22. Replies
    3
    Views
    613

    i dont really know what your asking but i can see...

    i dont really know what your asking but i can see that you have your gotoAndPlay script in an onEnterFrame function, meaning that the program will loop that gotoAndPlay, making it act like a...
  23. Replies
    1
    Views
    445

    sounds like a depth issue ...

    sounds like a depth issue


    circle.duplicateMovieClip(circle,"circle",1)
    circle2.duplicateMovieClip(circle2,"circle2",2)

    make sure the number at the end of the duplication codes (the depths)...
  24. Replies
    8
    Views
    1,684

    i dont know what flash lite is but i have used...

    i dont know what flash lite is but i have used the blurFilterClass before and you need to import the class to be able to use it

    import flash.filters.BlurFilter;
  25. Replies
    3
    Views
    1,045

    myIndicator_mc.swapDepths(canvas);

    myIndicator_mc.swapDepths(canvas);
Results 1 to 25 of 147
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center