00:00
00:00
Newgrounds Background Image Theme

AstralSevenNG just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,045,748 Views | 60,185 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2015-01-08 02:51:56


At 1/8/15 12:12 AM, 4urentertainment wrote: Sounds pretty awesome. You can publish to new platforms with Flash, and if it's not natively support, you can code it yourself!

Requires the Flash IDE, doesn't look like there's any other support available.

So AIR's NativeWindow seems to screw something up in either URLLoaders or BitmapData. I'm guessing URLLoaders.
It's weird, when I load an image into BMD in the main window is displays fine, but when I load that same image with the same code in a different window it comes up as an empty BMD.

However, if I load the BMD in the main window and then use it in a different window that's also fine.

What's even stranger is there's no errors that I can find, so the file being misplaced isn't in question (even checked the path)


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-08 03:11:06 (edited 2015-01-08 03:24:34)


False alarm, it's something to do with either Starling or my code.
I just don't know what or where.

Edit: It's looking more like Starling's not liking creating new textures from BMD with more than one instance of it running.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-08 03:27:32


Triple-post to finish it off, I had previously ruled out Starling's texture creation because I was loading in BMD and creating textures from that.

Fuck me, I have no idea what's going on.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-11 11:44:20


Fun with pixels

I'm getting there.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-12 12:24:35


"Do you guys have Bluetooth?"
"Bluteooth? A Blutooth keyboard?"
"No, you idiot, the thing you put on your ear?"
"Oh, a Bluetooth earpiece? Microphone or just speaker?"
"Whatever, forget it."

Some people are too stupid to own "a Bluetooth" apparently.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-12 17:02:25


At 1/12/15 12:24 PM, egg82 wrote: "Do you guys have Bluetooth?"
"Bluteooth? A Blutooth keyboard?"
"No, you idiot, the thing you put on your ear?"
"Oh, a Bluetooth earpiece? Microphone or just speaker?"
"Whatever, forget it."

Some people are too stupid to own "a Bluetooth" apparently.

Get used to it. Technology is being dumbed down to the point where complete morons are not only the target audience, but actually driving the product. For reference of how this makes everything worse for smart people see windows 8 and anything apple have done in the past decade


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2015-01-12 17:13:52 (edited 2015-01-12 17:15:54)


At 1/12/15 05:02 PM, Rustygames wrote: Get used to it. Technology is being dumbed down to the point where complete morons are not only the target audience, but actually driving the product. For reference of how this makes everything worse for smart people see windows 8 and anything apple have done in the past decade

Oh, I'm sure, but shouldn't someone at least have enough common sense to not call the person throwing around words and phrases you've never heard an idiot? I mean, if I were talking about something and the person was just tossing out things I don't know about I would go "whoa, wait, what is that?" and not "you idiot"

Edit: I say this and then realize I work in a place that literally targets people that don't know how to use the internet and find what we sell for cheap. I'll give the company credit, though, they have some of the most fantastic customer service I've had the pleasure of talking to on the phone.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-14 15:05:07 (edited 2015-01-14 15:08:27)


How do you guys think collisions with (pie) slices of a circle should work against rectangles and circles? Any fancy methods or is it just line intersections and angle calculations?

Edit: AABB rects, not rotated.

Response to The Flash 'Reg' Lounge 2015-01-14 16:54:31


At 1/14/15 03:05 PM, MSGhero wrote: How do you guys think collisions with (pie) slices of a circle should work against rectangles and circles? Any fancy methods or is it just line intersections and angle calculations?

Raycasting, because I dunno, why not?

you could effectively make a pie slice with a circle and a triangle together.

Or just use Box2D or nape. Eh.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-14 18:05:17 (edited 2015-01-14 18:08:01)


At 1/14/15 04:54 PM, egg82 wrote: Raycasting, because I dunno, why not?

HaxePls.

Or just use Box2D or nape. Eh.

