[flexcoders] FW: Problem With the Data Grid Header

2006-10-19 Thread Akash












HI,



I got
struck in one more problem wtth the data grid header for flex 1.5.
Actually I want the headertext as multiline as I have to display the no. of
columns in the small area. I tried adding the \n character and played with the
htmlText also for this but nothing worked. Is there any way out. As well as the
lines between the column names and under this was not removable. I tried to
play with the css which did not work for the datagrids.

Could you plz. suggest me something abt this prob? 




?xml version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Canvas
xmlns:mx=http://www.macromedia.com/2003/mxml height=445
width=447 backgroundColor=#FF
creationComplete=populate();
backgroundDisabledColor=#FF



 mx:Script

![CDATA[


public var myComboBoxArray:Array = [Business Unit,
Administrator, Lender Channel];


public var contents:Array =
[Link,ProgramGuides,BusinessGuidelines];


public var myLinkArray:Array = [the Bank Website,Google,National
Mortgage news,the Bank
Website,Google,Yahoo];


public var myPgArray:Array = [Conventional Loan Program,Jumbo
Loan Program,Government Loans];


public var myBgArray:Array = [Quick Refrence Guide,Loan
Submission Requirement,Channel Master User Guide];


public var newContents:Array = new Array();


public var dummy:Array = new Array();


public var dummy1:Array = new Array();


public var dummy2:Array = new Array();


var tempselect:String;


var sel:Number;


[Bindable]


var temp:String;


var a:String;


public var columnName:String=;


function populate(){


for (var index in contents){ 


var tempitem:String;


tempitem=contents[index];



myDataGrid.dataProvider.addItem({yr:tempitem,totalPayment:tempitem,intRate:tempitem,endBalance:tempitem,ptsTotalPayment:tempitem,ptsIntRate:tempitem,ptsEndBalance:tempitem});//addItem


}


/*function genData() 



{


var rowCount = 30;//Number(rows.text);


var dp = [];


for (var i=0;irowCount;i++) {


dp.push({data1:$ + i + .00});


}


myDataGrid.dataProvider = dp;


}*/


}





]]

/mx:Script

 

mx:DataGrid id=myDataGrid
width=98% height=85% x=5
y=75 dataProvider={dummy} rowHeight=15
fontSize=9 editable=false
backgroundColor=#FF borderColor=#FF
borderThickness=0 hGridLineColor=#FF
vGridLineColor=#FF verticalAlign=middle
color=#00 dragEnabled=false
enabled=true showHeaders=true
backgroundDisabledColor=#FF headerHeight=40
borderCapColor=#FF fillColors=[#00]
fontFamily=Verdana fontStyle=normal
fontWeight=normal headerColor=#FF
hGridLines=false highlightColor=#FF
scrollTrackColor=#FF selectionColor=#FF selectionDisabledColor=#00
symbolBackgroundColor=#00 textDecoration=none
textAlign=left textDisabledColor=#00
themeColor=#FF alternatingRowColors=[#FF] vScrollPolicy=off
hScrollPolicy=off backgroundAlpha=0.0 

 mx:columns


mx:Array


mx:DataGridColumn columnName=name
headerText=Name/


mx:DataGridColumn columnName=yr
headerText=Year/


mx:DataGridColumn columnName=totalPayment
headerText= headerRenderer={GridHeaderRender}/


mx:DataGridColumn columnName=intRate headerText=Interest
Rate/


mx:DataGridColumn columnName=endBalance headerText=Ending
Balance/


mx:DataGridColumn columnName=ptsTotalPayment
headerText=Total Payment/


mx:DataGridColumn columnName=ptsIntRate
headerText=Interest Rate/


mx:DataGridColumn columnName=ptsEndBalance
headerText=Ending Balance/





/mx:Array

 /mx:columns

/mx:DataGrid




/mx:Canvas

/mx:Application



GridHeaderRender.as



import mx.controls.Label;

class GridHeaderRender extends mx.controls.Label{

 var lbl : MovieClip;

 var listOwner : MovieClip; //Reference to the
parent DataGrid.



 function GridHeaderRender(){

 }

 public function createChildren():Void {

 lbl = createClassObject(Label,
'label', 1, {toolTip: 'User names here.'});

 lbl.text =
Total#13;nPayment;

 }



 public function getPreferredHeight():Number {

 return listOwner.rowHeight;

 }



 public function layoutChildren():Void {

 lbl.setSize(80,
listOwner.rowHeight);

 }



