Flex
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.
Fun with flex
So I'm working on the Absurdist Manifesto, which is to be the world's coolest phone tree to nowhere.
First, I started a new flex project in Eclipse configured with Adobe Flex Builder.
Then, I quickly pieced the front-end view of a keypad together in flex.