<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" top="0" left="0" right="0" bottom="0" backgroundColor="#cccccc"
verticalScrollPolicy="on"
xmlns:local="*"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
xmlns:mccune="com.dougmccune.controls.*"
xmlns:stucki="com.fusionx.ui.*"
xmlns:ac="com.adobe.ac.mxeffects.*"
initialize="createData();"
xmlns="*" xmlns:yspnei="yspnei.*">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.core.DragSource;
import mx.core.FlexGlobals;
import mx.core.IUIComponent;
import mx.core.UIComponent;
import mx.events.CloseEvent;
import mx.events.DragEvent;
import mx.events.EffectEvent;
import mx.events.FlexEvent;
import mx.managers.DragManager;
import mx.managers.PopUpManager;
import yspnei.IP;
import yspnei.KeHuDuan;
import yspnei.RiZhi;
import yspnei.TongJiGaiKuang;
//底层苹果效果
[Bindable]
public var myImages:Array = [
"icons/Adobe Fireworks 9.png",
"icons/Adobe Flex 3.png",
"icons/Adobe Device Central.png",
"icons/Adobe Photoshop CS3.png",
"icons/Options.png",
"icons/Most Popular Today.png"
];
private var dp:Array;
private function createData():void
{
dp = new Array();
for(var i:int=0; i<myImages.length; i++) {
var obj:Object = new Object();
obj.thumb = myImages[i];
obj.se=i;
dp.push(obj);
}
fisheye.dataProvider = dp;
}
public var tongjigaikuang:TongJiGaiKuang;
public var rizhi:RiZhi;
//底层重点,弹出窗口
private function changeSelected(event:Event):void {
if(fisheye.selectedIndex==0) {
tongjigaikuang=new TongJiGaiKuang();
PopUpManager.addPopUp(tongjigaikuang,FlexGlobals.topLevelApplication as DisplayObject,true);
PopUpManager.centerPopUp(tongjigaikuang);
rs.target=tongjigaikuang;
rs.play();
}
else if(fisheye.selectedIndex==1) {
rizhi=new RiZhi();
PopUpManager.addPopUp(rizhi,FlexGlobals.topLevelApplication as DisplayObject,true);
PopUpManager.centerPopUp(rizhi);
rs2.target=rizhi;
rs2.play();
}else if(fisheye.selectedIndex==1){
fisheye.enabled=false;
}
}
//更换皮肤
[Bindable]
private var zhuangShiWindows:ZhuangShiWindows;
protected function ghpf_clickHandler(event:MouseEvent):void
{
zhuangShiWindows=new ZhuangShiWindows();
PopUpManager.addPopUp(zhuangShiWindows,FlexGlobals.topLevelApplication as DisplayObject);
PopUpManager.centerPopUp(zhuangShiWindows);//居中对齐
}
]]>
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
<mx:Iris id="iris" duration="600"/>
<mx:WipeLeft id="left"/>
<s:Fade id="fade" duration="1000" alphaFrom="0.0" alphaTo="1.0"/>
<s:Fade id="fades" duration="1000" alphaFrom="1.0" alphaTo="0.0"/>
<mx:Zoom id="rs" zoomHeightFrom="0" zoomHeightTo="1" zoomWidthFrom="0" zoomWidthTo="1" originX="{593}" originY="{550}" duration="500"/>
<mx:Zoom id="rs2" zoomHeightFrom="0" zoomHeightTo="1" zoomWidthFrom="0" zoomWidthTo="1" originX="{635}" originY="{550}" duration="500"/>
</fx:Declarations>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
.chartTitle{
color: "0xFFAE00";
fontWeight: bold;
textAlign: center;
fontSize: 15;
fontFamily: 宋体;
paddingTop:3;
}
.textTitle{
color: "0x000000";
fontWeight: normal;
textAlign: center;
fontSize: 12;
fontFamily: 宋体;
}
</fx:Style>
<s:DataGroup itemRenderer="view.ShowZhuangshiSon" id="dg" height="100%" width="100%">
</s:DataGroup>
<s:VGroup width="100%" height="100%" gap="10">
<s:Group width="100%">
<mx:Image width="100%" height="100%" maintainAspectRatio="false"> </mx:Image>
<mx:LinkButton x="1055" y="70" label="更换皮肤" click="ghpf_clickHandler(event)" id="ghpf" buttonMode="true"/>
</s:Group>
<s:VGroup width="100%" horizontalAlign="center" height="415">
<!--切换界面-->
<mx:ViewStack id="viewStack" width="80%" height="100%">
<local:ExampleContainer backgroundColor="0xb80000" hideEffect="fades" showEffect="fade" label="" id="sy"/>
<local:YSPManager backgroundAlpha="0" hideEffect="left" showEffect="left" label=""/>
<local:P2PManager backgroundColor="0xc07800" hideEffect="left" showEffect="left" label=""/>
<local:P2SPManager backgroundColor="0xc07800" hideEffect="left" showEffect="left" label=""/>
</mx:ViewStack>
<mx:ToggleButtonBar dataProvider="{viewStack}" width="80%"/>
</s:VGroup>
<mccune:BouncingFisheye id="fisheye"
change="changeSelected(event)"
width="100%" height="80"
bounceDistance="70"
stateProperty="currentState"
rolloverValue="hilighted"
defaultValue="" selectedValue="selected"
verticalAlign="bottom" horizontalAlign="center"
animationSpeed=".2" defaultSpacing="0"
defaultScale=".35" hilightMaxScale=".65"
hilightScaleSlope=".4" hilightSpacing="0" hilightScaleRadius="4" >
<mccune:itemRenderer>
<fx:Component>
<mccune:BouncingBurningTile>
<mccune:states>
<s:State name="selected">
</s:State>
<s:State name="hilighted">
</s:State>
</mccune:states>
</mccune:BouncingBurningTile>
</fx:Component>
</mccune:itemRenderer>
</mccune:BouncingFisheye>
<mx:HBox width="100%" horizontalAlign="center" horizontalGap="10" horizontalScrollPolicy="off" verticalScrollPolicy="off">
</mx:HBox>
</s:VGroup>
</mx:Canvas>
<mccune:BouncingFisheye>是需要引用的类,想要此类的可以留言!