It's not worth adding a physics engine for something this basic. I could approximate it as a triangle but I'm unsure of the loss of accuracy. I think finding the angle between their centers and seeing if it lies between the lines of the slice might work...no, I can already see a situation where it doesn't. Sigh

If it intersects the sides of the slice, that's pretty easy. It's the actually circular part of the slice that I'm having trouble thinking of.

Response to The Flash 'Reg' Lounge 2015-01-14 18:16:20


At 1/14/15 06:05 PM, MSGhero wrote: HaxePls.

I was ridiculously easy to write since the concept is so simple. You can port it no problem. Seriously, it took me all of like 20 mins and most of that was the drawing/debug parts.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-14 19:43:54


At 1/14/15 06:16 PM, egg82 wrote:
At 1/14/15 06:05 PM, MSGhero wrote: HaxePls.
I was ridiculously easy to write since the concept is so simple. You can port it no problem. Seriously, it took me all of like 20 mins and most of that was the drawing/debug parts.

Oh my lord is that that stupid, faster Math.abs that's slightly better than a ternary?

Response to The Flash 'Reg' Lounge 2015-01-14 20:07:24 (edited 2015-01-14 20:14:05)


At 1/14/15 07:43 PM, MSGhero wrote: Oh my lord is that that stupid, faster Math.abs that's slightly better than a ternary?

Probably.
I dunno, a good chunk of that code ranges from a translation to almost a direct copy of other people's code. I never copy/paste, but I do get pretty damn close sometimes.

I experimented with a FastMath class, I'm not entirely sure if I really want to keep it or not. Is that what you're referring to?

Side-note, I'm also experimenting with an implementation of this, though I honestly have no idea how much of an improvement, if any, it has over just using a Dictionary.

Lot of experimental stuff in the library yet. Also stuff that's half-finished or just broken entirely. Oh, don't use the Pixel-Perfect collision detection yet.

Another edit: There's a lot of stuff regarding speed and optimization I just simply don't seem to get. It's a huge topic with a lot of heated debate and I keep hearing things that conflict so I have zero idea what I'm doing when it comes to stuff like that. For the most part I'm just following along with people that at least seem to know what their doing.

In short, don't expect to see code that's amazingly optimized because fuck if I know how to even begin doing that. If you're that bothered you can probably fix it yourself.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-18 14:16:22


Response to The Flash 'Reg' Lounge 2015-01-18 19:01:24


At 1/18/15 02:16 PM, MSGhero wrote: Didn't look at the link but mac/lin FD: https://www.codeweavers.com/compatibility/browse/name/?app_id=4890

Saw that in the changelog when I updated. This makes me very happy.
The world of Flash and haxe will be dominated by FD whether people like it or not.

Thankfully, I like it.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-18 19:30:07


On a side-note, I'm not sure how many of you know about the Google Nexus range of smartphones and tablets, but I have the Nexus 5.

So for the last few years they've named their products according to size, however they also seem to go according to "newness" - meaning Apple has their stuff (iphone 4, 5, 6, etc) as a numerical system where higher = better (or newer)
Google has also followed this to an extent, with the Nexus 5 being newer than the Nexus 4, and the 6 being newer then the 5, etc.

Problem is, the Nexus 6 is out and the Nexus 7 already exists as a tablet.
So... Where do they go from here, do you think?

My guess is they'll come out with a "Nexus v2" or similar, either releasing a new 4, 5, and 6 inch in one year or releasing the 4-inch next year, the 5-inch the year after, etc.

I dunno. Just a curiosity that won't be sated until 2016 so I thought I'd ask opinions now.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-19 02:13:06 (edited 2015-01-19 02:20:08)


(texture.base as flash.display3D.textures.Texture).uploadFromBitmapData(master); Error: Access of possibly undefined property flash.

