Happy New Year 2012!
工具的好坏不等于创作的好坏 Tools feature is not equal to creative ability.
工具的好坏不等于创作的好坏 Tools feature is not equal to creative ability.
仔细读KP的2011总结性的博文The year they called "2011",再想想自己是怀着什么心态去做技术的,就觉得不迷惘了。
开发者为什么要执着一堆人类看不懂的火星语言捣鼓来捣鼓去?
不同人有不同的目的:有人为了赚钱养活,有人为了学习研究,有人为了兴趣爱好,有人为了跟风耍酷,各种各样……
不论走着什么路,不要忘记来时的目的。
技术平台(Platform)与社区团体(Community)是互惠相生的,究竟是技术自己放弃自己了,还是人们放弃了它?
开发者为什么要执着一堆人类看不懂的火星语言捣鼓来捣鼓去?
不同人有不同的目的:有人为了赚钱养活,有人为了学习研究,有人为了兴趣爱好,有人为了跟风耍酷,各种各样……
不论走着什么路,不要忘记来时的目的。
技术平台(Platform)与社区团体(Community)是互惠相生的,究竟是技术自己放弃自己了,还是人们放弃了它?
从Flash端将文件数据上传到服务端有各种各样的方法。
最简单快捷的方法就是用FileReference的upload()方法,但是这个方法只允许通过用户的操作来选择本地文件来上传。
如果想上传一个截图到服务端,就得用其他方式,比如利用URLLoader(或URLStream)。
网上找到一些解决方案,这里记录一下:
1、图像编码用
AS3CoreLib
Faster JPEG Encoding with Flash Player 10
2、上传数据用
Marston UploadPostHelper 类
Nascom UploadPostHelper 类 (在Marston的基础上添加了uploadDataFieldName参数)
Upload multiple files using URLLoader by 1 user action (同时上传多个文件)
in-spirit MultipartURLLoader 类
3、遗留问题
使用URLLoader上传无法检测进度?
最简单快捷的方法就是用FileReference的upload()方法,但是这个方法只允许通过用户的操作来选择本地文件来上传。
如果想上传一个截图到服务端,就得用其他方式,比如利用URLLoader(或URLStream)。
网上找到一些解决方案,这里记录一下:
1、图像编码用
AS3CoreLib
Faster JPEG Encoding with Flash Player 10
2、上传数据用
Marston UploadPostHelper 类
Nascom UploadPostHelper 类 (在Marston的基础上添加了uploadDataFieldName参数)
Upload multiple files using URLLoader by 1 user action (同时上传多个文件)
in-spirit MultipartURLLoader 类
3、遗留问题
使用URLLoader上传无法检测进度?
Mobile平台真是块宝地吗?
2011/11/14 23:02 by civet
其实我想弱弱地问:“为什么大家都这样写——Flash vs HTML5?”
Flash是一个开发平台,HTML5是一个网页标准,为什么就打起架来了?
按我对这2种概念的理解,更有可比性的应该是:
Flash Platform(Flash平台) vs Web Browser(各种浏览器)
ActionScript3 vs JavaScript
我就不想考究什么好什么不好了,其实大家爱用什么工具就用什么,就好像有些人很爱画画不管手上的是Photoshop还是Windows自带的画图工具,甚至是Excel⋯⋯都玩得很乐。
一段官方消息出来以后又被人添油加醋,好吧,就当是Flash要死了,那也怎样呢?
即使真的那样,我也不觉得又多大损失。因为,想法是不会停留在工具上的。反过来,使用不同工具的人也会无形中被引向不同的使用习惯。
引用一个牛人的话:
“我永远不明白对一项死了的技术白落井下石有何值得高兴。少了一项技术意味着少了一个选择,少了一股创新的源头活水。”——Grant Skinner
Flash是一个开发平台,HTML5是一个网页标准,为什么就打起架来了?
按我对这2种概念的理解,更有可比性的应该是:
Flash Platform(Flash平台) vs Web Browser(各种浏览器)
ActionScript3 vs JavaScript
我就不想考究什么好什么不好了,其实大家爱用什么工具就用什么,就好像有些人很爱画画不管手上的是Photoshop还是Windows自带的画图工具,甚至是Excel⋯⋯都玩得很乐。
一段官方消息出来以后又被人添油加醋,好吧,就当是Flash要死了,那也怎样呢?
即使真的那样,我也不觉得又多大损失。因为,想法是不会停留在工具上的。反过来,使用不同工具的人也会无形中被引向不同的使用习惯。
引用一个牛人的话:
“我永远不明白对一项死了的技术白落井下石有何值得高兴。少了一项技术意味着少了一个选择,少了一股创新的源头活水。”——Grant Skinner
Stage3D(Molehill)初体验
2011/10/08 18:20 by civet
用Starling的Quad类只需写几行代码就能生成的矩形,直接用Stage3D的API写,会发现不是那么简单……
开发文档里面关于渲染步骤的介绍:
To render and display a scene (after getting a Context3D object), the following steps are typical:
Configure the main display buffer attributes by calling configureBackBuffer().
Create and initialize your rendering resources, including:
Vertex and index buffers defining the scene geometry
Vertex and pixel programs (shaders) for rendering the scene
Textures
Render a frame:
Set the render state as appropriate for an object or collection of objects in the scene.
Call the drawTriangles() method to render a set of triangles.
Change the rendering state for the next group of objects.
Call drawTriangles() to draw the triangles defining the objects.
Repeat until the scene is entirely rendered.
Call the present() method to display the rendered scene on the stage.
开发文档里面关于渲染步骤的介绍:
To render and display a scene (after getting a Context3D object), the following steps are typical:
Configure the main display buffer attributes by calling configureBackBuffer().
Create and initialize your rendering resources, including:
Vertex and index buffers defining the scene geometry
Vertex and pixel programs (shaders) for rendering the scene
Textures
Render a frame:
Set the render state as appropriate for an object or collection of objects in the scene.
Call the drawTriangles() method to render a set of triangles.
Change the rendering state for the next group of objects.
Call drawTriangles() to draw the triangles defining the objects.
Repeat until the scene is entirely rendered.
Call the present() method to display the rendered scene on the stage.



