<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.connectedpixel.com/blog">
<channel>
 <title>connectedpixel.com - Gotchas</title>
 <link>http://www.connectedpixel.com/blog/taxonomy/term/19/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>More embedded font strangeness – CSS</title>
 <link>http://www.connectedpixel.com/blog/fonts/cssembedding</link>
 <description>&lt;p&gt;I thought I was done with the Flash-embedded-font in my &lt;a href= &quot;http://www.connectedpixel.com/blog/fonts/embedding&quot; target=&quot;_blank&quot;&gt;previous blog entry&lt;/a&gt;, but there is more.   I received an email requesting help with CSS and embedded fonts, and when I looked into it, found some quirks related to the CSS specified font-family and bold/italic text.&lt;/p&gt;
</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/20">Flash</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <pubDate>Mon, 21 Jul 2008 15:07:46 -0700</pubDate>
</item>
<item>
 <title>The Unbearable Strangeness of Embedding Fonts</title>
 <link>http://www.connectedpixel.com/blog/fonts/embedding</link>
 <description>&lt;p&gt;The &#039;why&#039; and &#039;how&#039; of embedding fonts is a Flash 101 topic. The main &#039;why&#039; is that the
user can&#039;t see fonts that she doesn&#039;t have. If your swf uses these
fonts, you need to bundle them in the swf (or with the swf). The &#039;how&#039; also seems very simple: in the properties
panel for a given text field, click the &#039;Embed&#039; button and select the
character range you want to embed. Click OK. Done. Move on. &lt;/p&gt;
&lt;p&gt;But it&#039;s really not that simple. Once you start using fonts in a shared library, referring to embedded fonts in a css file, etc. weird problems start popping up. I&#039;ve had embedded text working in some swfs but not others, static fields displaying garbage and bloated swfs.&lt;/p&gt;</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/20">Flash</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/4">Graphics</category>
 <pubDate>Fri, 11 Jul 2008 12:23:45 -0700</pubDate>
</item>
<item>
 <title>Array.sortOn does not work with MovieClips</title>
 <link>http://www.connectedpixel.com/blog/gotcha/sorton</link>
 <description>&lt;p&gt;This problem drove me crazy.  I&#039;d thought I&#039;d get it in the google-verse so anyone else who runs into it can benefit from my pain.&lt;/p&gt;
&lt;p&gt;Array.sortOn() does not seem to work when the array elements are objects derived from MovieClip. The following code demonstrates.&lt;/p&gt;
&lt;p&gt;Simple class.  &quot;zz&quot; property will be used to sort an array of these objects.&lt;/p&gt;</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/21">ActionScript</category>
 <pubDate>Thu, 24 Jul 2008 05:48:27 -0700</pubDate>
</item>
<item>
 <title>Simulate download: Static vars not re-initialized</title>
 <link>http://www.connectedpixel.com/blog/gotcha/ide/staticinit</link>
 <description>&lt;p&gt;The &#039;Simulate Download&#039; feature in the Flash IDE is very useful.  It can help debug race conditions that are a cause of intermittent problems.  However, it can also lead you astray.&lt;/p&gt;
&lt;p&gt;
Problem: AS2 static variables are NOT reinitialized when you hit control-Enter the 2nd time to go into simulate-download mode.&lt;/p&gt;  
&lt;p&gt;If you&#039;d like to try it, here&#039;s a simple test class:&lt;/p&gt;</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/20">Flash</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/21">ActionScript</category>
 <pubDate>Fri, 11 Apr 2008 18:44:09 -0700</pubDate>
</item>
<item>
 <title>Component Array Parameter Gotcha</title>
 <link>http://www.connectedpixel.com/blog/gotcha/component/arrayparam</link>
 <description>&lt;p&gt;So the other day, I was working on a component that has an inspectable set/get array property.  I could not get it work.  Although the default value for this array was not zero length and the parameter in the dialog box was not zero length, the set function was being called with a zero-length array at initialization.&lt;/p&gt;&lt;p&gt;This was an invalid situation and broke my app.&lt;/p&gt;
&lt;p&gt;Here&#039;s a simplified version of the code:&lt;/p&gt;
</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/2">Debugging</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/21">ActionScript</category>
 <pubDate>Fri, 11 Apr 2008 18:45:45 -0700</pubDate>
</item>
<item>
 <title>Flash Below the Browser Fold Gotchas</title>
 <link>http://www.connectedpixel.com/blog/flash/gotcha/belowfold</link>
 <description>&lt;p&gt;If your browser-embedded flash movie is not scrolled into view when it initializes, you can run into some weird, browser-dependent problems.&lt;/p&gt;
&lt;p&gt;Here&#039;s what I&#039;ve found:&lt;/p&gt;
</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/20">Flash</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/19">Gotchas</category>
 <pubDate>Fri, 11 Apr 2008 18:49:38 -0700</pubDate>
</item>
</channel>
</rss>
