<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Swf.hu 2.0 fórum &#62; Topic: Objektum lemásolása/duplikálása</title>
		<link>http://www.swf.hu/forum/topic/objektum-lemasolasa</link>
		<description>Swf.hu 2.0 fórum &gt; Topic: Objektum lemásolása/duplikálása</description>
		<language>hu-HU</language>
		<pubDate>Wed, 08 Feb 2012 15:13:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Keresés]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.swf.hu/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.swf.hu/forum/rss/topic/objektum-lemasolasa" rel="self" type="application/rss+xml" />

		<item>
			<title>shine_ @ "Objektum lemásolása/duplikálása"</title>
			<link>http://www.swf.hu/forum/topic/objektum-lemasolasa#post-1344</link>
			<pubDate>Sze, 07 ápr 2010 08:48:31 +0000</pubDate>
			<dc:creator>shine_</dc:creator>
			<guid isPermaLink="false">1344@http://www.swf.hu/forum/</guid>
			<description>&#60;p&#62;Köszi!&#60;br /&#62;
Ha kell a clone, és fontos a sebesség, akkor ilyeneket fogok írni. Ha nem fontos, akkor meg felhívom a román kolléga UtilFunctions.clone-ját.&#60;br /&#62;
&#60;a href=&#34;http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/&#34; rel=&#34;nofollow&#34;&#62;http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Germo @ "Objektum lemásolása/duplikálása"</title>
			<link>http://www.swf.hu/forum/topic/objektum-lemasolasa#post-1342</link>
			<pubDate>Sze, 07 ápr 2010 07:39:44 +0000</pubDate>
			<dc:creator>Germo</dc:creator>
			<guid isPermaLink="false">1342@http://www.swf.hu/forum/</guid>
			<description>


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;actionscript&#34; style=&#34;font-family:monospace;&#34;&#62;&#60;span style=&#34;color: #0066CC;&#34;&#62;Object&#60;/span&#62;.&#60;span style=&#34;color: #0066CC;&#34;&#62;prototype&#60;/span&#62;.&#60;span style=&#34;color: #006600;&#34;&#62;clone&#60;/span&#62;=&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;function&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#123;&#60;/span&#62;
	&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;var&#60;/span&#62; o=&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#123;&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#125;&#60;/span&#62;
	&#60;span style=&#34;color: #b1b100;&#34;&#62;for&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;var&#60;/span&#62; i &#60;span style=&#34;color: #b1b100;&#34;&#62;in&#60;/span&#62; &#60;span style=&#34;color: #0066CC;&#34;&#62;this&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#123;&#60;/span&#62; o&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#91;&#60;/span&#62;i&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#93;&#60;/span&#62;=&#60;span style=&#34;color: #0066CC;&#34;&#62;this&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#91;&#60;/span&#62;i&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#93;&#60;/span&#62; &#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#125;&#60;/span&#62;
	&#60;span style=&#34;color: #b1b100;&#34;&#62;return&#60;/span&#62; o
&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#125;&#60;/span&#62;
&#38;nbsp;
&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;var&#60;/span&#62; golden = &#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#123;&#60;/span&#62;szin:&#60;span style=&#34;color: #ff0000;&#34;&#62;&#38;quot;arany&#38;quot;&#60;/span&#62;,minSuly:&#60;span style=&#34;color: #cc66cc;&#34;&#62;0.03&#60;/span&#62;,maxSuly:&#60;span style=&#34;color: #cc66cc;&#34;&#62;0.07&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#125;&#60;/span&#62;
&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;var&#60;/span&#62; jonatan = golden.&#60;span style=&#34;color: #006600;&#34;&#62;clone&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#41;&#60;/span&#62;
jonatan.&#60;span style=&#34;color: #006600;&#34;&#62;szin&#60;/span&#62;=&#60;span style=&#34;color: #ff0000;&#34;&#62;&#38;quot;piros&#38;quot;&#60;/span&#62;
&#38;nbsp;
&#60;span style=&#34;color: #0066CC;&#34;&#62;trace&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#40;&#60;/span&#62;golden.&#60;span style=&#34;color: #006600;&#34;&#62;szin&#60;/span&#62;,jonatan.&#60;span style=&#34;color: #006600;&#34;&#62;szin&#60;/span&#62;&#60;span style=&#34;color: #66cc66;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;



