Every time I need to embed an image, text or binary file in ActionScript I have to go google “actionscript embed text file” because I simply don’t know this code snippet by heart:
[Embed(source="text.txt",mimeType="application/octet-stream")] private var TextClass:Class;
I bet this site gets a ton of visits from people like me.
I just don’t know why but I can’t remember this [Embed] construct. I even have several snippets app helpers installed on my mac but all the time it’s faster to google “actionscript embed text file” instead of launching some app.
Same thing is with HTML CDATA syntax. I just can’t remember it. Every time I google “CDATA” just to get this:
<![CDATA[ ... ]]>













Recent Comments