Flex
Sonicwall router RTMFP fix
If you have a Sonicwall router and want to make RTMFP P2P connections, you need to enable "consistent NAT": http://www.fuzeqna.com/sonicwallkb/consumer/kbdetail.asp?kbid=4320&forma...
os x users can't click flash security panel
This is a really irritating bug caused by some obscure issue between Firefox and Flash.
When my Flex app loads up the Security Settings Panel (trying to grab the camera), OS X users weren't able to click the 'allow' button in the panel. Or anything in the panel, for that matter.
The fix? An absurd, hack-y JS workaround. I'll post when I get the time to figure out something better. This works for me for now, though.
1) Positioning the containing element of the flash as "fixed":
2) Making sure there is no scrollbar on the browser window.
fully closing netstreams in actionscript
In a nutshell, in AS3, if you need to close netstreams properly, you must close ALL references to the netstream.
Let's say you have a video ("remoteVideo") component with a netstream ("incomingStream") attached to it, and then you want to kill that netstream. You'd think this would do the trick:
incomingStream.close();
incomingStream.removeEventListener(NetStatusEvent.NET_STATUS, incomingStreamHandler);
incomingStream = null;absolute positioning in flex - simple example
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
autoLayout="false"
height="50">
<mx:HBox backgroundColor="0x000000" width="50" height="50"/>
<mx:Label text="SOME TEXT" />
</mx:Canvas>Going commando with flex on ubuntu: mxmlc, fdb, fcsh
No, I did not just sneeze at you. These are the names of the commands you should get to know if you're a bleeding edge Flex developer.
In a nutshell:
mxmlc flashcard.mxmlTo get more advanced, specify the path to output the compiled swf to, and mark for debug:
mxmlc -library-path+=libs/as3corelib.swc -debug=true -output=bin-debug/flashcard.swf src/flashcard.mxmlcentering an image in a viewstack in actionscript
This was much more difficult than it should've been to figure out, but there's a simple solution.
I have a viewstack element and I am programmatically creating a slideshow by changing viewStack.selectedIndex on a timer.
Each image for the slideshow is wrapped in a canvas element. The trick was to use setStyle to set horizontalCenter & verticalCenter on the image.
Here's the code:
var canvas:Canvas = new Canvas();
var image:Image = new Image();
image.source = src;
canvas.addChild(image);
image.setStyle("verticalCenter", 0);
image.setStyle("horizontalCenter", 0);
red5node alpha release
Attached is the first alpha release of red5node, a little present for the holidays for any drupal webcam developer :)
Unlike the pre-alpha released earlier, this one should be as secure as the components it stands upon- Drupal, Flex, Services & AMFPHP. If you see how it isn't please let me know as I'd like to address it.
The major differences from the prior release are behind the scenes but very substantial- namely fixing gaping security holes. Please try this module out now.
upgrading Flex builder linux to alpha 5, on 64-bit Ubuntu 9.10:
OK. So for anyone else having this issue, when Adobe decides to piss on us Linux Flash developers again:
This time it was making my Flex Builder Alpha expire. First it took hours ( and two unhelpful Adobe reps ) to realize that there was a new alpha available for Flex. I thought they were trying to make me buy a license. So I figured, oh, cool, it'll be a cinch to upgrade. But I was incorrect.
Upgrading Flex builder linux to alpha 5, on 64-bit Ubuntu 9.10:
red5node pre-alpha sources
UPDATE - NEWER RELEASE AVAILABLE - GO HERE
Well, I don't know about you, but I don't like it when Drupal modules are released with closed-source SWF files - especially when the SWF file comprises the core of the module.
Eureka! My first red5 application!
Boo-ya! Finally got this working! My "Hello world" red5 app is attached...It's nothing fancy (adds two numbers together and spits it out in the eclipse debug console), but I couldn't find a good template to work off of that used red5 v.8 and Flex w/ AS3, so here it is.
You'll need Adobe Flex Builder set up in Eclipse to run this.
Installation:
1) Unzip myapp.tar_.gz and place myapp/ in ~/projects/red5/dist/webapps
2) Unzip red5test.tar_.gz and place into your eclipse workspace.