Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Im making a simple coloring map but how would I use actionscript to save the map after coloring it so that after opening it again its the color i last used

New Here ,
Apr 17, 2015 Apr 17, 2015

I want to make a map that after using the color bucket tool i made for coloring the map.... after i colored a specific map or object . when i press the save button it will be the designated color the next time i open it....  im a real beginner in adobe flash.. help me pls

TOPICS
ActionScript
229
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 17, 2015 Apr 17, 2015
LATEST

When you create an swf file using Flash what you end up with is a file that cannot be permanently altered in any manner.  If you want to make that file capable of remembering a previous state then you have to build that kind of intelligence into the file.  The file will need to store the information it needs in some external data receptacle (database, data file, text file, cookie) and when you open the file it would need to automatically check for that data when it opens.  So the flow of processing would be something like...

run the file -> file loads data from its data resource -> file adjusts itself per that data -> you change the map in some way and the file collects the change information for storage into the data file -> something triggers the file to save its current data -> close the file.

For the most part, Flash is not capable of saving data to a file or a database without the use of a server-side processing program... often a PHP processing file is used for this...  it acts a s ago between for Flash and the data resource.

Flash does have the ability to store data in what is considered the Flash version of a cookie - called a shared object.  HEre is a link to get some info about it...  Flash Cookies explained - gHacks Tech News

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines