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

flex tree 自动显示横向滚动条

mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cmp="com.render.*"
    height="100%" width="100%" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
    <cmp:AutoSizeTree
            id="checkTree"
            itemRenderer="com.render.CheckTreeRenderer"
            change="updataDataGrid()"
            labelField="@label"
             width="100%" height="100%" 
             horizontalScrollPolicy="auto" >
     </cmp:AutoSizeTree>
</mx:Application>
actionscript
package com.render
{
    import flash.events.Event;
   
    import mx.controls.Alert;
    import mx.controls.Tree;
    import mx.core.ScrollPolicy;
    import mx.core.mx_internal;
    public class AutoSizeTree extends Tree
    {
        public function AutoSizeTree()
        {
            super();
            horizontalScrollPolicy = ScrollPolicy.AUTO;
        }
    
        override public function get maxHorizontalScrollPosition():Number
        {
             if (isNaN(mx_internal::_maxHorizontalScrollPo


相关文档:

12条有用的Flex代码

1.复制内容到系统剪贴板
System.setClipboard(strContent);
2.复制一个ArrayCollection
   //dummy solution( well, it works )
   var bar:ArrayCollection = new ArrayCollection();
   for each ( var i:Object in ac ){
       bar.addItem( ......

flex通信

环境:eclipse 3.5 + tomcat 6.0 + flex builder 3.0 + blazeds-turnkey-3.2.0.3978.zip(adobe网站上下载)
(因为不能放截图所以只能叙述了)
1,新建一个
java web
项目 例名为 :testjava;
2,在此工程中写一个简单的类:
        package cn.com;
      ......

用FLEX实现屏幕快照及下载 AND EXCEL

用FLEX实现屏幕快照及下载
Flex/Flash, Flex2, Flex3 GgNET 01月 31st. 2008, 2:53am
这种方式,在服务器端不会在磁盘上生成图片
FLEX代码
public function printMap():void{
var en:JPEGEncoder = new JPEGEncoder(100); //压缩图片,100是指质量
var ba:ByteArray=en.encode(ImageSnapshot.captureBitmapData(thi ......

flex学习起步

http://www.cnblogs.com/beniao/category/190537.html
WebORB for .NET   : http://www.cnblogs.com/beniao/category/190537.html
这个网页也有非可视化组件、数据可视化组件、打印组件以及行为效果组建等:http://examples.adobe.com/flex3/componentexplorer/explorer.html ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号