but if you're just making a large collection of functions, why bother making a class? just paste it all in a .txt or .as file, and #include it.
as for the speed...i suppose that would be a good reason. maybe i should do one like that.
but if you're just making a large collection of functions, why bother making a class? just paste it all in a .txt or .as file, and #include it.
as for the speed...i suppose that would be a good reason. maybe i should do one like that.
At 11/11/06 09:31 PM, Rammer wrote: but if you're just making a large collection of functions, why bother making a class? just paste it all in a .txt or .as file, and #include it.
I'm not sure. I'll do some reading on that book later tonight and tell you tomorrow... Or someday.
as for the speed...i suppose that would be a good reason. maybe i should do one like that.
You should. ^^
At 11/11/06 09:28 PM, Blaze wrote:At 11/11/06 09:24 PM, Rammer wrote:
Again, I'll use Chad as reference. His Mathlite class (as he stated in his own thread) ran every mathematical operation much faster than the flash inbuilt Math class.
didnt it accually end up much slower
i use classes for everything. mostly i use it for duplicated movieclips that i want ot behave a certain way. i just say:
class Explosion extends MovieClip {
public var xSpeed:Number;
public var ySpeed:Number;
public function Explosion() {
xSpeed = -10;
ySpeed = 0;
onEnterFrame = function () {
if (_currentframe == _totalframes || _x < -_width) {
swapDepths(10000);
stop();
this.removeMovieClip();
} else {
_x += xSpeed;
_y += ySpeed;
}
};
}
}
then i just give that class to all explosions in the library and when one is attached to the stage it automatically does that action.
sure you dont need this, but it keeps it all organized and not in the same file (since i put all the actionscript on the frame in the main timeline).
im also making a vector class, with all the vector collision functions and what not.
technically you never need a class, but technically you never need a function either
At 11/11/06 09:39 PM, ImpotentBoy2 wrote: technically you never need a class, but technically you never need a function either
Which, Technically talking, Stephen, You use a lot. :)
Bah if you're going to discuss something don't let it be Actionscript.
At 11/11/06 09:43 PM, Blaze wrote:At 11/11/06 09:39 PM, ImpotentBoy2 wrote: technically you never need a class, but technically you never need a function eitherWhich, Technically talking, Stephen, You use a lot. :)
stephen?
At 11/11/06 09:43 PM, Blaze wrote:At 11/11/06 09:39 PM, ImpotentBoy2 wrote: technically you never need a class, but technically you never need a function eitherWhich, Technically talking, Stephen, You use a lot. :)
that's my name, stupid! :P
by the way, ImpotentBoy, that example really helped. i got lots of ideas for this, and i may be able to optimize a game of mine because of you! thanks (:
but i still don't know what 'intrinsic' means for a class :P
by the way, Neashir watches Jimmy Neutron, possibly religiously.
the only classes i've really used so far are a camera class, a vector class, and a container class ("smart array")
BTW i just saw borat. Freaking hilarious
At 11/11/06 09:50 PM, Rammer wrote: that's my name, stupid! :P
oh i thought blaz asked the question
heres a fun -flash related- thing. what cool sound effects tricks do you have, we learned a few in gsp and some are pretty cool:
car crash: fill a box with scrap metal and chunks of wood; shake vigorously
fire: for a burst of flames open an umbrella,for crackling sound crumple thick cellophane
body collision: smack a pumpkin/watermelon with a piece of wood
gunshot: hit a leather seat with a thin peice of wood like a ruler, or fold a belt and snap it
bishes: rustle a broom straw
boiling water: blow into a straw in water(easy)
aircraft: record a blow dryer speeding or slowing down, then speed it up or slow it down in a editing program
At 11/11/06 10:01 PM, ImpotentBoy2 wrote: heres a fun -flash related- thing. what cool sound effects tricks do you have,
Knocking on a door: Um...knock on a door.
Yeah, thats about it.
At 11/11/06 10:01 PM, ImpotentBoy2 wrote: heres a fun -flash related- thing. what cool sound effects tricks do you have, we learned a few in gsp and some are pretty cool:
Pretty nifty, I'll keep that in mind.
Though I have a question about audio in Flash, I'm using MX and I seem to have trouble with making the audio have good quality in the SWF, anyone go tips for that?
At 11/11/06 10:01 PM, ImpotentBoy2 wrote:At 11/11/06 09:50 PM, Rammer wrote: that's my name, stupid! :Poh i thought blaz asked the question
wait, was blaze talking to me about how many functions i use? or, what? O_o
heres a fun -flash related- thing. what cool sound effects tricks do you have, we learned a few in gsp and some are pretty cool:
wow, you're just a little fountain of info, aren't cha?
i have one sound to add to that; you can make it with your mouth, and i did so for Halloween Reprisal. if you poke a kid's eyes out in it, that's my mouth-fx :P let me start this off by saying that the word "vagina" refers to the roof of your mouth.
first, put the tip of your tongue against your top teeth, make sure only a little bit is touching the vagina. make a little bubble around the vagina by putting your tongue all on your top teeth. it's hard to explain, but there should basically be an air bubble in your vagina. then, fill up your cheeks with air. snap your tongue off your teeth, and use the back of your tongue to push air out. also, use your cheeks to push the air out. your mouth should be in an O-shape, sort of, when you do this.
i'm probably not explaining this right. i'm just talking through the steps i do to make this sound, although it takes me like, less than a second. it makes a sound like if someone were to drop an anvil on someone else's head, but just the squishy part. it also helps to have some saliva in your mouth, or to at least have it relatively wet.
At 11/11/06 10:10 PM, Rammer wrote: "vagina"
i did it
:D
At 11/11/06 10:10 PM, PaperBagMask wrote:At 11/11/06 10:01 PM, ImpotentBoy2 wrote: heres a fun -flash related- thing. what cool sound effects tricks do you have, we learned a few in gsp and some are pretty cool:Pretty nifty, I'll keep that in mind.
Though I have a question about audio in Flash, I'm using MX and I seem to have trouble with making the audio have good quality in the SWF, anyone go tips for that?
You need to make sure you're not importing bad audio to begin with and when you are readying to publish you goto publish settings and under the swf tab you should see what quality flash is saving audio at.. by default its pretty low and extremely noobish for you to not change that before turning it into the portal.
None
My method of creating sound effects is to go into Need for Speed with Fraps on and record me driving :D
Then I try to open it in audacity and edit it so it works for my street racing movie BUT IT DOESNT WORK RAWR I HATE YOU AUDACITY
At 11/11/06 10:25 PM, Luis wrote: You need to make sure you're not importing bad audio to begin with and when you are readying to publish you goto publish settings and under the swf tab you should see what quality flash is saving audio at.. by default its pretty low and extremely noobish for you to not change that before turning it into the portal.
So the default settings are pretty much the lowest quality?
So if I set the quality for the bit rate to 160kbps, that would be the best and 8kbps would be the worst?
Hey, I'm having trouble with streaming sounds: it wont keep in sync with my movie. It sed to work. >_<
At 11/11/06 10:36 PM, Orangeblob wrote: Hey, I'm having trouble with streaming sounds: it wont keep in sync with my movie. It sed to work. >_<
Most people get there audio and put it all into one file with blank spaces for where there isn't supposed to be sound, this prevents the audio from screwing up in the SWF.
I would think that would be even more difficult to sync up....
Instead of putting it in one file, just put an ACTUAL empty sound clip (not you recording space, that will have white noise) everywehre where you aren't playing sounds in your sound layer. That way you're still syncing it from inside flash which is easier with the graphics right there.
At 11/11/06 10:19 PM, ImpotentBoy2 wrote:At 11/11/06 10:10 PM, Rammer wrote: "vagina"i did it
D
yay, so i explained it right! :D
At 11/11/06 10:36 PM, Orangeblob wrote: Hey, I'm having trouble with streaming sounds: it wont keep in sync with my movie. It sed to work. >_<
when that happens, i usually just take all of them out of my timeline and use actionscript to play them. it works fine \:
At 11/11/06 10:52 PM, Rammer wrote: yay, so i explained it right! :D
I loled at that post. Seriously.
At 11/11/06 10:53 PM, Blaze wrote:At 11/11/06 10:52 PM, Rammer wrote: yay, so i explained it right! :DI loled at that post. Seriously.
i lol'd at you lol'ing at my post. seriously.
WTF DUZ INTRINSIC MEAN, YOU BEECHES?!
At 11/11/06 10:59 PM, Rammer wrote: i lol'd at you lol'ing at my post. seriously.
Youre such a post whore. I swear.
WTF DUZ INTRINSIC MEAN, YOU BEECHES?!
Wikipedia anyone?
At 11/11/06 11:02 PM, DarkMana wrote: He wants to know about the AS class :/
o_o oh. That explains why he hadn't thought of wikipedia. :D
Here's a serious question i'm wondering about. What's everyone here's favorite movie and why? Everyone who reads this please answer.. i'm really intrested.
At 11/11/06 11:05 PM, DarkMana wrote: Who doesn't love Kirupa?
i hate kirupa! ):<
jokes. thanks for that. i now understand that it is completely useless to me. wahey!
At 11/11/06 10:34 PM, PaperBagMask wrote: So the default settings are pretty much the lowest quality?
So if I set the quality for the bit rate to 160kbps, that would be the best and 8kbps would be the worst?
DONT set it that high. the sweet spot for me is 56kps... it provides lean file size and the audio sounds just fine.
None
At 11/11/06 11:14 PM, Mogly wrote: Here's a serious question i'm wondering about. What's everyone here's favorite movie and why? Everyone who reads this please answer.. i'm really intrested.
Well I'm not too sure on what exactly is my favourite movie but I'll list some of my favourites.
Pico's Unloaded, Luis VS The Clock Crew and Untitled-1.fla, though I think I'm missing one...