Access the protected TextField in TextInput control for Flex

Posted in Flash, Flex on July 26th, 2009 by eccheung4

The other day, I was struggling trying to get access to the textfield of a TextInput Control, which was protected. I needed it because I was loading an AS3 swf into a flex project and it needed to be passed a reference to a textfield to interact with it, but in flex it was a textinput control which contains a textfield. You can’t ues textInput.getTextField() because its protected.

To make it work you simply add:

import mx.core.mx_internal;
use namespace mx_internal;

I found out about it in this forum thread
http://www.actionscript.org/forums/showthread.php3?t=173666

Tags: , , ,

SIGGRAPH 2009 New Orleans here I come =)

Posted in Uncategorized on July 1st, 2009 by eccheung4

I’m going to SIGGRAPH 2009 New Orleans! I was lucky enough to get in on a free basic pass to the conference from an awesome mentor at AnimationMentor.com that I didn’t even know. I’m already loving the benefits of being in the AnimationMentor.com community and I just started this Monday. This will be my second SIGGRAPH and I am totally excited because SIGGRAPH was awesome the last time I went. Its going to be even better this year because I’ve never been to New Orleans. Although I don’t remember being able to do much when the conference was going on, because there was always something going on day and nite. Now I just need to find a good deal for a flight and hotel.

Tags: