<?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 on: Flexlib Scheduling Sample</title>
	<atom:link href="http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/feed/" rel="self" type="application/rss+xml" />
	<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/</link>
	<description></description>
	<lastBuildDate>Tue, 25 Oct 2011 20:39:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Gus</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-704</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Tue, 25 Oct 2011 20:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-704</guid>
		<description>Hi Rehan,

It should&#039;ve worked... what happened when you ran that code?</description>
		<content:encoded><![CDATA[<p>Hi Rehan,</p>
<p>It should&#8217;ve worked&#8230; what happened when you ran that code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RehanAzher</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-703</link>
		<dc:creator>RehanAzher</dc:creator>
		<pubDate>Mon, 24 Oct 2011 05:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-703</guid>
		<description>Thanks for the wonderful job done,  how can we have a schedule entry for root element as well , I tried following but it did not work: 

 &lt;code&gt;
private function testFunction():ArrayCollection{
	var entries:ArrayCollection = new ArrayCollection();
	var row:ArrayCollection = new ArrayCollection();
	for each (var order:String in orderList){
		var orderXML:XML = new XML(orderXMLMap.getValue(order)+&quot;&lt;/order&gt;&quot;)
		row = new ArrayCollection();
		var entry : ColoredScheduleEntry= new ColoredScheduleEntry();
		entry.startDate = DateUtil.clearTime( DateField.stringToDate(&quot;10/10/2011&quot;,&quot;DD/MM/YYYY&quot;));
		entry.endDate =  DateUtil.clearTime(DateField.stringToDate(&quot;21/10/2011&quot;,&quot;DD/MM/YYYY&quot;));
		entry.backgroundColor = 0x273c0b;
		entry.label = orderXML.@name;
		row.addItem(entry);
		var orderGroup:GroupedScheduleEntry = new GroupedScheduleEntry(orderXML.@name,row);
		var orderItemArray:Array = orderItemsMap.getValue(order) as Array;
		if (orderItemArray){
			var tmpArray:Array = new Array();
			for each (var itemName:String in orderItemArray) {
				row = new ArrayCollection();
				var oItemXML:XML = new XML(orderItemXMLMap.getValue(itemName)+&quot;/&gt;&quot;);
				var sDate:String = oItemXML.@sDate;
				var eDate:String  =oItemXML.@rfsDate;
				if (sDate==null &#124;&#124; sDate.length==0){
					sDate= dFormat.format(dateAdd(&quot;day&quot;,-10,DateField.stringToDate(eDate,&quot;DD/MM/YYYY&quot;))).toString();
				}
				entry = new ColoredScheduleEntry();
				entry.startDate = DateUtil.clearTime( DateField.stringToDate(&quot;15/10/2011&quot;,&quot;DD/MM/YYYY&quot;));
				entry.endDate =  DateUtil.clearTime(DateField.stringToDate(&quot;19/10/2011&quot;,&quot;DD/MM/YYYY&quot;));
				entry.backgroundColor = 0xFEDbbb;
				entry.label = oItemXML.@name;
				row.addItem(entry);
				var orderItem:GroupedScheduleEntry = new GroupedScheduleEntry(oItemXML.@name,row);
				tmpArray.push(orderItem);
			}
			orderGroup.children = tmpArray;
		}
		entries.addItem(orderGroup);
		

	}
	dataprovider = entries;
}
&lt;/code&gt;


Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the wonderful job done,  how can we have a schedule entry for root element as well , I tried following but it did not work:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">private function testFunction():ArrayCollection{<br />
&nbsp; &nbsp; var entries:ArrayCollection = new ArrayCollection();<br />
&nbsp; &nbsp; var row:ArrayCollection = new ArrayCollection();<br />
&nbsp; &nbsp; for each (var order:String in orderList){<br />
&nbsp; &nbsp; &nbsp; &nbsp; var orderXML:XML = new XML(orderXMLMap.getValue(order)+&quot;&lt;/order&gt;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; row = new ArrayCollection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; var entry : ColoredScheduleEntry= new ColoredScheduleEntry();<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.startDate = DateUtil.clearTime( DateField.stringToDate(&quot;10/10/2011&quot;,&quot;DD/MM/YYYY&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.endDate = &nbsp;DateUtil.clearTime(DateField.stringToDate(&quot;21/10/2011&quot;,&quot;DD/MM/YYYY&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.backgroundColor = 0x273c0b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; entry.label = orderXML.@name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; row.addItem(entry);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var orderGroup:GroupedScheduleEntry = new GroupedScheduleEntry(orderXML.@name,row);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var orderItemArray:Array = orderItemsMap.getValue(order) as Array;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (orderItemArray){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var tmpArray:Array = new Array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for each (var itemName:String in orderItemArray) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row = new ArrayCollection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var oItemXML:XML = new XML(orderItemXMLMap.getValue(itemName)+&quot;/&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var sDate:String = oItemXML.@sDate;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var eDate:String &nbsp;=oItemXML.@rfsDate;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sDate==null || sDate.length==0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sDate= dFormat.format(dateAdd(&quot;day&quot;,-10,DateField.stringToDate(eDate,&quot;DD/MM/YYYY&quot;))).toString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry = new ColoredScheduleEntry();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry.startDate = DateUtil.clearTime( DateField.stringToDate(&quot;15/10/2011&quot;,&quot;DD/MM/YYYY&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry.endDate = &nbsp;DateUtil.clearTime(DateField.stringToDate(&quot;19/10/2011&quot;,&quot;DD/MM/YYYY&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry.backgroundColor = 0xFEDbbb;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry.label = oItemXML.@name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row.addItem(entry);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var orderItem:GroupedScheduleEntry = new GroupedScheduleEntry(oItemXML.@name,row);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmpArray.push(orderItem);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; orderGroup.children = tmpArray;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; entries.addItem(orderGroup);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; dataprovider = entries;<br />
}</div></td></tr></tbody></table></div>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-701</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Tue, 15 Mar 2011 20:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-701</guid>
		<description>If you zoom out to ~74.32 in the example you provide there is an area which has a different color and has a horizontal scroll bar visible. In addition, you can not drag and drop appointments over this area of the scheduler. Where would I start looking to fix this problem?

thanks in advance</description>
		<content:encoded><![CDATA[<p>If you zoom out to ~74.32 in the example you provide there is an area which has a different color and has a horizontal scroll bar visible. In addition, you can not drag and drop appointments over this area of the scheduler. Where would I start looking to fix this problem?</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-700</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Tue, 15 Mar 2011 01:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-700</guid>
		<description>Ok, thanks!! I&#039;m still going to try it at home and see if I can find any posible cause or difference between that appoinment and the others</description>
		<content:encoded><![CDATA[<p>Ok, thanks!! I&#8217;m still going to try it at home and see if I can find any posible cause or difference between that appoinment and the others</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-699</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Mon, 14 Mar 2011 21:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-699</guid>
		<description>I pasted the sample into a canvas of an application. However it seems that the error is only caused by the this appointment. 

row = new ArrayCollection();
            	entry = new SimpleScheduleEntry();
            	entry.startDate = DateUtil.setTime( new Date(), DateUtil.HOUR_IN_MILLISECONDS * 13 );
	            entry.endDate = new Date( entry.startDate.getTime() + DateUtil.HOUR_IN_MILLISECONDS * 400 );
    	        entry.label = &quot;Our third entry!&quot;;
        	    row.addItem( entry );
            
            	childGroup = new GroupedScheduleEntry(&quot;doc3&quot;,row);
				parentGroup = new GroupedScheduleEntry(&quot;or3&quot;,null,[childGroup]);

I commented out the appointment and it works fine. So I&#039;m guessing I may have messed something up in the copy and paste. If I can reproduce it on a different appointment I&#039;ll report it again with more details.</description>
		<content:encoded><![CDATA[<p>I pasted the sample into a canvas of an application. However it seems that the error is only caused by the this appointment. </p>
<p>row = new ArrayCollection();<br />
            	entry = new SimpleScheduleEntry();<br />
            	entry.startDate = DateUtil.setTime( new Date(), DateUtil.HOUR_IN_MILLISECONDS * 13 );<br />
	            entry.endDate = new Date( entry.startDate.getTime() + DateUtil.HOUR_IN_MILLISECONDS * 400 );<br />
    	        entry.label = &#8220;Our third entry!&#8221;;<br />
        	    row.addItem( entry );</p>
<p>            	childGroup = new GroupedScheduleEntry(&#8220;doc3&#8243;,row);<br />
				parentGroup = new GroupedScheduleEntry(&#8220;or3&#8243;,null,[childGroup]);</p>
<p>I commented out the appointment and it works fine. So I&#8217;m guessing I may have messed something up in the copy and paste. If I can reproduce it on a different appointment I&#8217;ll report it again with more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-698</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Mon, 14 Mar 2011 21:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-698</guid>
		<description>This is pretty weird... and to be honest I don&#039;t have any idea. I will have to run some tests and try to figure out the problem :S Did you implemented anything else or just pasted the sample as is in Air?</description>
		<content:encoded><![CDATA[<p>This is pretty weird&#8230; and to be honest I don&#8217;t have any idea. I will have to run some tests and try to figure out the problem :S Did you implemented anything else or just pasted the sample as is in Air?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-697</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Mon, 14 Mar 2011 20:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-697</guid>
		<description>I&#039;m getting the following error message when I copied and pasted the code into an adobe air app. It lets me drag an appointment around 3 or 4 times before firing this error message.

ArgumentError: Error #2015: Invalid BitmapData.
	at flash.display::BitmapData/ctor()
	at flash.display::BitmapData()
	at mx.managers::NativeDragManagerImpl/initiateDrag()[C:\autobuild\3.5.0\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:355]
	at mx.managers::NativeDragManagerImpl/doDrag()[C:\autobuild\3.5.0\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:341]
	at mx.managers::DragManager$/doDrag()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\DragManager.as:243]
	at flexlib.scheduling.scheduleClasses.viewers::EntryViewer/onMouseMoveEntry()</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error message when I copied and pasted the code into an adobe air app. It lets me drag an appointment around 3 or 4 times before firing this error message.</p>
<p>ArgumentError: Error #2015: Invalid BitmapData.<br />
	at flash.display::BitmapData/ctor()<br />
	at flash.display::BitmapData()<br />
	at mx.managers::NativeDragManagerImpl/initiateDrag()[C:\autobuild\3.5.0\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:355]<br />
	at mx.managers::NativeDragManagerImpl/doDrag()[C:\autobuild\3.5.0\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:341]<br />
	at mx.managers::DragManager$/doDrag()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\DragManager.as:243]<br />
	at flexlib.scheduling.scheduleClasses.viewers::EntryViewer/onMouseMoveEntry()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-696</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Fri, 04 Feb 2011 14:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-696</guid>
		<description>yes, I had to make some modifications in order to handle some events like click and drag over the items pluss some timeline modifications.</description>
		<content:encoded><![CDATA[<p>yes, I had to make some modifications in order to handle some events like click and drag over the items pluss some timeline modifications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-695</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Fri, 04 Feb 2011 07:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-695</guid>
		<description>I have one question: have you made any modifications to the flexlib.swc library classes? Or you are using them as is, and added the ones you wrote and are visible via view source?
Thank you.</description>
		<content:encoded><![CDATA[<p>I have one question: have you made any modifications to the flexlib.swc library classes? Or you are using them as is, and added the ones you wrote and are visible via view source?<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus</title>
		<link>http://withbreakpoints.com/2009/04/flexlib-scheduling-sample/comment-page-1/#comment-693</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Mon, 17 Jan 2011 16:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://withbreakpoints.wordpress.com/?p=16#comment-693</guid>
		<description>Hi,

To add a new timeline by the week you need to add a new timelinerenderer (src/flexlib/scheduling/timelineclasses for samples) in which you need to create the date formatter that you require, in this case week 1 etc. Then you just need to modify the ResourcePlanning class to accept the new TimeLineRenderer (you can check the createChildren method to see how they are handled) - Ideally the should be defined by an itemrenderer or something so they be outside the component.

HTH
Gus</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>To add a new timeline by the week you need to add a new timelinerenderer (src/flexlib/scheduling/timelineclasses for samples) in which you need to create the date formatter that you require, in this case week 1 etc. Then you just need to modify the ResourcePlanning class to accept the new TimeLineRenderer (you can check the createChildren method to see how they are handled) &#8211; Ideally the should be defined by an itemrenderer or something so they be outside the component.</p>
<p>HTH<br />
Gus</p>
]]></content:encoded>
	</item>
</channel>
</rss>

