Topic: Programming / Savedata not working... (AS3.0, Flex)
You can’t save a custom class you’ve made yourself. (or at least, not as far as I know)
Try to convert it to a build-in class, like an Object or an Array.
|
1 hour ago
|
Topic: Programming / Savedata not working... (AS3.0, Flex) You can’t save a custom class you’ve made yourself. (or at least, not as far as I know) |
|
20 hours ago
|
Topic: Battle Dawn / About spies I have a couple of questions about the functionality of spies: + It says that if another unit steps on your spy, a spy battle will begin. But if I put my spy on anonther unit, will a battle begin too? |
|
Mar 12, 2010
|
Topic: Battle Dawn / New statistics Since yesterday, I can’t login at fantasy land anymore. However, I can still login at the other worlds. The last time I checked (yesterday), I was the highest ranked player of fantasy world and I had one crystal. I did also raze one of my outpost and trained a spy. (it might be that one of those thing are causing the problems) Every time I try to login, the loading screen appears and loads, but the loading bar never comes farther than the second-last part. (I have already tried clearing my cache) |
|
Mar 4, 2010
|
Topic: Programming / improving game speed How about designing if for a lower framerate? Most games are 30-60fps. |
|
Feb 28, 2010
|
|
|
Feb 27, 2010
|
Topic: Kongregate / Full Chat: Another boringly named greasemonkey script from SavageWolf! !UPDATED! After an agonising few minutes, this script is no longer made by SavageWolf, it seems to now have been "adopted" by Ventero, who has improved it! Also, a rant or troll post This is just self-advertising to get your game a lot of plays. |
|
Feb 20, 2010
|
Topic: Collaborations / How do I upload a game to this website? http://www.kongregate.com/accounts/Moly |
|
Feb 20, 2010
|
Topic: Collaborations / How do I upload a game to this website? 1. Steal the game; To be serious: you are only allowed to upload games you’ve made yourself. If you upload something which you haven’t made yourself, then it’s stolen. |
|
Feb 20, 2010
|
Topic: Programming / Yet another obvious AS 3.0 question! (SOLVED!) The Game() function (which checks if Global.main equals null) is getting called before the Main() (which defines the Global.main property). Simple solution: package {
import flash.display.Sprite;
import flash.events.Event; //Also, you're not using this class, so why would you import it?
[SWF(width="800", height="500", backgroundColor="#000000")]
public class Main extends Sprite {
public var game:Game;
public function Main():void {
Global.main = this;
game = new Game();
stage.addChild(game);
}
}
}
|
|
Feb 19, 2010
|
Topic: Programming / AS3.0 Class problem! Originally posted by jonathanasdf: Wordblind is right, Bitmaps don’t recieve MouseEvents. Object
|
EventDispatcher
|
DisplayObject
|
+---+-----------+
| |
Bitmap InteractiveObject
|
DisplayObjectContainer
|
Sprite
As you see, Bitmap is directly extended from DisplayObject, but Sprite also takes InteractiveObject and DisplayObjectContainer. InteractiveObject dispatches all the MouseEvents and KeyboardEvents. |
|
Feb 19, 2010
|
Topic: Programming / [AS2] Problem attaching MC in Flash 6 Why are you targetting flash player 6? About 95% of all the internet users has FP10, and and about 99% of the internet users has FP9. There is no reason to target for FP6 at all. Source: http://www.adobe.com/products/player_census/flashplayer/version_penetration.html |
|
Feb 18, 2010
|
Topic: Programming / Actionscript Error, help!
The solution is written it the error. |
|
Feb 16, 2010
|
Topic: Kongregate / [suggestion] Easy-Fix for Hacked Highscores
Developers can’t tell the API a max value, nor they can remove highscores. Allowing developers to remove highscores (on their own games) would be a great improvement through. |
|
Feb 15, 2010
|
Topic: Kongregate / [suggestion] Easy-Fix for Hacked Highscores Hacker’s 5-step plan to success: 1. Figure out the maximum score; |
|
Feb 14, 2010
|
Topic: Programming / addChild, DisplayObjects, and Custom Class I think you can use the var f:MainMenuBackground = new MainMenuBackground();
var leftBar:MenuSideBar = f.addChild(new MenuSideBar(0 + 6, 50 + 6, 50 - 6, f.height - 15 - 100)) as MenuSideBar;
leftBar.data = { rotX:0 , rotY: -90 };
|
|
Feb 13, 2010
|
Topic: Programming / AS2 Preventing cheating with the mouse? If you use AS3, this problem gets automatically fixed. |
|
Feb 12, 2010
|
Topic: Kongregate / Suggestions Originally posted by SavageWolf:Originally posted by Vara:Originally posted by SavageWolf: |
|
Feb 12, 2010
|
Topic: Kongregate / Suggestions Originally posted by SavageWolf: They can retrieve the player’s level, but they have no reason to only let users from level 30+ play their game. |
|
Feb 11, 2010
|
Topic: Programming / Exclusivity bonus and demo version
|
|
Feb 11, 2010
|
Topic: Kongregate / Kred Competitions
Please check out the tarives for when you buy them using zong. (also, kreds become cheaper when buying a lot at the same time)
|
|
Feb 11, 2010
|
Topic: Kongregate / Kred Competitions Originally posted by nojkimserious: There are actually 2 things that block you: + The value of the kreds determines on the amount you’ve bought them: if you get 50 kreds for 10$, the value is $0.20, if you get them for 5$, the value is $0.10. + Kongregate pays you the full amount that they have recieved for the kreds, that means that you’re not getting the transaction costs back. eg. if you get 50 kreds for 5$ but kong has to pay $1 for the transaction costs, and you donate all 50 kreds, the developer only recives $9. |
|
Feb 11, 2010
|
Topic: Programming / Is memory management needed for AS? Flash has a “garbage collector”, which automatically deletes objects you’re not using (like java). The garbage collection will remove the object if: + There are no refferences to the object. |
|
Feb 10, 2010
|
Topic: Programming / BitmapData.dispose still necessary? .dispose() works faster than the gagbage collection. I’ve tried to make a new BitmapData object every frame, and then cleared the reffereces to it when the next was one created, and it ran at about 45 fps (was designed for 60), then I tried calling .dispose when I created a new one, and it ran at 57 fps. (note that this was in flash 9) |
|
Feb 10, 2010
|
Topic: Programming / checking vars across classes. Originally posted by sawdusteater: … If don’t define it, it defaults to See: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f9e.html and http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f32.html |
|
Feb 10, 2010
|
Topic: Programming / Global Variables In AS3? You can make a variable accesable outside a function by declaring it outside a function. Example: var a:int;
function b():void {
a = 3;
}
b();
trace(a); //traces 3
You can also make a global object (like _global in AS2) by making an external .as file: package {
public var global:Object = {}
}
Save this as global.something = 23; //Somewhere else (eg. in another class) trace(global.something) |