 function setValue(str:String, item:Object,
sel:Boolean) : Void {

 }

}







Akash,






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest

[flexcoders] How to generate pdf of MXML file

2006-10-18 Thread Akash










Hi,

 I want to know that is it possible to generate
the pdf from the mxml components in flex 1.5 or 2.0 or not. If possible then
which class can we use?



Akash,






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] how to convert string to number

2006-10-16 Thread Akash










Hi,



 I am new to flex 1.5. I searched a lot for this
conversion but didnt get anything helpful. Actually I am accepting text
from the TextInput which accepts only the number. So I want to convert it to
the number but how to do it in flex? 



Akash,




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


RE: [flexcoders] Calculating Values on The Fly

2006-10-14 Thread Akash












Hi, Thanks a lot.





Akash,

.













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway
Sent: Friday, October 13, 2006
12:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Calculating Values on The Fly











a simple solution is to create a function that is
called on the change events of the combo boxes and set the text of the label to
the selected Item of those combo boxes. I can create you a quick show and tell
if you would like.. 



On 10/12/06, Akash
akash.chander@in.ness.com
wrote:











Hi,



 I have 2
comboBoxes, a text area and a label. Whenever a change occurs in any of the
above said controls the resultant value of the label should come accordingly on
the fly. Can anybody Tell me some example of this kind.



Looking Forward to your cooperation,



Akash




 
  
  Disclaimer
  
  This email and any files transmitted with it are confidential and intended
  solely for the use of the individual or entity to whom it is addressed. If
  you have received this communication in error, please immediately notify the
  [EMAIL PROTECTED]ness.com and
  destroy the original message. The recipient should check this email and any
  attachments for the presence of viruses. Ness
  has taken every reasonable precaution to minimize this risk, and accepts no
  liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the
  content of all messages sent to or from this E-mail address, and store them
  on the Ness E-mail system. 
  
 















-- 
diabetic? http://www.diabetesforums.com
Albert Einstein - It's not that I'm so smart, it's just that I stay with
problems longer. 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Accordians help

2006-10-13 Thread Akash










Hi,

 I am working with flex 1.5 and my question is how can
we customize an accordion so that we can add our own icons to its Header navigator
Button which changes on the click event. Actually I am very new to it. And I was
able to add image to it but it was not coming at the exact left hand side of
the header button. There was some gap say 5 pixels on its left side. Perhaps
its easy in flex 2.0. is there any example of this kind in flex 1.5?





Looking forward to your cooperation,

Akash,






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Calculating Values on The Fly

2006-10-12 Thread Akash










Hi,



 I have 2 comboBoxes, a
text area and a label. Whenever a change occurs in any of the above said controls
the resultant value of the label should come accordingly on the fly. Can anybody
Tell me some example of this kind.



Looking Forward to your cooperation,



Akash




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] How to change the Link icon at run time

2006-10-09 Thread Akash










HI all,



 I want to change the icon of this link at the
run time say on the click event. Can anybody plz. Tell me how to do this? 



mx:Link id=PrintLink
icon=@Embed('images/PrintUp.png') x=10
y=468 width=59 height=25
fontWeight=bold fontStyle=normal
fontSize=14 fontFamily=Courier
color=#FF toolTip=Print Report
enabled=false click=doPrint();/





Thanks  regards,

Akash 




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Problem with Action Script

2006-10-06 Thread akash










Hi,

 Can anybody tell me how to include two actionScript
files in an application?

 Actually I am using the following methodology.



 mx:Script source= file name.



 Can I call 2
files using this tag? What is the syntax?



Regards,

Akash Chander,

9886036863.






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Variable Initialization Problem

2006-10-06 Thread akash










Hi all,



 This is my action script file. Here I am
initializing the variable with some value..but I find it outside that particular
code block it is showing undefined even tthough the variable is global. Can anybody
suggest me how to resolve this problem?



import mx.core.UIObject;

 import
de.richinternet.utils.Dumper;

 public static var pageItem,printItem : Object;

 public static var reportItem1,reportItem2 :
Object;

 public static var
title: String=null;

 var pages:Number=0;

 var
loanTermArray=[1,2,3,4,5,6,7,8,9];

 var
interestRateArray=[1,2,3,4,5,6,7,8,9];

 var
pointsPurchasedArray=[0,1,2,3,4,5,6,7,8,9];

 

 function createUI(
pageUI:String , parentComp:Object):Void {

 

 if( pageUI == formatToolbar )

 {

 
pageItem = parentComp.createChild( formatToolbar, undefined );

 

 }

 if( pageUI == pointsCalci )

 {

 pageItem = parentComp.createChild(
PointsCalculator, undefined); 

 title='Calculators
: Should I Pay Points?';

 Dumper.dump(title
+title);//here its ok.

 } 

 if(pageUI ==
viewPointCalci)

   pageItem=parentComp.createChild(ViewCalculator,undefined);

 

   if(pageUI ==
viewPointReport)

   {

pageItem=parentComp.createChild(mx.containers.VBox,undefined,{
x:8, y:21, width:465, height:445});

  reportItem1=pageItem.createChild(PointCalciReport1,undefined);

  pages++;

  reportItem2=pageItem.createChild(PointCalciReport2,undefined);

  pages++;

 printItem=pageItem;

   }


 

 }



 public function
destroyUI(parentComp:Object):Void {

   parentComp.destroyChild(
UIObject( pageItem ) );

 } 

 


 

 public function
doPrint() 

  {

   var pj : PrintJob = new
PrintJob();

 

  //Save the current
vertical scroll position of the DataGrid control. 

  var
prev_vPosition:Number = printItem.vPosition;

 Dumper.dump(vPosition
+prev_vPosition);

  if(pj.start() !=
true) 

   {

  delete pj;

  return;

  }



  //Scroll down each page of rows,
then call addPage() once for each page. 

   for (var i:Number=0;ipages;i++) 

 {

  //newItem.vPosition = i*rowsPerPage;

  var obj1 :
Object = printItem.getChildAt(i);

  

   pj.addPage(printItem.getChildAt(i));
//{xMin:-100,xMax:400,yMin:-150,yMax:560});

   }

 pj.send();

   delete pj;



  // Restore vertical scroll position.

  //newItem.vPosition =
prev_vPosition;

 }

 

 public function
setTitle(titleparam:Object)

 {

 Dumper.dump(title
+this.title);// here title is coming out to be undefined?

 titleparam.text=title;

 }



ThanksRegards,

Akash Chander,






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] can we include two .as files into our Application?

2006-10-05 Thread akash










Hi all,



 Can anybody tell me how to include 2 .as files into
our Application using the source property of the mx:Script source=/
tag?



Thanks  Regards,

Akash Chander,

9886036863.






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Component ID Reference

2006-09-27 Thread akash












Hi all,



 Can anybody suggest me hw to refer the
component defined in the .MXML
file from an .as file.



Thanks,

Akash






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Unable to call a method from a different file

2006-09-27 Thread akash










Hi all,






Can anybody tell me the reason why the method destroyUi is not being called
out. Its not showing anyError. But the control is not going to LeftAccordian.mxml files destroyUI method.





//LeftAccordian.mxml



?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml 

borderThickness=1
cornerRadius=5 dropShadow=true
fontFamily=Verdana fontSize=18
fontStyle=normal fontWeight=bold
creationComplete=createUI( 'formatToolBarPage' )
xmlns:accords=*



mx:Model
id=statesModel source=states.xml/




mx:Script


![CDATA[


import mx.core.UIObject;

 import
de.richinternet.utils.Dumper;


public var pageItem : Object;





function createUI( pageUI:String ):Void {


if( pageUI == formatToolBarPage )

 {


pageItem = dashBoard.createChild( formatToolbar, undefined );

 

 }


if( pageUI == pointsCalci )

 {


pageItem = dashBoard.createChild( pointsCalculator, undefined ); 

 //mx.controls.Alert(
Check +pageItem);

 }



}




public function destroyUI():Void {

 
Dumper.dump(inside destroy);

 dashBoard.destroyChild(
UIObject( pageItem ) );


} 

 

 public
function test():Void {

 
Dumper.dump(inside test); 


} 


]]


/mx:Script



mx:HBox
id=dashBoard width=766 height=493
hScrollPolicy=off vScrollPolicy=off



mx:Accordion
width=263 height=493


fillColors=[0x33,0xFF]
borderColor=#00CCFF borderSides=
visible=true mouseOverEffect=Move
barColor=#99CC33 borderStyle=inset
borderThickness=1





!--Calculators Advisors--

 mx:VBox
label=Calculators Advisors marginTop=20
width=245 height=338

 

 mx:Link
fontSize=10 fontWeight=bold label=Should I Pay
Points?
click=destroyUI();createUI('pointsCalci');/mx:Link

 

 

 /mx:VBox



/mx:HBox







// pointCalculator.mxml





?xml
version=1.0 encoding=utf-8?

mx:Canvas
width=474 height=493
xmlns:mx=http://www.macromedia.com/2003/mxml
backgroundColor=#225FB0 cornerRadius=5
borderStyle=solid marginLeft=3 marginRight=3
fontSize=16 hScrollPolicy=off vScrollPolicy=off
creationComplete=initReport();



 mx:Script


![CDATA[

 [Bindable]


var leftAccord;

 import
de.richinternet.utils.Dumper;

 function
initReport():Void

 {

 

 Dumper.dump(Inside
initReport! );

 var leftAccord:leftAccordian=new leftAccordian();

 Dumper.dump(After
object intitialization );

 

 return; 


}


]]


/mx:Script 

 


mx:Label text= Calculators : Should I Pay Points?
width=232 x=5 y=4 height=18
fontSize=11 fontWeight=bold color=#FF
/





mx:Link label=View Report x=389 y=4
width=77 height=18 color=#FF
fontSize=10 fontWeight=bold 



mouseDown={leftAccord.destroyUI();}/ // this destroyUI() is not being called up. Why?



/mx:Canvas





Thanks.

Akash










__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] How to refer the component of the .mxml file inside a .as file?

2006-09-27 Thread akash










Hi all,


Is there any way in flex1.5 to refer to the component by id from inside .as
file.







?xml version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml 

borderThickness=1 cornerRadius=5
dropShadow=true fontFamily=Verdana
fontSize=18 fontStyle=normal
fontWeight=bold creationComplete=createUI( 'formatToolbar'
) xmlns:accords=*



mx:Model id=statesModel
source=states.xml/



 mx:Script

 ![CDATA[


import mx.core.UIObject;

 import
de.richinternet.utils.Dumper;


public var pageItem : Object;





function createUI( pageUI:String ):Void {


if( pageUI == formatToolbar )

 {


pageItem = dashBoard.createChild( formatToolbar, undefined );

 

 }


if( pageUI == pointsCalci )

 {


pageItem = dashBoard.createChild( pointsCalculator, undefined ); 

 

 }


 if(
pageUI == viewReport )

 {


pageItem = dashBoard.createChild( pointCalciReport, undefined ); 

 

 }


 }




public function destroyUI():Void {

 
Dumper.dump(destroyed +pageItem.toString());

 dashBoard.destroyChild(
UIObject( pageItem ) );

 return;


} 

 


 ]]

 /mx:Script



 mx:HBox id=dashBoard width=766 height=493
hScrollPolicy=off vScrollPolicy=off



















.as file



import mx.core.UIObject;

 public var pageItem :
Object;

 



var obj:leftAccordian=new leftAccordian();


function createUI( pageUI:String ):Void {





pageItem = obj.dashBoard.createChild(
pageUI, undefined ); 

 



}




public function destroyUI():Void {

 


 obj.dashBoard.destroyChild( UIObject( pageItem
) );


} 









The way it is shown above is not working. Can I refer the dashboard
component from .as file?





Regards,

Akash Chander,






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] Complie Time Constant expressions Exception

2006-09-26 Thread akash










Hi,


I have created a main application file in which I have methods createUI and
DestroyUI. When I click on a link its child component appears in that main
window. Now the problem is inside this component I have a label. So when I tracks
mouseDown event for this label I call the createUI method by creating the
object of Main Application file inside the action Script block. But its showing
the error.





A class's instance
variables may only be initialized to compile-time constant expressions.



mx:Script


![CDATA[


var leftAccord:leftAccordian=new leftAccordian(); // Main Application File

 [Bindable]

 function
setVisibility(flag:Boolean):Void

 {

 mx.controls.Alert(Flag
+flag);


//formattoolbar.visible=flag; 


}


]]


/mx:Script



mx:Label
text=View Report x=389 y=4
width=77 height=18 color=#FF
fontSize=10 fontWeight=bold
mouseDown=leftAccord.destroyUI();leftAccord.createUI('pointCalciReport');/









Could
anybody suggest me what mistake I m commiting? Or what should be done to get
this working?



Regards,



Akash






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.


[flexcoders] displaying the Pop window as we focus on the link.

2006-09-18 Thread akash










Hi all,





 I am new to flex. And I m using flex 1.5. I am
trying to open the popup window for showing contents of the link of some
message as i focus on it.. but I have no idea of it. Plz. Someone having some
idea regarding it share with me.





Regards,

Akash




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.