Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
1–10 of 27 posts
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#2Qs: Can your application if written in Flex;
1) can it open/close files, in Flex?
2) FTP stuff across, open network connections?
3) can it work offline?
If ActionScript is simply a scripting language in the browser, then I doubt it can do the above. So why the hype? - Anil
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#3Even Bruce Eckel who wrote the popular Java books, "Thinking in Java", has switched sides and is backing Flex. Qs: Can your application if written in Flex; 1) can it open/close files, in Flex? 2) FTP stuff across, open network connections? 3) can it work offline? If ActionScript is simply a scripting language in the browser, then I doubt it can do the above. So why the hype? - Anil
The answer to the initial question, "Is Actionscript 3 a 'real' programming language?" depends entirely on who you're asking.
1) Flex application run in a sandbox, much as Java applets do. Locally, and currently, Flex applications can open files for parsing, but can not write to them. This is remedied with Apollo which is in alpha. Apollo is essentially a Flex application wrapper that provides a file system API, among other things.
2) This really becomes a question of whether or not someone is inclined enough to write the necessary Actionscript 3 as it supports binary sockets and byte arrays currently. Someone has already created a ZIP library.
3) Again, when Apollo launches, then yes. Although, a Flex application can run offline should it not require file system access, and even then files can be opened, just not written to.
Actionscript runs in a VM just as Java does, which is irrelevant given that the questions you're asking are entirely arbitrary. The answers to which only tangentially, and tenuously, provide support in defining whether or not a programming language is 'real'.
In the interests of providing my own answer... I would say no, it's not quite a 'real' programming language.
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#4Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#5Even Bruce Eckel who wrote the popular Java books, "Thinking in Java", has switched sides and is backing Flex. Qs: Can your application if written in Flex; 1) can it open/close files, in Flex? 2) FTP stuff across, open network connections? 3) can it work offline? If ActionScript is simply a scripting language in the browser, then I doubt it can do the above. So why the hype? - Anil
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#6ECMAScript (the standard that action script is built upon) is turing complete, therefore Actionscript is a real language.
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#7Even Bruce Eckel who wrote the popular Java books, "Thinking in Java", has switched sides and is backing Flex. Qs: Can your application if written in Flex; 1) can it open/close files, in Flex? 2) FTP stuff across, open network connections? 3) can it work offline? If ActionScript is simply a scripting language in the browser, then I doubt it can do the above. So why the hype? - Anil
The hype is because you can possibly simplify rich websites by fitting your web content into the standardized widgets that Flex provides you, thus speeding up development a lot.
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#8Earlier quoted context omitted.
The hype is because you can possibly simplify rich websites by fitting your web content into the standardized widgets that Flex provides you, thus speeding up development a lot.
I think flex will be the perfect platform for mobile devices where the offline/online is needed more.
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#9Python, Ruby, Haskell98, ocaml, etc. Consider those your languages that set the bar right now. Java is 'the new' C.
Re: Is Flex/Actionscript a real programming language? Can it do what Java does? (work offline, write files, networking etc.)
#10For updates on whats going on in actionscript community[or Adobe technologies in general], subscribe to Adobe's MXNA . Some of the finest Actionscript coders can be found at flashcoders pipermail list. [chattyfig.figleaf.com/mailman/private/flashcoders/]
For an opensource perspective on Flash and Actionscript visit: osflash.org