Flash

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

wearymemory
Chaos Rift Junior
Chaos Rift Junior
Posts: 209
Joined: Thu Feb 12, 2009 8:46 pm

Re: Flash

Post by wearymemory »

BlueMonkey5 wrote:whats AS3?
AS3
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Flash

Post by MadPumpkin »

Okay first, to settle this pointless question that keeps flashing around, the reason why JavaScript has Java in the name is because Java script can directly "communicate" with Java aps

yes AS3, very good idea by the way, lol i do know a lot of it but i am not "fluent"
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
wearymemory
Chaos Rift Junior
Chaos Rift Junior
Posts: 209
Joined: Thu Feb 12, 2009 8:46 pm

Re: Flash

Post by wearymemory »

MadPumpkin wrote:Okay first, to settle this pointless question that keeps flashing around, the reason why JavaScript has Java in the name is because Java script can directly "communicate" with Java aps

yes AS3, very good idea by the way, lol i do know a lot of it but i am not "fluent"
What a gruesome overstatement of JavaScript's capabilities. Excuse me while I go chug a bottle of Pepto Bismol.
User avatar
wtetzner
Chaos Rift Regular
Chaos Rift Regular
Posts: 159
Joined: Wed Feb 18, 2009 6:43 pm
Current Project: waterbear, GBA game + editor
Favorite Gaming Platforms: Game Boy Advance
Programming Language of Choice: OCaml
Location: TX
Contact:

Re: Flash

Post by wtetzner »

wearymemory wrote:
MadPumpkin wrote:Okay first, to settle this pointless question that keeps flashing around, the reason why JavaScript has Java in the name is because Java script can directly "communicate" with Java aps

yes AS3, very good idea by the way, lol i do know a lot of it but i am not "fluent"
What a gruesome overstatement of JavaScript's capabilities. Excuse me while I go chug a bottle of Pepto Bismol.
Actually, JavaScript is very capable. It's designed to be an embedded language, much like Lua, although it can be a very powerful language on it's own. If you think it's not very capable, you don't know it very well.

Also, JavaScript doesn't have Java in it's name because it can "communicate" with Java apps. It was purely a marketing decision. Originally, Netscape was going to embed a language based on Scheme into their browser, but Java was being released around that time, so they changed the syntax to look more like Java, and put Java in the name, hoping it would help make it more popular. JavaScript is basically Scheme with a Java-like syntax.
The novice realizes that the difference between code and data is trivial. The expert realizes that all code is data. And the true master realizes that all data is code.
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Flash

Post by LeonBlade »

JavaScript is pretty powerful when it comes to HTML, otherwise it's not that great...
However, the fact that JavaScript and Java both have... Java in them doesn't make them the same or associated or anything.

As for Flash, I love Flash!
I know AS2 and AS3.

ActionScript reminds me of JavaScript a little bit... but that's only when your developing in the Flash IDE, when you start writing document classes for your Flash Project, it starts to get more like Java, the whole idea or writing your includes and packages and what not...
There's no place like ~/
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Flash

Post by RyanPridgeon »

LeonBlade... I swear you're familiar from somewhere.

By any chance are you a reg on the NG Flash BBS?
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
BlueMonkey5
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 86
Joined: Fri Feb 20, 2009 12:54 am

Re: Flash

Post by BlueMonkey5 »

i still dont know what AS2 or AS3 are! i'll just wiki it :D as for flash, yea it all sounds great (i have to get a little finicky here) BUT Flash games just have that certain "look" if you know what i mean- i can't explain it but you can just point out a Flash game from the graphics, right? i'm very particular with the look of graphics because i am an artist, and like to have my own certain style and not the typical Flash game look. basically, it would be nice if we can use GIMP or GraphicsGale for the sprite editors along with Flash to have more flexibility, and not just the built-in sprite/ graphics editor. I'm going to hope that it's possible. I'll let you guys know what i find out.
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Flash

Post by LeonBlade »

RyanPridgeon wrote:LeonBlade... I swear you're familiar from somewhere.

By any chance are you a reg on the NG Flash BBS?
NG Flash BBS?
Umm... not sure what that is lol...

Okay I looked it up...
I may be registered on New Grounds, but I never go there...
There's no place like ~/
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Flash

Post by dandymcgee »

BlueMonkey5 wrote:i still dont know what AS2 or AS3 are!
Apparently you missed wearymemory's reply:
wearymemory wrote:
BlueMonkey5 wrote:whats AS3?
AS3
AS = ActionScript
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Flash

