FlexÖÐimage¿Ø¼þÈçºÎÌí¼Ó±ß¿ò
Ò³Ãæ´úÂ룺
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:marsImage="mars.display.*"
backgroundColor="#000000"
layout="absolute">
<marsImage:BorderImage
borderAlpha="{aBar.value}"
borderWidth="{wBar.value}"
borderColor="{colorTool.selectedColor}"
source="@Embed('../img/panda.jpg')"
width="258" height="229" x="180" y="62"/>
<mx:Label x="180" y="327" text="ÇëÑ¡Ôñ±ß¿òÑÕÉ«" color="#FDFDFD" fontSize="16"/>
<mx:Label x="180" y="391" text="ÇëÑ¡Ôñ±ß¿ò¿í¶È" color="#FDFDFD" fontSize="16"/>
<mx:Label x="377" y="391" text="ÇëÑ¡Ôñ±ß¿ò͸Ã÷¶È" color="#FDFDFD" fontSize="16"/>
<mx:ColorPicker x="305" y="327" color="#FDFDFD" id="colorTool"/>
<mx:VSlider x="525" y="255" minimum="0" maximum="1" id="aBar" />
<mx:HSlider x="180" y="423" minimum="0" maximum="6" id="wBar"/>
</mx:Application>
¿Ø¼þ´úÂëÈçÏ£º
package mars.display
{
import mx.controls.Image;
//±ß¿òÑÕÉ«
[Style(name="borderColor", type="uint", format="Color", inherit="no")]
//±ß¿ò¿í¶È
[Style(name="borderWidth", type="Number", format="Length", inherit="no")]
//±ß¿ò͸Ã÷¶È
[Style(name="borderAlpha", type="Number", format="Length", inherit="no")]
public class BorderImage extends Image
{
public function BorderImage()
{
super();
}
override protected function updateDisplayList(w:Number, h:Number):void{
super.updateDisplayList(w,h);
graphics.clear();
graphics.lineStyle(getStyle('borderWidth'),getStyle('borderColor'),getStyle('borderAlpha'),false);
var x:Number=-(getStyle('borderWidth
Ïà¹ØÎĵµ£º
<!-- -->
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:ËÎÌå;
panose-1:2 ......
<?xml version="1.0" encoding="utf-8"?>
<!-- http://yecon.blog.hexun.com/31030831_d.html -->
<!-- http://www.slsay.com -->
<Application name="FileReference_load_test"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
xmlns:net= ......
1£¬Ö±½ÓÉèÖÃÊôÐÔ£º
Ô´´úÂëÈçÏ£º
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:ri="AAA.test.*" >
<mx:DateChooser dayNames="[ÈÕ,Ò»,¶þ,Èý,ËÄ,Îå,Áù]"
monthNames="[Ò»ÔÂ,¶þÔÂ,ÈýÔÂ,ËÄÔÂ,ÎåÔÂ,ÁùÔÂ,ÆßÔÂ,°ËÔÂ,¾ÅÔÂ,Ê®ÔÂ,ʮһÔÂ,Ê®¶þÔÂ]" />
......
1.ÎÒµÄÅäÖû·¾³Îª:
flexBuilder3,LCDS251,MyEclipse 5.5.1
GA+
2.°²×°lcds2.5.1£¬´ò¿ªÄ¿Â¼£¬ÀïÃæÓÐÒ»¸öflex
.war
3.¹Ø±Õtomcat(Èç¹û´ò¿ªÔڵϰ)
4.½«flex
.war¿½ÈëtomcatµÄwebappsĿ¼
5.ÖØÆôtomcat,¿ÉÒÔ¿´µ½webappsÀï¶àÁËÒ»¸öĿ¼flex
£¬Õâ±ãÊÇÎÒÃÇÒªµÄ¶«Î÷
6.¿ÉÒÔ½«flex
.warɾ³ý
7.½«flex
Îļ ......
³£ÓõÄFlex´úÂë×ܽá
1.Ë¢ÐÂä¯ÀÀÆ÷
¡¡¡¡navigateToURL(new URLRequest("javascript:location.reload();"),"_self")
¡¡¡¡2.¹Ø±Õä¯ÀÀÆ÷
¡¡¡¡navigateToURL(new URLRequest("javascript:window.close()"),"_self");
¡¡¡¡3.´ò¿ªÒ»¸öÐÂä¯ÀÀÆ÷´°¿Ú
¡¡¡¡navigateToURL(new URLRequest('ht ......