<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: as3 Scaling Image Gallery</title>
	<atom:link href="http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/feed/" rel="self" type="application/rss+xml" />
	<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/</link>
	<description>Flash, Flex Developer  &#124;  personal playground</description>
	<pubDate>Sat, 31 Jul 2010 08:54:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Everin</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-196</link>
		<dc:creator>Everin</dc:creator>
		<pubDate>Fri, 20 Nov 2009 02:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-196</guid>
		<description>Very nice work Abraham.

To implement category, draw to buttons (or 1000) and on key frame one:

/////// remove all //////////

addEventListener(Event.ENTER_FRAME,myEnterFrame);
function myEnterFrame(event:Event) {
	if ( _gallery ){
			_gallery.removeEventListener(ScGallery.ON_HIDE, onGalleryHide);
			removeChild(_gallery);
			_gallery =null;
	}
}
////////////// end remove all /////////////////

/////////////// buttons //////////

unu_btn.buttonMode = true;
unu_btn.addEventListener(MouseEvent.CLICK, Load_Gallery);

function Load_Gallery(event : MouseEvent) : void {
	
	removeEventListener(Event.ENTER_FRAME,myEnterFrame);  // STOP THIS LISTENER
	_gallery =new ScGallery(new Rectangle(0,0,800,600));
			_gallery.addEventListener(ScGallery.ON_HIDE, onGalleryHide);
			addChild(_gallery);
			_gallery.loadData("xml/portraits.xml");
			
				
}
// repetate the code for button two //

doi_btn.buttonMode = true;
doi_btn.addEventListener(MouseEvent.CLICK, Load_Gallery2);

function Load_Gallery2(event : MouseEvent) : void {
	removeEventListener(Event.ENTER_FRAME,myEnterFrame);  // STOP THIS LISTENER
	_gallery =new ScGallery(new Rectangle(0,0,800,600));
			_gallery.addEventListener(ScGallery.ON_HIDE, onGalleryHide);
			addChild(_gallery);
			_gallery.loadData("xml/data.xml");	
							
}
///////////////////////////////////////////////////////////////

Duplicate the data.xml and rename it for each buttons, is pretty self explanatory.

Have a nice day,</description>
		<content:encoded><![CDATA[<p>Very nice work Abraham.</p>
<p>To implement category, draw to buttons (or 1000) and on key frame one:</p>
<p>/////// remove all //////////</p>
<p>addEventListener(Event.ENTER_FRAME,myEnterFrame);<br />
function myEnterFrame(event:Event) {<br />
	if ( _gallery ){<br />
			_gallery.removeEventListener(ScGallery.ON_HIDE, onGalleryHide);<br />
			removeChild(_gallery);<br />
			_gallery =null;<br />
	}<br />
}<br />
////////////// end remove all /////////////////</p>
<p>/////////////// buttons //////////</p>
<p>unu_btn.buttonMode = true;<br />
unu_btn.addEventListener(MouseEvent.CLICK, Load_Gallery);</p>
<p>function Load_Gallery(event : MouseEvent) : void {</p>
<p>	removeEventListener(Event.ENTER_FRAME,myEnterFrame);  // STOP THIS LISTENER<br />
	_gallery =new ScGallery(new Rectangle(0,0,800,600));<br />
			_gallery.addEventListener(ScGallery.ON_HIDE, onGalleryHide);<br />
			addChild(_gallery);<br />
			_gallery.loadData(&#8221;xml/portraits.xml&#8221;);</p>
<p>}<br />
// repetate the code for button two //</p>
<p>doi_btn.buttonMode = true;<br />
doi_btn.addEventListener(MouseEvent.CLICK, Load_Gallery2);</p>
<p>function Load_Gallery2(event : MouseEvent) : void {<br />
	removeEventListener(Event.ENTER_FRAME,myEnterFrame);  // STOP THIS LISTENER<br />
	_gallery =new ScGallery(new Rectangle(0,0,800,600));<br />
			_gallery.addEventListener(ScGallery.ON_HIDE, onGalleryHide);<br />
			addChild(_gallery);<br />
			_gallery.loadData(&#8221;xml/data.xml&#8221;);	</p>
<p>}<br />
///////////////////////////////////////////////////////////////</p>
<p>Duplicate the data.xml and rename it for each buttons, is pretty self explanatory.</p>
<p>Have a nice day,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jinjaninja</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-165</link>
		<dc:creator>Jinjaninja</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-165</guid>
		<description>Awesome post. Made my day much simpler. Your attention to detail with your commenting is superb makes it crystal clear what's happening when. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Awesome post. Made my day much simpler. Your attention to detail with your commenting is superb makes it crystal clear what&#8217;s happening when. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: F2nd</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-141</link>
		<dc:creator>F2nd</dc:creator>
		<pubDate>Sat, 22 Aug 2009 23:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-141</guid>
		<description>Excellent gallery, Armen and something to learn from. I can't find anything I don't like, maybe just some design tweaks like semi-transparent navigation arrows, but functionality is just fine.</description>
		<content:encoded><![CDATA[<p>Excellent gallery, Armen and something to learn from. I can&#8217;t find anything I don&#8217;t like, maybe just some design tweaks like semi-transparent navigation arrows, but functionality is just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yugi</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-134</link>
		<dc:creator>Yugi</dc:creator>
		<pubDate>Mon, 17 Aug 2009 13:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-134</guid>
		<description>As always, very nice post. Thanks for sharing the code.</description>
		<content:encoded><![CDATA[<p>As always, very nice post. Thanks for sharing the code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
