Flex/AS3/Flash 9 Casting Problems

Jul 10

Today I noticed something particularly annoying about ActionScript 3/Flex/Flash: Casting. I know of two ways to cast something from one type to another: 1.  var myvar:Type1 = mything as Type1; // does not work OR 2.  var myvar:Type1 = Type1 (mything); // works! I was using the “as” keyword, and I couldn’t figure out why it wouldn’t cast my...

Read More

Flash and Flex Communication

Feb 24

I assume it’s because I didn’t search for the right terms, but I couldn’t find anything good about communicating between Flash 9/10 and Flex. I found some posts on LocalConnection, and this post… but the issue with LocalConnection is that you can only have on instance open at once.  So, if you build something and a user opens two tabs of it,...

Read More

swapChildren fix in Flex 3

Feb 14

I’m working on a project right now and swapChildren is just not working as expected.  Looked around a bit, and I just decided to remove the two children and add copies of them instead: var tmpThis:Canvas= EV.target as Canvas; var tmpHighest:Canvas= highestPanel; removeChild (highestPanel); removeChild (EV.target as...

Read More

Blog launch

Nov 24

And… it’s official! I’ve tried about 10 times to start a blog.  Each time I always run out of time to work on it, I get way to many spam messages… ehh whatever. Now I’m going to do it.  This blog is mainly going to be about Flex, Flash, amf-php, and the web.  I’m also going to talk about entreprenuership, (dealing with) people,...

Read More