<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2193133047398087627</id><updated>2024-10-04T19:06:53.361-07:00</updated><category term="Basics"/><category term="Flex Error"/><category term="IBM ILOG Calendar"/><category term="ArrayCollection"/><category term="Date"/><category term="Array"/><category term="Cairngorm"/><category term="Combobox"/><category term="Timer"/><category term="XMLDocument"/><category term="Zend Amf"/><title type='text'>Flex Tutorials</title><subtitle type='html'>Flex action scripting,  Zend AMF , Audio/Video Player, IBM ILOG Calendar, Cairngorm Framework</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flextutorial4you.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-53855311703320342</id><published>2012-06-12T04:25:00.001-07:00</published><updated>2012-06-12T04:25:40.374-07:00</updated><title type='text'>Unable to parse null body data Invalid user property in Zend Amf</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It&#39;s the property/variable mismatch in Amf Object and PHP VO(Virtual Object) class objects&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/53855311703320342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/53855311703320342'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2012/06/unable-to-parse-null-body-data-invalid.html' title='Unable to parse null body data Invalid user property in Zend Amf'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-6122926389648690761</id><published>2012-05-29T03:28:00.000-07:00</published><updated>2012-05-29T03:28:06.858-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex Error"/><title type='text'>Definition spark.effects:AnimateFilter could not be found.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You&amp;nbsp; are using the old sdk version. Spark supports available from sdk 4. Please add/update your sdk from Project Properties menu in Flash Builder&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6122926389648690761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6122926389648690761'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2012/05/definition-sparkeffectsanimatefilter.html' title='Definition spark.effects:AnimateFilter could not be found.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-2282244353967043313</id><published>2012-05-27T22:52:00.000-07:00</published><updated>2012-05-27T22:52:08.188-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex Error"/><title type='text'>Access of undefined property JSON</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First we have to download the library and can find it at http://code.google.com/p/as3corelib/. Then follow these steps to add your JSON library to your Flex project:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. Download the .zip archive and extract it. What you need is the .swc file in the lib folder.&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. In Flex Builder / Flash Builder, go to your project’s properties, and then to the Flex Build Path panel.&lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Click on Add SWC, and select the as3corelib.swc file&lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. In your project, add the following line: import com.adobe.serialization.json.JSON;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2282244353967043313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2282244353967043313'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2012/05/access-of-undefined-property-json.html' title='Access of undefined property JSON'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-1767399071195214453</id><published>2012-05-15T01:44:00.000-07:00</published><updated>2012-05-15T01:44:08.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex Error"/><title type='text'>Error:Process terminated without establishing connection to debugger. initial content not found</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I managed to find a solution to the problem. It has to do with outdated app xml config files.&lt;br /&gt;So after importing project from source control, create a new application (eg. TestApp) and run / debug it, which works fine.&lt;br /&gt;&lt;br /&gt;Compare the 2 app xml config files. In the new file at the top you will see a line:&lt;br /&gt;
application xmlns=&quot;http://ns.adobe.com/air/application/1.5&quot;&lt;br /&gt;
In the old file I had:&lt;br /&gt;application xmlns=&quot;http://ns.adobe.com/air/application/1&quot;&lt;br /&gt;
&lt;br /&gt;So you can change the old with the new app configuration.&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1767399071195214453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1767399071195214453'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2012/05/errorprocess-terminated-without.html' title='Error:Process terminated without establishing connection to debugger. initial content not found'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-5784049349816244301</id><published>2012-04-30T03:11:00.000-07:00</published><updated>2012-04-30T03:11:17.148-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex Error"/><title type='text'>Error -  Invalid application descriptor: descriptor version does not match runtime version</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It&#39;s because of your SDK version and has some incompatibility with main-app.xml in the application root folder.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; It happens when you import some application so better to create test application with existing SDK version. Then replace the application main-app.xml with the automatically created one.&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5784049349816244301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5784049349816244301'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2012/04/error-invalid-application-descriptor.html' title='Error -  Invalid application descriptor: descriptor version does not match runtime version'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-2185573305620563978</id><published>2011-12-14T03:34:00.000-08:00</published><updated>2012-01-27T02:31:29.022-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Amf"/><title type='text'>Using Zend_Amf with Flex</title><content type='html'>We have to do the following from flex script&lt;br /&gt;
1. Setting a target url&lt;br /&gt;
There are different ways to do it and I share one of them. &lt;br /&gt;
We need to create service-config.xml and save that in the project src folder.&lt;br /&gt;
Ex:  &lt;br /&gt;
services-config&lt;br /&gt;
services&lt;br /&gt;
service id=&quot;amfphp-flashremoting-service&quot; class=&quot;flex.messaging.services.RemotingService&quot; messageTypes=&quot;flex.messaging.messages.RemotingMessage&quot;&lt;br /&gt;
destination id=&quot;flex_amf&quot;&lt;br /&gt;
channels&lt;br /&gt;
channel ref=&quot;my-zend&quot;&lt;br /&gt;
channels&lt;br /&gt;
properties&lt;br /&gt;
source*&lt;source
               properties
           destination
       service
   services
   channels
       channel-definition id=&quot;my-zend&quot; class=&quot;mx.messaging.channels.AMFChannel&quot;
       endpoint uri=&quot;http:domainnamefilename&quot; class=&quot;flex.messaging.endpoints.AMFEndpoint&quot;
       channel-definition
   channels
 services-config
   
