Job Description |职责描述 1.Develop Flex RIA industry-oriented applications | 使用Flex开发行业应用程序 2.Write relevant development documents | 撰写相应的开发文档 3.Assist in design and develop product functions | 协助产品功能的设计和开发 4.Fix bugs, test units in order to improve the overall performance of the application | 为提高产品的整体质量修改产品缺陷,参与测试
Requirements | 职位要求 1.Basic Knowledge: HTML, CSS, and JavaScript | 扎实的基础知识:HTML, CSS, and JavaScript
2.Technologies:Flex, flash platform, AS 3.0, OOD | 熟练掌握如下技术:Flex, flash platform, AS 3.0, OOD
3.1.5 year + direct working experience using Flex | 一年半以上的实际开发经验 4.Be able to write development documents for the application | 擅长撰写开发文档 5.You MUST be a fast learner, trouble shooter, team player | 你必须是一个学习能力强、解决问题能力强、善于团队合作的人 6.Enthusiasm for what you do | 拥有技术热情 7.Good written and reading English skills | 熟练的英语读写能力
Apply Now | 申请方式 Please send your CV to: talentseeker2009@gmail.com | 请将简历发送至:talentseeker2009@gmail.com Please feel free to contact us by 1194278957 (QQ) or send us a email if you have any inquiries | 欢迎QQ联系1194278957或者邮件联系我们
Flexmojos is a convenient tool used to compile and test flex applications. However, when running unittests in headless linux with Hudson, I met a problem caused by cookies. The server side needs cookies to make sure requests are valid. I googled a lot and find such a solution finally.
you are required to install xvfb according the instructions in this article.
you must have firefox 3.x.x installed.
navigate to “about:config” in firefox and set “dom.allow_scripts_to_close_windows” to “true”;
register executions for flexmojos-maven-plugin like this:
download proper SWC according to the flexmojos version here. For example, I am using flexmojos 3.5.0, so I choose to download flexmojos-unittest-support-3.5.0.swc.
checkout source code of flex-unittests-support with svn here.
create a flex library project with flex(flash) builder called “flexmojos-unittest-support”, a sample project you can find here.
add flexmojos-unittests-support-x.x.x.swc as a library of this project.
compile and build flexmojos-unittest-support.swc.
install flexmojos-unittest-support.swc into maven repository according to the version of the flexmojos being used. For example, I am using flexmojos-3.5.0, so I run the command below under the bin directory of the flex library project:
For ages now I’ve been trying to figure out how I can use a StyleSheet from inside my Flex Library Project in ActionScript. I kept reading that it is very resource intensive to be calling UIComponent.setStyle(…) at runtime, so I wanted to set all my styles using a StyleSheet. The LiveDocs on the subject seem to say that there are two ways to load a StyleSheet:
From inside MXML in your Application using the <Style source=”assets/styles.css“/> tag
Then I finally found the solution in this article (right near the bottom of the page in the comment by Henk). And that pointed me to this LiveDoc - Applying styles to your custom component which solved the problem. Scroll most of the way down until you get to the part called “Applying styles from a defaults.css file”.
If you don’t want to read the articles above, here is my brief summary.
Using a StyleSheet in your FlexLibrary Project:
create a StyleSheet in the src directory of your project, and call it defaults.css
open the project Properties > Flex Library Build Path and check the src/defaults.css file under the Assets tab
define your styles inside the defaults.css StyleSheet
Restrictions:
You can include only a single style sheet in the SWC file
The file must be named defaults.css
The file must be in the top-most directory of the SWC file
*Note: it appears that having a defaults.css file in your Flex Application project (swf) also works without having to specify the stylesheet in the mxml (e.g. <mx:Style source=”defaults.css“/> is not needed).
Using Embedded Fonts inside Flex Library Project/SWC:
If you want to use an embedded font inside your library project you have two ways of doing this:
Embed the font inside an ActionScript file like this (the font is inside the project src/assets directory):
[Embed(source='/assets/verdana.ttf', fontName='localVerdana', mimeType='application/x-font')] public var verdanaFont:Class; … setStyle(“fontFamily”, “localVerdana”);
Or put your embedded ttf font in your project’s src directory and embed the fond using the defaults.css file (the font must be in the src directory for this to work - see this Adobe Bug for more details):
defaults.css:
@font-face { font-family: localVerdana; font-weight: normal; src: url(“verdana.ttf”);
} .label { /* must use embedded font for label rotation to work */ font-family: localVerdana; /* must specifically set the font weight */ font-weight: normal;
}
Note that if you want to set the DisplayObject.rotation property then you have to use an embedded font otherwise it doesn’t work.
Here is a simple example of font/label rotation (right click “View Source” for the code).
In this example I actually included three fonts - Verdana plain, Verdana bold, and Comic Sans.
* Note that fonts can greatly increase the size of your SWF. The three fonts that I used above are all about 150 KB each. One way to reduce the size of your SWF is to restrict the unicode character range (meaning that only part of the font set is included in your SWF). Here is the LiveDoc on Using Fonts and Setting Character Ranges.