-
Notifications
You must be signed in to change notification settings - Fork 167
Forhtml5
Kenji Iguchi edited this page May 21, 2013
·
20 revisions
- Move to proper folder.
- Clone lwf repository
git clone git@github.com:gree/lwf.git
- Clone lwf-demo repository
git clone git@github.com:gree/lwf-demo.git
- Set up is completed
MyFolder $: ls
lwf lwf-demo
- Move to "lwf-demo/flash" folder. There are no "*.lwfdata".
MyFolder $: cd lwf-demo/flash/
MyFolder $: ls
batch_convert.sh gree_logo.fla gree_logo.swf
- Execute batch convert shell script.
MyFolder $: sh batch_convert.sh
- Convert completed. "*.lwfdata" will be generated.
MyFolder $: ls
batch_convert.sh gree_logo.fla gree_logo.swf gree_logo.lwfdata
- Open Chrome with " --allow-file-access-from-files" option.
- osx: open -a 'Google Chrome' --args --allow-file-access-from-files
- win: start chrome --allow-file-access-from-files
NOTE:
Chrome doesn't allow HTML files to access local files directly without" --allow-file-access-from-files" option.
- Open HTML file from "File > Open File..." menu item. For example, open the "lwf-demo/html5/basic/movie_translate.html" file.
Tutorial is completed!
- Move to top folder.
MyFolder $: ls
lwf lwf-demo
- Launch simple HTTP server.
python -m SimpleHTTPServer
- Open Chrome. http://0.0.0.0:8000/
NOTE: We recommend you to play examples on Chrome browser.
-
Open your first example on HTML5. http://0.0.0.0:8000/lwf-demo/html5/basic/movie_translate.html
-
You can find other examples in http://0.0.0.0:8000/lwf-demo/html5/basic