2.Then you have to add that path in the Project=&gt;Flex Compiler settings.&lt;br /&gt;
Ex:-locale en_US -services service-config.xml&lt;br /&gt;
3. In your mxml file add RemoteObject component&lt;br /&gt;
Ex:&lt;br /&gt;
&lt;mx:RemoteObject id=&quot;zendRemoteObject&quot;  source=&quot;FormService&quot; 
  fault=&quot;zendRemoteObject_faultHandler(event)&quot;
  destination=&quot;flex_amf&quot;
   result=&quot;zendRemoteObject_resultHandler(event)&quot;
  &gt;&lt;br /&gt;
In this source is the class name that you are using in PHP and destination refers to destination tab in the service-config.xml file&lt;br /&gt;
4. Create a button to execute the click function and in that call the function you need to execute in the class file.&lt;br /&gt;
zendRemoteObject.functionName(parameters)&lt;br /&gt;
5. You will get the amf response in the result or fault event functions&lt;br /&gt;
&lt;br /&gt;
You have to do the folloing in PHP class to return the amf response.&lt;br /&gt;
&lt;br /&gt;
1. Include the Zend_Amf library&lt;br /&gt;
Ex:&lt;br /&gt;
require_once &#39;Zend/Amf/Server.php&#39;;&lt;br /&gt;
2. Create object of amf server&lt;br /&gt;
$server = new Zend_Amf_Server();&lt;br /&gt;
3. Set the class that we need to map with&lt;br /&gt;
$server-&gt;setClass(&quot;className&quot;);&lt;br /&gt;
4. Map ActionScript value objects to the PHP value objects.&lt;br /&gt;
$server-&gt;setClassMap(&quot;className&quot;, &quot;className&quot;);&lt;br /&gt;
5. Then print the handle response.&lt;br /&gt;
Ex:echo ($server-&gt;handle());&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;adBlock&quot;&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2185573305620563978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2185573305620563978'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/12/using-zendamf-with-flex.html' title='Using Zend_Amf with Flex'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-2448459420763256910</id><published>2011-12-14T02:49:00.000-08:00</published><updated>2011-12-14T02:50:27.850-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array"/><title type='text'>Create associative array in Flex</title><content type='html'>It&#39;s not possible to create array like array(&#39;branchId&#39;=&gt;1,&#39;order&#39;=&gt;2)&lt;br /&gt;
For that first we have to define a variable as array&lt;br /&gt;
Ex:&lt;br /&gt;
var attr:Array = new Array();&lt;br /&gt;
attr[&quot;branchId&quot;]  = 1;&lt;br /&gt;
attr[&quot;order&quot;]  = 2;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2448459420763256910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2448459420763256910'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/12/create-associate-array-in-flex.html' title='Create associative array in Flex'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-712642914258588400</id><published>2011-06-23T03:17:00.000-07:00</published><updated>2011-06-23T03:17:10.772-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArrayCollection"/><title type='text'>Geneate/Create ArrayCollection dynamically</title><content type='html'>var resultArr:ArrayCollection  = new ArrayCollection(e.result as Array);&lt;br /&gt;
   var careeListData:ArrayCollection = new ArrayCollection();&lt;br /&gt;
   var resultArray:Array = new Array();&lt;br /&gt;
   if((resultArr.length &gt; 0) &amp;&amp; (resultArr[0][&quot;whoForId&quot;] != null)){&lt;br /&gt;
   &lt;br /&gt;
    for(var l=0; l &lt; resultArr.length; l++){&lt;br /&gt;
 &lt;br /&gt;
     resultArray.push({label:resultArr[l][&quot;careeName&quot;], data:resultArr[l][&quot;whoForId&quot;]})&lt;br /&gt;
      &lt;br /&gt;
    }&lt;br /&gt;
    careeListData = resultArray as Object;  &lt;br /&gt;
   }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/712642914258588400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/712642914258588400'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/06/geneatecreate-arraycollection.html' title='Geneate/Create ArrayCollection dynamically'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-4718709133921640660</id><published>2011-06-23T00:32:00.000-07:00</published><updated>2011-06-23T00:32:14.637-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Combobox"/><title type='text'>Combobox with change event to get the selected item value</title><content type='html'>In the script add the following&lt;br /&gt;
