0

I want to store some values in browser using cookies

but i don't do i do ?

please help me

Tushar Ahirrao
  • 12,669
  • 17
  • 64
  • 96

2 Answers2

3

You have two options.

  • Using ExternalInterface and javascript.

    The ExternalInterface class is the External API, an application programming interface that enables straightforward communication between ActionScript and the Flash Player container– for example, an HTML page with JavaScript. Adobe recommends using ExternalInterface for all JavaScript-ActionScript communication.

  • Using local SharedObjects from within Flex

The SharedObject class is used to read and store limited amounts of data on a user's computer or on a server. Shared objects offer real-time data sharing between multiple client SWF files and objects that are persistent on the local computer or remote server. Local shared objects are similar to browser cookies and remote shared objects are similar to real-time data transfer devices.

Amarghosh
  • 58,710
  • 11
  • 92
  • 121
0

You can take a look at this library called JSinterface on GoogleCode

http://code.google.com/p/jsinterface/

Joyce
  • 1,431
  • 2
  • 18
  • 33