BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #24654同步于 2008/3/24
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖

发个东西给COOL看看

atian25
2008/3/24镜像同步19 回复
附件(273.7KB) 源码 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="695" height="555"> <mx:states> <mx:State name="A"> <mx:SetProperty target="{windowA}" name="width" value="500"/> <mx:SetProperty target="{windowA}" name="height" value="300"/> <mx:SetProperty target="{windowC}" name="width" value="150"/> <mx:SetProperty target="{windowC}" name="height" value="150"/> <mx:SetProperty target="{windowC}" name="y" value="333"/> <mx:SetProperty target="{windowD}" name="x" value="373"/> <mx:SetProperty target="{windowD}" name="width" value="150"/> <mx:SetProperty target="{windowD}" name="height" value="150"/> <mx:SetProperty target="{windowD}" name="y" value="333"/> <mx:SetProperty target="{windowB}" name="x" value="23"/> <mx:SetProperty target="{windowB}" name="y" value="333"/> <mx:SetProperty target="{windowB}" name="width" value="150"/> <mx:SetProperty target="{windowB}" name="height" value="150"/> <mx:SetProperty target="{windowC}" name="x" value="200"/> </mx:State> <mx:State name="B"> <mx:SetProperty target="{windowD}" name="width" value="150"/> <mx:SetProperty target="{windowD}" name="height" value="150"/> <mx:SetProperty target="{windowC}" name="width" value="150"/> <mx:SetProperty target="{windowC}" name="height" value="150"/> <mx:SetProperty target="{windowA}" name="width" value="150"/> <mx:SetProperty target="{windowA}" name="height" value="150"/> <mx:SetProperty target="{windowB}" name="width" value="500"/> <mx:SetProperty target="{windowB}" name="height" value="300"/> <mx:SetProperty target="{windowA}" name="y" value="333"/> <mx:SetProperty target="{windowC}" name="x" value="200"/> <mx:SetProperty target="{windowC}" name="y" value="333"/> <mx:SetProperty target="{windowB}" name="x" value="23"/> <mx:SetProperty target="{windowD}" name="x" value="373"/> <mx:SetProperty target="{windowD}" name="y" value="333"/> </mx:State> <mx:State name="C"> <mx:SetProperty target="{windowD}" name="width" value="150"/> <mx:SetProperty target="{windowD}" name="height" value="150"/> <mx:SetProperty target="{windowB}" name="width" value="150"/> <mx:SetProperty target="{windowB}" name="height" value="150"/> <mx:SetProperty target="{windowA}" name="width" value="150"/> <mx:SetProperty target="{windowA}" name="height" value="150"/> <mx:SetProperty target="{windowC}" name="width" value="500"/> <mx:SetProperty target="{windowC}" name="height" value="300"/> <mx:SetProperty target="{windowA}" name="y" value="333"/> <mx:SetProperty target="{windowB}" name="x" value="200"/> <mx:SetProperty target="{windowB}" name="y" value="333"/> <mx:SetProperty target="{windowC}" name="x" value="23"/> <mx:SetProperty target="{windowC}" name="y" value="19"/> <mx:SetProperty target="{windowD}" name="x" value="373"/> <mx:SetProperty target="{windowD}" name="y" value="333"/> </mx:State> <mx:State name="D"> <mx:SetProperty target="{windowC}" name="width" value="150"/> <mx:SetProperty target="{windowC}" name="height" value="150"/> <mx:SetProperty target="{windowB}" name="width" value="150"/> <mx:SetProperty target="{windowB}" name="height" value="150"/> <mx:SetProperty target="{windowA}" name="width" value="150"/> <mx:SetProperty target="{windowA}" name="height" value="150"/> <mx:SetProperty target="{windowD}" name="width" value="500"/> <mx:SetProperty target="{windowD}" name="height" value="300"/> <mx:SetProperty target="{windowA}" name="y" value="333"/> <mx:SetProperty target="{windowB}" name="x" value="200"/> <mx:SetProperty target="{windowB}" name="y" value="333"/> <mx:SetProperty target="{windowD}" name="x" value="23"/> <mx:SetProperty target="{windowD}" name="y" value="19"/> <mx:SetProperty target="{windowC}" name="x" value="373"/> <mx:SetProperty target="{windowC}" name="y" value="333"/> </mx:State> </mx:states> <mx:transitions> <mx:Transition fromState="*" toState="*"> <mx:Parallel targets="{[windowA, windowB, windowC, windowD]}"> <mx:Move /> <mx:Resize /> </mx:Parallel> </mx:Transition> </mx:transitions> <mx:TitleWindow x="23" y="19" width="250" height="200" layout="absolute" title="A" id="windowA" click="currentState='A'" /> <mx:TitleWindow x="309" y="19" width="250" height="200" layout="absolute" title="B" id="windowB" click="currentState='B'" /> <mx:TitleWindow x="23" y="260" width="250" height="200" layout="absolute" title="C" id="windowC" click="currentState='C'" /> <mx:TitleWindow x="309" y="260" width="250" height="200" layout="absolute" title="D" id="windowD" click="currentState='D'" /> </mx:Application>
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
RayNCC机器人#1 · 2008/3/24
如果再增加一个窗口呢。。。。
atian25机器人#2 · 2008/3/24
其实这里,只是很粗略的展示. 你看看代码,前面一大段,都是在设置各种状态下每个窗口的大小和位置. 底部是定义窗口个数和名称. 中间有几行Transition就是转换的关键代码了. 如果嵌入as的话,可以省出来很多代码. 如果用上合适的Layout的话,完全可以把前面那一大段省去.
ericyosho机器人#3 · 2008/3/24
发现用flashplayer 7打开什么都没有。。。 这个flex是不是很新的东东啊?
ox机器人#4 · 2008/3/24
挺新的 【 在 ericyosho (ericyosho) 的大作中提到: 】 : 发现用flashplayer 7打开什么都没有。。。 : 这个flex是不是很新的东东啊?
atian25机器人#5 · 2008/3/24
不知道,你用flash player 9 plugin看看.
ericyosho机器人#6 · 2008/3/24
现在还有没有像原来那样的一个独立运行的player啊? 好像都是plugin,没有独立的东西,很不好。
atian25机器人#7 · 2008/3/24
有啊. 怎么可能没有呢,呵呵.. 甚至还出了个AIR,你可以理解为adobe版的JVM吧..不过先可以无视了..
ericyosho机器人#8 · 2008/3/24
共享一下吧,官网上看的只有各种plugin 。。。
atian25机器人#9 · 2008/3/24
[upload=1]aaa[/upload] 【 在 atian25 的大作中提到: 】 : : 源码 : <?xml version="1.0" encoding="utf-8"?> : ...................