topical media & game development
viewer-PhotoViewer.mx
viewer-PhotoViewer.mx
[swf]
flex
<?xml version="1.0" encoding="utf-8"?>
<!--
//////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
// All Rights Reserved.
// The following is Sample Code and is subject to all restrictions on such code
// as contained in the End User License Agreement accompanying this product.
// If you have received this file from a source other than Adobe,
// then your use, modification, or distribution of it requires
// the prior written permission of Adobe.
//
//////////////////////////////////////////////////////////////////////////
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ae="*"
paddingBottom="0" paddingTop="0"
paddingLeft="0" paddingRight="0"
layout="vertical"
pageTitle="Photo Viewer"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.*;
//import samples.photoviewer.Gallery;
//import samples.photoviewer.PhotoService;
[Bindable]
private var gallery:sample_Gallery;
[Bindable]
private var service:sample_PhotoService;
private function init():void
{
service = new sample_PhotoService("viewer-data-galleries.xml");
}
]]>
</mx:Script>
<mx:Style source="viewer-main.css" />
<mx:Binding source="service.galleries.getItemAt(0) as sample_Gallery" destination="gallery" />
<mx:ViewStack id="views" width="100%" height="100%">
<ae:viewer_ThumbnailView id="thumbnailView" gallery="{gallery}"
slideshowView="views.selectedChild = slideshowView"
carouselView="views.selectedChild = carouselView"/>
<ae:viewer_CarouselView id="carouselView" gallery="{gallery}"
slideshowView="views.selectedChild = slideshowView"
thumbnailView="views.selectedChild = thumbnailView"/>
<ae:viewer_SlideShowView id="slideshowView" gallery="{gallery}"
thumbnailView="views.selectedChild = thumbnailView"
carouselView="views.selectedChild = carouselView"/>
</mx:ViewStack>
</mx:Application>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.