?? gameswf_movie.h
字號:
#ifndef __MOVIE_H__#define __MOVIE_H__#include "gameswf_button.h"#include "gameswf_log.h"#include "gameswf_action.h"#include "gameswf_impl.h"namespace gameswf{ struct mcl { int bytes_loaded; int bytes_total; };#if 0struct MovieClipLoader : public character{ MovieClipLoader(movie* parent, int id) : character(parent, id) { log_msg("%s: \n", __FUNCTION__); }#else class MovieClipLoader {#endif public: MovieClipLoader(); ~MovieClipLoader(); void load(const tu_string& filespec); struct mcl *getProgress(as_object *ao); bool loadClip(const tu_string& str, void *); void unloadClip(void *); void addListener(void *); void removeListener(void *); void on_button_event(event_id event); // Callbacks void onLoadStart(void *); void onLoadProgress(void *); void onLoadInit(void *); void onLoadComplete(void *); void onLoadError(void *); private: bool _started; bool _completed; tu_string _filespec; int _progress; bool _error; struct mcl _mcl; mouse_state _mouse_state;};struct moviecliploader_as_object : public gameswf::as_object{ MovieClipLoader mov_obj;};struct mcl_as_object : public gameswf::as_object{ struct mcl data;};void moviecliploader_loadclip(const fn_call& fn);void moviecliploader_unloadclip(const fn_call& fn);void moviecliploader_getprogress(const fn_call& fn);void moviecliploader_new(const fn_call& fn);void moviecliploader_onload_init(const fn_call& fn);void moviecliploader_onload_start(const fn_call& fn);void moviecliploader_onload_progress(const fn_call& fn);void moviecliploader_onload_complete(const fn_call& fn);void moviecliploader_onload_error(const fn_call& fn);void moviecliploader_default(const fn_call& fn);} // end of gameswf namespace// __MOVIE_H__#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -