Posts

Publishing this blog on another website

So I am working on a new portfolio site and I wanted this blog to be featured on that site. I didn't want to show a link or just a feed digest, I wanted the entries in FULL shown on the website. Well... little did I know it was so easy. I spent hours looking for a solution that was built right into something I already subscribed to! Feedburner that is. I found the info I was looking for here: http://www.tipandtrick.net/2008/display-and-show-feed-on-html-website-with-feedburner-buzzboost/ You can subscribe to Feedburner very easily if you already have a Google account. Then you can burn the feed by just putting in your feed address. Then click the Publicize tab. Click BuzzBoost. Fill out the form and choose FULL HTML. Once you're done it will give you a script to put into your website. So easy and so very awesome. You can also style it to look however you like using CSS. Perfect.

Using Flex's default cursors

So I made my own component, and I wanted the default move cursor that Flex has built in to appear on the mouse over of my component. I thought this would be an easy task - oh how wrong I was. An hour of researching later I was no further ahead, besides discovering that mx.skins.cursor.moveCursor was in fact a style and the image was in Assets.css (from this helpful webpage here: http://www.loscavio.com/downloads/blog/flex3_css_list/flex3_css_list.htm ). It occurred to me that I know how to get a value out of a CSS file , and therein lied the solution. [Bindable] public var myCursor:Class; //Called on creation complete public function complete():void { myCursor = mx.styles.StyleManager.getStyleDeclaration('DragManager').getStyle('moveCursor'); } //Called on mouseover of the component protected function mouseOverWindow(evt:MouseEvent):void { CursorManager.setCursor(myCursor); } //Called on mouseout of the component protected function mouseOutWindow(evt:MouseEvent):...

Getting a value out of CSS file

I keep forgetting how to do this: mx.styles.StyleManager.getStyleDeclaration('.styleclassname').getStyle('style') This gets a value out of the CSS. So for example if you had a .lineStroke style with a style property of color and you wanted to use that for a stroke declared in MXML you could do this: <mx:Stroke id="myStroke" weight="1" color="{mx.styles.StyleManager.getStyleDeclaration('.lineStroke').getStyle('color')}"/>

Useful UX article

Excellent article: 10 Useful Usability Findings and Guidelines http://www.smashingmagazine.com/2009/09/24/10-useful-usability-findings-and-guidelines/ Thanks @jeswinlopez

Flex Legend Button: Solved!

Thanks to Marcus and his amazing code I can share with you a soultion for my legend button problem . This is more than I asked for. Make sure if you use this, you credit and thank Marcus for his amazing work! Sample with view source enabled

Flex DataGrid sorts

Sometimes your data is in a specific order, but not ordered on anything you can really sort by via a data grid. So sometimes you apply a sort with the data grid (or advanced data grid), which is great and everything, but what do you do when you want to reset the data back to the original order? this.mydatagrid.dataProvider.sort = null; this.mydatagrid.dataProvider.refresh(); Done!

Flex Image Map

I thought since I mentioned it way back when in a tweet, I should post the code for my selectable map component. I thought this was going to be super tough, but once I found the ImageMap component in flexlib it wasn't bad at all. Here is the example with view source enabled. This example also shows how to create a custom event, which I also mentioned in a previous post .