How should a programmer go about getting started with Flash/Flex/ActionScript?

What is the shortest path between zero (ie no flash related development software on my computer or information about where to obtain it or get started) to running a "hello world" ActionScript?

I'm hoping for an answer that gives step by step instructions about exactly what software is needed to get started, an example of some "hello world" code, and instructions for compiling and running the code.

I've spent more time than I think should be necessary researching this question and not found much information. Hopefully this question will be found by programmers like me who want to get started with Flash/Flex/ActionScript (After my morning of researching I still don't even know what terminology to use so I'll just throw it all out there).

ActionScript tutorials I've found are focused on programming concepts, ie logic, branching, OOP, etc, and some even have code examples to download, but not a single one I've found explains how to compile and run the code. They all seem to assume you have an IDE standing by but no knowledge of programming, exactly the opposite of the position I'm in.

Here are the most related SO questions I've found:
http://stackoverflow.com/questions/59083/what-is-adobe-flex-is-it-just-flash-ii
http://stackoverflow.com/questions/554899/getting-started-with-flex-3-ui-actionscript-programming
http://stackoverflow.com/questions/2123105/how-to-learn-flex

-------------Problems Reply------------

If you're a programmer, go down the Flex route. Flex is completely free to use and you can get a Hello World SWF in no time. You can use the FlexBuilder demo or the freely available but sometimes less helpful FlashDevelop. (Actually I think the only problem with FlashDevelop is it doesn't have a good debugger, or didn't, last time I checked).

That said, I would strongly advise against using Flex, Flash, or any Adobe product really, because in my experience Flex is a horrible API and ActionScript is a horrible language. Flash is still the best platform for RIA just because of its penetration, so if AJAX can't solve your problems by all means learn Flex. Certainly it's not impossible to work with. But Flex is like the Java library re-interpreted by a team of people who took one Java class in high school.

Anyway,

1) Get the FlexBuilder demo from Adobe: http://www.adobe.com/products/flex/flexdownloads/
I'm pretty confident it comes with the Flex SDK.

2) Start a new Flex project.

3) A basic MXML program is already written. Add <mx:Label text="Hello world" /> in the <mx:Application> tag

4) Run->Run YourProjectNameHere

5) Read the horrible Adobe documentation and Flex API reference.

The shortest path from zero to displaying a "Hello World" is probably the Flash IDE. Simply start the program up, enter something in the first keyframe like

trace("Hello World");

on the timeline and then click publish.

Of course you have to pay for the Flash IDE and if your just doing pure programming and not drawing complicated animations then there are free alternatives. The one that I and a few others keep pushing is HaXe. A free opensource language based on AS3 that can then be compiled and target to different platforms including Flash SWF. I use the free program FlashDevelop for coding and which supports HaXe.

An example (taken from the http://haxe.org/doc/start/flash website):

Define/create this class in a file named Test.hx

class Test {
static function main() {
trace("Hello World !");
}
}

Create the file compile.hxml in the same directory with the following content.

-swf9 test.swf -main Test

Execute the compile.hxml, in FlashDevelop just right click on it, and you are done

That is all there is to it :)

I would recommend you to use FlashDevelop + Flex SDK.

It is free, easy to use and nice for small and big projects.

Simple answer to your question:

I learned everything I needed to know to get started programming in Flash at http://www.gotoandlearn.com

Most of his free 20-minute video tutorials use the Flash IDE, but you can download a free trial that'll work for a month if you are just starting out. The first half or so examples he has are in AS2, so I'd disregard those unless you know you'll have to work on older projects - start with the "Using the Document Class" video. It's funny because he goes from a really shitty coder showing basic examples to a pretty advanced developer with nuanced tutorials. Watch his stuff and you'll get a good sense eventually of how this stuff works in Flash.

