Tuesday, November 07, 2006

Boolean messes in CF/Flex

When returning a boolean to a remote object call in Flex you get disaster. At least I did. Even though I set my return type as "boolean" in my CFC, declared the "var myVar:Boolean = event.result as Boolean" in Flex and verified that the CFC was indeed returning the correct result, it would still always evaluate as false. Turns out that the CFC was still returning the text "False" or "True" as a string. My quick fix which Scott helped me figure out was to change the var type to String var myValue:String = event.result as String; and then in my conditional statement I said myValue == "true". This seemed to have solved the problem for now. Can anyone explain to me how to properly return a boolean from CF to Flex?

Monday, November 06, 2006

A finished website

I recently helped a friend program a website in my spare time. It was not a CF job, all Javascript and CSS stuff. The designer gave me an impossible challenge of horizontal scrolling action. Designers never take into consideration what a programmer has to do... but rather than tell him it was impossible I decided to try and do it. I was at first trying to control the scroll bar to scroll the site but that just wouldn't work... so then I looked at some iframe vertical scroller scripts and got the code to work so I made it horizontal, added some "Scroll left" and "scroll right" functions and bam! It worked. So here is the website we did for a cool urban clothing company: Lexho Designs. I'm really happy with the result.

Friday, November 03, 2006

Topic for Frameworks selected!

Well my topic was chosen and I will be speaking at the frameworks conference. Thanks to everyone who voted for me (Scott). Registration is only $399 and last years frameworks conference was awesome.

Feed (RSS/Atom)

Contact Me

Don't put anything here: