A Flash Developer Resource Site

Search:

Type: Posts; User: Jezzamon

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    3,257

    Oh wow. After trying a few different things I...

    Oh wow. After trying a few different things I tried accessing a class in the same folder as the fla file from one of these non-specific classes and you can just the same as if it's in the same...
  2. Replies
    5
    Views
    3,257

    I would have considered an XML file, there are a...

    I would have considered an XML file, there are a lot of confusing combinations of arrays and objects so I would think the best way would be creating a blank class with the data stored as static...
  3. Replies
    5
    Views
    1,699

    So, to clarrify, what you need to do is set the...

    So, to clarrify, what you need to do is set the export frame to frame 2 and then set all the sound files to export on frame 2, by checking that box under "export for actionscript".

    But if that...
  4. Replies
    5
    Views
    1,699

    Sorry, you want it to NOT be set to export in...

    Sorry, you want it to NOT be set to export in frame 1.

    (try frame 2)
  5. Replies
    5
    Views
    1,699

    The problem is that the music is being loaded...

    The problem is that the music is being loaded before the preloader.

    Assuming that the music files are in the library of a fla file, look at their properties and see if "Export in Frame 1" is...
  6. Replies
    9
    Views
    1,557

    Short answer: var newBlackShirt:BlackShirt =...

    Short answer:

    var newBlackShirt:BlackShirt = new BlackShirt()
    var newWhiteShirt:WhiteShirt = new WhiteShirt()


    So in the video you can see that in the DraggableShirt class there is a function...
  7. Replies
    5
    Views
    3,257

    Yeah, I understand what you mean with the classes...

    Yeah, I understand what you mean with the classes and stuff. I probably didn't quite explain what I meant though (as usual).

    So currently my program is very object-orientated. Only a small amount...
  8. Replies
    5
    Views
    3,257

    [RESOLVED] Accessing data in root folder

    I make a little game engine program for a specific game I was working on, with a considerable section of the code in the timeline of a .fla file. I plan on using the same code for both that game and...
  9. Replies
    9
    Views
    1,557

    the "indexOf" method tells you the position of an...

    the "indexOf" method tells you the position of an object has in an array, starting from 0. If the object isn't in the array, then it will return -1.

    So try something like this


    var index:int =...
  10. Replies
    0
    Views
    2,280

    Top-down Perspective Game - Best Approach?

    Hey guys!

    I just started working on a top-down perspective game, and I'm about to program in the levels. I can think of a few ways to do it, but can anyone tell me the most efficient way of doing...
  11. Replies
    4
    Views
    2,238

    I needed to do a similar thing recently... If...

    I needed to do a similar thing recently...

    If you want to not have to put the movieclip inside another movieclip, which can be quite annoying, you can add the width to the 'x' value of the...
  12. Replies
    10
    Views
    4,815

    don't worry, I was just kinda thinking that I'm...

    don't worry, I was just kinda thinking that I'm making you do all the testing for stuff that I could do myself.

    I was just interested in asking you in case you already knew.
  13. Replies
    10
    Views
    4,815

    Ok, I'll stop asking you questions now. Thanks...

    Ok, I'll stop asking you questions now.

    Thanks for all your help. C:
  14. Replies
    10
    Views
    4,815

    ...or what about for(var...

    ...or what about
    for(var i:int=0;i<container.numChildren;i++){
    if(someCondition) {
    container.removeChild(container.getChildAt(i));
    i -= 1;
    }
    }
  15. Replies
    10
    Views
    4,815

    Ok yeah. Just one last question: With the...

    Ok yeah.

    Just one last question:

    With the above situation, would something like:
    for(var i:int=container.numChildren ;i>0;i-=1){
    if(someCondition)...
  16. Replies
    10
    Views
    4,815

    Ok, I can see why the error is occuring. I guess...

    Ok, I can see why the error is occuring. I guess could also just try breaking the from the loop after it's removed the first time.

    Also, when I was posting I felt kinda silly explaining how I was...
  17. Replies
    10
    Views
    4,815

    [RESOLVED] Remove children error

    Hey Everyone,

    I'm trying to remove a child of a Sprite in actionscript, where each of the children are stored in arrays as well as holder sprite, as that seemed to easiest way to go about things....
  18. Replies
    2
    Views
    640

    Also, with the snapping of objects on the map,...

    Also, with the snapping of objects on the map, you should be adding the x and y values of the item to the x and y values of the map.

    Or, if you're putting all the movieclips in one holder, (which...
  19. Replies
    2
    Views
    7,345

    Yeah objects are probably what I want. Just...

    Yeah objects are probably what I want. Just checking.


    Cheers. C:
  20. Replies
    2
    Views
    7,345

    [RESOLVED] Quick Question for variables

    In my program, I'd like to have variables that contain the "stats" for a few different things in my program.

    At the moment I would use

    var enemy1Health = 100;
    var enemy1Speed = 5;
    var...
  21. wow thanks works completely. C:

    wow thanks works completely. C:
  22. [RESOLVED] sorting movieclips according to y values

    In the project I'm working on, there are towers the user can place. However, it you place a tower higher then another one, it appears infront of that one, which looks weird.

    I want to be able to...
  23. Replies
    6
    Views
    1,354

    CS3 Well, if you're having trouble with movieclips...

    Well, if you're having trouble with movieclips inside movieclips, you could put the entire thing in one movieclip (nothing inside that one), and then have this code in the main timeline:
    ...
  24. Replies
    3
    Views
    330

    Yeah I'd be interested in the last option, so if...

    Yeah I'd be interested in the last option, so if I made a .as file like that, how would I access in the original flash file.
  25. Replies
    3
    Views
    330

    Created instances using action script

    I have a movieclip which I need to be created with action script several times (within a loop). How would you do that?
Results 1 to 25 of 33
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center