Another option that you have available to you is Adobe's "Flex in a Week" series - if you are more into programming and understand OOP concepts then maybe you'd rather not mess around in the Flash IDE. Jump right into Flex, which you can download for free for 60 days (or forever free if you're a student or unemployed) and then watch the videos here, they'll catch you up to speed:

http://www.adobe.com/devnet/flex/videotraining/

Between those two links you should have enough free video training to qualify you to do work in the field. Use what you learn there and practice and you'll be good at it in no time.

Cheers, myk

This should give a good start on learning this technologies:

  1. Adobe Flash Tutorial
  2. Adobe Flex Video Training
  3. Adobe ActionScript Tutorial

also, I know that adam flater and a friend of his were writing a blog around the time that flex3 was released called 'learning flex from scratch.' It might be a good starting point.

There's a short Hello World tutorial on Senocular's blog, which deals with compiling AS3 code... might be a useful starting-point?

http://www.senocular.com/flash/tutorials/as3withmxmlc/

Category:flex Views:1 Time:2010-03-21

Related post

  • three or four programmes on my computer the screen flashes and I get a signal that the program is [not responding] why? and help! 2013-10-15

    In three or four programmes on my computer the screen flashes and I get a signal that the program is [not responding] why? and please help! The worst one is the latest Google Earth for WIndows 7 32 bit, but I have found that a program I have had on t

  • What does this this ActionScript syntax mean? ( Syntax for returning Objects Inline ) 2008-12-17

    I am a Java programmer and need to work on a Flex/ActionScript project right now. I got an example of using ITreeDataDesriptor from Flex 3 Cookbook, but there is one line of actionscript code that's hard for me to understand. I appreciate if someone

  • Flash vs. Flex vs. Actionscript for data visualization 2010-10-15

    I'm trying to learn how to build interactive data visualizations, and I think I want to go the Flash/Flex/ActionScript route instead of using Processing. The problem is, I've never understood what the difference between all three is, so I don't know

  • Tips, Guides and/or Tutorials on writing a Windows desktop app for a PHP programmer by trade 2008-09-26

    Yup, long title. I've been programming in PHP for the last 6 years or so for work and personal projects, but I've got an idea for a desktop app (which incidentally, uses a web REST api). I'm debating on how to approach this - I've got some experience

  • Vista won't run open/run programmes and certain files, especially if administrator auth. required 2014-03-11

    Hi, I'v got a toshiba laptop on vista x32. In the last week it's started doing a host of strange things that are pretty annoying. Firstly, when connected to both ethernet or wireless networks, explorer and chrome open and run fine but the network ico

  • What are the (technical) pros and cons of Flash vs AJAX/JS? 2008-09-09

    We provide a web application with a frontend completely developed in Adobe Flash. When we chose Flash 6 years ago, we did so for its large number of features for user interaction, like dragging stuff, opening and closing menus, tree navigation elemen

  • What should I learn next after VB and C# 2008-09-15

    I am currently learning VB and C# and have been for the last two and a bit years but I would really like to broaden my programming skills a little bit. I was just wondering what people would recommend learning? I have looked into ruby a little bit bu

  • Best Resources for Learning AS3 2008-09-18

    Let me star off by saying I am by NO means a designer. I'm interested in learning AS3, and was wondering what some of the best books/resources there are out there for an absolute beginner. --------------Solutions------------- For a very well done and

  • Actionscript 2 functions 2008-09-26

    I'm an experienced programmer but just starting out with Flash/Actionscript. I'm working on a project that for certain reasons requires me to use Actionscript 2 rather than 3. When I run the following (I just put it in frame one of a new flash projec

  • Browserless JavaScript 2009-01-25

    I talked to the Team Lead at Snap-On Tools once, and she told they used an "implementation of JavaScript" for their server-side coding. It's been a while, but I was thinking, WTF is she talking about? Are there interpreters for JavaScript besides tho

  • What is so evil about a Flash based website? 2009-02-04

    I have the feeling that Flash-based ( or Silverlight-based) websites are generally frowned upon, except when you are creating games or multimedia-content rich applications. Why this is so? --------------Solutions------------- Flash is infamous for it

  • How do you keep all your languages straight? 2009-02-04

    I think I'm going a little crazy. Right now, I'm working with the following languages (I was just doing a mental inventory): C++ - our game engine Assembler - low level debugging and a few co-processor specific routines Lua - our game engine scriptin

  • Is ColdFusion a good choice for web development? 2009-02-12

    I've looked into the benefits of PHP, ASP.NET, Python, Rails, etc. These technologies seem very popular among folks here, but I don't see too many ColdFusion questions. Is ColdFusion a good solution for working with popular JavaScript frameworks such

  • Scripting and Programming 2009-03-01

    This question already has an answer here: When is a language considered a scripting language? [closed] 41 answers Where does Scripting ends and Programming begins? ActionScript 3 and JavaScript/JScript are so different... --------------Solutions-----

  • Should I learn Silverlight or JavaScript/JQuery/CSS/HTML? 2009-03-09

    I'm a seasoned desktop developer working in C++/C#/WinForms/etc. Up until this point, I have done very little in terms of web development. I've come to the point in my career where I feel like I should start doing web development - not to replace my

  • How to deal with Number precision in Actionscript? 2009-03-11

    I have BigDecimal objects serialized with BlazeDS to Actionscript. Once they hit Actionscript as Number objects, they have values like: 140475.32 turns into 140475.31999999999998 How do I deal with this? The problem is that if I use a NumberFormatter

  • Which JavaScript graphics library has the best performance? 2009-03-23

    I'm doing some research for a JavaScript project where the performance of drawing simple primitives (i.e. lines) is by far the top priority. The answers to this question provide a great list of JS graphics libraries. While I realize that the choice o

  • Debugging AxShockwaveFlash 2009-04-07

    I'm building a C# app which contains an interactive Flash control via AxShockwaveFlash. One of the challenges is that while I am using the Eclipse-based Flex Builder to develop the Flash controls, it only seems to give me the ability to debug the Fla

  • Is there a good argument for combining Flex and Rails? 2009-04-28

    Since Rails is already an effective Rich Internet Application framework because of the way it makes Ajax so easy, what is the argument for combining Rails with Flex and using Flex as the front end instead of HTML? A programmer friend of mine said he

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.148 (s). 11 q(s)