dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Quixx

Page 1 of 20 1 2 3 4

Search: Search took 0.07 seconds.

  1. MX04 Whoops, I may have misunderstood your request a...

    Whoops, I may have misunderstood your request a bit... Did you want to know how to pull a random number from anywhere between 150 and 200 (meaning something like 153, 160, 189, etc...)? If that's...
  2. MX04 If you set up an array holding the possible money...

    If you set up an array holding the possible money deductions, you could randomly pull one of the numbers from it. For example, create a new flash document and create a button on the main stage and...
  3. Replies
    3
    Views
    8,502

    Ah, I get it I think. So you have an opening...

    Ah, I get it I think. So you have an opening movie sequence playing and when the person moves the mouse you want it to jump to a frame holding your interface, rather then having to click a button to...
  4. Replies
    3
    Views
    8,502

    Here are a couple methods you could try. (NOTE:...

    Here are a couple methods you could try. (NOTE: in both cases I am using the code to control a Movie Clip named "numbers_mc". I wasn't sure if you'd need or want comments in the code, but I figured...
  5. Thread: to mutch code?

    by Quixx
    Replies
    3
    Views
    552

    You can use a for loop to go through the...

    You can use a for loop to go through the variables and then break away once a match has been made.




    var startNum:Number = 40;
    var limit:Number = 100;
    var frameDiff:Number = 3;
    var...
  6. Replies
    3
    Views
    844

    Sorry, I wouldn't know where to start with...

    Sorry, I wouldn't know where to start with something that complex.
  7. Replies
    3
    Views
    844

    Simple? Depends on what the "note" is for. For...

    Simple? Depends on what the "note" is for. For doing what you've asked for so far, it sounds like .attachMovie(); would work. Look it up in Flash's help panel to get acquainted with how the code...
  8. Replies
    2
    Views
    547

    Using the following code you can change the...

    Using the following code you can change the visible state of a movie clip. Copy and past the code (be sure to remove your old "S" key code first) into the first frames actions panel. ...
  9. I'm using Flash MX 2004, so I'm not sure if...

    I'm using Flash MX 2004, so I'm not sure if you'll need to change some of the code or not.

    The following code will choose a random amount of seconds to wait before playing again. Also, it will...
  10. Replies
    1
    Views
    465

    I'm using Flash MX 2004, so maybe things have...

    I'm using Flash MX 2004, so maybe things have changed with F8, but as far as I know there is no way to pull the name of an object in the library (regardless of it being put on the stage or not). ...
  11. Replies
    4
    Views
    493

    Thanks for assist Boris the Frog. My apologies...

    Thanks for assist Boris the Frog. My apologies Fragtagonal. I should've explained that the code I posted was only an example of how you would use the variable created using eval(["MC"+i) (or in...
  12. Replies
    4
    Views
    493

    Try using eval() to create a variable that will...

    Try using eval() to create a variable that will point to each fish. In the example below, the variable "wf" is assigned to point to either "fish1" MC or "fish2" MC on the stage. Then each MC is...
  13. Thread: Maze Game Help

    by Quixx
    Replies
    4
    Views
    504

    Hi bmammen, I guess before we continue with...

    Hi bmammen,

    I guess before we continue with this idea, you should describe in depth how you would like your game to work once it's completed. Otherwise we'll be backtracking over and over again...
  14. Thread: Maze Game Help

    by Quixx
    Replies
    4
    Views
    504

    I'm going to assume that you've just hand drawn...

    I'm going to assume that you've just hand drawn the maze and made it a movie clip (since you didn’t say you were using a dynamic tile set up). With that in mind, there's a couple things you could do...
  15. Thread: sound preloader

    by Quixx
    Replies
    2
    Views
    421

    The code looks fine. Are you loading the mp3...

    The code looks fine. Are you loading the mp3 from you computer at the moment? If you are, that's probably what the problem is. When testing external mp3 preloaders, you should link to an mp3 that...
  16. Replies
    2
    Views
    396

    I have no clue who you are talking about, but I...

    I have no clue who you are talking about, but I figure you could find him easily if you've ever posted in a thread he posted in. If you did, just do a search on threads you posted to and you should...
  17. Replies
    1
    Views
    577

    Hi, You are recieving the error because you...

    Hi,

    You are recieving the error because you don't have a "," between the " and the {...

    mc.loadMovie("a1.swf",{_x:484, _y:45.3});

    ...but you will likely still run into an issue since you are...
  18. Replies
    1
    Views
    430

    You can loop through the characters in the string...

    You can loop through the characters in the string and use an if statment to compare the variables.



    var myString:String = "abc123";
    var i:Number = 0;
    while (i<myString.length) {
    if...
  19. Replies
    2
    Views
    1,107

    Name the MC that is going to be thrown, "ball"...

    Name the MC that is going to be thrown, "ball" and then put the following code in the actions panel for the frame the ball MC appears.

    I'm using the PHP tags here to colorize the script for easier...
  20. Replies
    2
    Views
    503

    Attaching the code to each clip would allow you...

    Attaching the code to each clip would allow you to use "this" to reference each MC to itself. So you'd attach something like the following code to have each clip test itself for a hit test...


    ...
  21. Replies
    3
    Views
    468

    No problem :thumbsup: Happens to us all at...

    No problem :thumbsup:

    Happens to us all at some point or another, lol.
  22. Replies
    3
    Views
    468

    From a quick glance I'd guess it might have...

    From a quick glance I'd guess it might have something to do with incrementing the variableb instead of i in your loop. This would cause the loop to continue on infinitely. Try changing the "b" to...
  23. Thread: swap to top!

    by Quixx
    Replies
    2
    Views
    448

    Depends on which version of Flash you're using. ...

    Depends on which version of Flash you're using. You may be able to use: .getNextHighestDepth().
  24. Replies
    1
    Views
    415

    It's usually best to simply state which version...

    It's usually best to simply state which version you are using. If you're using MX 2004 pro, I'd suggest using MovieClip Loader Class. Here's an example:



    var mclListener:Object = new...
  25. Hi, Replacing the code on the main timelines...

    Hi,

    Replacing the code on the main timelines action panel with the following code should do the trick:



    var sOb = "";
    var num:Number = 0;
    Ob_array = new Array("chair", "sofa", "table",...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center