摘要
利用Flash的脚本编程语言实现了电子商务平台家纺床品面料的选色搭配。选择某一色球拖放到某一床品区域即可将所拖色球的颜色附加到该区域,为精确判断所拖色球释放时中心点所落的床品区域,采用了Bitmap Data类获取碰撞区域像素信息,然后仅检测鼠标释放点在该区域是否存在像素,提高了碰撞检测的精确度和运算效率。
Introduces how to design the system of color-selecting of home textiles & bedding for E-commerceapplications through scripting language provided by Flash. The color of a selected color ball can be attached tothe area of a textile & bedding simply by dragging it to the area of the textile & bedding. To accuratelydetermine which textile & bedding area the selected color ball is dragged and dropped in,the paper usesbitmap data class to get the pixel information of a collision area and then check whether there is a pixel in thearea where the mouse point is dropped. Through this method,the accuracy of the collision detection and thecomputation efficiency are increased.
出处
《江苏工程职业技术学院学报》
2015年第1期7-12,共6页
Journal of Jiangsu College of Engineering and Technology