Search:
Type: Posts; User: Quixx
Search:
Search took 0.45 seconds.
-
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...
-
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...
-
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...
-
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...
-
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...
-
Sorry, I wouldn't know where to start with something that complex.
-
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...
-
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. ...
-
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...
-
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). ...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
...
-
No problem :thumbsup:
Happens to us all at some point or another, lol.
-
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...
-
Depends on which version of Flash you're using. You may be able to use: .getNextHighestDepth().
-
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...
-
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",...
|
Click Here to Expand Forum to Full Width
|