Search:
Type: Posts; User: retrotron
Search:
Search took 0.07 seconds.
-
There's also kinetic fusion:
http://www.kinesissoftware.com
-
Well, try this and tell me what the output is:
stop();
// flag is a file loading.
fileLoading = false;
function loadAudioFile(theURL) {
trace("theURL: " + theURL);
...
-
-
Ah, I see. Cool, good plan.
I was actually wondering about that percent line, thinking that it might throw an error. Try this:
var percent = (percent-((loading/total)*100))*.25;
I removed...
-
You were right the first time: onPress only fires when the button is just clicked, it doesn't test whether it's continuously down.
The above code causes the illusion of such because when the...
-
You are right, you have to use onEnterFrame() or setInterval() to check over and over again whether the mouse is pressed. Something like this for onEnterFrame():
upBtn_mc.onPress = function() {...
-
I'm not sure I totally understand ... I think I get what you want, so what exactly is it not doing right?
-
Your code looks fine syntactically, so if it's not working, then something else is the culprit, probably something is preventing that code from every executing. Throw a trace statement in right after...
-
What exactly do you mean by wanting an onload event?
Just for kicks, here's a better one I use these days, better because it's a movieclip method:
MovieClip.prototype.preloadClip =...
-
Thanks ericlin (second time tonight :)). Hmm...so I'll have to figure out that ratio for each font, eh? Anybody have any ideas for how to get that baseline? Or how to get the "descent"?
-
I'm trying to calculate what the baseline of a textfield would be.
TextField.textHeight returns a value that is a few pixels below the actual bottom of the leters. If the font size is large,...
-
Which two functions? How do they conflict?
Something like this:
button_mc.onRollOver = function() {
checkFourH(); // executes only once each time mouse rolls over
this.onEnterFrame =...
-
yeah, if(variable) tests whether variable = true or false.
for more on "var", check out this thread:
http://www.actionscript.org/forums/showthread.php3?s=&postid=145457#post145457
-
Check out how I did it in the attachment. As pellepiano said, you can't nest on() functions. Since you're using MX, it's much better to use function literals (defining the function like I did...
-
This works (check out the attachment):
// set a variable
var someCondition = true;
// button code
button_mc.onRollOver = function() {
this.onEnterFrame = function() {
if (someCondition)...
-
Something like this?
on (rollOver) {
on (enterFrame) {
if ((_currentframe<10) && (_root.Playable == true)) {
checkFourH();
} // end if-statement
} // end on(enterFrame)
}...
-
I have an issue with some anchors in a flash html textfield which try and call a javascript window.open() function to create a popup. The .fla is in a frame. It doesn't work and I'm not sure why. ...
-
fgf wanted me to build one of those environments in the as.org thread too, someday I'll get around to that. It's always someday. :)
I almost never build games...in fact, now that I think about...
-
Whoa, that really tripped me out, senocular and I posting at almost exactly the same time. I didn't know where all that extra text came from. :)
Anyways, again, a great explanation from...
-
Hey padnpen, thanks for stopping by. ;)
The reason your code didn't work is because you tried to create a "new" instance of an object. This is not possible in Flash.
For example, look at...
-
Just for kicks. Look at this code. I've created my own inheritance scheme. I'll explain it below.
// create my own inheritance scheme //
// top level object, so "top level", in fact, that it...
-
Here is some relevant reading for anybody following this thread, courtesy of ultrashock's x3ro.
http://www.webreference.com/js/tips/010215.html
http://www.laputan.org/reflection/warfare.html...
-
Okay, I'm totally tracking with you, or at least I think I am. You must forgive my semi-incoherent ramblings. After 24 hours without sleep I just turn into a bumbler (whatever that is). I actually...
-
Gee, thanks for giving me the time senocular! You're the best! I learned a lot from this (and I know others will too). You've really helped clarify a lot of things. It especially helped me...
-
I posted this on ultrashock too, but I might get a quicker reply here. Two questions.
First question: in actionscript, there isn't such a thing as a "class". Instead, the "class" is just an...
|
Click Here to Expand Forum to Full Width
|