Recent posts by Gunstar_Hero on Kongregate

Subscribe to Recent posts by Gunstar_Hero on Kongregate

avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Dynamic AS3 Setinteval or Timer Question

Yeah….Yeah! That sounds way more applicable. I’m sorry, I usually am a lot better then this, hope you don’t think of me as an idiot, it’s semi late for me and I haven’t slept for 10 + days, family member in the hospital, got out, still in bad shape, you get it.
Edit: Worked out, Jabor win a cookie…(Go buy yourself a cookie.)

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Dynamic AS3 Setinteval or Timer Question

I was thinking you meant setTimeout :D No problem.

So back to my question everybody.

Edit: Actually, I think you just gave me and idea with setTimeout….. Thanks :3

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Dynamic AS3 Setinteval or Timer Question

Uhh, whenever I use setInterval, it loops itself. That’s not my problem anyways, I just need to be able to let an interval run (while it’s looping) and be able to change the delay while it’s still running. If this isn’t possible, is there any equivalent?

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Dynamic AS3 Setinteval or Timer Question

First of, I don’t care if you explain using setInterval or Timer.

Okay, I can’t figure out how to constantly control the speed of a movieclip’s playback speed using a timer/setinterval/or if there is any other way.

basically put


setInterval(blahblah,myVariable)

This is fine, but I need to be able to constantly have myVariable changing, so I can control the speed that blahblah is executed constantly.
And sorry if I didn’t explain my problem well.

(Sorry for saying constantly so much.)
Any idea?

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Deleting Functions

That may actually work, darkzak, I hadn’t thought of using a var for the function.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Deleting Functions

You don’t understand, my code is split up into many different functions, blah blah blah, that was a small estimate, blah blah blah.
Look, I’m tired of trying to explain my reason. I asked a simple question:
Can you delete/ redefine functions in AS3? It’s a yes or no question.
Also, they are not booleans. They would be either Strings or numbers, depending on if I am to lazy to type much. Around 3 or 4 different values. I am aware of the switch function, I’ve used it, it’s not what I need right now. I am not a full fledged idiot with flash. I just asked a question, so may I please get an answer.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Deleting Functions

I want to delete one at run-time, isn’t that obvious? I’m not stupid. I know how to backspace. I basically just need to redefine a function. I don’t want to have to put 20 if statements with 3 variables. I just want to be able to redefine a function so it acts slightly differently. I know how to add/ remove event listeners, but if I had to make a new function and have different event listeners my code would become around 3 times as long. Basic idea:


Frame 1:

function rwar(){
//code1
}

Frame 11:

function rwar(){
//code2
}


I just want to redefine the function, if anyone knew how to do this without doing anything else (I already know the other solutions, stop coming up with other stuff. I asked a specific question because I want it’s specific answer.) it would save me a lot of trouble.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Deleting Functions

AS3
Flash CS4

How would I got about deleting a function such as:


function rwar(){
//OMG CODE
}

Just deleting function completely, or just redefining the function. I tried just restating the function how I wanted to change it, but I got an error message.
Any help?

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Kongregate / Wiggle Room for perma banned users?

Yeah, guessing is the only way unless you had some specialized hacking program, and whether that can do it I am still questionable about. I figure that if your going to get permanently banned because of what you say, you might as well not talk. If you wish to continue to play on this site with your account, you should just mute the chat and stop yourself from getting banned in the first place. Also, if you allowed banned users to still use the site, they could spam, or do whatever they did to get themselves banned in the forums.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Kongregate / IP ban?

Originally posted by AlisonClaire:

As has been mentioned, we don’t IP ban for a variety of reasons. Places like coffee shops, libraries, college campuses and small countries are frequently all on the same IP. We don’t want to shut out all of Singapore just because Jude decided to spam. On a smaller scale, I don’t want the actions of one sibling to get another banned. Because, dude, if my sister got me banned from Kong I would be pissed

Yeah, that pretty much makes IP bans useless to use because of that.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Kongregate / how to create new chat rooms

1) You should have checked the forums for other posts about this. Therefore, your shouldn’t have posted this topic.
2) Guys, starting a stupid spammy flame war is pretty pointless.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / AS3 Tip

Well, basically, it allows you to use things like root. That way, instead saying something like


this.parent.parent.MC

you could just say

root.MC

Kinda useful if you started out with AS2 and did a lot of MC programming.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Flash CS4 Crash ?

I got Flash CS4 and haven’t had any problems….

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / AS3 Tip

For those using ActionScript 3.0, you may have noticed that _root, or root as it would be without the underscore (as most AS3 terms are) doesn’t work properly. It usually returns an error. Now, as a work around, and I’m not sure if it will work for everything, but it works in the terms of saying something like


root.MCNAME.scaleX+=5

or something along those lines, you can go to File > Publish Settings > Flash (it’s a tab) and near the words Actionscript 3.0 settings, there should be a button. Press it. Uncheck the boxes that say “Strict Mode” and “Warning Mode” (Or something near that text) and tada.
root works!
Now, if you wish for this to be automatically applied to all documents you make in flash without having to do this manually, export the profile (there’s a small button at the top) to default.xml and save it. Done.
Tested on Flash CS4 – AS3

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Kongregate / Making Alts

Well, some people try to do it to get around bans (Which is against the rules, mind you) and some just think they won’t get caught doing it. Alts are okay, if there not for point farming or getting around bans, just as another account to play on or something.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Technical Support / Chat can't connect

It started working early today, oh well.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Technical Support / Flagging Comments Multiple Times.

Your not the first one to realize that, I too have noticed this.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / RemoveMovieclip

When using removeMovieClip, you have to first make the mc swap to the highest depth. You can remove any movieclip, created by code or not.
Use this code:


MC.swapDepths(_root.getNextHighestDepth())
MC.removeMovieClip()

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Technical Support / Chat can't connect

Every time I try to place a game, I get the message

 Kongregate Notice: Unable to connect due to an expired session. You may refresh to reconnect.

in the chat, then it just stops. I tried refreshing 10 times, I restarted my computer, everything like that.
I have Flash Player 10 and the ports for the chat are open, plus, it worked a yesterday, then, plop! It didn’t work. :( Any ideas?

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / [Unresolved] Loading External Variables from a .php file

So no ideas? Oh, and sorry about the triple post!

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Technical Support / CAPS ALLOWED ROOMS

Originally posted by doom1922:

Just a suggestion.

Well post it in the Suggestions Thread.

True, also, I honestly do not think this is a good idea. If everyone posted in caps, there would most likely be chaos. If someone is visually impaired, they simply need to use the zoom in option on their browser, or get glasses as they should.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / displaying framerate

As2 or As3?

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / Games not playing in IE Flash Player 9

Wrong forum.

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / [Unresolved] Loading External Variables from a .php file

It echos correctly, but when I try to access it with flash, it returns undefined. My code is probably pretty crappy but I am new to this so please don’t laugh D:


infos = new LoadVars();
infos.load(“http://casualdojo.hostrator.com/userranks.php”);
infos.onLoad = function() {
trace(root.infos.GunstarHero);
};

 
avatar for Gunstar_Hero Gunstar_Hero 351 posts
Flag Post

Topic: Game Programming / [Unresolved] Loading External Variables from a .php file

Uhh, nothing big, but it’s Gunstar :P
Anyways, I’ll try that, I’ll get back to you guys in a bit.