- Flex 4 and Flash builder 4 are up for grabs. You can download them from here
- Advanced Data visualization components (which include ADG, ODG and Charts) are now a part of free open source flex sdk.
Sunday, April 4, 2010
First look on Mirroring and Charts
Monday, January 11, 2010
How to set timezone manually for php
Reason: Server error DateTime::__construct() [datetime.--construct]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead #0
- date_default_timezone_set('Asia/Calcutta');
Tuesday, October 6, 2009
How to set basic authentication for php in flex 4
I have listed down the steps which will help you to use basic authentication for php services using Zend in FlashBuilder4
1. Have a function called initAcl($acl) in the php service similar to the one given below. All the functions inside the service which need authentication should be mentioned in this function( i.e., initAcl)
function initAcl(Zend_Acl $acl) {
$acl->allow('role1', null, 'function1');
$acl->allow('role2', null, array('function1', 'function2'));
return true;
}
Please find a sample service here
2. Have a security.xml file which specifies the user roles and has user name and passwords stored in it. Sample contents of the xml file is given below.
<roles>
<role id='admin'>
<user name='user1' password='pwd'/>
</role>
<role id='hr'>
<user name='user2' password='pwd2'/>
</role>
</roles>
3. Security.xml file can be placed anywhere (placing it outside the webroot is recommended. ) The path has to be specified in the gateway.php file . Also a small code has to be added in the gateway.php file as given below.
$auth = new Zend_Amf_Adobe_Auth("C:\wamp\security.xml");
$server->setAuth($auth);
$server->setAcl($auth->getAcl());
Refer to this gateway.php file to know where exactly should the above code be added
4. below code has to be added in the mxml, where serviceName1 is the name of the service created.
serviceName1.serviceControl.setCredentials(Support for basic authentication in php is added in Beta 2 release of FlashBuilder 4.
'username','password',null);
Thursday, September 10, 2009
Whats new in charts in Flex 4
filterFuction
is set, filterDataValues
and filterData
are ignored. If filterDataValues
property is set to none
, series will not filter its data before displaying. If filterDataValues
is set to nulls
, series filters data like null
, undefined
, or NaN
before displaying. If this property is set to outsideRange
, series filters its data like null
, undefined
, or NaN
and also the values that are outside the range of the chart axes. If you know that all of the data in the series is valid, you can set this to none
to improve performance.filterDataValues
andfilterData
properties. But if it returns null, then filterDataValues
and filterData
will be prefered in that order.The custom filterFunction
has the following signature:
function_name (cache:Array):Array { ... }
public function myFilterFunction(cache:Array):Array {
var filteredCache:Array=[];
var n:int = cache.length;
for(var i:int = 0; i < n; i++){
var item:ColumnSeriesItem = ColumnSeriesItem(cache[i]);
if(item.yNumber > 0 && item.yNumber < 700)
{
filteredCache.push(item);
}
}
return filteredCache;
}
Thanks,
Sudhir
Tuesday, September 8, 2009
Reading from the web "Readefined"
Sunday, June 21, 2009
Inverted axis supported in Flex 4 charts
New style renderDirection for PieSeries added in Flex 4
Default is counterClockwise which shows current behavior, renders the wedges in anti-clockwise direction. clockwise renders them in clockwise direction.
Click here to check out a working example
Click here for the source