Tuesday, September 9, 2008

RSS feeds

I admit, I'm stubborn. That's probably why most of the time I can work my way through problems. But no matter what I try, I can't pull an rss feed from a third party (no access to their server) into Flex.

I guess I could pull it into a ColdFusion page on my server with an HTTP request, and then pull it into Flex, but it seems like there ought to be a way in Flex to do that.

Anyone?

Monday, September 8, 2008

Posting Source Code on Blogger

Here's a helpful post if you want to post your source code on blogger
http://pleasemakeanote.blogspot.com/2008/06/posting-source-code-in-blogger.html

Flex - Passing Form Data through HTTPS

I kept getting errors trying to pass a Flex form through HTTPS.
The whole key to the problem was a crossdomain.xml file.
You must put secure="false" on your domain or it won't work.



SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">






The wording secure="false" bothers me though. Doesn't that defeat the whole purpose of running it through HTTPS in the first place? Or does secure="false" mean something else?
Can someone enlighten me?

Passing Date Object to CF

I must preface my first post with this disclaimer:
I am not a programmer, I just play one online.

While building my second Flex app, I had a problem passing the date object to coldfusion with HTTPservice. It passed fine when I left it alone, but when I tried to format it with CF using DateFormat, it gave me the year 2000 instead of 2008.

After a bit of trial and error, I found that if I change the date to a string in Flex, then I can format it using DateFormat in CF.

So in Flex:
var myDate:String = myDate.selectedDate as String;

And in CF:
#DateFormat(myDate, "mmm dd, yyyy")#

I would really like to know why it works this way, so if any of you "programmers" out there can shed some light on it, I would be most appreciative.