Search:
Type: Posts; User: cessnajumpin
Search:
Search took 0.03 seconds.
-
At first glance it looks like you're using flash's reserved names for your function.
Instead of:
public function doshuffle(Array, Number) {
_array = Array;
_number=...
-
Something along these lines should work for you.
Basically it shuffles your original array, and then calls a function that grabs the pairs from the original array both forwards and backwards.
I...
-
Is your constructor and everything set up correctly?
http://board.flashkit.com/board/showthread.php?t=505014
-
private var txtFieldNameArray("apples", "oranges", "bananas");
private var txtFieldNameArray("apples", "oranges", "bananas");
links_xml = new XML();
links_xml.load("links.xml"); ...
-
You need a variable that is a number (NaN = Not a Number). It's because panda is a textbox. So you'd need something like:
var score:Number = 0;
_root.panda.text = score;
and then
...
-
pop removes an element from the end of an array. Also, for future posts, try to mention things like there is more than one crate with that instance name at the beginning of the post. It helps knowing...
-
Ok, so you don't want to have the enter frame function within the updateDate function. All you're using the updateDate function for is to update the hour variable. Actually, you don't need the enter...
-
It may be because you're removing it in an onEnterFrame function. Which means that it is going to continue to try to remove and already removed crate.
Try adding a boolean to make sure that the...
-
You'd want to make an interval function to check and update your myDate variable.
setInterval(updateDate, 5000);
function updateDate()
{
delete myDate;
myDate = new Date();
hour =...
-
If the rotation is working correctly then you should just be able to remove
this._y += _root.yMove;
this._x += _root.xMove;
You may also want to remove any sort of xMove and yMove in your...
-
Syntax error maybe?
gotoandPlay();
gotoAndPlay();
If that's correct in your code, can you post the file?
-
Nope, you should just be able to replace the code
-
Right, so something like this:
//create an array to hold all the sounds
var sound_explosions_array:Array = Array();
//create a position variable
var curSound:Number = 0;
//create a sound...
-
Since you already have the sounds in an array I would shuffle the array and then just play the array in order:
var shuffledArray:Array = sound_explosions_array.sort(shuffle);...
-
There's probably a cleaner way, but off the top of my head you could stack your switch statement:
switch(key){
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
-
You just need to tell flash where to look for those types of events.
Try adding
import flash.events.Event;
import flash.events.ProgressEvent;
to your class. In between the package and class...
-
If all files are in the same directory then kill the "gs." That's telling it to look for a folder named "gs." Also, make sure to open the TransformManager and TransformItem classes and make sure that...
-
By declaring the interval variable in a loop you're adding new interval IDs every time it fires. So you would only be able to clear the last of those added. If you're publishing for flash player 8 or...
-
I'm not exactly sure I get what you're saying but try loading the movie through a function that you pass the var into:
yourBtn.onRelease = function():Void
{
customLoadMovie(15); //15 is the...
-
Try adding "/" (without the quotes) as a location. That should allow anything being run from your computer to communicate without the message.
-
Oh great, swfobject is even easier. I'm not at a point where I can double check to make sure my syntax is right, but I'm pretty sure all you have to do is declare a new variable like this:
...
-
Ok, so you basically just want to shuffle your original array around.
var originalArray:Array = new Array("a","b","c","d","e","f");
var shuffledArray:Array = originalArray.sort(shuffle);...
-
This will trace the letter out. You'll just need to incorporate it into your function:
var keyListener:Object = new Object();
keyListener.onKeyDown = function()
{
...
-
Alright, so what you'll need to do (and I'm going to assume that you have to run AC Content. If not then just disregard the first step) is this:
1) In your HTML inside of AC_FL_RunContent array...
-
|
Click Here to Expand Forum to Full Width
|