A Flash Developer Resource Site

Search:

Type: Posts; User: cessnajumpin

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,514

    At first glance it looks like you're using...

    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=...
  2. Replies
    1
    Views
    1,516

    Something along these lines should work for you....

    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...
  3. CS3 Is your constructor and everything set up...

    Is your constructor and everything set up correctly?

    http://board.flashkit.com/board/showthread.php?t=505014
  4. CS3 private var txtFieldNameArray("apples", ...

    private var txtFieldNameArray("apples", "oranges", "bananas");



    private var txtFieldNameArray("apples", "oranges", "bananas");

    links_xml = new XML();
    links_xml.load("links.xml"); ...
  5. Replies
    1
    Views
    428

    You need a variable that is a number (NaN = Not a...

    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

    ...
  6. pop removes an element from the end of an array....

    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...
  7. Ok, so you don't want to have the enter frame...

    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...
  8. It may be because you're removing it in an ...

    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...
  9. You'd want to make an interval function to check...

    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 =...
  10. If the rotation is working correctly then you...

    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...
  11. Syntax error maybe? gotoandPlay(); ...

    Syntax error maybe?


    gotoandPlay();



    gotoAndPlay();

    If that's correct in your code, can you post the file?
  12. CS3 Nope, you should just be able to replace the code

    Nope, you should just be able to replace the code
  13. CS3 Right, so something like this: //create an...

    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...
  14. CS3 Since you already have the sounds in an array I...

    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);...
  15. There's probably a cleaner way, but off the top...

    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:
  16. Replies
    1
    Views
    2,595

    CS3 You just need to tell flash where to look for...

    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...
  17. If all files are in the same directory then kill...

    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...
  18. Replies
    2
    Views
    482

    CS3 By declaring the interval variable in a loop...

    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...
  19. Replies
    2
    Views
    526

    I'm not exactly sure I get what you're saying but...

    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...
  20. Replies
    3
    Views
    516

    Try adding "/" (without the quotes) as a...

    Try adding "/" (without the quotes) as a location. That should allow anything being run from your computer to communicate without the message.
  21. Replies
    11
    Views
    1,038

    Oh great, swfobject is even easier. I'm not at a...

    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:

    ...
  22. Ok, so you basically just want to shuffle your...

    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);...
  23. Replies
    1
    Views
    3,263

    This will trace the letter out. You'll just need...

    This will trace the letter out. You'll just need to incorporate it into your function:


    var keyListener:Object = new Object();

    keyListener.onKeyDown = function()
    {
    ...
  24. Replies
    11
    Views
    1,038

    Alright, so what you'll need to do (and I'm going...

    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...
  25. Replies
    15
    Views
    1,186

    can you post your file?

    can you post your file?
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center