求助 图片交互问题

siemems 2010-07-08 03:11:20
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" width="820" height="593" dropShadowVisible="true" contentBackgroundAlpha="0.0" backgroundAlpha="0.0" borderAlpha="0.0"
>

<mx:states>
<!-- Define the new view states. -->
<s:State name="default"/>
<s:State name="State1"/>
</mx:states>
<mx:transitions>
<s:Transition fromState="*" toState="*">
<s:Sequence id="t1" targets="{[Panel_two,video]}">

<mx:Blur id="myBlur" duration="100" blurXFrom="0.0"
blurXTo="10.0" blurYFrom="0.0" blurYTo="10.0"/>

<s:Parallel>
<s:Move duration="400"/>
<s:Resize duration="400"/>
</s:Parallel>

<mx:Blur id="myUnBlur" duration="100" blurXFrom="10.0"
blurXTo="0.0" blurYFrom="10.0" blurYTo="0.0"/>
</s:Sequence>
</s:Transition>
</mx:transitions>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
<!-- Define custom colors for use as pie wedge fills. -->
<mx:SolidColor id="sc1_Pie" color="blue" alpha=".6"/>
<mx:SolidColor id="sc2_Pie" color="red" alpha=".6"/>
<mx:SolidColor id="sc3_Pie" color="green" alpha=".6"/>

<!-- This Stroke is used for the callout lines. -->
<mx:SolidColorStroke id="callouts" weight="2" color="0x999999" alpha=".8" caps="square"/>

<!-- This Stroke is used to separate the wedges in the pie. -->
<mx:SolidColorStroke id="radial" weight="1" color="0xFFFFCC" alpha=".3"/>

<!-- This Stroke is used for the outer border of the pie. -->
<mx:SolidColorStroke id="pieborder" color="0x000000" weight="2" alpha=".5"/>

<mx:Dissolve id="dissolveOut" duration="2000" alphaFrom="1.0" alphaTo="0.0"/>
<mx:Dissolve id="dissolveIn" duration="2000" alphaFrom="0.0" alphaTo="1.0"/>
</fx:Declarations>
<mx:Label text="基本情况" x="6" y="16" fontFamily="中易宋体" id="lab" color="#959191" fontWeight="bold" x.default="3" y.default="23" hideEffect="{dissolveOut}" showEffect="{dissolveIn}" x.State1="3" y.State1="23">
</mx:Label>
<mx:HRule x="60" y="30" width="723" includeIn="default"/>

<s:Panel id="Panel_one" click="currentState='default'" backgroundAlpha="0.0" title="XXXX公司概况" fontFamily="中易宋体" color="#FFFFFF" chromeColor="#2E2E2E" borderVisible="false" borderAlpha="0.0" hideEffect="{dissolveOut}" showEffect="{dissolveIn}" fontSize.State1="6" x.default="6" left.State1="562" horizontalCenter.State1="263" right.State1="36" y.default="45" top.State1="43" verticalCenter.State1="-159" height.default="490" bottom.State1="360" width.default="531">
<s:BorderContainer height="413" y="35" width="499" x="6" id="picture" borderVisible="false" backgroundAlpha="0.0" contentBackgroundAlpha="0.0" width.State1="206" height.State1="127" y.State1="22" x.State1="6">
<mx:Image id="scene1_1_picture" source="com/nari/smartgrid/client/images/21.png" width="490" height="418" x="0" y="-4" hideEffect="{dissolveOut}" showEffect="{dissolveIn}" width.State1="206" height.State1="131">
</mx:Image>
</s:BorderContainer>
<mx:RadioButton groupName="cardtype" id="information" label="基本情况" value="frist" width="87" selected="true" x="18" y="3" chromeColor="#FFFFFF" fontSize="15" color="#FFFFFF" fontSize.State1="6" width.State1="42"/>
<mx:RadioButton groupName="cardtype" id="struct" label="XX结构" value="second" width="91" x="101" y="3" chromeColor="#FFFFFF" fontSize="15" color="#FFFFFF" fontSize.State1="6" x.State1="68" y.State1="3" width.State1="55"/>
<mx:ComboBox x="330" y="0" id="comBoxList" editable="false" rollOverColor="#FAF5F5" chromeColor="#07ADFA" x.default="356" y.default="0.05" width.State1="65" x.State1="155" y.State1="0" height.State1="14"/>
</s:Panel>

<s:Panel id="Panel_two" click="currentState='State1'" title="宣传片" fontFamily="中易宋体" fontSize="12" fontWeight="normal" chromeColor="#2E2E2E" color="#FFFFFF" borderVisible="false" borderAlpha="0.0" backgroundAlpha="0.0" fontStyle="normal" contentBackgroundAlpha="1.0" hideEffect="{dissolveOut}" showEffect="{dissolveIn}" width.State1="513" left.default="562" horizontalCenter.default="263" x.State1="6" right.default="36" height.State1="490" top.default="43" verticalCenter.default="-159" y.State1="45" bottom.default="360" fontSize.default="6">
<s:VideoDisplay id="video" autoPlay="true" source="video/XXX.flv" width="202" height="139" y="10" x="10" width.State1="440" height.State1="420" x.default="7" y.default="6" x.State1="10" y.State1="10">
</s:VideoDisplay>

</s:Panel>
<mx:HRule x="527" y="284" width="272" includeIn="default" hideEffect="{dissolveOut}" showEffect="{dissolveIn}"/>
<mx:HRule x="60" y="30" width="723" includeIn="State1"/>
<mx:HRule x="527" y="284" width="272" hideEffect="{dissolveOut}" showEffect="{dissolveIn}" includeIn="State1"/>

</mx:Module>[


源码如上,当2个panel交互的时候,VIDEO文件先被放大了。这个如何解决。想2个模块交互的时候比较流畅。求解。
...全文
92 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
siemems 2010-07-08
  • 打赏
  • 举报
回复
补充一下,利用STATE的状态,来控制图片的位置切换
内容概要:本文档为《Java Web应用程序开发》大作业,主要介绍了一个商品管理系统的设计与实现过程,系统使用JSP、Gradle构建工具、HSQLDB轻量级数据库进行开发。具体实现步骤涵盖了从登录验证到商品管理和图片上传的一系列功能点,其中包括:登录验证、分类管理(创建/修改/删除)、商品展示与新增、以及商品图片上传等操作,所有这些操作的数据存储均通过与后台数据库交互来完成。整个项目强调不引入额外的技术栈和复杂的样式表。 适合人群:适用于已经掌握了基本Java和Web开发概念,正在深入学习Java Web相关技术的大专及以上层次的学生和技术爱好者。 使用场景及目标:旨在让学生能够通过实际动手操作来加深对Java Web开发流程的理解,尤其是掌握JSP动态网页技术的应用、Servlet作为服务器端处理器的工作机制、以及与数据库交互的基础技巧。 阅读建议:为了更好地理解和实施这个项目,建议学生不仅要关注具体的编码细节,还要注重整个项目的架构设计思想。同时,利用好课件提供的指导材料和其他在线学习资源来补充知识点不足的地方。另外,可以通过参与小组讨论或者向老师求助的方式解决遇到的问题

4,327

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计 Flex
社区管理员
  • Flex
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