<?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"
	>
<channel>
	<title>Comments on: Simple Flex smilies (emoticons)</title>
	<atom:link href="http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/feed/" rel="self" type="application/rss+xml" />
	<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/</link>
	<description>the one and only</description>
	<pubDate>Wed, 10 Mar 2010 16:47:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Omu</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-2794</link>
		<dc:creator>Omu</dc:creator>
		<pubDate>Fri, 30 Oct 2009 18:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-2794</guid>
		<description>here's the function for splitting

public function SplitIntoWordsWithLen(s:String, l:int):Array
{
var arr:Array = new Array();	
while(true)
{
if(s.length &#60;= l)
{
arr.push(s);
break;
}	
else
{
arr.push(s.substr(0, l));
s = s.substr(l, s.length - l);
}
}	
return arr;	
}

and i changed the for loop inside the createEmoticons function like this:

if (smilies.indexOf(outputArray[i]) == -1) {						
var ar:Array = SplitIntoWordsWithLen(outputArray[i], 3);
for (var j:uint = 0; j &#60; ar.length; j++) 
{
var label:Text = new Text();							
trace(ar[j]);							
flowBox.addChild(label);
flowBox.validateNow();
label.text = ar[j];
label.validateNow();
}

but still, my problem now is that when i write:
abcdefgh i get abc def gh
so have spaces between them
could you tell me how to remove them

i saw you have flowBox.setStyle('horizontalGap', '0');	
but it doesn't help</description>
		<content:encoded><![CDATA[<p>here&#8217;s the function for splitting</p>
<p>public function SplitIntoWordsWithLen(s:String, l:int):Array<br />
{<br />
var arr:Array = new Array();<br />
while(true)<br />
{<br />
if(s.length &lt;= l)<br />
{<br />
arr.push(s);<br />
break;<br />
}<br />
else<br />
{<br />
arr.push(s.substr(0, l));<br />
s = s.substr(l, s.length - l);<br />
}<br />
}<br />
return arr;<br />
}</p>
<p>and i changed the for loop inside the createEmoticons function like this:</p>
<p>if (smilies.indexOf(outputArray[i]) == -1) {<br />
var ar:Array = SplitIntoWordsWithLen(outputArray[i], 3);<br />
for (var j:uint = 0; j &lt; ar.length; j++)<br />
{<br />
var label:Text = new Text();<br />
trace(ar[j]);<br />
flowBox.addChild(label);<br />
flowBox.validateNow();<br />
label.text = ar[j];<br />
label.validateNow();<br />
}</p>
<p>but still, my problem now is that when i write:<br />
abcdefgh i get abc def gh<br />
so have spaces between them<br />
could you tell me how to remove them</p>
<p>i saw you have flowBox.setStyle(&#8217;horizontalGap&#8217;, &#8216;0&#8242;);<br />
but it doesn&#8217;t help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omu</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-2793</link>
		<dc:creator>Omu</dc:creator>
		<pubDate>Fri, 30 Oct 2009 16:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-2793</guid>
		<description>i tried breaking the text but i get spaces between them, so it's kinda not the what it should be and an other problem is the width of the flowbox that it is absolute, i tried to set the percentWidth but it's making the flowbox act weird (a lot of space between messages)</description>
		<content:encoded><![CDATA[<p>i tried breaking the text but i get spaces between them, so it&#8217;s kinda not the what it should be and an other problem is the width of the flowbox that it is absolute, i tried to set the percentWidth but it&#8217;s making the flowbox act weird (a lot of space between messages)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiorull</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-2792</link>
		<dc:creator>kiorull</dc:creator>
		<pubDate>Fri, 30 Oct 2009 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-2792</guid>
		<description>I am aware of it. You can just hide the scrollbars, or break the text. This will differ from implementation to implementation. The code is not meant to be used as is. This is a tech demo only :)</description>
		<content:encoded><![CDATA[<p>I am aware of it. You can just hide the scrollbars, or break the text. This will differ from implementation to implementation. The code is not meant to be used as is. This is a tech demo only :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omu</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-2791</link>
		<dc:creator>Omu</dc:creator>
		<pubDate>Fri, 30 Oct 2009 15:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-2791</guid>
		<description>there is a bug in both of your chats, try entering a very big word and you will see
try something like this : mjjhgjhggggggaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</description>
		<content:encoded><![CDATA[<p>there is a bug in both of your chats, try entering a very big word and you will see<br />
try something like this : mjjhgjhggggggaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiorull</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1568</link>
		<dc:creator>kiorull</dc:creator>
		<pubDate>Thu, 12 Feb 2009 18:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1568</guid>
		<description>Hi,

You can do like this:

.setStyle("textAlign", "left");
.setStyle("textAlign", "center");
.setStyle("textAlign", "right");
.setStyle("textAlign", "justify");

Maybe there are more aligns, but never used them.

Thanks for the comment :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You can do like this:</p>
<p>.setStyle(&#8221;textAlign&#8221;, &#8220;left&#8221;);<br />
.setStyle(&#8221;textAlign&#8221;, &#8220;center&#8221;);<br />
.setStyle(&#8221;textAlign&#8221;, &#8220;right&#8221;);<br />
.setStyle(&#8221;textAlign&#8221;, &#8220;justify&#8221;);</p>
<p>Maybe there are more aligns, but never used them.</p>
<p>Thanks for the comment :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ.H</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1567</link>
		<dc:creator>AJ.H</dc:creator>
		<pubDate>Thu, 12 Feb 2009 17:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1567</guid>
		<description>how would you set the alignment (i.e. left, center, right and justify)?

I noticed the setStyle method, might be used for this but cant find any examples or documentation.

any help would be greatly appreciated.

BTW props for the really good example. both the regular and the HTML version</description>
		<content:encoded><![CDATA[<p>how would you set the alignment (i.e. left, center, right and justify)?</p>
<p>I noticed the setStyle method, might be used for this but cant find any examples or documentation.</p>
<p>any help would be greatly appreciated.</p>
<p>BTW props for the really good example. both the regular and the HTML version</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1557</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 24 Jan 2009 01:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1557</guid>
		<description>Great job and it's really nice to see you're opening the source up. The comments had me realize that my own meager attempt has serious shortcomings. My own smiley attempt doesn't handle resizing. I'll be opening the source on my own blog also. Hopefully all the feedback will amount to some nice solutions.</description>
		<content:encoded><![CDATA[<p>Great job and it&#8217;s really nice to see you&#8217;re opening the source up. The comments had me realize that my own meager attempt has serious shortcomings. My own smiley attempt doesn&#8217;t handle resizing. I&#8217;ll be opening the source on my own blog also. Hopefully all the feedback will amount to some nice solutions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiorull</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1556</link>
		<dc:creator>kiorull</dc:creator>
		<pubDate>Tue, 20 Jan 2009 09:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1556</guid>
		<description>This is designed for one line entry, as the input is single line. If you want multiple line, please check the HTML version (which is better anyway): http://kiorull.com/blog/programming/flex/simple-flex-smilies-with-html-support/</description>
		<content:encoded><![CDATA[<p>This is designed for one line entry, as the input is single line. If you want multiple line, please check the HTML version (which is better anyway): <a href="http://kiorull.com/blog/programming/flex/simple-flex-smilies-with-html-support/" rel="nofollow" >http://kiorull.com/blog/programming/flex/simple-flex-smilies-with-html-support/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cobriya</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1555</link>
		<dc:creator>Cobriya</dc:creator>
		<pubDate>Tue, 20 Jan 2009 09:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1555</guid>
		<description>very nice and effective code
but when you try it on multiple line entery all the words gets messed up


any SOLUTION FOR THAT</description>
		<content:encoded><![CDATA[<p>very nice and effective code<br />
but when you try it on multiple line entery all the words gets messed up</p>
<p>any SOLUTION FOR THAT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiorull</title>
		<link>http://kiorull.com/blog/programming/flex/simple-flex-smilies-emoticons/#comment-1548</link>
		<dc:creator>kiorull</dc:creator>
		<pubDate>Thu, 15 Jan 2009 08:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://kiorull.com/blog/?p=10#comment-1548</guid>
		<description>I am afraid that the ctrl+a is broken once I split the words in separate Text boxes. Also, even if it would have worked, the simlies as text are gone from the output window, they are replaced by images. I don't think it is worth the time to try to do it with this implementation.

The flowbox wraps text as a normal word processor. If you don't have a line breaking character it will show scrolls and make the line as long as needed.</description>
		<content:encoded><![CDATA[<p>I am afraid that the ctrl+a is broken once I split the words in separate Text boxes. Also, even if it would have worked, the simlies as text are gone from the output window, they are replaced by images. I don&#8217;t think it is worth the time to try to do it with this implementation.</p>
<p>The flowbox wraps text as a normal word processor. If you don&#8217;t have a line breaking character it will show scrolls and make the line as long as needed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
