Is it possible to store images in the SharedObject of Flash?

前端 未结 3 818
长情又很酷
长情又很酷 2020-12-18 06:22

Is it possible to store a Image in a SharedObject in Flash? It would be nice if it would work. I need to \"store\" Images locally but it seems not to be supported by Flash..

相关标签:
3条回答
  • 2020-12-18 07:01

    In this case, you need to write your Bitmap to a ByteArray (in other words - binary data) before you set your shared object. Then you need to read it from a ByteArray into a bitmap when you retrieve it. Here is a quick sample the hopefully will get you moving in the right direction:

    http://www.kirupa.com/forum/showthread.php?t=306972

    0 讨论(0)
  • 2020-12-18 07:15

    Don`t forget, shared object has limited size (100Kb default)

    0 讨论(0)
  • 2020-12-18 07:21

    Images to/from SharedObject.data - easy, free and ready to use class which includes full SharedObject events and status logic: Images to/from SharedObject.data

    0 讨论(0)
提交回复
热议问题