<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 11:49:35 +0000</lastBuildDate>
    <item>
      <title>(ActionScript 3) Truncate overflow text in a textfield and add an ellipsis (...) - mgeduld</title>
      <link>https://snipplr.com/view/47623/truncate-overflow-text-in-a-textfield-and-add-an-ellipsis-</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 21 Jan 2011 02:52:34 UTC</pubDate>
      <guid>https://snipplr.com/view/47623/truncate-overflow-text-in-a-textfield-and-add-an-ellipsis-</guid>
    </item>
    <item>
      <title>(ActionScript 3) Color Const: grays, html colors, svg colors - mgeduld</title>
      <link>https://snipplr.com/view/47477/color-const-grays-html-colors-svg-colors</link>
      <description>&lt;p&gt;This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/&#13;
&#13;
I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extracted the following code, adding the grays to it.&#13;
&#13;
I also added the NO_COLOR const, which I sometimes find useful (and why I used ints intead of uints, which can't ever be negative). Color values are always positive numbers. There's no equivalent to null, because zero is a color (black). So NO_COLOR is my faux null.&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 08:25:55 UTC</pubDate>
      <guid>https://snipplr.com/view/47477/color-const-grays-html-colors-svg-colors</guid>
    </item>
    <item>
      <title>(ActionScript 3) Scale text to fit in textField; scale TextField to fit text. - mgeduld</title>
      <link>https://snipplr.com/view/47474/scale-text-to-fit-in-textfield-scale-textfield-to-fit-text</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 07:40:49 UTC</pubDate>
      <guid>https://snipplr.com/view/47474/scale-text-to-fit-in-textfield-scale-textfield-to-fit-text</guid>
    </item>
    <item>
      <title>(ActionScript 3) Template system (replace items in a string with items from a hash) - mgeduld</title>
      <link>https://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash</link>
      <description>&lt;p&gt;This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).&#13;
&#13;
Example:&#13;
&#13;
var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };&#13;
&#13;
var template: String = "The %{SPEED} %{ADJECTIVE} fox %{VERB} over the %{ADJECTIVE} dog.";&#13;
&#13;
trace( makeReplacements( template, replacements )  );&#13;
&#13;
//output: The slow green fox slithers over the green dog.&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 03:03:30 UTC</pubDate>
      <guid>https://snipplr.com/view/47454/template-system-replace-items-in-a-string-with-items-from-a-hash</guid>
    </item>
    <item>
      <title>(ActionScript 3) Get the URL of the host webpage - mgeduld</title>
      <link>https://snipplr.com/view/45040/get-the-url-of-the-host-webpage</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 30 Nov 2010 08:08:39 UTC</pubDate>
      <guid>https://snipplr.com/view/45040/get-the-url-of-the-host-webpage</guid>
    </item>
  </channel>
</rss>
