- November 29th, 2007
- 10:51 am
Ran into a couple of issues relating to video yesterday. Â First, in the docs for the Camera class, it says getCamera() can accept a ‘name’ parameter specifying which camera driver to use. Â As far as I can tell, this is not the case. Â You need to use the camera name’s index of it’s position in the Camera.names array, and you need to pass the index as a string:
Camera.getCamera('2');Â
Also, it appears that Video.clear() does not really work, at least it didn’t for me. Â It simply clears what looks like a single pixel in the top-left corner of the video object that the webcam was attached to. Â I’m guessing at this point that it probably only works with flv’s that were streaming in, and not video from an input source.Â
- November 27th, 2007
- 1:23 pm
I ran into this issue today trying to load some simple data from a php script. I was positive I was only sending name/value pairs and nothing else.  I had set the loader.dataFormat property to URLLoaderDataFormat.VARIABLES, and using Charles I can see that my data was arriving fine.
The solution in my case was simple: Â I was adding a leading ‘&’ in the variables string, which URLLoader doesn’t appreciate. So instead of this, which was a habit picked up with AS 2:
echo "&result=success"
You just need to do:
echo "result=success"
You still need the ampersand to separate multiple name/value pairs though.
Â
- November 19th, 2007
- 5:00 pm
Talk about killing two birds with one stone (although why anyone would do that I don’t know), but I was searching around today for managing spam on my mt dv server.  Since I moved over there, the amount of spam i’ve been getting has increased.  Apple Mail is catching the junk fine, but I wind up with thousands a day.  Then throw in the fact that the iphone doesn’t have junk mail filtering, so I wind up with lots of spam getting through to the iphone, at least until Mail sorts everything out. So, while searching around, I came across this post which talked about implementing procmail to work in conjunction with spamassasin to filter the mail server-side.  It was a very easy solution (once I figured out I was getting an error due to copy and pasting the code from the blog, which contained curly quotes), and things look pretty good so far, the spam is getting moved to my junk mailbox before it ever even gets to Mail.Â