AS3: Export a MovieClip or Canvas to swf

前端 未结 2 1844
臣服心动
臣服心动 2020-12-18 13:15

I\'m having an app where the user can edit a simple greeting card and should be able to send it to another user. We are currently doing it by exporting to a graphic file an

2条回答
  •  自闭症患者
    2020-12-18 13:33

    Deep copy the MovieClip object to a ByteArray and dump it to a file.

    var buffer:ByteArray = new ByteArray();
    buffer.writeObject(MOVIE_CLIP_HERE);
    buffer.position = 0;
    buffer.writeBytes(...);
    

提交回复
热议问题