惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
L
LangChain Blog
M
MIT News - Artificial intelligence
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
P
Proofpoint News Feed
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
I
InfoQ
月光博客
月光博客
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - Franky
D
Docker
B
Blog

博客园 - 榛子树

一位88岁老人的生活秘诀 blog自定义模板的开发,请高手指点思路 flex特性 程序员容易得的病 CSS选择符 软件界面设计技巧 看了让人脑子打结的文章 冷漠的父亲教我做硬汉 值得珍藏的五十句话 爱真的需要勇气 Web2.0技术包括哪些内容? ASP.NET编程中的十大技巧 C# 编码规范和编程好习惯 flash非组件的翻书效果制作过程 很不错的滑动门菜单(div+css)提供下载 生活充满选择! 比尔盖茨的11条人生箴言 很实用的在线服务网站 共同分享Adobe illustrator的快捷键大全
Flex相册
榛子树 · 2007-03-30 · via 博客园 - 榛子树

Photo Viewer

The Photo Viewer application is a straightforward photo-viewing application. The first screen shows thumbnails of each photo in the gallery. When you click those thumbnails, the selected image shows in the main part of the screen. The next screen is a different list view, which uses a component that simulates a carousel. If you press the Next and Previous buttons, the carousel rotates so that the selected image is centered. The final view is a slide show. The image shows full-screen, but if you hold the mouse over it, control bars appear that show the details. You can also pause the slide show, move to another image, or change back to other views.

Experience the application

To download and view the full source, right-click the Flex application and select View Source from the context menu.

Requirements

To view this sample application, you need the following software and files:

Flash Player 9

Sample Files

To download and view the source code for this sample, browse the application, right-click the sample, and select view source. You will find detailed instructions for implementing and deploying the application in the ReadMe for the application.

Flex framework features

The thumbnail view shows how you can use a HorizontalList component to display images, especially when you use a custom itemRenderer that controls its own highlighting and states, based on the user's selection. The Carousel is a custom component that moves and resizes the images by using effects. This component is simple, but you could create more complex animations. Notice how easy it is to add the corner decorations by using the Graphics class in the CarouselImage component. The slide show is also straightforward, but demonstrates how sometimes you must customize the mouse event handling to accurately show and hide the control bars.

This application is keyboard accessible. All content and buttons can come into focus without the use of a mouse; you can control the navigation bar in the slideshow view using the up and down arrow keys. Note that the slideshow keyboard behavior is not based on a standard interaction paradigm, which means that it is important to document similar usage in your own applications.

This application also shows how to use resource bundles to internationalize and localize your application. The build scripts (available when you download the source) show how you can change the locale of the application, which compiles in a different resource bundle. Bundles for the application are provided for English, Japanese, French, and German.