Post by LeonBlade »

ActionScript 2 and 3 are the same thing really...
But at the same time, they are completely different.

All the same keywords and everything, but the way you write code is completely different.
Say you want to respond to a mouse click event over a Movie Clip.

In ActionScript 2, it was kinda sloppy and you could get around doing it different ways and it wasn't that great...

Code: Select all

myMovieClip_mc.onPress = function() 
{
     // do shit
}
In ActionScript 3, it feels more object oriented and makes more sense, however there is a few more lines you have to write but who cares...

Code: Select all

myMovieClip.addEventListener(MouseEvent.MOUSE_DOWN, clickMe);

function clickMe(e:MouseEvent):void
{
     // do shit
}
I like how AS3 is because it feels more organized, but it was a weird transition to make when I went from AS2 to AS3, but in the end it was worth it...
There are some other minor changes like removing the _ in the properties like...

Code: Select all

myMovieClip_mc._x = 9000;
Now looks like this...

Code: Select all

myMovieClip_mc.x = 9000;
And alpha changed from 1-100 to 0-1 like it should be...

Code: Select all

myMovieClip_mc._alpha = 50;
[code]

Now it looks like this...
[code]
myMovieClip_mc.alpha = 0.5;
And of course a lot more changes but you get the idea.
You should definitely check out Flash if you want to learn more about it.
It's easy to pick up and really fun. It appeals to all people really...
Designers, Programmers, Audio, Graphics, etc...
You can grab a CS4 Demo from Adobe's website.
There's no place like ~/
User avatar
BlueMonkey5
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 86
Joined: Fri Feb 20, 2009 12:54 am

Re: Flash

Post by BlueMonkey5 »

Does anyone know a good book for someone just beginning Flash game development? Rada gave me some very good online resources (if anyone wants to know i can post them) but since i'm away from home most of the time, I like to have a good book to read out on the road. Not surprisingly, there's alot of them on Amazon.

There are books about flash game development and then there are books directly about actionscript 3. Any recomendations?

I have read about AS3 and its abilities of OOP, which was not available in its previous versions, and am finding that AS3 (developed by Adobe and very different than the first two which were developed by Macromedia) has really just went full cirlcle and become like the other languages such as Javascript and C++. Actionscript started off with the premis of being linear therefor being simpler from what I understand. But when people started to realize the limitations of this, Adoble developed AS3 which has brought the language to the complexity level of the others. This is what I am finding so far from the books I'm checking out online. I think it's a good idea to get a book about Flash for game dev and a book about actionscript3 seperatley.
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Flash

Post by RyanPridgeon »

Become familiar with the environment first, and then get something like the latest Flash/Actionscript Bible.

Personally I grew up with just the F1 button :P
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Flash

Post by eatcomics »

BlueMonkey5 wrote:i still dont know what AS2 or AS3 are! i'll just wiki it :D as for flash, yea it all sounds great (i have to get a little finicky here) BUT Flash games just have that certain "look" if you know what i mean- i can't explain it but you can just point out a Flash game from the graphics, right? i'm very particular with the look of graphics because i am an artist, and like to have my own certain style and not the typical Flash game look. basically, it would be nice if we can use GIMP or GraphicsGale for the sprite editors along with Flash to have more flexibility, and not just the built-in sprite/ graphics editor. I'm going to hope that it's possible. I'll let you guys know what i find out.
ACTIONSCRIPT 2 AND 3 man....
Image
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Flash

Post by RyanPridgeon »

It's also worth pointing out that Flash uses vector graphics, and importing bitmap graphics from other programs is usually a bad idea because it significantly decreases performance.

If you don't like it, don't use Flash :P
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
Rada
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 13
Joined: Tue Mar 24, 2009 11:46 am
Location: New Haven, CT
Contact:

Re: Flash

Post by Rada »

RyanPridgeon wrote:It's also worth pointing out that Flash uses vector graphics, and importing bitmap graphics from other programs is usually a bad idea because it significantly decreases performance.

If you don't like it, don't use Flash :P
this is not necessarily true. Flash has classes to manage bitmaps. Bitmap and BitmapData. If you aren't using best practices and just keep throwing things on the display list without any garbage collection, then yes, you will see performance degradation. The same could be said for C if you aren't optimizing your code, it is going to run like garbage.
"When the individual becomes aware of the part he can play in directing his own life --and when he accepts the responsibility that goes with the freedom of this inner authority -- then he is better able to sight his course of action with more accuracy." ~ Virginia M. Axline.
Post Reply