<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Relax Breath of Solution.</title>
	<atom:link href="http://www.beasrilankan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beasrilankan.com</link>
	<description>Just I wanted.. Do you?...</description>
	<lastBuildDate>Thu, 27 May 2010 17:21:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on Tips and Tricks by Sameera Thilakasiri</title>
		<link>http://www.beasrilankan.com/tips-and-tricks/comment-page-1/#comment-197</link>
		<dc:creator>Sameera Thilakasiri</dc:creator>
		<pubDate>Thu, 27 May 2010 17:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.beasrilankan.com/tips-and-tricks/#comment-197</guid>
		<description>Deploy and work with Flex swc library

To obtain an SWC file, we have first to create a library project by selecting “New &gt; Flex Library Project” from Flex builder’s menu.
The file will be automatically generated under the bin folder as soon a new class is created and/or modified (under src folder) and it will have the same name of the project. Is also possible to copy .as files from a folder and paste them into src folder, but in this case the SWC file won’t be (re)deployed until we select the new added classes under “Flex Library Build Path“.
There are two other cases for which Flex Builder won’t (re)deploy the SWC file and is important to keep these in mind, because no errors nor notification messages will be showed by the ide and this could lead to a waste of time trying to figure out what is going on.
The two big things to remember are:

1. Be sure to check “Include Adobe AIR libraries” under “Flex library compiler” settings (this can be defined during library creation step or after) when the library make use of AIR api
2. Be sure that package path, declared into imported classes, match the structure of src folder (if we import a class “MyClass” with a package declaration like “com.mysite.ui” then src folder must contain “com/mysite/ui” and “MyClass” must be placed there, if we put it under the src root it won’t be compiled into SWC)

Import the swc file into a project

Once we get our library project and our compiled swc, we can import it into others Flex projects by going to “Flex build path &gt; Library path” and selecting “Add project“. There are two ways of using the imported library and to determine the type of linkage to it: a static link (by choosing the default option “Merge into code“) or dynamic link (by choosing the default option “Runtime shared library (RSL)“). The difference between the two types of linkage are that, in the first all library content are compiled into the final project’s swf file, so once you import and merge the library, its swc file is not necessary anymore and you can distribute your application without the external library (it’s already embedded into the app), by using an RSL instead the library is loaded at runtime and the application swf doesn’t keep it’s data, but only a reference to its location, so the resulting file is smaller than the previous one, but you must be sure to release the Flex application in conjunction with the external library in order to works, otherwise Flex Builder will show an error saying “unable to open path/yourlib.swc” (where “path” is the path to the library you previously imported).</description>
		<content:encoded><![CDATA[<p>Deploy and work with Flex swc library</p>
<p>To obtain an SWC file, we have first to create a library project by selecting “New > Flex Library Project” from Flex builder’s menu.<br />
The file will be automatically generated under the bin folder as soon a new class is created and/or modified (under src folder) and it will have the same name of the project. Is also possible to copy .as files from a folder and paste them into src folder, but in this case the SWC file won’t be (re)deployed until we select the new added classes under “Flex Library Build Path“.<br />
There are two other cases for which Flex Builder won’t (re)deploy the SWC file and is important to keep these in mind, because no errors nor notification messages will be showed by the ide and this could lead to a waste of time trying to figure out what is going on.<br />
The two big things to remember are:</p>
<p>1. Be sure to check “Include Adobe AIR libraries” under “Flex library compiler” settings (this can be defined during library creation step or after) when the library make use of AIR api<br />
2. Be sure that package path, declared into imported classes, match the structure of src folder (if we import a class “MyClass” with a package declaration like “com.mysite.ui” then src folder must contain “com/mysite/ui” and “MyClass” must be placed there, if we put it under the src root it won’t be compiled into SWC)</p>
<p>Import the swc file into a project</p>
<p>Once we get our library project and our compiled swc, we can import it into others Flex projects by going to “Flex build path > Library path” and selecting “Add project“. There are two ways of using the imported library and to determine the type of linkage to it: a static link (by choosing the default option “Merge into code“) or dynamic link (by choosing the default option “Runtime shared library (RSL)“). The difference between the two types of linkage are that, in the first all library content are compiled into the final project’s swf file, so once you import and merge the library, its swc file is not necessary anymore and you can distribute your application without the external library (it’s already embedded into the app), by using an RSL instead the library is loaded at runtime and the application swf doesn’t keep it’s data, but only a reference to its location, so the resulting file is smaller than the previous one, but you must be sure to release the Flex application in conjunction with the external library in order to works, otherwise Flex Builder will show an error saying “unable to open path/yourlib.swc” (where “path” is the path to the library you previously imported).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tips and Tricks by Sameera Thilakasiri</title>
		<link>http://www.beasrilankan.com/tips-and-tricks/comment-page-1/#comment-169</link>
		<dc:creator>Sameera Thilakasiri</dc:creator>
		<pubDate>Fri, 21 May 2010 03:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.beasrilankan.com/tips-and-tricks/#comment-169</guid>
		<description>CSS type selectors are not supported in components: ‘DataGrid’
I looked here and there to solve this but :(

You get this warning when you have specified the CSS for DataGrid control and you have not used it in your application.

Just open the CSS and comment out DataGrid and turned into a style class, The warning would go automatically.

ex: 
Earlier 
[css]
DataGrid
{
	color: #001977;
	fontFamily: Arial;
	fontSize: 11;
	selectionColor: #1F99E7;
	fontWeight: normal;
	selectionDisabledColor: #D9E6F0;
	alternatingItemColors: #F7F7F7, #D9E6F0;
}
[/css]

Then 
[css]
.viewDataGrid
{
	color: #001977;
	fontFamily: Arial;
	fontSize: 11;
	selectionColor: #1F99E7;
	fontWeight: normal;
	selectionDisabledColor: #D9E6F0;
	alternatingItemColors: #F7F7F7, #D9E6F0;
}
[/css]</description>
		<content:encoded><![CDATA[<p>CSS type selectors are not supported in components: ‘DataGrid’<br />
I looked here and there to solve this but <img src='http://www.beasrilankan.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>You get this warning when you have specified the CSS for DataGrid control and you have not used it in your application.</p>
<p>Just open the CSS and comment out DataGrid and turned into a style class, The warning would go automatically.</p>
<p>ex:<br />
Earlier </p>
<pre class="brush: css; title: ;">
DataGrid
{
	color: #001977;
	fontFamily: Arial;
	fontSize: 11;
	selectionColor: #1F99E7;
	fontWeight: normal;
	selectionDisabledColor: #D9E6F0;
	alternatingItemColors: #F7F7F7, #D9E6F0;
}
</pre>
<p>Then </p>
<pre class="brush: css; title: ;">
.viewDataGrid
{
	color: #001977;
	fontFamily: Arial;
	fontSize: 11;
	selectionColor: #1F99E7;
	fontWeight: normal;
	selectionDisabledColor: #D9E6F0;
	alternatingItemColors: #F7F7F7, #D9E6F0;
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on File Uploads with PHP and Flex by Sameera Sandaruwan</title>
		<link>http://www.beasrilankan.com/2010/02/file-uploads-with-php-and-flex/comment-page-1/#comment-105</link>
		<dc:creator>Sameera Sandaruwan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.beasrilankan.com/?p=589#comment-105</guid>
		<description>If it is run time error? or attachment error?</description>
		<content:encoded><![CDATA[<p>If it is run time error? or attachment error?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

