Content tagged with "flex"
Flex Django and AMF Post on Dec 15, 2009
Been working back in Flex again a bit, using Vim in Linux for a while, but I been really impressed with the short compile times in FlashDevelop for Windows.
Besides the point
Having become increasingly frustrated with the shortcomings of Django-amf, I've decided to give pyamf another try. I tried it the first time around, and got hung up on an error that made me bail out on it:
Cannot find a view for the path ['/gateway/cardservice/echo'], 'DjangoGateway' object has no attribute '__name__'
Some poking around in the source didn't help any, but the fix turned out to be easy. I stumbled on this post on StackOverflow, the author answered his own question in his comment. Turns out, leaving the django-amf middleware turned on in the settings.py file messed up the operation.
I don't have enough clout on StackOverflow to tell the author thanks there, so I'll do it here...
Aaron
Vim and ^M Dos characters Post on Dec 04, 2009
I've been working on a Flex project recently, one that I used to compile in Windows, but have since moved over to Linux with the Flex SDK. One of the problems I run into is that Dos appears to leave these characters in my files at the end of each line
// a comment in my flex file^M
The solution
It's painful to have to delete them all manually, so a simple command in vim will do it:
:1,$ s/^M//
To get the ^M you can hit 'Ctrl+v' and then 'Enter'
Aaron
MXMLC FileReference.load() compiler error Post on Dec 23, 2008
On my linux box I am running the Flex SDK 3.2, and tried to use the funky new load() method for FileReference (which pulls the byteArray data of the loaded file = sweet). But my Flex wouldn't compile it, complaining of an error:
Error: Call to a possibly undefined method load through a reference with static type flash.net:FileReference.
The fix?
Edit my /flex/frameworks/flex-config.xml and change the target-player version from 9.0.124 to 10.0.12.36 (even though linux is currently 10.0.15.3)
A hack a day keeps the blues away...
Aaron