--- In [email protected], "jeffreyr6915" <[EMAIL PROTECTED]> wrote:
>
> Hi Tracy,
> 
> I tried to remove as much code as possible. Thanks
> 
> 
> DailyUpdateView.mxml
> ---------------------------
> 
> public function initApp():void
>                       { 
>                               
>                               //Event Listener
>
currentStickyNote.addEventListener("taskUpdate",currentStickyViewHandler);
>                               
>                       }
> 
> 
> private function
currentStickyViewHandler(event:UpdateScrumTaskEvent):void
>                       {
>                               currentStickyNote.category = event.category;
>                       }
> 
> 
> <mx:Panel x="344" y="44" width="368" height="539" layout="absolute"
> title="Planning" id="planningPanel">
>               <mx:TileList id="plannedStickyList" 
> dataProvider="{plannedTaskColl}"
> height="499" y="0" x="0"  
>                       dragEnabled="true" dropEnabled="true" 
> dragMoveEnabled="true" 
> themeColor="#FFFFFF"
>                       dragDrop="dragDropHandler(event)" width="348">
>                       <mx:itemRenderer>
>                               <mx:Component>
>                                       <mx:Canvas 
> xmlns:mx="http://www.adobe.com/2006/mxml";
> horizontalScrollPolicy="off" verticalScrollPolicy="off"  
>                                               mouseOver="showLargeSticky()">
>                                      
>                                               <renderers:StickyNoteSmall 
> id="stickyNoteSmall"
> category="{data.category}" description="{data.description}"
> visible="true"/>
>                                               <!--<renderers:StickyNote 
> id="stickyNote"
> category="{data.category}" description="{data.description}" 
>                                                                               
>           devName="{data.developer}" devHours="{data.developerHrs}"
>                                                                               
>           qaName="{data.qa}" qaHours="{data.qaHrs}"  width="0"
> height="0" visible="false"/>
>                                               -->
>                                               
>                                               <mx:Script>
>                             <![CDATA[
>                               import
> com.intuit.scrum.events.UpdateScrumTaskEvent;
> 
>                                                          import 
> mx.controls.Alert;
>                                public function showLargeSticky() : void
>                                {
>                                       
>                                 dispatchEvent(new
> UpdateScrumTaskEvent("taskUpdate",data.category, data.description,
>                                                               
> data.developer,data.developerHrs,data.qa,data.qaHrs,data.priority));
> //                                            
>                                }
>                               
> 
>                             ]]>
>                         </mx:Script>
>                                       </mx:Canvas>
>                               </mx:Component>
>                       </mx:itemRenderer>
>                       
>               </mx:TileList>
> 
> 
> UpdateScrumTaskEvent
> ---------------------------------
> package com.intuit.scrum.events
> {
> import flash.events.Event;
> 
> public class UpdateScrumTaskEvent extends Event
> {
> 
> public var category:String;
> public var description:String;
> public var developer:String;
> public var developerHrs:int;
> public var qa:String;
> public var qaHrs:int;
> public var priority:int;
> 
> public function UpdateScrumTaskEvent(type:String,category:String,
> description:String,
> 
> developer:String,developerHrs:int,qa:String,qaHrs:int,priority:int)
> {
> super(type);
> this.category = category;
> this.description = description;
> this.developer = developer;
> this.developerHrs = developerHrs;
> this.qa = qa;
> this.qaHrs = qaHrs;
> this.priority = priority;
> }
> 
> }
> }
>

Can someone please help me with this? Thanks

Reply via email to