Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

Flex 3


Joomla portfolio - Part 2
Giovedì 26 Marzo 2009 14:49
This article follow the first part , where we built a PHP web service to provide all items of a category to this flex GUI. 
You can click on items to zoom in or zoom out on it or you can rotate the scene with arrows. 
 
 
 
We can start with GUI design, very simple... a title, and a FlexView3D component that come with Away3D library. I already make some experiments with Away3D, building a 3D graph, and I can say that it's a very powerful library.
The only problem with Away3D is the absence of examples... so you have to try and try ... :-).
Then we need an HTTPService to make a POST request to the PHP page. The request will be sended on the applicationComplete event.
 
 
Feed reader in Flex
Mercoledì 04 Marzo 2009 15:41
 
 The previous article spoke about a google gadget that was able to read a feed. Now I tried to do the same think with a flex app and it results very simple.
You only need of an HTTPService. The rest of the job is about binding result with datagrid and TextArea. In this example you will not able to format the html that you will get from the feed.
To do that job you need to insert the style of the feed in a inline way into the html code, not very simple.
 
 
To do the binding I make an istance of a bindable object and then I use the selectedindex of the datagrid to choose the right content to display into the text area.
 
 
Flex States
Martedì 10 Febbraio 2009 21:58

In Flex there is a nice tool name State that allows to realize a multiple view component in a very simple way.
This could be very great to realize a wizard or a driven tour.
State component allows to change style, properties and components in a single view, tipically a VBox or the Application.
 



<?xml version="1.0" encoding="utf-8"?>
<mx:Application width="300" height="300" xmlns:mx="http://www.adobe.com/2006/mxml"
currentState="Step1">
<mx:Script>
<![CDATA[
 
 
DataGrid binded to HTTPService
Lunedì 26 Gennaio 2009 20:23
How to consume an HTTPService using Xml Object. You can see the power of Databinding in this environment.
You only need to set the property dataProvider="{productsarray}" of the DataGrid to get all objects coming from
on results function.
 
Here an example of Xml object definition 
<dataroot>
<product>
<id>1</id>
<total>2</total>
<name>Motherboard</name>
<price>100</price>
</product>
 
Shared Objects
Lunedì 26 Gennaio 2009 20:18
To reach a richer users experience you often need to have some persistent data. When you are speaking about classical RIA if you want save data on client side
you need cookies, but Flex can help you with its SharedObject
SharedObject has a file size limit of 100 KB and it is serialized by using ActionScript Messaging Format ( AMF ). AMF is a binary file format usually used to
pass remoting objects between the server and client. 
SharedObject on the client side gives the possibility to build offline feature in your application.

You have two typer of shared object : Local and remote

To create or open a SharedObject :
 
private var myLocal : SharedObject = SharedObject.getLocal( "LocalObj" );
private var myRemote : SharedObject = SharedObject.getRemote( "RemoteObj" );
 
 
Javascript from Flex
Lunedì 26 Gennaio 2009 20:05
To improve the user experience or to speed up the migration of a classical RIA to flex, you may need to use some 
Javascript function in your flex application.

To invoke a javascript function in the HTML page that contains flex application , you have to call:

var result:String = ExternalInterface.call( "JavascriptFunction" , "Parameter" );
 
 
3D Chart
Lunedì 05 Gennaio 2009 20:45

 Click on button "Draw Graph"

 

 
Consume a web service with Flex
Domenica 14 Dicembre 2008 12:53

Hi all,
 
Today we explore how flex can be used to consume a web service , that must be a mile stone for a RIA technology.
 Flex can interface with a web service in .NET, Java, ColdFusion, PHP and Ruby, then probably the 95% of world web service.
 
We will implement only the Flex part in this article, then I will explain in the c# section the building of a .NET Web Service.
Flex has three ways to retrieve data from a Web Service : HTTP, SOAP, REMOTE OBJECTS. We chose SOAP because for a 
general purpose and multi platform application is more suitable.  
 
 
Flex graph building
Mercoledì 03 Dicembre 2008 11:29

 Today we are going to realize a simple graph multi series with Flex 3, it will collect data from an array of objects using the binding.
 
 
 
1)We add the component to our application setting position and dimensionsi:
 
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:LineChart x="621.95" y="40.6" id="chart" width="581.8939" height="397.42426">
</mx:LineChart>
</mx:Application> 
 
 


Ricerca personalizzata