<?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>
	<lastBuildDate>Thu, 01 Mar 2012 14:48:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: armen</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-3605</link>
		<dc:creator>armen</dc:creator>
		<pubDate>Mon, 24 Jan 2011 14:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-3605</guid>
		<description>@alex, I believe &quot;public function loadImage(pIndex : uint = 1) : void&quot; is what u are looking for.

if that will  not help, u can add inside ScGallery.as:
public var defIndex:Number=1;
and change inside build() method: loadImage(defIndex);

When u start gallery u can change that variable: 
_gallery = new ScGallery(new Rectangle(0,0,800,600));
_gallery.defIndex =3;
after that gallery will start from 3 th image.
thx</description>
		<content:encoded><![CDATA[<p>@alex, I believe &#8220;public function loadImage(pIndex : uint = 1) : void&#8221; is what u are looking for.</p>
<p>if that will  not help, u can add inside ScGallery.as:<br />
public var defIndex:Number=1;<br />
and change inside build() method: loadImage(defIndex);</p>
<p>When u start gallery u can change that variable:<br />
_gallery = new ScGallery(new Rectangle(0,0,800,600));<br />
_gallery.defIndex =3;<br />
after that gallery will start from 3 th image.<br />
thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://abrahamyan.com/2009/08/16/as3-scaling-image-gallery/comment-page-1/#comment-3604</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sun, 23 Jan 2011 18:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=186#comment-3604</guid>
		<description>You saved my life with this gallery. Thanks a lot Armen.

I just need a tiny help. Is it possible to open the gallery in a specific image like having a thumb menu and opening the gal with that selected image? is it???

Thanks a lot man.</description>
		<content:encoded><![CDATA[<p>You saved my life with this gallery. Thanks a lot Armen.</p>
<p>I just need a tiny help. Is it possible to open the gallery in a specific image like having a thumb menu and opening the gal with that selected image? is it???</p>
<p>Thanks a lot man.</p>
]]></content:encoded>
	</item>
	<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(&quot;xml/portraits.xml&quot;);
			
				
}
// 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(&quot;xml/data.xml&quot;);	
							
}
///////////////////////////////////////////////////////////////

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(&#8220;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(&#8220;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&#039;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&#039;t find anything I don&#039;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>

