易截截图软件、单文件、免安装、纯绿色、仅160KB

flex取整运算

转自:http://hi.baidu.com/wosinmaiken/blog/item/ee59f7a8f72604bdca130c24.html
 /**ceil   向前(数轴向右)取整(返回值为Number)**/
         trace(Math.ceil(10.4));    //11
         trace(Math.ceil(10.5));    //11
         trace(Math.ceil(-10.4));    //-10
         trace(Math.ceil(-10.5));    //-10
        
         /**floor   向后(数轴向左)取整(返回值为Number)**/
            trace(Math.floor(300.4));    //300
            trace(Math.floor(300.5));    //300
            trace(Math.floor(-300.4));    //-301
            trace(Math.floor(-300.5));    //-301
           
            /**round   整数四舍五入,负数五舍六入(返回值为Number)**/
            trace(Math.round(8000.4));    //8000
            trace(Math.round(8000.5));    //8001
            trace(Math.round(-8000.4));    //-8000
            trace(Math.round(-8000.5));    //-8000
            trace(Math.round(-8000.6));    //-8001
   


相关文档:

FLEX MDI窗口开发实例

主程序代码:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    xmlns:mdi="ext.containers.windows.mdi.*"
    width="100%"
    height= ......

如何在Flex 或 ActionScript中打开WORD Doc

Adobe Flash Builder 4 简体中文正式版 下载:
http://subject.csdn.net/adobedownload/index.html
使用相关的域,利用Adobe Livecycle Designer创建一个PDF模组,以XML节的名称(与PDF模组中的域的名称匹配)向PDF远程对象发送XML数据,然后您的Flex应用程序就会打开PDF, 或将PDF文件放入您的webserv ......

Flex的HSV to RGB ,RGB to HSV 算法

/*Copyright (c) 2006 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, m ......

Flex 与 servlet 通信

servlet 端:
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
response.getWriter().println("hello world -- 我爱你。。。");

Flex 前台端
<fx:Script>
<![CDATA[
import flash.trace.Trace;
private var loader:UR ......

Flex 计算String的宽度

应为设计要求, 我需要计算String的宽度,
搜索了下网上的文章, 看到有用measureText(string)的,
可是用了下发现, 这个function得到的string大小, 不会根据字体的大小, 粗黑的变化,
始终返回同一个值, 也许是我的用法不对, 最后我没有这个方法,
改用了另外一个方法:
private function getTextWidth():int
{
 &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号