WHY?!?! :(

Edit: This works

import starling.textures.Texture; import flash.display3D.textures.Texture; ... starling.textures.Texture.fromBitmapData(master, RegOptions.video.mipmap, true) ... (texture.base as flash.display3D.textures.Texture).uploadFromBitmapData(master);

because fuck you, that's why.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-19 16:17:35


At 1/19/15 02:13 AM, egg82 wrote: WHY?!?! :(

The compiler has no way of knowing hat flash.display3D.textures.Texture is attempting to reference the class Texture, so it can only do the logical thing and assume that you are referencing an object named flash, which does not exist and thus produces the error you are getting.

The only way it could possinly know that's a reference to a class and not an object named flash would be to treat all objects named flash as references to the standard/core library, which would then make it impossible to name objects flash, which would be stupid.

The code in your edit works because the class has been imported so the compiler knows that that is indeed referencing the class Texture, since it can simply keep track of data given with the "import" keyword, and not an object named flash.

Ultimately this is just an example of why you should avoid using two classes with the same name in one class when possible (not that it looks it would be for you).

Response to The Flash 'Reg' Lounge 2015-01-19 17:17:08


At 1/19/15 04:17 PM, Diki wrote: Ultimately this is just an example of why you should avoid using two classes with the same name in one class when possible (not that it looks it would be for you).

You would think the compiler would know that it's a reference when casting (like I did above) since it knows when you're using it in a variable.
In other words, I find it silly that this works.

private function onEnterFrame(e:flash.events.Event):void {

When this doesn't.

trace((e as flash.events.Event).target);

And yeah, Starling's main issue is it emulates regular AS3 so well that using them both together is quite difficult.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-19 17:24:05


At 1/19/15 05:17 PM, egg82 wrote: You would think the compiler would know that it's a reference when casting (like I did above) since it knows when you're using it in a variable.

The as operator can take an object as an operand whereas the : operator cannot, so without the class actually imported it just sees you attempting to reference an object.

In other words, you can do this:

var butts:Sprite = new Sprite; var foo:Class = DisplayObject; (butts as foo);

but you cannot do this:

var butts:Sprite = new Sprite; var foo:Class = DisplayObject; var bar:foo = butts;

The : operator can only take a class literal so the compiler can easily figure out that what is given to it is a class, and if the class given has not already been imported then it will do that for you.

Response to The Flash 'Reg' Lounge 2015-01-19 17:26:46


At 1/19/15 05:24 PM, Diki wrote: The : operator can only take a class literal so the compiler can easily figure out that what is given to it is a class, and if the class given has not already been imported then it will do that for you.

Huh, did not know this.
Alright, makes sense, then.

The more you know!


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-21 04:08:28


Seriously considering throwing down a little less than $200 for a new keyboard. My G15 is doing alright, but I upgraded all my other peripherals and the keyboard feels slightly out-of-place now.
If I do upgrade, I'll give this one to my girlfriend who I know will appreciate it and enjoy it as much as I do.

So, I have a lot of love for this keyboard. It feels good, has an LCD screen on it which is massively helpful, macro keys which are also massively helpful, backlit which is nice, and USB ports on the back which are once again massively helpful.
The rest of the features I don't use often enough to care about.

So I looked at some keyboards and I'm completely torn between the G910 and the BlackWidow Chroma Stealth

On the one hand, I really REALLY love the LCD display from the G15 and plugging a smartphone into my keyboard sounds like an alright replacement since I now have one. Then there's the USB which I heard the Blackwidow has but haven't seen evidence as of yet; whereas the G910 certainly has at least one, if not two or three.

On the other hand, I hear Blackwidow's software is slightly better because you can switch color profiles for different games (which is a big duh, dunno why that isn't in the G910) and the design is clearly better because it uses all of its retail (I don't have a large desk, my two monitors barely fit) and it has a better feel to it.

I dunno, I'm completely split down the middle so I figured I'd try to collect some thoughts since I'll probably end up buying one of the two tomorrow. I'll sleep on it first ($200 isn't exactly cheap for a keyboard) - but yeah, I'll most likely end up picking one of them up.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-21 04:18:20 (edited 2015-01-21 04:19:40)


Second year, first sem starting soon and I decided to waste $ on a desktop (never used one since 2004 Athlon XPs) since I've been using an old i5 2410m laptop I bought back in Dec 2013 for video editing, gaming and programming (I think I posted about it in this same thread).

It's an i5 4460 @ 3.2ghz which should match the 2500k at stock speeds and the FX 8350 clocked @ 4.7ghz w/ rendering loads (it surpasses it in gaming though). Now I just need a good graphics card, planning on waiting it out for the 960 or just going for a 750 Ti - AMD is not an option because power saving even if that means another $50 a year.

Decided to render all train and bus stops in my City using GTFS data and was not expecting it to use 8gb of RAM. That's the data being loaded without any modification, all file handles closed, no rendering and all maps trimmed to exact size!

EDIT(????!): So you can actually see, http://i.imgur.com/XneiGAJ.png

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2015-01-21 13:20:54


You're gonna want 32GB of the ripjaws (1333 or 1600) for RAM
Two MX100 SSDs (raid0) for disk drives
Two GTX 980s in SLI because they easily beat both the 960 and 750 Ti

If you're looking at gaming or rendering, you're going to need to throw down just a bit more.
Thankfully, you're just about done with a completely monster build (as am I)


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-21 17:37:26


At 1/13/15 07:09 AM, CodeCrunch wrote: Gosh what a horrible future, accessible technology? bah give me back my living room sized calculator that requires a degree to operate am I right? How dare the unwashed masses try and assimilate with their intellectual superiors! Why I'm so troubled from the weight of a mind such as my own I may weave my complaint into an aphorism to be hidden in my next paper on Dante's influence on Dostoyevsky's prosaic style not -mind you- before finishing my current paper on the applications of fourier transforms, assuming of course no lowly mouth-breathers bump into me on my way to the academy and knock my copies of Das Kapital and The Iliad out of my hand and get my specially brewed coffee onto my valedictorian sweater vest, Feynman give me strength to deal with these subhumans.

I think you've exaggerated and misunderstood the problem there.
Technology should definitely be accessible and there should be dumbed down versions of things for casual users. But that doesn't mean we should stop making stuff for people who can be bothered to learn a little more about what they're using.
Just because we invented self driving electric cars which anyone can use, doesn't mean we have to stop making manual gearbox petrol cars for people who want to learn to race.
My problem isn't with lazy people using technology, its that they are driving the field and ruining it. For an example, again, please see windows 8


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2015-01-21 18:21:11


At 1/21/15 05:37 PM, Rustygames wrote:
At 1/13/15 07:09 AM, CodeCrunch wrote: Feynman give me strength to deal with these subhumans.
I think you've exaggerated and misunderstood the problem there.

He exaggerated a lot. I still laugh when I read it and I've read it quite a few times.

For an example, again, please see windows 8

Waiting for 10 before I upgrade my current setup. Also waiting for money. Egg's recommendations make my wallet sad, and for some reason that originally autocorrected to Sadpanda.

Response to The Flash 'Reg' Lounge 2015-01-21 19:01:06


At 1/21/15 01:20 PM, egg82 wrote: You're gonna want 32GB of the ripjaws (1333 or 1600) for RAM
Two MX100 SSDs (raid0) for disk drives
Two GTX 980s in SLI because they easily beat both the 960 and 750 Ti

If you're looking at gaming or rendering, you're going to need to throw down just a bit more.
Thankfully, you're just about done with a completely monster build (as am I)

What you're describing is a colossal waste of money, especially for playing games. Even 16GB of RAM would be massive overkill, let alone 32GB; having two SSDs that small doesn't make sense since an SSD will only improve read/write speeds, most notably in the loading phase of an application and I've never heard of someone needing 500GB for applications (it would make a little bit of sense for games but very few games have long enough load times to justify that cost); and having two GTX 980s is absurd, and will be out-dated in less than a year.

I highly recommend not attempting to future-proof your computer, especially not the video card, as that won't work and it will take very little time for your computer to be out-dated. You don't need to spend nearly $2,000.00 on a computer; it's just a waste of money. Just the video cards, RAM and drives there cost nearly twice what my entire computer cost when I bought it, and it could handle modern games, at the time, just fine (my computer, every part included, was a little over $1,000.00).

Ultimately it's your money and you can do whatever you want with it, but if you have that much disposable income to throw around then you should instead buy something that's quality will last, such as a pair of nice monitors or a surround sound stereo system.

Response to The Flash 'Reg' Lounge 2015-01-21 20:12:08


At 1/21/15 06:21 PM, MSGhero wrote: Waiting for 10 before I upgrade my current setup. Also waiting for money. Egg's recommendations make my wallet sad, and for some reason that originally autocorrected to Sadpanda.

I think we skipped a number, here.
I'll wait for 10 to actually be good and have support behind it before i upgrade. Was the same with XP and 7, wait a year or so and there'll be programs that actually support the OS instead of "I dunno, try it and see?"

My recommendations make my wallet sad, but myself very happy.
The benefits outweigh the costs, I think.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-01-21 20:21:31 (edited 2015-01-21 20:21:44)


At 1/21/15 08:12 PM, egg82 wrote: I think we skipped a number, here.

Supposedly Microsoft skipped Windows 9 and went straight to 10 because some software performs checks for Windows 95/98 by just looking for "Windows 9", which would cause problems if it thought Windows 9 was one of those two.

Response to The Flash 'Reg' Lounge 2015-01-21 20:23:29


At 1/21/15 07:01 PM, Diki wrote: What you're describing is a colossal waste of money

Correction: A FANTASTIC colossal waste of money!
You can't tell me you wouldn't want to own the world's most powerful consumer gaming rig for a while.

Even 16GB of RAM would be massive overkill, let alone 32GB;

I disagree, depending on what you use it for. Any sort of video rendering, 32GB might be enough.
Games, 32GB is slightly overkill, but screw it. Pay the extra $100 and get twice the RAM. Might as well go full Rambo at that point. RAM's cheap.
As far as the Ripjaws, they all come with a no-questions-asked lifetime replacement warranty and on top of that are by far the best in the market. Totally worth $60 per stick.

having two SSDs that small doesn't make sense since an SSD will only improve read/write speeds, most notably in the loading phase of an application and I've never heard of someone needing 500GB for applications (it would make a little bit of sense for games but very few games have long enough load times to justify that cost);

I was thinking 500GB for the OS, then maybe a 250GB-500GB for games and 1TB HDD for apps, movies, pictures, etc.
That would be a hella fast PC

and having two GTX 980s is absurd, and will be out-dated in less than a year.

They would be outdated as far as "this one's slightly better" in a year or two, but wouldn't actually be unable to run modern games until 5-10 years down the line. Especially if you have two.

You don't need to spend nearly $2,000.00 on a computer; it's just a waste of money.

No, you certainly do not need to spend $2000 on a PC, but my god does that money make a difference.
I had a cheaper $800 PC that worked pretty well, so if you're looking for cheap then you can get something like that.

Ultimately it's your money and you can do whatever you want with it, but if you have that much disposable income to throw around then you should instead buy something that's quality will last, such as a pair of nice monitors or a surround sound stereo system.

Pair of nice headphones. Honestly I don't see the appeal of speakers over headphones, the audio quality is very clearly worse with speakers. Even nice ones.
Also, yeah, I agree with the monitors. 144Hz 26" or bust.

My dream PC is so overkill it's hilarious. Which is why I'm spending all my time and money building it.
Also because I would never have to question my specs again. That, too.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature