A Flash Developer Resource Site

Search:

Type: Posts; User: puke

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: New to AS3

    by puke
    Replies
    0
    Views
    574

    New to AS3

    Just learning for a new job. I see they use the drag and drop a lot. And I see Flash CS5.5 has snippets for this but not the Target part. I have 3 questions and 3 possible answers to choose, How do...
  2. Replies
    0
    Views
    501

    Flash CS3 - user controlled random amount.

    I'm using this randome number generator.

    //randomNumberGenerator
    // function to randomize an array
    function shuffle(){
    return Math.floor(Math.random() * 2);
    }

    // create a master array
    var...
  3. Replies
    8
    Views
    1,240

    rng in 3

    Is there a way to prevent this. It would mean my number 13 car would win the race every time?
  4. Replies
    8
    Views
    1,240

    Thanks.

    I appreciate it. Hey, when you run this, do you get the number 13 as the first number in the array every time?
  5. Replies
    8
    Views
    1,240

    rng

    I changed the declarations like you indicated and I get this; something in another language :)


    ArgumentError: Error #1063: Argument count mismatch on Untitled_fla::MainTimeline/shuffle()....
  6. Replies
    8
    Views
    1,240

    random number generator

    I have this rng that I got from FK awhile ago. It works great in actionscript 2 but not in 3 so I need help making this work in 3. It gives me a set of numbers without repeating a number, which is...
  7. Replies
    5
    Views
    1,231

    Thanks.

    Thanks for taking the time to explain, it's tough for guys like me who concentrate primarily on design. I'm creating a race game using 3d animation as the background. Even though the cars are...
  8. Replies
    5
    Views
    1,231

    Cars

    Oh, I think I got it.

    I placed the code on each car

    onClipEvent (load) {
    _x=Math.floor(Math.random()*300+150);
    _y=Math.floor(Math.random()*100+250);


    setProperty (rabbit2, _x, random);
  9. Replies
    5
    Views
    1,231

    Thanks

    I'm sorry, I'm kinda slow as far as actionscripting.
    I have 5 cars, cars1mc, cars2mc etc.

    The way I'm doing it doesn't seem to be the correct way to make each car locate to at random coordinates....
  10. Replies
    5
    Views
    1,231

    place mc randomly between _x 100 and 300

    I'm trying to place my mc's at a different position each time the game starts but within a certain area. I've used random before...
    random(300);

    ...but I want it to be randomly between the coords...
  11. Replies
    10
    Views
    1,143

    excluding numbers from an array

    Hello,

    Thanks for all your help so far.

    I have one more question and I'll be done with my project.

    I have a variable var list:String = "8,9,3";
    These are my winning numbers.

    At the end...
  12. Replies
    1
    Views
    441

    15 movies - one after another

    I have 15 movie clips that play one at a time. When the first one calls the second movie clip there is a short space (black screen) between the two which I have to eliminate. I tried loading the...
  13. Replies
    10
    Views
    1,143

    Display numbers

    Can I display these numbers of the array vertically and without the commas?


    1
    3
    5
    6
    etc.

    The only way I can right now is 1,3,5,6 etc.
  14. Replies
    10
    Views
    1,143

    This is exactly what I needed. Dang, you guys are...

    This is exactly what I needed. Dang, you guys are good!
  15. Replies
    0
    Views
    408

    random Numbers in a string

    Can I make a set of random numbers in a string 1-15 that don't repeat the numbers?

    var ball_number:String = "8,2,7,12,15,1,3,6,14,11,5,4,9,10,13";

    Thanks,
    Puke
  16. Thread: random Number(s)

    by puke
    Replies
    2
    Views
    393

    Doh, I just thought about this...can I have the...

    Doh, I just thought about this...can I have the series of random numbers only chosen once each, I can't have the same number twice in the string???
  17. Thread: random Number(s)

    by puke
    Replies
    2
    Views
    393

    random Number(s)

    I'm using this code to create a random number;

    minNum = 0;
    maxNum = 15;
    rndNum = Math.ceil(Math.random() * (maxNum - minNum + 1)) + (minNum - 1);


    but can I create a string of 15 random...
  18. Thread: shooting a target

    by puke
    Replies
    1
    Views
    488

    shooting a target

    I have a monster_mc that shoots a bullet_mc at a target_mc.
    When I click the Keyboard.RIGHT the bullet jumps once then hesitates or pauses then continues -=25 pixels, instead of shooting smoothly.
    ...
  19. Replies
    6
    Views
    532

    Thanks!

    Thanks!
  20. Replies
    6
    Views
    532

    [RESOLVED] AS2 to AS3 - Is it universal?

    Hello,

    At work I created a project using AS3. It's loading my mc onto the page from the library and fading in.

    Works great at work and the other machines its been played on. I took it home and...
  21. Every game I work on gets a little more...

    Every game I work on gets a little more complicated (relative term) and it has to communicate with a shell program written in C#. I'm studying AS3 tuts on Lynda and it seems to me that 3 is the way...
  22. I figured it out! Let me ask you a question...

    I figured it out!

    Let me ask you a question about AS3. I'm watching some video now on Lynda to learn it and actionscripting in general. Do you suggest using AS3 even though I've been creating...
  23. Sorry, clicked the wrong category!

    Sorry, clicked the wrong category!
  24. Hello

    I had to strip out all the images and there are actually fifteen donkeys. But this should be enough to help. The file was huge.

    The system this runs through sends a series of pre-determined...
  25. Hello

    Am I able to send you the .Fla. I can't figure it out and I'm over my head right now. Just thought Id'e ask?

    Puke
Results 1 to 25 of 126
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center