日历
| |||||||||
| 日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
| 1 | 2 | 3 | 4 | ||||||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 | |||
| 12 | 13 | 14 | 15 | 16 | 17 | 18 | |||
| 19 | 20 | 21 | 22 | 23 | 24 | 25 | |||
| 26 | 27 | 28 | 29 | 30 | 31 | ||||
搜索标题
最新留言
统计信息
- 访问量: 531
- 日志数: 11
- flash数: 1
- 建立时间: 2007-05-15
- 更新时间: 2008-08-25
我的最新日志
-
深夜归来
2008-8-25
黑夜的影子~~罪恶的杀手!I am back back -
这篇是手写的教程
2007-8-11
关于AS2得教程
关于AS调用JS文件的方法!
下次会编辑一下~~现在先留个悬念
-
新的Flex翻译来了!
2007-8-10
我只能说
I am Back.........
-
今天休息了~~~
2007-8-09
-_-!!早上爬起来晚了。。。于是请了假!很爽~~~~感觉脖子也恢复了!明天应该会有一个很好的状态!
只是女朋友生气了!说我只会玩游戏,用完的东西只会一扔~~~置之不理。
不理我了~~~~这会已经爬床上睡了!我还没睡
比较无语。。。说实话,玩暗黑只是想我俩在加时候有个玩得~~~也不是不想学什么的!
他打呼了~~~我也要睡了!哈哈~~~做个好梦大家
顺便做个广告
我女朋友卖的衣服
http://bbs.55bbs.com/viewthread.php?tid=931457&pid=24919774&page=162&extra=page%3D1#pid24919774
希望大家来捧场
-
apply behavior(关于行为的限定)
2007-8-06
<?xml version="1.0"?>
<!-- behavīors\ButtonWL.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<!-- Define effect. -->
<mx:WipeLeft id="myWL" duration="1000"/>//设定一个由混浊到清晰的
<!-- Assign effect to targets. -->
<mx:Button id="myButton" mouseDownEffect="{myWL}"/>
<mx:Button id="myOtherButton" mouseDownEffect="{myWL}"/>//通过MouseDownevent来调用Effect
</mx:Application>//调用结束
在Flex里的effect可以通过<mx:xxxxxx/>得标前来设定! -
一个关于menu的菜单的简单程序
2007-7-30
<?xml version="1.0"?>
<!-- menus/ArrayDataProvider.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">//absolute表示是绝对定位
<mx:scrīpt>
<![CDATA[
import mx.controls.Menu;
// Method to create an Array-based menu.
private function createAndShow():void {
// The third parameter sets the showRoot property to false.
// You must set this property in the createMenu method,
// not later.
var myMenu:Menu = Menu.createMenu(null, menuData, true);//定义了一个menu
myMenu.show(10, 10);//menu show的显示位置
}
// The Array data provider(数据提供)
[Bindable]
public var menuData:Array = [
{label: "MenuItem A", children: [//设置复选框
{label: "SubMenuItem A-1", enabled: false},//表示是不可选的
{label: "SubMenuItem A-2", type: "normal"} //一般状态
]},//没设置选择type就没选择后的提示
{label: "MenuItem B", type: "check", toggled: true},//toggled表示是否勾选
{label: "MenuItem C", type: "check", toggled: false},
{type: "separator"},//设置分割线
{label: "MenuItem D", children: [
{label: "SubMenuItem D-1", type: "radio", //表示同组单选的
groupName: "g1"},
{label: "SubMenuItem D-2", type: "radio",
groupName: "g1", toggled: true},
{label: "SubMenuItem D-3", type: "radio",
groupName: "g1"}
]}
];
]]>
</mx:scrīpt>
<!-- Button control to create and open the menu. -->
<mx:Button x="300" y="10"
label="Open Menu"
click="createAndShow();"/>//点击显示菜单
</mx:Application>
一个关于menu的菜单文档
-
关于text contral部分的总结
2007-7-30
是否允许多行输入 是否允许用户输入No
No
No
Yes
Yes
No
Yes
Yes
Yes
Yes
-
关于ScrollBar control
2007-7-30
<?xml version="1.0"?>
<!-- controls\bar\SBarSimple.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:scrīpt>
<![CDATA[
import mx.events.ScrollEvent;
// Event handler function to display the scroll location.
private function myScroll(event:ScrollEvent):void {
showPosition.text = "VScrollBar properties summary:" + '\n' +
"------------------------------------" + '\n' +
"Current scroll position: " +
event.currentTarget.scrollPosition + '\n' +//滚动条的位置
"The maximum scroll position: " +
event.currentTarget.maxScrollPosition + '\n' +//滚动条的最大值
"The minimum scroll position: " +
event.currentTarget.minScrollPosition;//滚动条的最小值
}
]]>
</mx:scrīpt>
<mx:Label
width="100%"
color="blue"
text="Click on the scroll bar to view its properties."/>//一个简单的Lable显示框
<mx:VScrollBar id="bar"
height="100%"
minScrollPosition="0"
maxScrollPosition="{this.width - 20}"
lineScrollSize="50"
pageScrollSize="100"
repeatDelay="1000"
repeatInterval="500"
scroll="myScroll(event);"/>一个竖着的scrollbar
<mx:TextArea id="showPosition"
height="100%" width="100%"
color="blue"/>//textaera的颜色
</mx:Application>
这个小程序实现的是在一个文本框内显示一个滚动条的最大值~~最小值还有,还有滚动条的当前位置
-
VRule和HRule
2007-7-30
<?xml version="1.0"?>
<!-- controls\rule\RuleStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>//关于这个HRule的提前的风格定义
.thickRule {strokeWidth:5}
HRule {strokeColor:#00FF00; shadowColor:#0000FF}
</mx:Style>//下面都有提到的相关属性,看看写法就行了
<mx:HRule styleName="thickRule"/>
</mx:Application>
关于VRule和HRule的介绍,strokecolor(stroke本身的颜色)和shadowcolor(阴影的颜色)和strokewidth(stroke的宽度)等属性
关于这个分割线的默认属性,横着默认高2像素,宽100,竖着默认宽2像素,高100 -
第一篇Flex翻译教程,有关Using Controls的
2007-7-30
<?xml version="1.0"?>
<!-- controls\pbar\PBarLabel.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:scrīpt>//Flex中加入AS脚本的方法
<![CDATA[
public function initImage():void {
image1.load('http://localhost:8100/flex/assets/DSC00034.JPG');//本地图片模拟服务器读取
}
]]>
</mx:scrīpt>
<mx:VBox id="vbox0" //VBOX是竖着排列的意思
width="600" height="600">
<mx:Canvas>
<mx:ProgressBar
width="300"
source="image1"
mode="polled"
label="Loading Image %1 out of %2 bytes, %3%%"
labelWidth="400"/> //进度条的设置。1%=现在读取的多少数据;
2%=数据总数;
3%=读取的百分比;
%%=显示一个%号;
</mx:Canvas>//相当于一个容器
<mx:Button id="myButton"
label="Show"
click="initImage();"/>点击时调取的initimage的函数
<mx:Image id="image1"
height="600" width="600"
autoLoad="false"
visible="true"/> //图片的相关信息
</mx:VBox>
</mx:Application>
这是在FLex里有关于对进度条的介绍!我会在后面加上注释~~~
