Flex/Flash font style viewer–Flex/Flash字体预览器

Categories: Flex; Tagged with: ; @ November 6th, 2011 22:22

Based on your fonts installed on your local machine, view the font style.

image

Link: http://liguoliang.com/pub/utils/FlashFontStyleViewer.html

Code:

// handle click, get the info, and generate Labels.
		protected function buttonPreview_clickHandler(event:MouseEvent):void {
			var textFontFamilyRaw:String = textFontFamily.text == null ? "" : StringUtils.trim(textFontFamily.text);
			if(StringUtils.isWhiteSpace(textFontFamilyRaw)) {
				Alert.show("Please input some font-family");
				return;
			}
			
			var arrayFontFamily:Array = textFontFamilyRaw.split("\n");
			var textDisplay:String = textToView.text;
			if(textDisplay == null || StringUtils.isEmptyString(textDisplay)) {
				textDisplay = "Flex上海用户组";
			}
			var fontSize:int = comboBoxFontSize.selectedItem as int;
			
			showPreview(arrayFontFamily, fontSize,textDisplay, checkBoxIsBold.selected);
			
		}
		
		// For each font-family, create a Label and set style, add all labels on stage.
		private function showPreview(arrayFontFamily:Array, fontSize:int = 12, text:String="Flex上海用户组", isBold:Boolean= false):void {
			vGroupLabels.removeAllElements();
			for each(var fontFamily:String in arrayFontFamily) {
				var label:Label = new Label();
				label.text = text + "[" + fontFamily + " - " + fontSize + "pt]";
				label.setStyle(FlexConstants.STYLE_FONT_FAMILY, fontFamily);
				label.setStyle(FlexConstants.STYLE_FONT_SIZE, fontSize);
				if(isBold) {
					label.setStyle(FlexConstants.STYLE_FONT_WEIGHT, "bold");
					label.text += "  - Bold";
				}
				vGroupLabels.addElement(label);
			}
		}

Flex Examples Source Code Flex范例源代码下载

Categories: Flex; Tagged with: ; @ November 6th, 2011 14:57

上个月, 新同事刚刚开始接触, 问我有没有例子, 推荐了Test Drive, 之前有为Athena framework for Flex写过一个Test Drive(比官方的增加服务器端交互, 使用Java&Derby). 感觉Test Drive还是不错的入门资料.

但同事说 版本不同, 代码下载下来都是错误….

昨天看到Flex Doc Team 博客上关于代码范例的文章:

Previously, I blogged with a link to a ZIP file for the 4.5 samples code that is used in the core documentation. This blog entry was pretty popular and a lot of folks downloaded the ZIP file. However, many users are still using Flex and Flash Builder 3.x, so here is a link to a ZIP file that contains the source code and assets for the Flex 3.x examples:

Flex36CodeExamples.zip (8.9MB)

As with the 4.5 examples, this includes the *.mxml and *.as files, as well as the stylesheets, images, videos, audio files, and other assets that they use. This ZIP file does not include the compiled SWF files for these examples, but it should be useful to you if you like to search for and look at source code for the Flex 3.x examples.

The ZIP file is organized into 4 main groups:

  • devapps: Core examples including the MX component set and containers, effects, validators, and item renderers.
  • buildapps: Examples that focus on topics such as logging, deploying, and optimizing apps.
  • createcomps: Examples that focus on custom component development.
  • datavis: Data visualization examples including the charting examples as well as the OLAPDataGrid and AdvancedDataGrid components.

NOTE: If you found this blog post but are actually looking for the Flex 4.5 examples, you can get them here:
flex45_using_examples_source (30MB)

-Matthew J. Horn
Flex docs

http://blogs.adobe.com/flexdoc/2011/11/flex-3-x-examples-source-code.html

Flash Builder Hotkeys Quick Reference Card(A4, PDF)

Categories: Flex; Tagged with: ; @ November 3rd, 2011 22:46

For every Flex developer!  by Adobe Flex Shanghai User Group.

(more…)

Adobe Labs发布Flash Player 11.2 Beta for desktops 及AIR 3.2 Beta

Categories: Flex; Tagged with: ; @ October 30th, 2011 15:10

主要针对视频解码的多线程支持:

Multi-threaded video decoding (Windows, Mac OS, and Linux) — The video decoding pipeline is now fully multi-threaded. This feature should improve the overall performance on all platforms. Note that this feature is a significant architecture change required for other future improvements.

Flash Player background updates (Windows) — New versions of the runtimes can now be delivered more effectively to the end user with this enhanced updating mechanism (Background update is only available in the release versions of Flash Player).

More info: http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11-2/

推荐:Chrome下ActionScript API 搜索插件

Categories: Flex; Tagged with: ; @ October 26th, 2011 21:34

A Chrome plugin for: ActionScript 3.0 Reference.
Input “as3 + ‘space'” and keywords: (more…)

Newer Posts <-> Older Posts



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