Home » Archive

Articles in the Flex Category

ActionScript 2.0, ActionScript 3.0, Flash CS4, Flash CS5, Flex »

[12 Mar 2011 | 2 Comments | ]

Maths and ActionScript together makes nice Flash effects like particles effect and Flash games that we play daily. Today, lets take a
look at ActionScripting in Maths.
Distance between two points:
Pass the two points as arguments to get the resulting distance between two points.
public function distance(p1:Point, p2:Point):Number {
var dx:Number = p2.x-p1.x;
var dy:Number = p2.y-p1.y;

return Math.sqrt(dx*dx + dy*dy);
Angle/Rotation between two points:
Need to pass the four arguments to get the Angle, (X1,Y1) pointA and (X2,Y2) pointB.
function getAngle (x1:Number, y1:Number, x2:Number, y2:Number):Number
var dx:Number = x2 – x1;

ActionScript 3.0, Flex, Sharepoint »

[12 Mar 2011 | One Comment | ]

Flash Builder Charts are used to represent the data in graphical way. We are going to leverage the Flash Builder charting component to display data stored in sharepoint 2010 list. There are variety of Flash builder 4 charts available.

Area charts
Bar charts
Bubble charts
Candlestick charts
Column charts
HighLowOpenClose charts
Line charts
Pie charts
Plot charts
Multiple data series
Multiple axes

We are going to create Flash builder chart by consuming SharePoint 2010 list data as data source. First download and setup SharePoint as3 connector.
Create a SharePoint List with following Specification:
1. Create a new SharePoint Custom List and name it as “SiteUsage”. Add …

Flex »

[11 Mar 2011 | 3 Comments | ]

Flexspreadsheet is a DataGrid Component for FLEX and Air project with many custom features added.
Problem: Display unstructured data in Datagrid and Export to excel.
To display unstructured data to datagrid, means creating columns and row dynamically and adding the unstructured data to the datagrid; Export the flex datagrid to excel file format.
The excel file exported from Flexspreadsheet is well formatted and wordwrap supported than as3xls.
Consider the MECGRID from Flexspreadsheet as an alternative for as3xls.
We are going to use flexspreadsheet datagrid component to add dynamic rows and column, and the same component …

ActionScript 3.0, Flex, Sharepoint »

[9 Mar 2011 | 11 Comments | ]

In Previous post guides you to add, update and delete SharePoint List Item. In this tutorial we are going to see how to add an attachment to SharePoint List item from Flash CS5 and Flex(Flash builder) using SharePoint Connector library. Before going into the tutorial, download and setup the SharePoint Connector.
Add Attachment to SharePoint List:
Make a call to addAttachment method of SharePOint Class to add an attachment to SharePoint List.
_sharepoint.addAttachment(handleUploadedResult, ListName, ID, FileName, Attachment )

handleUploadedResult: Process the response XML
ListName: A string that contains the ListName or the GUID of the …

ActionScript 3.0, Flex, Sharepoint »

[9 Mar 2011 | 8 Comments | ]

In Previous article we have learnt how to read and write query to retive informations of SharePoint 2010 Lists. First download and setup the SharePoint Connector library, Here we are going to do more process on SharePoint List are the following.

Add an Item in SharePoint List.
Update an Item.
Delete a SharePoint List item.

The Add, Delete and Update Process are the same as we do in a Database, but we are going to perform the same in a SharePoint List instead of Database Table.
SharePoint List Operations:
Make a call to updateList Method of …