topical media & game development

talk show tell print

lib-flex-store-productsView-ProductDetails.mx

lib-flex-store-productsView-ProductDetails.mx (swf ) [ flash ] 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:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:productsView="*" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:Metadata> [Event(name="purchase", type="lib_flex_store_samples_flexstore_ProductThumbEvent")] [Event(name="compare", type="lib_flex_store_samples_flexstore_ProductThumbEvent")] [Event(name="browse", type="lib_flex_store_samples_flexstore_ProductThumbEvent")] </mx:Metadata> <mx:Script> <![CDATA[ import mx.events.*; //import samples.flexstore.Product; //import samples.flexstore.ProductThumbEvent; private var _product:lib_flex_store_samples_flexstore_Product; [Bindable] public function get product():lib_flex_store_samples_flexstore_Product { return _product; } public function set product(p:lib_flex_store_samples_flexstore_Product):void { _product = p; tn.selectedIndex = 0; } ]]> </mx:Script> <mx:CurrencyFormatter currencySymbol="" id="cf" precision="2"/> <mx:TabNavigator id="tn" width="100%" height="100%" left="4" right="8" top="4" bottom="4"> <mx:VBox width="100%" height="100%" label="Features" verticalGap="8" paddingLeft="8" paddingTop="8" paddingRight="8" paddingBottom="8" showEffect="Fade" hideEffect="Fade"> <mx:HBox width="100%" horizontalGap="12"> <mx:Image id="img" width="101" height="200" source="{product.image}"/> <mx:VBox id="descr" width="100%" height="100%" paddingTop="0" verticalGap="4"> <mx:Label text="{product.name}" fontSize="11" fontWeight="bold"/> <mx:Text text="{product.featureString}" width="80" height="48"/> <mx:Label text="{product.highlight1}" color="#EE8D0C"/> <mx:Label text="{product.highlight2}" color="#EE8D0C"/> <mx:Label text="{cf.format(product.price)}" fontWeight="bold"/> </mx:VBox> </mx:HBox> <mx:Text id="descriptionText" width="100%" height="100%" text="{product.description}"/> </mx:VBox> <productsView:lib_flex_store_productsView_ProductSupport width="100%" height="100%" label="Support" showEffect="Fade" hideEffect="Fade"/> </mx:TabNavigator> <mx:VBox verticalGap="4" right="16" top="36"> <mx:Spacer width="100%"/> <mx:Button icon="@Embed('lib-flex-store-assets-icon-cart-empty.png')" click="dispatchEvent(new lib_flex_store_samples_flexstore_ProductThumbEvent(lib_flex_store_samples_flexstore_ProductThumbEvent.PURCHASE, product))" width="30" toolTip="Add to cart"/> <mx:Button icon="@Embed('lib-flex-store-assets-icon-compare.png')" click="dispatchEvent(new lib_flex_store_samples_flexstore_ProductThumbEvent(lib_flex_store_samples_flexstore_ProductThumbEvent.COMPARE, product))" width="30" toolTip="Add to compare list"/> <mx:Button icon="@Embed('lib-flex-store-assets-icon-tiles.png')" click="dispatchEvent(new lib_flex_store_samples_flexstore_ProductThumbEvent(lib_flex_store_samples_flexstore_ProductThumbEvent.BROWSE, product));" width="30" toolTip="Back to thumbnail view"/> </mx:VBox> </mx:Canvas>


(C) Æliens 18/6/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.