<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flash Moments &#187; discussion wanted</title>
	<atom:link href="http://flashmoments.novelastudios.com/tag/discussion-wanted/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashmoments.novelastudios.com</link>
	<description>ActionScript, Flash, and Flex</description>
	<lastBuildDate>Wed, 01 Dec 2010 02:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>BackgroundAlpha: Why contentBackgroundAlpha?</title>
		<link>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 02:36:28 +0000</pubDate>
		<dc:creator>johntimothybailey</dc:creator>
				<category><![CDATA[Discussion Wanter]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[discussion wanted]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[Spark Framework]]></category>

		<guid isPermaLink="false">http://flashmoments.novelastudios.com/?p=101</guid>
		<description><![CDATA[Situation: I was working with the Spark (Flex4) TextArea component. I wanted the background to no longer be visible or just simply alpha set to zero. I expected I could set a stylesheet property backgroundAlpha to zero. However, that didn&#8217;t work and there wasn&#8217;t even a property on the component called that. I dug in [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0px 0px 0px 0px;"></div><p><strong>Situation:</strong> I was working with the Spark (Flex4) TextArea component. I wanted the background to no longer be visible or just simply alpha set to zero. I expected I could set a stylesheet property <em>backgroundAlpha</em> to zero. However, that didn&#8217;t work and there wasn&#8217;t even a property on the component called that. I dug in the source to find it and realized it is really <em>contentBackgroundAlpha.</em> Why? I see <em>borderAlpha</em> and expect to follow the same convention! I do not see <em>contentBorderAlpha</em>.</p>
<p><strong>Why break a convention? </strong><br />
<strong>Why use </strong><em><strong>contentBackgroundAlpha </strong></em><strong>when </strong><em><strong>borderAlpha</strong></em><strong> is present and there is not already a </strong><em><strong>backgroundAlpha</strong></em><strong>?!</strong></p>
<img src="http://flashmoments.novelastudios.com/?ak_action=api_record_view&id=101&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serialize/Clone Objects (Bug with Required Constructor Params)</title>
		<link>http://flashmoments.novelastudios.com/actionscript/serializeclone-objects-bug-with-required-constructor-params/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://flashmoments.novelastudios.com/actionscript/serializeclone-objects-bug-with-required-constructor-params/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:12:00 +0000</pubDate>
		<dc:creator>johntimothybailey</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[discussion wanted]]></category>

		<guid isPermaLink="false">http://flashmoments.novelastudios.com/?p=11</guid>
		<description><![CDATA[My opinion is that the following is a big bug. When serializing/cloning an object that has required constructor parameters, you receive an error telling you the arguments are incorrect. Note: the following is just an example using a &#8220;native&#8221; flash class. Really, you should never have to serialize or clone an Event, so please just [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0px 0px 0px 0px;"></div><p><span style="font-family: arial;"><span style="color: #000000;">My opinion is that the following is a big bug.<br style="color: #eeeeee;" /><br style="color: #eeeeee;" /> When serializing/cloning an object that has required constructor parameters, you receive an error telling you the arguments are incorrect. </span> <em style="color: black;">Note: the following is just an example using a &#8220;native&#8221; flash class</em>.<em style="color: black;"> Really, you should never have to serialize or clone an Event, so please just see it as an example class as the type of class isn&#8217;t the point.</em></span></p>
<pre lang="Actionscript" colla="+">
import flash.net.registerClassAlias;
import flash.events.Event;
import mx.utils.ObjectUtil;

flash.net.registerClassAlias("flash.events.Event",Event);
var event:Event = new Event(Event.CHANGE);
var eventClone:* = ObjectUtil.copy(event);
trace(eventClone is Event)
</pre>
<p>RESULT<br />
<span style="font-family: courier new;">ArgumentError: Error #1063: Argument count mismatch on flash.events::Event(). Expected 1, got 0.</span><br />
<span style="font-family: courier new;"> at flash.utils::ByteArray/readObject()</span><br />
<span style="font-family: courier new;"> at mx.utils::ObjectUtil$/copy()</span><br />
<span style="font-family: courier new;"> at Untitled_fla::MainTimeline/frame1()</span><br />
<span style="font-size: 85%;"></span></span><br />
<br/><br />
<span style="color: #000000;">As noted by <a style="color: #eeeeee;" href="http://www.ultrashock.com/forums/734607-post12.html">Nutrox</a>, &#8220;All constructor parameters need a default value. You can&#8217;t pass values directly to an object&#8217;s constructor when it is restored from serialised data because Flash creates an instance of the object automatically before calling the object&#8217;s readExternal() method.&#8221;</span></p>
<div><span style="color: #000000;"><span style="font-family: arial;"> </span></span></div>
<p><span style="font-family: arial;"><span style="color: #000000;"><br style="color: #eeeeee;" /><br style="color: #eeeeee;" /><strong>What are your thoughts?</strong> I&#8217;m interested in striking a conversation about this.</span><br />
</span><br />
<br/><br />
<br/></p>
<img src="http://flashmoments.novelastudios.com/?ak_action=api_record_view&id=11&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://flashmoments.novelastudios.com/actionscript/serializeclone-objects-bug-with-required-constructor-params/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

