Tuesday, June 29, 2010

Casting int or string to Enum

Quick note to myself :D

From a string:

MyEnum foo = (MyEnum) Enum.Parse(typeof(MyEnum), yourString);


From an int:

MyEnum foo = (MyEnum) yourInt;

Monday, June 28, 2010

Windows 7 - "New txt file" missing from right click menu

Few days back realized that somehow I managed to loose the "New txt file" option in the context menu 8O . To fix this

1. Download the fix file given below. (Use Right-click – Save as option in your browser to download the file.)

Saturday, June 19, 2010

You cannot debug this SWF because it does not contain ActionScript

Upgrading from Flash CS4 to CS5 ran into great wall of china again 8O .. really man.. I know web is full of posts from people running into this problem then why the hell can't Adobe just make the error message a little less misleading :roll: ... most common reason for this is the code behind is so big that the compiler is running out of memory while compiling the movie.

Font Embedding in Flash CS5

Flash CS5 introduces a new way of emebdding fonts and unfortunately it breaks the older way of embedding fonts :( . The older way of embedding fonts which can be found here , does not work anymore for Flash IDE projects though that will still work for pure AS3 projects. I was using this method only in my project but as soon as I upgraded to flash CS5, text disappeared in my compiled movie. Googling pointed me to these two:

Wednesday, February 10, 2010

Embedding font family in AS3

While trying to embed font in AS3 ran into problem. I was trying to embed MyriadPro font into my AS3 application and got error "exception during transcoding: Font for alias 'MyriadPro' with plain weight and style was not found at: file" and like always Googling provided the solution.