&#60;p&#62;Ilyesmire gondoltál?&#60;/p&#62;
&#60;p&#62;Az as3-ban is lehet prototype-ot használni.&#60;br /&#62;
Nézd meg a propertyIsEnumerable() és a setPropertyIsEnumerable() is. &#60;/p&#62;
&#60;p&#62;Viszont csak propertyIsEnumerable() -&#38;gt; true tulajdonságokat viszi át. &#60;/p&#62;
&#60;p&#62;Például egy mc x,y tulajdonsága nem Enumerable, és első blikkre a setPropertyIsEnumerable() se segített ezen.&#60;/p&#62;
&#60;p&#62;AS2-ben egy időben sokat használtam ezt a megoldást, de a kód egy kicsit átláthatatlan lesz tőle.&#60;br /&#62;
Praktikusabb ha az adott osztályra te írod meg a clone funkciót.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shine_ @ "Objektum lemásolása/duplikálása"</title>
			<link>http://www.swf.hu/forum/topic/objektum-lemasolasa#post-1332</link>
			<pubDate>Ked, 06 ápr 2010 12:13:51 +0000</pubDate>
			<dc:creator>shine_</dc:creator>
			<guid isPermaLink="false">1332@http://www.swf.hu/forum/</guid>
			<description>&#60;p&#62;Hali!&#60;br /&#62;
Egy objektumot (object-et) szeretnék klónozni/duplikálni. Tehát nem referenciát másolni, hanem egy új ugyanolyan objektet csinálni.&#60;/p&#62;
&#60;p&#62;Itt találtam már egy megoldást, de nehezen hiszem el, hogy ne lenne egyszerűbb megfejtés.&#60;br /&#62;
&#60;a href=&#34;http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/&#34; rel=&#34;nofollow&#34;&#62;http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Némi kód, aminek nem &#34;golden: piros starking: piros&#34; at kéne mutatnia, hanem &#34;golden: sarga starking: piros&#34;-at:&#60;/p&#62;


&#60;div class=&#34;bb_syntax&#34;&#62;&#60;div class=&#34;code&#34;&#62;&#60;pre class=&#34;actionscript3&#34; style=&#34;font-family:monospace;&#34;&#62;&#60;span style=&#34;color: #9900cc; font-weight: bold;&#34;&#62;package&#60;/span&#62;
&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#123;&#60;/span&#62;
	&#60;span style=&#34;color: #0033ff; font-weight: bold;&#34;&#62;public&#60;/span&#62; &#60;span style=&#34;color: #9900cc; font-weight: bold;&#34;&#62;class&#60;/span&#62; TestCloneClass
	&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#123;&#60;/span&#62;
		&#60;span style=&#34;color: #0033ff; font-weight: bold;&#34;&#62;public&#60;/span&#62; &#60;span style=&#34;color: #339966; font-weight: bold;&#34;&#62;function&#60;/span&#62; TestCloneClass&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#41;&#60;/span&#62;
		&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#123;&#60;/span&#62;
&#38;nbsp;
			&#60;span style=&#34;color: #6699cc; font-weight: bold;&#34;&#62;var&#60;/span&#62; golden&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;:&#60;/span&#62;alma;
			&#60;span style=&#34;color: #6699cc; font-weight: bold;&#34;&#62;var&#60;/span&#62; starking&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;:&#60;/span&#62;alma;
&#38;nbsp;
			golden = &#60;span style=&#34;color: #0033ff; font-weight: bold;&#34;&#62;new&#60;/span&#62; alma&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#41;&#60;/span&#62;;
			golden.szin = &#60;span style=&#34;color: #990000;&#34;&#62;&#38;quot;sarga&#38;quot;&#60;/span&#62;;
			starking = golden;
			starking.szin = &#60;span style=&#34;color: #990000;&#34;&#62;&#38;quot;piros&#38;quot;&#60;/span&#62;;
			&#60;span style=&#34;color: #004993;&#34;&#62;trace&#60;/span&#62;&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color: #990000;&#34;&#62;&#38;quot;golden:&#38;quot;&#60;/span&#62;, golden.szin, &#60;span style=&#34;color: #990000;&#34;&#62;&#38;quot;starking:&#38;quot;&#60;/span&#62;, starking.szin&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#41;&#60;/span&#62;;
		&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#125;&#60;/span&#62;
	&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#125;&#60;/span&#62;
&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#125;&#60;/span&#62;
&#38;nbsp;
&#60;span style=&#34;color: #9900cc; font-weight: bold;&#34;&#62;class&#60;/span&#62; alma
&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#123;&#60;/span&#62;
	&#60;span style=&#34;color: #0033ff; font-weight: bold;&#34;&#62;public&#60;/span&#62; &#60;span style=&#34;color: #6699cc; font-weight: bold;&#34;&#62;var&#60;/span&#62; szin&#60;span style=&#34;color: #000000; font-weight: bold;&#34;&#62;:&#60;/span&#62;&#60;span style=&#34;color: #004993;&#34;&#62;String&#60;/span&#62;;
&#60;span style=&#34;color: #000000;&#34;&#62;&#38;#125;&#60;/span&#62;&#60;/pre&#62;&#60;/div&#62;&#60;/div&#62;


</description>
		</item>

	</channel>
</rss>

