General Web Concepts

I will add general web concepts to this post.

Design Patterns
Design Considerations: Naming Conventions
Why software sucks
(And what to do about it)

Designing web sites

Advertisements

Flex 3 : Taking a snapshot of a component.

Even though, Flex doesn’t do printing that well, it can take a snapshot of a component.

Taking screenshots in Flex 3 using the ImageSnapshot.captureImage() method

<mx:Script>
<![CDATA[

// needed imports
import flash.net.FileReference;
import mx.graphics.codec.*;
import mx.graphics.ImageSnapshot;

// save PNG chart to user PC.
private function saveChart(source:IBitmapDrawable):void {

//var image:ImageSnapshot = ImageSnapshot.captureImage(idchartgrid, 300, new PNGEncoder());
var image:ImageSnapshot = ImageSnapshot.captureImage(source);
var file:FileReference = new FileReference();
file.save(image.data, “chart.png”);
} // end of savechart….

]]>
</mx:Script>

<mx:Panel id=”idchartgrid” width=”940″ height=”550″ title=”A9 Summary Chart”
horizontalScrollPolicy=”off” verticalScrollPolicy=”off” toolTip=”A9 Summary Chart” >

<mx:HBox id=”idIMAGE3″ >
<mx:Image source=”../../images/chart_bar.gif”
toolTip=”Create Chart” buttonMode=”true”
click=”saveChart(idchartgrid); ” />
<mx:Label text=”Create Chart” />

</mx:HBox>

<mx:ColumnChart id=”mychart” dataProvider=”{chart1}”
secondDataProvider=”{chart2}”
axisTitleStyleName=”axisTitleStyle”
showDataTips=”true” dataTipMode=”multiple” mouseSensitivity=”200″
height=”350″ width=”800″ >

General Windows Information

Here are some links concerning general Windows information.

17 Tips on How to make Windows Run Faster

Flex and CSS

Here are some links concerning using CSS in Adobe Flex.

Intro to Flex CSS Styling
Flex 3 CSS List Reference

Discover the power of Flex and CSS
Flex CSS Explorer
Flex Filter Explorer
Flex Primitive Explorer

General Adobe Flash Collaborative Services information

Here are some links concerning Adobe Flash Collaborative Services.

Introduction to Adobe Flash Collaborative Services