Flex Tree样式: 如何修改Tree的Icon

Categories: Flex; Tagged with: ; @ March 12th, 2009 10:50

image

可以通过设定Tree的样式来更改Tree的icon. 如下

		_treeLAAndSub = new Tree();
		_treeLAAndSub.iconField = "hahah@#$@#$";
		_treeLAAndSub.setStyle("folderClosedIcon", ImagesForActions.iconImport);	//文件夹关闭时
		_treeLAAndSub.setStyle("folderOpenIcon", ImagesForActions.iconExport);	//文件夹打开

		_treeLAAndSub.setStyle("defaultLeafIcon", ImagesForActions.iconCopy);	// 叶子
		_treeLAAndSub.setStyle("disclosureOpenIcon", ImagesForActions.iconRemove);	//文件夹打开时旁边的图示
		_treeLAAndSub.setStyle("disclosureClosedIcon", ImagesForActions.iconAdd);	//文件夹关闭时旁边的图示

Eclipse 中快速创建PHP开发环境

Categories: Development Notes; Tagged with: ; @ March 5th, 2009 20:35

1. help>software updates>available software选项卡下,

输入插件地址: http://phpeclipse.sourceforge.net/update/stable/1.2.x/

如过上述地址有误, 请从http://www.phpeclipse.com/ 找到新的update 地址.

"yes"

2.  点击展开目录, 如图: 选定安装即可:

image

CMD/DOS 变量 – CMD/DOS Variable Reference

Categories: Development Notes; Tagged with: ; @ March 5th, 2009 0:36
Variable

Sample Typical Value

%SystemDrive%

C:

%SystemRoot%

C:\WINNT
C:\WINDOWS

%WinDir%

C:\WINNT
C:\WINDOWS

%SystemDirectory%

C:\WINNT\System32
C:\WINDOWS\System32

%ComSpec%

C:\WINNT\system32\cmd.exe

%programfiles%

C:\WINNT\Program Files

%Temp%

C:\DOCUME~1\Usr\LOCALS~1\Temp from
C:\Documents and Settings\Usr\Local Settings\Temp

%Tmp%

%HOMEDRIVE%

C: The drive letter associated with the user’s home directory

%HOMEPATH%

The path to the user’s home directory (excluding drive):
\Documents and Settings\Guest

%OS%

Windows_NT (even on Windows XP machines
The operating system the user is running

%USERDOMAIN%

The name of the domain that contains the user’s account

%USERNAME%

The user’s name

%USERPROFILE%
%USERPROFILE%\Desktop

The user’s desktop folder

%CD%

The current directory.

%DATE%

Current date in the format set by the Date command

%TIME%

Current time in the format set by the Time command

%ERRORLEVEL%

A number defining exit status of a previous command or called executable

%RANDOM%

A random number between 0 and 32767.

在线安装AIR 及 Error# 2032错误解决方法

Categories: 垃圾山; Tagged with: ; @ February 28th, 2009 23:33

找到...\sdks\3.2.0\samples的badge目录,修改default_badge.html文件:

AC_FL_RunContent(
		'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
		'width','217',
		'height','180',
		'id','badge',
		'align','middle',
		'src','badge',
		'quality','high',
		'bgcolor','#FFFFFF',
		'name','badge',
		'allowscriptaccess','all',
		'pluginspage','http://www.macromedia.com/go/getflashplayer',
		'flashvars','appname=My%20Application&appurl=myapp.air&airversion=1.0&imageurl=test.jpg',
		'movie','badge' ); //end AC code

}

注意上面的appurl, 不要搞错. 发布该网页, OK.

如果出现

image

将路径补充完整或修改.htaccess文件都可 最简单的:

‘flashvars’,’appname=NM&appurl=http://liguoliang.com/test/NM.air&airversion=1.0&imageurl=test.jpg’,

搞定.

Look: http://liguoliang.com/test/default_badge.html

AIR文档中相关内容 >>点此<<

FlexBuilder Debug Preferences

Categories: Flex; Tagged with: ; @ February 23rd, 2009 23:05

The preferences here are generic to all debuggers, and govern stylistic and prompting options

Option

Description

Default

Reuse editor when displaying source code

The debugger displays source code in an editor when stepping through an application. When this option is on, the debugger will reuse the editor that it opened to display source from different source files. This prevents the debugger from opening an excessive number of editors. When this option is off, the debugger will open a new editor for each source file that needs to be displayed.

On

Activate the workbench when when a breakpoint is hit This option brings attention to the debugger when a breakpoint is encountered, by activating the associated window. The visual result varies from platform to platform. For example, on Windows, the associated window’s title bar will flash. On
Activate the debug view when a breakpoint is hit This option brings attention to the debug view when a breakpoint is encountered. If the view is already open it will be activated. If the view is not already open it will be opened automatically. On
Skip breakpoints during a ‘Run to Line’ operation This option controls whether breakpoints are ignored when performing a ‘Run to Line’ operation. When the option is on, the debugger does not suspend at breakpoints encountered when a ‘Run to Line’ operation is invoked. When the option is off, breakpoints behave normally. Off
Prompt for conformation when deleting all breakpoints This option controls whether you will be prompted for confirmation when you try to delete all of your breakpoints On
Prompt for confirmation when deleting breakpoint containers This option controls if you will be prompted for confirmation when you try to delete a breakpoint container, e.g. a breakpoint working set On
Changed value colour This option allows you to change the colour of a changed value in the variables view, expressions view, memory view, anywhere running program variables are rendered Red
Changed value background colour This option allows you to change the selection colour of a changed variable, e.g. in the variables view showing columns Yellow
Memory unbuffered colour This option allows you to change the rendering colour of unbuffered memory blocks in the memory view Grey
Memory buffered colour This option allows you to change the rendering colour of buffered memory blocks in the memory view Black

Newer Posts <-> Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.