Search:
Type: Posts; User: Jezzamon
Search:
Search took 0.02 seconds.
-
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...
-
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...
-
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...
-
Sorry, you want it to NOT be set to export in frame 1.
(try frame 2)
-
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...
-
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...
-
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...
-
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...
-
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 =...
-
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...
-
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...
-
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.
-
Ok, I'll stop asking you questions now.
Thanks for all your help. C:
-
...or what about
for(var i:int=0;i<container.numChildren;i++){
if(someCondition) {
container.removeChild(container.getChildAt(i));
i -= 1;
}
}
-
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)...
-
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...
-
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....
-
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...
-
Yeah objects are probably what I want. Just checking.
Cheers. C:
-
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...
-
wow thanks works completely. C:
-
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...
-
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:
...
-
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.
-
I have a movieclip which I need to be created with action script several times (within a loop). How would you do that?
|
Click Here to Expand Forum to Full Width
|