AS3 – textfield setSelection()
Have you tried to set selection on atextfield after a validation procedure? Have you noticed that it doesn't work quite right? Here's the quick solution for that:
Normally you would use the yourTextField.setSelection(startIndex, endIndex); method, but like I said before that doesn't really work very well.
You just need to set the focus to the textfield and then set the selection:
Example: (assuming you have a textfield called "tf")
.... tf.stage.focus = tf; tf.setSelection(0, tf.length); ...
And that's how you solve the textfield.setSelection() problem
AS3: quick hint – Converting int to date
Ok, this just drove me nuts for a few minutes..
I'm getting the server time UNIX formatted, I was constantly trying to convert the integer to a readable date, constantly getting the wrong year (the default or zero unix year is 1970) but aren't we living in 2009?
So for future reference and for anyone that might be searching for this.
Unix time is seconds based, Flash time is milliseconds based. got it?
So anytime you get a unix time integer you just need to multiply by 1000 to get the correct time for your Flash project.
Example:
GOOD CODE
curDate = new Date(Number(dateXML.int * 1000));
BAD CODE
curDate = new Date(Number(dateXML.int));
deMonsterDebugger goes 2.0.3

If you guys haven't noticed it yet, deMonsterDebugger is now officially available in its new version,
one of the features that absolutely rocks is the FPS/Memory monitor deMonsters built in. One of those features I was waiting for before switching completely from Alcon to deMonsterDebugger.
If you guys haven't downloaded it yet, then just click on the banner on the right side or jump directly to www.demonsterdebugger.com
Thanks again for such a great app!
Pre-Interview with Ralph Hauwert
Ralph Hauwert, PV3D Core Team Member, RIA specialist and Frontend developer is doing an interview on actionscripthero.org over the Acrobat Connect system on the 22nd of January (tomorrow).
If you care for some cool demos and news from the pv3d world direct from the source then you shouldn't miss this meeting. Below some details:
Date: Thursday, January 22, 2009
Time: 7:00pm - 8:00pm CET <- Another timezone? Click here!
Location: Global
URL: http://experts.na3.acrobat.com/r49757917/
In case you never attended a Acrobat Connect meeting, jump to this URL to test the system and ensure that you don't encounter any problems on Thursday
http://experts.na3.acrobat.com/common/help/en/support/meeting_test.htm
Have fun and see you there ![]()
Tiago
Misconceptions on flash video
You not using Flash Video because someone told you some bad hair stories?
Serge Jespers put a list together on 8 misconceptions about Flash Video. I must say his list is impressive and I've already heard almost all those bullets on different meetings, luckily I had an answer ready
Follow this Link: http://www.webkitchen.be/2008/12/23/8-misconceptions-about-flash-video/