&lt;br /&gt;
private var listData:ArrayCollection = new ArrayCollection(&lt;br /&gt;
                        [{label:&quot;Arun Kumar&quot;, data:&quot;3&quot;},&lt;br /&gt;
   {label:&quot;John Jose&quot;, data:&quot;1&quot;},&lt;br /&gt;
   {label:&quot;Mary Dam&quot;, data:&quot;2&quot;}]);&lt;br /&gt;
 private function getSelectedCaree(event:Event):void&lt;br /&gt;
  {&lt;br /&gt;
   trace(event.currentTarget.selectedItem.data);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
 In the MXML add the following to show the combo-box with change event&lt;br /&gt;
&lt;br /&gt;
 mx:ComboBox id=&quot;comboList&quot; change=&quot;getSelectedCaree(event)&quot; fontSize=&quot;15&quot; x=&quot;1000&quot; y=&quot;50&quot; dataProvider=&quot;{listData}&quot;&lt;br /&gt;
 /mx:ComboBox</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/4718709133921640660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/4718709133921640660'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/06/combobox-with-change-event-to-get.html' title='Combobox with change event to get the selected item value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-5607021248624305740</id><published>2011-05-19T21:44:00.000-07:00</published><updated>2011-05-19T21:44:22.047-07:00</updated><title type='text'>Confirmation Alert box with OK and Cancel</title><content type='html'>Alert.show(&quot;Do you want to remove all the events&quot;, &quot;Confirmation&quot;, &lt;br /&gt;
       Alert.OK | Alert.CANCEL, this,&lt;br /&gt;
       confirmRemove, null, Alert.OK);&lt;br /&gt;
&lt;br /&gt;
   private function confirmRemove(evntObj:CloseEvent):void&lt;br /&gt;
   {&lt;br /&gt;
    if (evntObj.detail==Alert.OK) {&lt;br /&gt;
//Add the code to execute if use pressed OK button&lt;br /&gt;
                  }&lt;br /&gt;
          }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5607021248624305740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5607021248624305740'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/confirmation-alert-box-with-ok-and.html' title='Confirmation Alert box with OK and Cancel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-287186622521507002</id><published>2011-05-19T21:29:00.000-07:00</published><updated>2011-05-19T21:29:26.849-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Date"/><title type='text'>Convert Flex date timestamp to UTC timestamp</title><content type='html'>var localDate:Date  = new Date();&lt;br /&gt;
