Jump to content
davej

Good examples/tutorials for Action Script?

Recommended Posts

I am thinking that I may still need Action Script for some things, like for IE9 support. For example I need a multi-file image upload and IE9 doesn't support the HTML5 multiple file input.

 

What is the learning curve like for Action Script?

 

Thanks

  • Like 1

Share this post


Link to post
Share on other sites

Old AS is similar to Javascript, they are both based on ECMAscript. It's fairly out of date by now though, ActionScript 3 is newer and is a little different but is much more flexible and powerful. I wouldn't use older versions with a new project.

 

You could also just implement a Javascript form that adds additional inputs though, rather than requiring Flash.

Share this post


Link to post
Share on other sites

Oh, I just meant the name of the script that Flash uses if you want to write code -- Action Script or ActionScript or whatever -- of a version that is fairly current.

 

For the file upload I'd like to be able to browse to a directory and select a bunch of files, or maybe all the files, and then press "Go."

 

In other news today...

 

http://threatpost.com/adobe-fixes-code-execution-bugs-in-flash-reader

Edited by davej

Share this post


Link to post
Share on other sites

ActionScript versions are not browser-dependent, the Flash Player executes that code, not the browser.

Share this post


Link to post
Share on other sites

I have never used it. I have CS5 Student Edition and did a few panned images but never tried to code in Flash. If Flash can access local files I'm guessing it can't do that without permission?

Share this post


Link to post
Share on other sites

Flash can save and read its own files but it can't access arbitrary files. Or at least it's not supposed to be able to.

Share this post


Link to post
Share on other sites

So what can Flash code do that is particularly powerful and appealing? Or what can Flash code do that JS can't do?

Share this post


Link to post
Share on other sites

They aren't really comparable, Javascript works with the browser's document object model, and Actionscript works with the Flash API. The Flash API and the DOM are totally different. The Flash API has access to a webcam, for example, and can save data locally. One of them runs in the browser and the other runs in the Flash plugin.

 

Here's the API reference for Actionscript 3 if you want to browse through it:

 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html

Share this post


Link to post
Share on other sites

I don't like to use flash on my sites @davej This is because it's make site slow, few day's i did some of the Actionscript class it's complicated.

Share this post


Link to post
Share on other sites

(@_@) davej! One of the wizard of invisionzone! As well as a moderator is posting a question!!!! By the gods of the web! What's to befall us all! (¥_¥)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×