newbie_coder
newbie_coder

Reputation: 153

How to create editable Textarea using ActionScript 3.0

I'm developing a course-ware using adobe flash. I've an idea to add a textarea with every chapter so that user can write note regarding with that particular chapter [same as MS PowerPoint]. Meanwhile, they can edit the note as well. I've only basic idea about ActionScript so I'm not sure how to implement it. I just wanted to know:

any kind of help is appreciated! thank you.

Upvotes: 1

Views: 228

Answers (1)

Joshua Honig
Joshua Honig

Reputation: 13235

The Flash runtime provides a variety of options for persisted storage. Which one you use depends on the design of your application. I highly recommend the ActionScript Developer's Guide (PDF version or online version). See in particular:

  • Chapter 7: Using native JSON functionality
  • Chapter 38: Working with the file system
  • Chapter 39: Storing local data

The main modes of local storage are:

  • Using the cookie-like SharedObject to store small amounts of user data locally
  • A local SQL database if you are using AIR (Chapter 40 in the dev guide or online: Working with local SQL databases in AIR)
  • Store external files locally (such as XML files or custom file binary formats manipulated with ByteArray)

In addition, ActionScript can create and use direct socket and HTTP connections. With these a Flash or AIR app can work with remote data the same as any other web application, such as through RESTful services (see the XML and JSON chapters), or web server-mediated database access via PHP or ASP.

Upvotes: 2

Related Questions