var localTimestamp:Number       = localDate.valueOf() / 1000;  &lt;br /&gt;
//date with valueOf function returns the milliseconds and divide by 1000 to convert to seconds &lt;br /&gt;
var timzoneOffset:Number        = localDate.timezoneOffset * 60;&lt;br /&gt;
//Timezone offset returns the minutes and multiply by 60 to convert to seconds to use for timestamp&lt;br /&gt;
var utcTimestamp                = localTimestamp + timzoneOffset;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/287186622521507002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/287186622521507002'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/convert-flex-date-timestamp-to-utc.html' title='Convert Flex date timestamp to UTC timestamp'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-5858424787537579885</id><published>2011-05-16T00:22:00.000-07:00</published><updated>2011-05-16T00:23:12.384-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="Timer"/><title type='text'>Adding Timer Event Listener</title><content type='html'>For adding or handling the time based functions we can use  flex Timer Util class.&lt;br /&gt;
&lt;br /&gt;
import flash.events.TimerEvent;&lt;br /&gt;
import flash.utils.Timer;&lt;br /&gt;
&lt;br /&gt;
private var timer:Timer;&lt;br /&gt;
&lt;br /&gt;
private function init():void&lt;br /&gt;
{&lt;br /&gt;
timer  = new Timer(10);&lt;br /&gt;
timer.start();&lt;br /&gt;
timer.addEventListener(TimerEvent.TIMER, checkDbChange);&lt;br /&gt;
}&lt;br /&gt;
private function checkDbChange(t:TimerEvent):void&lt;br /&gt;
{&lt;br /&gt;
trace(&quot;Database updated&quot;);&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5858424787537579885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5858424787537579885'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/add-timer-event-listener.html' title='Adding Timer Event Listener'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-5759505721780634542</id><published>2011-05-05T21:58:00.000-07:00</published><updated>2011-05-05T21:58:40.311-07:00</updated><title type='text'>File not found in bin-debug/*.html</title><content type='html'>It happens while we import the project. To solve the issue you can try the following way&lt;br /&gt;
&lt;br /&gt;
  1. Project-&gt;Build Automatically then try&lt;br /&gt;
  2. Project-&gt;Clean the selected project then try&lt;br /&gt;
 If the above procedure doesn&#39;t work try the following.&lt;br /&gt;
  3. Project-&gt;Properties-&gt;Compiler Settings&lt;br /&gt;
     Check HTML Wrapper and If Not checked checked and try.&lt;br /&gt;
     If the HTml Wrapper is checked the un-check then save then try to run it again.It will not work then again check the HTML Wrapper and try. I got it solved the issue.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5759505721780634542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5759505721780634542'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/file-not-found-in-bin-debughtml.html' title='File not found in bin-debug/*.html'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-3793242420281015286</id><published>2011-05-04T02:41:00.000-07:00</published><updated>2011-05-04T02:41:16.254-07:00</updated><title type='text'>Error Cannot convert XMLList@5967b21 to Date</title><content type='html'>To convert XMLList date to date, first convert it to String then the date string into Milliseconds using the Date.parse method. Then you can convert the seconds to Date object&lt;br /&gt;
&lt;br /&gt;
 Ex: var dateString:String = xmlDateValue.toString();&lt;br /&gt;
     var dateInMilliseconds:Number = Date.parse(dateString);&lt;br /&gt;
     //date format &quot;Wed May 4 15:30:17 GMT-0700 2011&quot;&lt;br /&gt;
     var curDate:Date = Date(dateInMilliseconds);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3793242420281015286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3793242420281015286'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/error-cannot-convert-xmllist5967b21-to.html' title='Error Cannot convert XMLList@5967b21 to Date'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-2751838743875373167</id><published>2011-05-04T02:38:00.000-07:00</published><updated>2011-05-04T02:38:24.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Convert String to Date</title><content type='html'>To convert string to date, first convert the date string into Milliseconds using the Date.parse method. Then you can convert the seconds to Date object&lt;br /&gt;
&lt;br /&gt;
 Ex: var dateInMilliseconds:Number = Date.parse(&quot;Wed May 4 15:30:17 GMT-0700 2011&quot;);&lt;br /&gt;
     var curDate:Date = Date(dateInMilliseconds);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2751838743875373167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/2751838743875373167'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/convert-string-to-date.html' title='Convert String to Date'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-3108207095423071462</id><published>2011-05-02T00:28:00.000-07:00</published><updated>2011-05-02T00:29:06.163-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Convert String into Array</title><content type='html'>We can convert the String into Array with splitting it with delimiter.&lt;br /&gt;
Ex:&lt;br /&gt;
var sampleString:String = &quot;Hello World&quot;;&lt;br /&gt;
var results:Array = excDate.split(&quot; &quot;);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3108207095423071462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3108207095423071462'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/05/convert-string-into-array.html' title='Convert String into Array'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-4745002396549491328</id><published>2011-04-28T03:42:00.001-07:00</published><updated>2011-05-02T00:28:39.406-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IBM ILOG Calendar"/><title type='text'>How to show the recurreneRule from database in the pop-up recurrencePanel</title><content type='html'>In the Calendar Click event add code to get the rule and create and object of recurence Panel. Then set the recurrenceRule variable in recurrencePanel&lt;br /&gt;
&lt;br /&gt;
Ex:&lt;br /&gt;
_recurrencePanel = new RecurrencePanel();&lt;br /&gt;
_recurrencePanel.recurrenceRule = new RRule(cal.selectedItems[0].item.@rrules);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/4745002396549491328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/4745002396549491328'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/how-to-show-recurrenerule-from-database.html' title='How to show the recurreneRule from database in the pop-up recurrencePanel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-5943311731617248819</id><published>2011-04-27T00:41:00.000-07:00</published><updated>2011-04-27T00:41:37.310-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>Get and Set function declaration</title><content type='html'>Flex script has Get and Set functions that can encapsulate property access behind function calls, but without changing the property access syntax.&lt;br /&gt;
&lt;br /&gt;
This tells ActionScript that the functions are for property access. While the code looks quite different than just using a public property, the usage is exactly the same.&lt;br /&gt;
&lt;br /&gt;
Ex:&lt;br /&gt;
&lt;br /&gt;
public class HelloWorld&lt;br /&gt;
{&lt;br /&gt;
private var _strValue:String;&lt;br /&gt;
&lt;br /&gt;
public function get strValue():String&lt;br /&gt;
{&lt;br /&gt;
return this._strValue;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public function set strValue( value:String ):void&lt;br /&gt;
{&lt;br /&gt;
this._strValue = value;&lt;br /&gt;
}&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5943311731617248819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/5943311731617248819'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/get-amd-set-function-declaration.html' title='Get and Set function declaration'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-3062332398831394495</id><published>2011-04-26T03:29:00.000-07:00</published><updated>2011-04-26T03:29:35.998-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>TextInput  focus in and out events</title><content type='html'>We can use focusIn and focusOut events for getting values on or out of focus.&lt;br /&gt;
&lt;br /&gt;
 Ex: mx:TextInput id=&quot;summaryTxt&quot; width=&quot;100%&quot; focusOut=&quot;summaryTxt_focusOutHandler(event)&quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3062332398831394495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3062332398831394495'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/textinput-focus-in-and-out-events.html' title='TextInput  focus in and out events'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-1793330532043473225</id><published>2011-04-10T23:23:00.000-07:00</published><updated>2011-04-10T23:23:39.681-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IBM ILOG Calendar"/><title type='text'>How to change the Calendar mode to Month view</title><content type='html'>In the IBM ILOG Calendar, the default is Week View. We can change it by adding the following code in the init() function.&lt;br /&gt;
&lt;br /&gt;
 cal.mode = Calendar.MONTH_MODE; //cal is the id of the ilog calendar object</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1793330532043473225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1793330532043473225'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/how-to-change-calendar-mode-to-month.html' title='How to change the Calendar mode to Month view'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-6937819681891438763</id><published>2011-04-07T23:39:00.001-07:00</published><updated>2011-04-07T23:39:45.924-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IBM ILOG Calendar"/><title type='text'>Get recurring event id while editing</title><content type='html'>In the ITEM_EDIT_END event, use the below code to get the recurring event id.&lt;br /&gt;
var eventId:int = cal.selectedItems[0].item.@eventId.toString();&lt;br /&gt;
trace(eventId);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6937819681891438763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6937819681891438763'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/get-recurring-event-id-while-editing.html' title='Get recurring event id while editing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-6705675278220133767</id><published>2011-04-06T23:47:00.001-07:00</published><updated>2011-04-06T23:47:30.517-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XMLDocument"/><title type='text'>Convert Object to XML</title><content type='html'>private function convertobjectToXML(obj:Object):XML &lt;br /&gt;
 {&lt;br /&gt;
   var qName:QName = new QName(&quot;list&quot;);&lt;br /&gt;
   var xmlDocument:XMLDocument = new XMLDocument();&lt;br /&gt;
   var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument);&lt;br /&gt;
   var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument);&lt;br /&gt;
   var xml:XML = new XML(xmlDocument.toString());&lt;br /&gt;
   trace(xml);&lt;br /&gt;
   return xml;&lt;br /&gt;
 }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6705675278220133767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/6705675278220133767'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/convert-object-to-xml.html' title='Convert Object to XML'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-3806124885294104806</id><published>2011-04-06T23:40:00.000-07:00</published><updated>2011-04-06T23:43:19.487-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArrayCollection"/><title type='text'>Convet AMF Object to XML</title><content type='html'>var result:Object;&lt;br /&gt;
var listCollection:ArrayCollection =  new ArrayCollection(result as Array);&lt;br /&gt;
&lt;br /&gt;
var mainXML:XML = list //root xml tag&lt;br /&gt;
for(var i:int=0; i &lt; listCollection.length; i++)&lt;br /&gt;
   {&lt;br /&gt;
    if(listCollection[i][&#39;event_id&#39;] != null){&lt;br /&gt;
     var myXML:XML = event //child xml attribute&lt;br /&gt;
myXML.@id=listCollection[i][&#39;event_id&#39;];&lt;br /&gt;
myXML.@s=listCollection[i][&#39;start&#39;];&lt;br /&gt;
myXML.@e=listCollection[i][&#39;end&#39;];&lt;br /&gt;
mainXML.appendChild(myXML);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 You will get the xml data in the mainXML variable</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3806124885294104806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/3806124885294104806'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/convet-amf-object-to-xml.html' title='Convet AMF Object to XML'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-1515504331207442901</id><published>2011-04-05T21:36:00.000-07:00</published><updated>2011-04-05T21:36:50.172-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><title type='text'>How to use Alert.show method</title><content type='html'>mx:Script&lt;br /&gt;
private function showAlert():void{&lt;br /&gt;
 Alert.show(&#39;message&#39;,&#39;title&#39;,flags,parent,clickListener,iconClass,defaultButton);&lt;br /&gt;
}&lt;br /&gt;
mx:Script close&lt;br /&gt;
&lt;br /&gt;
 flags - mx.controls.Alert.OK — OK button&lt;br /&gt;
         mx.controls.Alert.YES — Yes button&lt;br /&gt;
         mx.controls.Alert.NO — No button&lt;br /&gt;
         mx.controls.Alert.CANCEL — Cancel button&lt;br /&gt;
 parent - parent object&lt;br /&gt;
 clickListener - listener function name for flags</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1515504331207442901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/1515504331207442901'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/how-to-use-alertshow-method.html' title='How to use Alert.show method'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-2193133047398087627.post-7861858495639372268</id><published>2011-04-04T02:39:00.000-07:00</published><updated>2011-04-04T02:39:28.095-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IBM ILOG Calendar"/><title type='text'>Get event id for editing event data in the Database</title><content type='html'>you can get the event id set in the dataProvider in editItemEnd function using the below script. &lt;br /&gt;
trace(event.item.id);&lt;br /&gt;
private function itemEditEnd(event:CalendarEvent):void {&lt;br /&gt;
&lt;br /&gt;
  if (event.item is IRecurrenceInstance) {&lt;br /&gt;
//code for recurring event&lt;br /&gt;
  }else{&lt;br /&gt;
    trace(event.item.id);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/7861858495639372268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2193133047398087627/posts/default/7861858495639372268'/><link rel='alternate' type='text/html' href='http://flextutorial4you.blogspot.com/2011/04/get-event-id-for-editing-event-data-in.html' title='Get event id for editing event data in the Database'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>