[flexcoders] Re: Best way to create mutiple (+100) objects

2005-11-11 Thread moyosaned
If you you use a Repeater, it will rebuild the components every time
your dataprovider is changed. I thought it would be more efficient to
create the objects first and when you don't need them you just hide them.

--- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED]
wrote:

 Why not to use a repeater instead? 
 
 João Fernandes
 Secção de Desenvolvimento
 Departamento de Informática
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of moyosaned
 Sent: quinta-feira, 10 de Novembro de 2005 15:31
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Best way to create mutiple (+100) objects
 
 Anybody got a way to create more dan 100 objects and attach them to
a container. This is how I do it now:
 
 I'm doing this on creationComplete of the container(event.target)
 
 for(var i=0;iTOTAL_ITEMS;i++){   
 allItems.push(ThumbItem(event.target.createChild( ThumbItem,
item+i, {}))); allItems[i].contentThumbViewhelper = this;
allItems[i].height = 0; allItems[i].visible = false; }
 
 When I'm doing this it looks like the app is freezing, so is there
way to duplicate ThumbItem, instead of creating it every time!!
 
 
 
 
 
  Yahoo! Groups Sponsor
~-- Fair play? Video games influencing politics.
Click and talk back!
 http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
 ~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links









 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] How to add checkboxes to datagrid

2005-11-11 Thread sandip_patil01
Hi All,

I want to add checkboxes to datagrid.
I am trying example from 
Flex Explorer sample under Component Library  DataGrid  Custom Cell 
Renderers

I copied these two files in folder c:\sample
1) CheckCellRenderer.as
2) CheckCellRendererDemo.mxml

 tried to run but it is showing me error
   There is no method with the name CheckCellRenderer

Anybody know why this is coming.

SANDIP P
 
 









 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] changing color of button when it is pressed

2005-11-11 Thread sandip_patil01
Hi all,

Can anybody know how to change color of button when we press a button.

i.e. when we press button say it should change its color form red to 
white.


Sandip P







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] setting width of datagrid column using a variable.

2005-11-11 Thread leorajpoot
hi all
I want to set the width of a column of a datagrid,value of the width is 
stored in a variable. In DataGridColumn tag if i set 
width=variableName, then a error occurs which says can't parse 
variableName. If i set width without quotes eg. width=variableName then 
a error occurs which says Open quote is expected for attribute width

please help me out to solve this issue.











 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] How to add checkboxes to datagrid

2005-11-11 Thread Sandip Patil



Hi Matt,

Thanks for your response.
I tried Flex Explorer sample under Component Library  DataGrid  Custom Cell Renderers this example.

I copied these two files in folder c:\sample
1) CheckCellRenderer.as2) CheckCellRendererDemo.mxml

 tried to run but it is showing me error
 "There is no property with the name CheckCellRenderer"


Sandip P.Matt Chotin [EMAIL PROTECTED] wrote:









The Flex Explorer sample has an example under Component Library  DataGrid  Custom Cell Renderers





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sandip_patil01Sent: Tuesday, November 08, 2005 11:34 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] How to add checkboxes to datagrid

Hi All,I want to add checkboxes to my DataGrid's first column.Here is my scenorio,?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:DataGrid id="dataGrid" mx:columns mx:Array  mx:DataGridColumn
 headerText="" width="23" /  mx:DataGridColumn headerText="Customer Name"/  mx:DataGridColumn headerText="Contact Name" /   mx:DataGridColumn headerText="Type" /  mx:DataGridColumn headerText="Details" / /mx:Array  /mx:columns/mx:DataGrid
  /mx:ApplicationCan anybody tell me how to do this.Thx,Sandip patil
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] setting width of datagrid column using a variable.

2005-11-11 Thread Sreejith Unnikrishnan






Just set

dataGridName.getColumnAt(2).width = vairableName;

on creation complete of the dataGrid

where 2 should be replaced by the index of the column that you wish to
set width.

-
Sree


leorajpoot wrote:

hi all
I want to set the width of a column of a datagrid,value of the width is
  
stored in a variable. In DataGridColumn tag if i set 
width="variableName", then a error occurs which says can't parse 
variableName. If i set width without quotes eg. width=variableName then
  
a error occurs which says "Open quote is expected for attribute "width""
  
please help me out to solve this issue.
  
  
  
  
  
  
  
  
  
  









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  













Re: [flexcoders] setting width of datagrid column using a variable.

2005-11-11 Thread Manish Jethani
On 11/11/05, leorajpoot [EMAIL PROTECTED] wrote:

 I want to set the width of a column of a datagrid,value of the width is
 stored in a variable. In DataGridColumn tag if i set
 width=variableName, then a error occurs which says can't parse
 variableName. If i set width without quotes eg. width=variableName then
 a error occurs which says Open quote is expected for attribute width

You want to use binding...

  DataGridColumn width={variable} /


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] How to add checkboxes to datagrid

2005-11-11 Thread Manish Jethani
On 11/11/05, Sandip Patil [EMAIL PROTECTED] wrote:

 I copied these two files in folder c:\sample

 1) CheckCellRenderer.as
 2) CheckCellRendererDemo.mxml

  tried to run but it is showing me error

There is no property with the name CheckCellRenderer

Both files should be in the same directory when you're running
CheckCellRendererDemo.mxml


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] changing color of button when it is pressed

2005-11-11 Thread Manish Jethani
On 11/11/05, sandip_patil01 [EMAIL PROTECTED] wrote:

 Can anybody know how to change color of button when we press a button.

 i.e. when we press button say it should change its color form red to
 white.

Have you looked at the mouseDown event?


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] removing listener for KeyUp event from mx:TextInput field

2005-11-11 Thread Andriy Panas
Dear flexcoders,

  I have a problem with removing the custom listener for KeyUp event
for my mx:TextInput field. The new listener for 'KeyUp' event that I add
during 'focusIn' event never gets deleted.

   Every time I move focus to the mx:TextInput field one new
listener is added for 'KeyUp' event and old listeners for 'KeyUp'
event stays intact too!

   I end up with multiple calls to 'enterKeyPressed' function :(.



In my MXML I have the following entry:
cut MXML here-
mx:FormItem label=UserId required=true
  mx:TextInput id=username width=150 
focusIn=logonWindowViewHelper.addListenerForKeyStroke() 
focusOut=logonWindowViewHelper.removeListenerForKeyStroke()/
/mx:FormItem
cut MXML here-

where id logonWindowViewHelper is a instance of LogonWindowViewHelper
AS class assigned to the View.


2) LogonWindowViewHelper AS class:

-cut here AS class---
import org.nevis.cairngorm.view.ViewHelper;

class LogonWindowViewHelper extends ViewHelper
{

public function LogonWindowViewHelper() 
{
super();
}   
/**/
function addListenerForKeyStroke()
{   
view.username.addEventListener('keyUp', 
mx.utils.Delegate.create(this, this.enterKeyPressed));
}
   /**/
function enterKeyPressed (event)
{
if (event.code == 13)
{
logonHandler(); 

}
}
/**/
function removeListenerForKeyStroke()
{
   // this call does not underegister the listener!!  :(
   view.username.removeEventListener('keyUp', 
mx.utils.Delegate.create(this, this.enterKeyPressed));

}

 /**/
 function logonHandler()
 {
 
 }

-cut here AS class---



  

-- 
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] disable fwdMonth and prevMonth buttons in DateChooser

2005-11-11 Thread keishichi2001
Flex2.0

can i do this? with setting any props...
I can't find suitable prop...


Thanks,
Keishichi






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] changing color of button when it is pressed

2005-11-11 Thread Mark Wales

You'll want to set the style of the button in Actionscript:

In MXML:

mx:Button id=myButton label=Change Color click=changeColor() /

In script:

public function changeColor():Void { 
var colorArray:Array = [ red, red ];
myButton.setStyle(fillColors, colorArray);
}


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sandip_patil01
Sent: Friday, November 11, 2005 3:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] changing color of button when it is pressed

Hi all,

Can anybody know how to change color of button when we press a button.

i.e. when we press button say it should change its color form red to 
white.


Sandip P








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



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] disable fwdMonth and prevMonth buttons in DateChooser

2005-11-11 Thread Manish Jethani
On 11/11/05, keishichi2001 [EMAIL PROTECTED] wrote:
 Flex2.0

 can i do this? with setting any props...
 I can't find suitable prop...

You can grab the internal forward button and set it to disabled.

  dateChooser.fwdMonthButton.enabled = false;

I'm told that this variable is public by mistake and will be made
private in the next build (so don't count on it).  Do you have a
strong use-case for disabling these buttons?


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Cool Flex Site with Free 30 day trial

2005-11-11 Thread Merrill, Jason










I agree with your comment about navigation 
it was too linear, you never knew where you were in the application  so
a menu breaking things out would be nice instead of feeling like you have to
watch the whole thing in one long linear fashion. Kudos though for using Flex,
nice use of the quizzes  especially when you got something wrong and it
immediately went back and replayed a review for you  nice instructionally.
Nice design and videos  some graphics needed a more professional touch
though, like the panels showing text  a bit overdone and very 
early 1990s-ish  the rest of the interface looked
good  except for the oddities you mentioned like the color bandwidth
thing. Not only did it not make sense, but you shouldnt convey information
with color if it the only way to interpret that information  some people
are colorblind. Anyway, overall I would give it much more than a 4, but still
needs some work. Very impressive use of Flex for e-learning though. 





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 






















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes
Sent: Thursday, November 10, 2005
8:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cool
Flex Site with Free 30 day trial






I'm probably being over-critical but heres my thoughts:


 Navigation needs work - Semantics behind the
 various buttons and their placements, are at first confusing (exit? does
 that mean exit the window, exit the application??? ) - Back To Main? tucked up to the top left corner, where it
 blends easily to the other top navigation, rather then why not place
 it same position, but at the bottom, rather then top... etc..
 0% completed - whats that mean? do i sit and
 wait? or do i click, whats it mean! ;) (keeping in mind these aren't flex
 developers using it, more average pod worker)
 Colors at the bandwidth? wtf are they?
 UI panel flow - its too slideshow driven. There
 needs to be either some sort of crumb process in place, or something that
 allows me to cycle back 2 tiers if need be.. as this is more of an
 exploration application rather then a linear process.



I'm being critical for a reason, as we are all armed to the teeth with FLEX,
meaning there is a lot of power at our hands. To simply praise an application
like this is a success? disturbs me.. for example, were are the tooltips?
fundamental usability tools are in our hands, and yet sites like this ignore
them? For me i place FLEX on a more strict position then i would say a
html based solution, as there is no excuse other then time.

To be honest, they probably just spent $30k on something they could get for
less with say FLASH, as its very slideshow driven and nothing really exciting
that makes overwhelming use of FLEX? more its something that any decent FLASH
IDE developer could conjure... maybe there is more to it then meets the eye
behind the scenes?

My verdict
4 out of 10 

Pros:
- They use FLEX for eLearning which may win a future sale from one of us on the
concept see they do it, we can do it better
- They have some really cheesy videos in place, that cracked me up (not because
of their slap stick attempt at humour, but because it was so 1980's)







On 11/10/05, Philippe
Maegerman [EMAIL PROTECTED]
wrote:

Nicely done and
well organized .. 







Philippe
Maegerman









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of sir_janksalot
Sent: samedi 5 novembre 2005 1:25
To: flexcoders@yahoogroups.com
Subject:
[flexcoders] Cool Flex Site with Free 30 day trial

There is a new company that
has been making a corporate training
solution and doing some pretty cool things with it
in flex... (from
what I understand they are doing some video
branching which can
probably lead to choose your own
adventure type training) 

they offer a totally free 30 day trial at:

https://www1.g-t-t.com/ecom/processPromotion.cfml


could be exciting for those in the business world

sj








--
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 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.










--
**STATEMENT OF CONFIDENTIALITY** 

This
e-mail and any attached files are confidential and intended solely for the use
of the individual to whom it is addressed. If you have received this email in
error 

Re: [flexcoders] Re: WebServices via ActionScript

2005-11-11 Thread Jeff Tapper
Try this, note, I'm calling a different method, getSongs which takes a 
band name as an argument
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
initialize=getFunky()
mx:Script
![CDATA[

import mx.services.WebService;
import mx.services.PendingCall;

var myWebServiceObject:WebService;
var MyPendingCallObject:PendingCall;

public var debug_str:String = ;

function getFunky(){
 d(WebService:  + WebService);
 var theURL = http://radio.tapper.net/artist.cfc?wsdl;;
 myWebServiceObject = new WebService(theURL);
 MyPendingCallObject = myWebServiceObject.getSongs(beatles);
 d(Made call...);
 MyPendingCallObject.onResult = 
mx.utils.Delegate.create(this,showResults);
 MyPendingCallObject.onFault = 
mx.utils.Delegate.create(this,showFault);
}
function showResults(result:Array){
 for(var i:Number =0;iresult.length;i++){
 d(result[i].SONG);
 }
}
function showFault(fault){
 d(fault:  + fault);
 for(var p in fault){
 mx.core.Application.application.d(p + :  + fault[p]);
 }
}

function d(o){
 debug_str += o + \n;
}


]]
/mx:Script

mx:TextArea text={debug_str} width=400 height=300 /
  /mx:Application



At 09:01 PM 11/10/2005, huhgawz wrote:
It works excelent!!!

But how can i set the webservice params programatically?
I mean, if for example getCurrentSong(p1,p2) need a pair of parameters
or moreHow can i set them via ActionScript?


--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 
  Starting a new thread since we hijacked the other one.
 
  I tested this and it works in Flex 1.5 and Flash 8.
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application 
 xmlns:mx=http://www.macromedia.com/2003/mxmlhttp://www.macromedia.com/2003/mxml;
   initialize=getFunky()
   mx:Script
   ![CDATA[
 
   import mx.services.WebService;
   import mx.services.PendingCall;
 
   var myWebServiceObject:WebService;
   var MyPendingCallObject:PendingCall;
 
 
   public var debug_str:String = ;
 
   function getFunky()
   {
d(WebService:  + WebService);
var theURL = 
 http://radio.tapper.net/artist.cfc?wsdlhttp://radio.tapper.net/artist.cfc?wsdl;;
myWebServiceObject = new WebService(theURL);
MyPendingCallObject = myWebServiceObject.getCurrentSong();
d(Made call...);
MyPendingCallObject.onResult = function(result)
{
 mx.core.Application.application.d(result:  + result);
 for(var p in result)
 {
  mx.core.Application.application.d(p + :  + result[p]);
 }
}
MyPendingCallObject.onFault = function(fault)
{
 mx.core.Application.application.d(fault:  + fault);
 for(var p in fault)
 {
  mx.core.Application.application.d(p + :  + fault[p]);
 }
}
   }
 
   function d(o)
   {
debug_str += o + \n;
   }
 
 
   ]]
   /mx:Script
 
   mx:TextArea text={debug_str} width=400 height=300 /
  /mx:Application
 






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




SPONSORED LINKS
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb
 
site design development 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer
 
software development 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware
 
design and development
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia
 
flex 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware
 
development best practice


--
YAHOO! GROUPS LINKS

*  Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
*
*  To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
*  Your use of Yahoo! Groups is subject to the 
 

RE: [flexcoders] changing color of button when it is pressed

2005-11-11 Thread Matt Horn
I'd recommend doing programmatic skinning, and changing the button's
color based on the state inside the skin. This is described for Flex 1.x
in the DevApps book. For 2.0, the updated skinning docs did not make it
into the Alpha release, but I'd be happy to post some samples.

Matthew J. Horn
Flex docs 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of sandip_patil01
 Sent: Friday, November 11, 2005 3:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] changing color of button when it is pressed
 
 Hi all,
 
 Can anybody know how to change color of button when we press a button.
 
 i.e. when we press button say it should change its color form 
 red to white.
 
 
 Sandip P
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
 ~-- 
 Fair play? Video games influencing politics. Click and talk back!
 http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
 --
 --~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Internal Build problem (FLEX 2)

2005-11-11 Thread yaagcur
I am getting a problem An internal build error has occured

Checking the error log it states
Warning: valueOf is not a function

What should I be looking for
I have no valueOf string in the code 





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Any Flex ARP tutorial online?

2005-11-11 Thread Manuel Saint-Victor



Thanks-I'll check it out.ManiOn 11/11/05, JesterXL [EMAIL PROTECTED] wrote:









Old, before I had my CommandRegistry; source at the 
bottom:
http://dev.jessewarden.com/swg/resources/

Unfinished, but more mature example:
http://www.jessewarden.com/archives/2005/09/miscellaneous_d_1.html



- Original Message - 
From: 
Manuel 
Saint-Victor 
To: flexcoders@yahoogroups.com 
Sent: Thursday, November 10, 2005 9:16 PM
Subject: [flexcoders] Any Flex ARP tutorial online?
I'm trying to find an example of some Flex- ARP 
integration. Are there any sample files or tutorials floating around to 
look at if I want a nice concrete example?Thanks Mani





--
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
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex 1.x web-service and out-parameters

2005-11-11 Thread knly browne



If i call a web-service that has out parameters..how do i access those out parameters when the web-service call returnes.

Thanks-- Kenlie BrowneSoftware Developer






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: disable fwdMonth and prevMonth buttons in DateChooser

2005-11-11 Thread keishichi2001
Thanks Manish,

Yeah, personally i think people may want to switch ON/OFF these buttons.
DateChooser is the one of powerful component, so we may use the
component at any situation, like simple calendar for just viewing.

please remain the var as public :)


Thanks,
Keishichi



--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 11/11/05, keishichi2001 [EMAIL PROTECTED] wrote:
  Flex2.0
 
  can i do this? with setting any props...
  I can't find suitable prop...
 
 You can grab the internal forward button and set it to disabled.
 
   dateChooser.fwdMonthButton.enabled = false;
 
 I'm told that this variable is public by mistake and will be made
 private in the next build (so don't count on it).  Do you have a
 strong use-case for disabling these buttons?








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Recognizing when a CheckBox inside a DataGrid is clicked

2005-11-11 Thread fowleryj
Thanks, Malcolm and Jester! listOwner.editField(getCellIndex().itemIndex,
My_Date_Column_Name_To_Update, Date()) worked like a charm. =)

--- In flexcoders@yahoogroups.com, Malcolm [EMAIL PROTECTED] wrote:

 You could simply use listOwner.editField inside the cell renderer. For
 example something like:
 
 mx:CheckBox click=this.clickCheckBox( event )/
 
 function clickCheckBox ()
 {
 listOwner.editField( getCellIndex().itemIndex,
 My_Date_Column_Name_To_Update, Date() )
 }
 
 Thus when a user clicked the checkbox, listOwner.editField will
update the
 dataProvider and the date displayed in the dataGrid.
 
 Hope this helps,
 Malcolm
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of fowleryj
 Sent: Friday, 11 November 2005 8:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Recognizing when a CheckBox inside a DataGrid is
 clicked
 
 [env: Flex 1.5 with Cairngorm architecture]
 
 I am using the CheckBoxCellRenderer provided by Peter Ent via this
 download:
 http://www.markme.com/pent/archives/flex/solutions/cellrenderers.zip
 
 I have my program working such that when a user clicks the Save button
 in my mxml file, all the rows whose CheckBoxes are checked are stored
 in a new Array by a save() function in the mxml's ViewHelper.
 
 What I would like to do now is update the text in one of the cells
 when the CheckBox is clicked. To be more specific, each row in the
 DataGrid has a date column, and when the row's CheckBox is clicked,
 I'd like the current date to replace the date displayed in that row's
 date column.
 
 However, I can't figure out how to get the CheckBox to realize it has
 been clicked so that I can call the updateDate() function in the
 mxml's ViewHelper. I tried modifying the code in the
 CheckBoxCellRenderer class, but from there, I couldn't find an easy
 way to access the mxml's DataGrid and its dataProvider. I tried using
 the change property of the DataGrid, but that only recognizes that a
 row has been selected, not that a CheckBox has been clicked.
 
 [As an aside, I noticed while I was modifying the CheckBoxCellRenderer
 that the setValue() function is called twice everytime the mouse
 passes over a DataGrid row containing a checked CheckBox(es). This
 seemed odd.]
 
 Thanks in advance!





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Reverse yaxis (FLEX 2)

2005-11-11 Thread yaagcur
Thanks Ely for the hack

The pre-multiplying is straightforward and combined with adding
mx:LinearAxis minimum=-22 maximum=-1/
gives me the chart I am looking for but the axis looks a bit tacky
with all the negative numbers

However, I am having trouble appling a labelFunction
Attempting to adapt the example in livedocs
 http://livedocs.macromedia.com/labs/1/flex/1287.html

public function defineLabel(catName:String):String {
return catName +  '04;
}

getting an error
Type Coersion failed: cannot convert 22 to String

I have played around with bringing the data across both as a string
and a number but cannot seem to get it right -even get the same error
when brought in as number and replace string with number as to
instances above

e.g.
public function makePositive(catName:Number):Number {
return -1*catName;
}   

Incidentally, do you know if therr are there plans to incorporate a
reverse axis option in later releases or somewhere I could add it to a
wish list




--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote:

 
 
 No, the axes don't really support inversion.
 
 The easiest way would probably be:
 
 1) pre-multiply your values by -1.
 2) put a labelFunction on your vertical AxisRenderer that multiplies the
 label value by -1 to make it look like it's positive.
 3) if you want datatips, you'll have to add a dataTipFunction to do the
 same.
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of yaagcur
 Sent: Friday, November 04, 2005 9:24 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Reverse yaxis (FLEX 2)
 Importance: High
 
 I want to do a chart which is a ranking of team's position (y axis) in a
 league  over time (x-axis). 
 I would like to reverse the y axis so that if a team is improving over
 time (say from rank 4 to rank 2) the graph shows an upward movement
 rather than the downward movement that results from a straight input of
 the data Unsurprisngly, just having a lower maximum than minimum in the
 LinearAxis does not do the trick Is this possible another way?
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor ~--
 Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
 Life.
 http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
 ~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Amazon Web Service through FlexBuilder 1.5.

2005-11-11 Thread Sreejith Unnikrishnan






I am trying to access one of the
Amazon Web Services through FlexBuilder 1.5.

The following WSDL gives me a "WSDL fetch failed" error!
http://awis.amazonaws.com/AWSAlexa/AWSAlexa.wsdl

while, the beta version of the same service succeeds
http://aws-beta.amazon.com/AWSAlexa/AWSAlexa.wsdl

Can anyone please shed some light on this.

Regards
Sree







--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  













[flexcoders] Chart types (Flex 2)

2005-11-11 Thread yaagcur
I am looking to present graphically data on a list of baseball players
longevity at a club e.g all New York Yankees players who were at the
club at a particular date say 1960 would show those who had careers from 
1955-1961 and 1960-1970 etc.

I want to have the y axis listing the player names and the x axis
showing years. The graph would show each players length of career as a
band

How would I best go about this in Flex 2. I have played around with
the hi-lo chart to some degree of success but that has the axes in the
opposite way to my requirements

Is there some standard chart I could use? The livedocs article on 
custom charts has yet to be written







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] removing listener for KeyUp event from mx:TextInput field

2005-11-11 Thread Kevin Langdon
The event broadcaster keeps a map of event types and the event listener.  By
creating a new Delegate object everytime you are creating a new Listener.
So the broadcaster can no find the previous one to remove.  If you want to
keep the Delegate ref stuff going.  Try this:

class LogonWindowViewHelper extends ViewHelper {

  private var keyPressDelegate:Delegate;

  public function LogonWindowViewHelper() {
super();
keyPressDelegate = Delegate.create(this, this.enterKeyPressed);
  }   

  public function addListenerForKeyStroke() {

view.username.addEventListener('keyUp', this.keyPressDelegate);
  }

  public function removeListenerForKeyStroke() {
view.username.removeEventListener('keyUp', this.keyPressDelegate);
  }

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Friday, November 11, 2005 6:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] removing listener for KeyUp event from
mx:TextInput field

Dear flexcoders,

  I have a problem with removing the custom listener for KeyUp event for
my mx:TextInput field. The new listener for 'KeyUp' event that I add
during 'focusIn' event never gets deleted.

   Every time I move focus to the mx:TextInput field one new listener is
added for 'KeyUp' event and old listeners for 'KeyUp'
event stays intact too!

   I end up with multiple calls to 'enterKeyPressed' function :(.



In my MXML I have the following entry:
cut MXML here- mx:FormItem label=UserId
required=true
  mx:TextInput id=username width=150
focusIn=logonWindowViewHelper.addListenerForKeyStroke()
focusOut=logonWindowViewHelper.removeListenerForKeyStroke()/
/mx:FormItem
cut MXML here-

where id logonWindowViewHelper is a instance of LogonWindowViewHelper AS
class assigned to the View.


2) LogonWindowViewHelper AS class:

-cut here AS class--- import
org.nevis.cairngorm.view.ViewHelper;

class LogonWindowViewHelper extends ViewHelper {

public function LogonWindowViewHelper() 
{
super();
}   
/**/
function addListenerForKeyStroke()
{   
view.username.addEventListener('keyUp',
mx.utils.Delegate.create(this, this.enterKeyPressed));
}
   /**/
function enterKeyPressed (event)
{
if (event.code == 13)
{
logonHandler();

}
}
/**/
function removeListenerForKeyStroke()
{
   // this call does not underegister the listener!!  :(
   view.username.removeEventListener('keyUp',
mx.utils.Delegate.create(this, this.enterKeyPressed));

}

 /**/
 function logonHandler()
 {
 
 }

-cut here AS class---



  

--
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]




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



 






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Microsoft's Web. 2.0 Draws Skepticism

2005-11-11 Thread Tariq Ahmed






Considering the recent discussion, and Scott's latest blog post I
thought you guys would find this interesting...

http://news.yahoo.com/s/pcworld/2005/tc_pcworld/123503

"Though the powers that be at Microsoft seem to have finally grasped
the impact of the Internet on the future of packaged software, industry
observers and a key rival said the company still must prove that its
plan to compete in the Web 2.0 marketplace is more than just hype."







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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  














[flexcoders] Flex Builder 2.0 - HTTPService - Security Error

2005-11-11 Thread Michel Bertrand
Title: Flex Builder 2.0 - HTTPService - Security Error








Hello !


I have had a problem with HTTPService tag. The tag bellow bring me the following error:

Security error accessing url.


 mx:HTTPService 

   id=testDataSrv

   url="">http://localhost:8080/Teste/servlet/DataServiceTest

   useProxy=false

 /mx:HTTPService


I'm sure that URL (Servlet) works perfectly. I can access it by hand and it's not a protected URI.


Did I miss something ?


Thanks in advance !

Michel Bertrand | Desenvolvimento | DATASUL Tecnologia
Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de tecnologia 









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex Builder 2.0 - HTTPService - Security Error

2005-11-11 Thread Carson Hager
Title: Flex Builder 2.0 - HTTPService - Security Error





Did you load the swf from a host other than 
"localhost"? Even using the machine name or the non loopback IP would 
cause this problem.


Carson
  Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com 
 Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 
1.703.489.6466   



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Michel 
BertrandSent: Friday, November 11, 2005 8:47 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex Builder 2.0 - 
HTTPService - Security Error

Hello ! 
I have had a problem with HTTPService tag. The tag 
bellow bring me the following error: "Security error accessing url." 
 mx:HTTPServiceid="testDataSrv"url=""Courier New" color=#99 size=2>http://localhost:8080/Teste/servlet/DataServiceTest"useProxy="false"  /mx:HTTPService 
I'm sure that URL (Servlet) works 
perfectly. I can access it by hand and it's not a protected URI. 

Did I miss something 
? 
Thanks in advance ! 
Michel 
Bertrand | Desenvolvimento | DATASUL TecnologiaAcesse 
www.datasuldirect.com.br e conheça mais 
sobre os produtos e soluções de tecnologia 






--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Reverse yaxis (FLEX 2)

2005-11-11 Thread Ely Greenfield


Things have moved around a bit.


1) set the labelFunction on the LinearAxis, not the AxisRenderer
2) your LabelFunction should look like:


Public function
defineLabel(value:Number,previousValue:Number,axis:LinearAxis) {

}


I don't think reverse axis is on any future plans list, but future chart
plans are very infirm.

I'll make a note of the request, but you should submit it here:
http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform

Ely.


 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yaagcur
Sent: Friday, November 11, 2005 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reverse yaxis (FLEX 2)
Importance: High

Thanks Ely for the hack

The pre-multiplying is straightforward and combined with adding
mx:LinearAxis minimum=-22 maximum=-1/ gives me the chart I am
looking for but the axis looks a bit tacky with all the negative numbers

However, I am having trouble appling a labelFunction Attempting to adapt
the example in livedocs
http://livedocs.macromedia.com/labs/1/flex/1287.html

public function defineLabel(catName:String):String {
return catName +  '04;
}

getting an error
Type Coersion failed: cannot convert 22 to String

I have played around with bringing the data across both as a string and
a number but cannot seem to get it right -even get the same error when
brought in as number and replace string with number as to instances
above

e.g.
public function makePositive(catName:Number):Number {
return -1*catName;
}   

Incidentally, do you know if therr are there plans to incorporate a
reverse axis option in later releases or somewhere I could add it to a
wish list




--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED]
wrote:

 
 
 No, the axes don't really support inversion.
 
 The easiest way would probably be:
 
 1) pre-multiply your values by -1.
 2) put a labelFunction on your vertical AxisRenderer that multiplies 
 the label value by -1 to make it look like it's positive.
 3) if you want datatips, you'll have to add a dataTipFunction to do 
 the same.
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of yaagcur
 Sent: Friday, November 04, 2005 9:24 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Reverse yaxis (FLEX 2)
 Importance: High
 
 I want to do a chart which is a ranking of team's position (y axis) in

 a league  over time (x-axis).
 I would like to reverse the y axis so that if a team is improving over

 time (say from rank 4 to rank 2) the graph shows an upward movement 
 rather than the downward movement that results from a straight input 
 of the data Unsurprisngly, just having a lower maximum than minimum in

 the LinearAxis does not do the trick Is this possible another way?
 
 
 
 
 
 
 
  Yahoo! Groups Sponsor 
 ~-- Get Bzzzy! (real tools to help you find a 
 job). Welcome to the Sweet Life.
 http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
 ~-
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RES: [flexcoders] Flex Builder 2.0 - HTTPService - Security Error

2005-11-11 Thread Michel Bertrand
Title: Mensagem





No, 
I'm loading the SWF from localhost.

  
  -Mensagem original-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de 
  Carson HagerEnviada em: sexta-feira, 11 de novembro de 2005 
  15:19Para: flexcoders@yahoogroups.comAssunto: RE: 
  [flexcoders] Flex Builder 2.0 - HTTPService - Security 
  Error
  Did you load the swf from a host other than 
  "localhost"? Even using the machine name or the non loopback IP would 
  cause this problem.
  
  
  Carson
    Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com 
   Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 
  1.703.489.6466   
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Michel 
  BertrandSent: Friday, November 11, 2005 8:47 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex Builder 2.0 - 
  HTTPService - Security Error
  
  Hello ! 
  I have had a problem with HTTPService tag. The tag 
  bellow bring me the following error: "Security error accessing url." 
   mx:HTTPServiceid="testDataSrv"url=""Courier New" color=#99 size=2>http://localhost:8080/Teste/servlet/DataServiceTest"useProxy="false"  /mx:HTTPService 
  I'm sure that URL (Servlet) works 
  perfectly. I can access it by hand and it's not a protected URI. 
  
  Did I miss something 
  ? 
  Thanks in advance ! 
  Michel 
  Bertrand | Desenvolvimento | DATASUL TecnologiaAcesse 
  www.datasuldirect.com.br e conheça 
  mais sobre os produtos e soluções de tecnologia 





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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Chart types (Flex 2)

2005-11-11 Thread Ely Greenfield


You want a BarChart. This won't compile (at least without warnings), but
it will get you pointed in the right direction:


var data:Array = [
{ name: Bob, start: 1955, end: 1970},
{ name: Sally, start: 1930, end: 1968}
]

BarChart dataProvider={data}
verticalAxis
CategoryAxis dataProvider={data}
categoryField={name} /
/verticalAxis
series
BarSeries yField=end minField=start /
/series
/BarChart

Ely.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yaagcur
Sent: Friday, November 11, 2005 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart types (Flex 2)
Importance: High

I am looking to present graphically data on a list of baseball players
longevity at a club e.g all New York Yankees players who were at the
club at a particular date say 1960 would show those who had careers from
1955-1961 and 1960-1970 etc.

I want to have the y axis listing the player names and the x axis
showing years. The graph would show each players length of career as a
band

How would I best go about this in Flex 2. I have played around with the
hi-lo chart to some degree of success but that has the axes in the
opposite way to my requirements

Is there some standard chart I could use? The livedocs article on custom
charts has yet to be written








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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: disable fwdMonth and prevMonth buttons in DateChooser

2005-11-11 Thread Aldo Bucchi
have you checked out mx.controls.CalendarLayout ??

from the docs:

The CalendarLayout class handles the layout of the date grid in a
month. CalendarLayout can be extended to develop DateControls with
either single month display control or side-by-side month displays.

I haven't used it myself though...

On 11/11/05, keishichi2001 [EMAIL PROTECTED] wrote:
 Thanks Manish,

 Yeah, personally i think people may want to switch ON/OFF these buttons.
 DateChooser is the one of powerful component, so we may use the
 component at any situation, like simple calendar for just viewing.

 please remain the var as public :)


 Thanks,
 Keishichi



 --- In flexcoders@yahoogroups.com, Manish Jethani
 [EMAIL PROTECTED] wrote:
 
  On 11/11/05, keishichi2001 [EMAIL PROTECTED] wrote:
   Flex2.0
  
   can i do this? with setting any props...
   I can't find suitable prop...
 
  You can grab the internal forward button and set it to disabled.
 
dateChooser.fwdMonthButton.enabled = false;
 
  I'm told that this variable is public by mistake and will be made
  private in the next build (so don't count on it).  Do you have a
  strong use-case for disabling these buttons?
 








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










--
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Cairngorm + Tartan + DB

2005-11-11 Thread Bruno Martins



Someone has good example using Cairngorm + Tartan + DB?

Thanks in advance...-- Bruno Gustavo MartinsCel: (11)9585-9587Tel: (11)3965-1909 






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Flex Builder 2.0 - HTTPService - Security Error

2005-11-11 Thread Dave Wolf
Just use a relative URL

url=/Teste/servlet/DataServiceTest



-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY 

--- In flexcoders@yahoogroups.com, Michel Bertrand
[EMAIL PROTECTED] wrote:

 Hello !
 
 I have had a problem with HTTPService tag. The tag bellow bring me
the following error:
 Security error accessing url.
 
   mx:HTTPService 
   id=testDataSrv
   url=http://localhost:8080/Teste/servlet/DataServiceTest;
   useProxy=false
   /mx:HTTPService
 
 I'm sure that URL (Servlet) works perfectly. I can access it by hand
and it's not a protected URI.
 
 Did I miss something ?
 
 Thanks in advance !
 Michel Bertrand | Desenvolvimento | DATASUL Tecnologia 
 Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e
soluções de tecnologia








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2 - setting the color of a DataGrid row

2005-11-11 Thread solgraphics
I am trying to set the color of a DataGrid row using
dg.setPropertiesAt(1, {0x00} );
and I am having no luck. Did this change with Flex 2?





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] arabic

2005-11-11 Thread elomer79
how can i make it write arabic language






 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Flex 2 - setting the color of a DataGrid row

2005-11-11 Thread Aldo Bucchi
I don't know about the API call being valid or not, but the statement
itself is incorrect:

{0x00} is not a valid Object Literal, it should be in the following format:

{myProp:0x00}

best,
aldo



On 11/11/05, solgraphics [EMAIL PROTECTED] wrote:
 I am trying to set the color of a DataGrid row using
 dg.setPropertiesAt(1, {0x00} );
 and I am having no luck. Did this change with Flex 2?






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









--
: Aldo Bucchi :
mobile (56) 8 429 8300


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 2 - setting the color of a DataGrid row

2005-11-11 Thread solgraphics
My bad. Finger aren't working today.

What I meant to type was:
dg.setPropertiesAt(1, {backgroundColor:0x00} );

This is the snippet that does not work. Thanks

--- In flexcoders@yahoogroups.com, Aldo Bucchi [EMAIL PROTECTED] wrote:

 I don't know about the API call being valid or not, but the statement
 itself is incorrect:
 
 {0x00} is not a valid Object Literal, it should be in the
following format:
 
 {myProp:0x00}
 
 best,
 aldo
 
 
 
 On 11/11/05, solgraphics [EMAIL PROTECTED] wrote:
  I am trying to set the color of a DataGrid row using
  dg.setPropertiesAt(1, {0x00} );
  and I am having no luck. Did this change with Flex 2?
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 --
 : Aldo Bucchi :
 mobile (56) 8 429 8300








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] regarding Canvas container in flex-2

2005-11-11 Thread Jignesh Dodiya



hi...i m having one silly question but important

when i write my code within mx:Canvas . /mx:Canvas

i get the error COMPONENT DECLARATION ARE NOT ALLOWED HERE

if i remove Canvas container it works fine..

and by default in Flex-2 alfa-1 we get
mx:Application
 mx:Canvascode . /mx:Canvas
/mx:Application

so i m bit confused.anybody else did experience such problem???


-- jignesh dodiya 






--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: setFocus is evil

2005-11-11 Thread Dan Diodati





What onLoad tag are you talking about? There is no onLoad 
event in flex? And what are you referring to
with 'theFlashControl'? Can you give more detail please, 
since I am pretty new to flex, and I do not really know flash 
yet.


Thanks, Dan



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: 
Thursday, November 10, 2005 4:26 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: setFocus is 
evil
You need to tweak the onLoad tag in the 
body:Don't know how to modify 
the server-side HTML Template, though.- Original Message - 
From: "Renaun Erickson" [EMAIL PROTECTED]To: 
flexcoders@yahoogroups.comSent: Thursday, November 10, 2005 4:15 
PMSubject: [flexcoders] Re: setFocus is evilI vaguely remember 
messing with this. There was an issue with theBroswer/FLash Player 
getting focus itself. So basically your coderunning in the flash 
player is set correct but the Flash Player itself does not have focus, until 
you click some where on the flash swfin the page.I dont remember 
finding a way around it but I might be wrong.Renaun--- In 
flexcoders@yahoogroups.com, "dandiodati" [EMAIL PROTECTED] 
wrote: I tried this but the carat is not being placed in the 
textinput. The textInput gets focus, but I have to click somewhere to 
place the carat in the textInput before being able to type. How 
do I get it to give focus and place the carat in the textinput so I can 
just start typing the user name immediately? Dan 
--- In flexcoders@yahoogroups.com, "Philippe Maegerman" 
[EMAIL PROTECTED]wrote:   Found that function 
getFocusManager() that makes it work quite well ;)   
?xml version="1.0" encoding="utf-8"?  mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml" 
creationComplete="myInit()"  mx:Script  
function myInit(){  //http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html 
 var fm = getFocusManager();  fm.setFocus(testText); 
 Selection.setSelection(0,testText.text.length)  }  
/mx:Script  mx:TextInput id="testText" text="hello 
world"/mx:TextInput  /mx:Application 
  Found in mail archives:  http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html 
  Philippe Maegerman   
   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Mercer, Dustin  Sent: mardi 2 août 2005 5:03  To: 
flexcoders@yahoogroups.com  Subject: RE: [flexcoders] setFocus is 
evil GFI MailSecurity's HTML 
threat engine found HTML scripts in this email and has disabled 
them.   Ok got it. You have to use the selection 
object. Here is the code (Straight from Flash MX 204 
LiveDocshttp://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1659.html 
) : 
this.createTextField("myText_txt", 99, 10, 10, 200, 30);  
 myText_txt.text = "this is my text";   
Selection.setFocus("myText_txt");   
Selection.setSelection(0, 3);
 Hope this helps :-) 
   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Mercer, Dustin  Sent: Monday, August 01, 2005 7:54 PM 
 To: flexcoders@yahoogroups.com  Subject: RE: [flexcoders] 
setFocus is evil 
Stacy, I have had this 
problem as well :-( I am sad to say, I hate the focus 
manager. Ok that was a little harsh... but none the less, it has 
its' issues. There is a way to set the position of the caret 
though (Set the start index of the caret as well as the end, so you can 
choose the text you wish to be highlighted). I am going to try to 
find that code. In the mean time, you may want to try setFocus in 
the show event or childrenCreated event. That may fix your 
issue. If not, then the code for setting the caret position may 
help. I will find that code and post it. Give me a 
few... Dustin Mercer 

   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Stacy Young  Sent: Monday, August 01, 2005 7:03 PM  
To: flexcoders@yahoogroups.com  Subject: [flexcoders] setFocus is 
evil Tiny problem but it's 
still driving me nuts. I've got a viewstack that's changed based on a 
users selection. Each time a container within that stack is viewed an 
initialization script is run to populate form elements. At the end of 
the process I'm using setFocus to, well, focus on the first textinput 
field. The problem is the selection on the textinput field is the length 
of the previous value for that field. So if the current value of the 
textinput is "abc" and the model changes to "abcdef"...When the setFocus 
executes it's only highlighting from a to c  
   Hope that was clear, 'tis late... 
Thx   
Stace  
 --  Flexcoders Mailing List  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
   YAHOO! GROUPS 
LINKS * Visit your group 
"flexcoders 

Re: [flexcoders] regarding Canvas container in flex-2

2005-11-11 Thread Jignesh Dodiya



thanx phil...

itz simple code..

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml
 xmlns=*

mx:Script
![CDATA[
private function text1()
{
text2.text = hellow this is Jignesh;
}
]]
/mx:Script

mx:Button id=m_btn label=button click=text1(); /

mx:TextArea id=text2 borderThickness=5 effectStart=true
 alpha=50 backgroundColor=#00ff00 text=this text going to be clear
/ 
mx:Fade id=myFade duration=15000 /
mx:Image source=m_photo.jpg creationCompleteEffect={myFade} 
/ 

/mx:Application
works fine but if i use (or as per default in flex-2 alfa-1)


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=
*
mx:Canvas width=100% height=100% 

mx:Script
![CDATA[
private function text1()
{
text2.text = hellow this is Jignesh;
}
]]
/mx:Script

mx:Button id=m_btn label=button
 click=text1(); /
mx:TextArea id=text2 borderThickness=
5 effectStart=true alpha=50 backgroundColor=
#00ff00 text=this text going to be clear/
 
mx:Fade id=myFade duration=15000
 /
mx:Image source=m_photo.jpg creationCompleteEffect=
{myFade} / 
/mx:Canvas

/mx:Application
it gives error as COMPONENT DECLARATION ARE NOT ALLOWED HERE
thats why i m confused
On 11/12/05, Philip Costa [EMAIL PROTECTED] wrote:

What code are you writing in the canvas tags?

Phil


From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Jignesh DodiyaSent: Friday, November 11, 2005 3:20 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] regarding Canvas container in flex-2


hi...i m having one silly question but important

when i write my code within mx:Canvas . /mx:Canvas

i get the error COMPONENT DECLARATION ARE NOT ALLOWED HERE

if i remove Canvas container it works fine..

and by default in Flex-2 alfa-1 we get
mx:Application
 mx:Canvascode . /mx:Canvas
/mx:Application

so i m bit confused.anybody else did experience such problem???


-- jignesh dodiya --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 

Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



-- jignesh dodiya 






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re[2]: [flexcoders] removing listener for KeyUp event from mx:TextInput field

2005-11-11 Thread Andriy Panas
Hello Kevin,

  Thank you Kevin, you were correct here!

  I rely on Delegate class here, so I will take your advice and I will
do it your way.

Friday, November 11, 2005, 5:37:16 PM, you wrote:
KL The event broadcaster keeps a map of event types and the event listener.  By
KL creating a new Delegate object everytime you are creating a new Listener.
KL So the broadcaster can no find the previous one to remove.  If you want to
KL keep the Delegate ref stuff going.  Try this:

KL class LogonWindowViewHelper extends ViewHelper {

KL   private var keyPressDelegate:Delegate;

KL   public function LogonWindowViewHelper() {
KL super();
KL keyPressDelegate = Delegate.create(this, this.enterKeyPressed);
KL   }   



-- 
Best regards,
 Andriymailto:[EMAIL PROTECTED]



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: setFocus is evil

2005-11-11 Thread JesterXL





The _javascript_ onLoad function in the body tag of 
the HTML that hosts the Flex SWF. Since the Flex SWF is an instance of the 
Flash Player ActiveX control, and the browser has focus, not the ActiveX 
control, you need to have _javascript_ set focus to it.

- Original Message - 
From: Dan 
Diodati 
To: flexcoders@yahoogroups.com 
Sent: Friday, November 11, 2005 3:18 PM
Subject: RE: [flexcoders] Re: setFocus is evil

What onLoad tag are you talking about? There is no onLoad 
event in flex? And what are you referring to
with 'theFlashControl'? Can you give more detail please, 
since I am pretty new to flex, and I do not really know flash 
yet.


Thanks, Dan



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: 
Thursday, November 10, 2005 4:26 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: setFocus is 
evil
You need to tweak the onLoad tag in the 
body:Don't know how to modify 
the server-side HTML Template, though.- Original Message - 
From: "Renaun Erickson" [EMAIL PROTECTED]To: 
flexcoders@yahoogroups.comSent: Thursday, November 10, 2005 4:15 
PMSubject: [flexcoders] Re: setFocus is evilI vaguely remember 
messing with this. There was an issue with theBroswer/FLash Player 
getting focus itself. So basically your coderunning in the flash 
player is set correct but the Flash Player itself does not have focus, until 
you click some where on the flash swfin the page.I dont remember 
finding a way around it but I might be wrong.Renaun--- In 
flexcoders@yahoogroups.com, "dandiodati" [EMAIL PROTECTED] 
wrote: I tried this but the carat is not being placed in the 
textinput. The textInput gets focus, but I have to click somewhere to 
place the carat in the textInput before being able to type. How 
do I get it to give focus and place the carat in the textinput so I can 
just start typing the user name immediately? Dan 
--- In flexcoders@yahoogroups.com, "Philippe Maegerman" 
[EMAIL PROTECTED]wrote:   Found that function 
getFocusManager() that makes it work quite well ;)   
?xml version="1.0" encoding="utf-8"?  mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml" 
creationComplete="myInit()"  mx:Script  
function myInit(){  //http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html 
 var fm = getFocusManager();  fm.setFocus(testText); 
 Selection.setSelection(0,testText.text.length)  }  
/mx:Script  mx:TextInput id="testText" text="hello 
world"/mx:TextInput  /mx:Application 
  Found in mail archives:  http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html 
  Philippe Maegerman   
   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Mercer, Dustin  Sent: mardi 2 août 2005 5:03  To: 
flexcoders@yahoogroups.com  Subject: RE: [flexcoders] setFocus is 
evil GFI MailSecurity's HTML 
threat engine found HTML scripts in this email and has disabled 
them.   Ok got it. You have to use the selection 
object. Here is the code (Straight from Flash MX 204 
LiveDocshttp://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1659.html 
) : 
this.createTextField("myText_txt", 99, 10, 10, 200, 30);  
 myText_txt.text = "this is my text";   
Selection.setFocus("myText_txt");   
Selection.setSelection(0, 3);
 Hope this helps :-) 
   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Mercer, Dustin  Sent: Monday, August 01, 2005 7:54 PM 
 To: flexcoders@yahoogroups.com  Subject: RE: [flexcoders] 
setFocus is evil 
Stacy, I have had this 
problem as well :-( I am sad to say, I hate the focus 
manager. Ok that was a little harsh... but none the less, it has 
its' issues. There is a way to set the position of the caret 
though (Set the start index of the caret as well as the end, so you can 
choose the text you wish to be highlighted). I am going to try to 
find that code. In the mean time, you may want to try setFocus in 
the show event or childrenCreated event. That may fix your 
issue. If not, then the code for setting the caret position may 
help. I will find that code and post it. Give me a 
few... Dustin Mercer 

   From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Stacy Young  Sent: Monday, August 01, 2005 7:03 PM  
To: flexcoders@yahoogroups.com  Subject: [flexcoders] setFocus is 
evil Tiny problem but it's 
still driving me nuts. I've got a viewstack that's changed based on a 
users selection. Each time a container within that stack is viewed an 
initialization script is run to populate form elements. At the end of 
the process I'm using setFocus to, well, focus on the first textinput 
field. The problem is the selection on the textinput field is the length 
of the previous value for that field. So if the current value of the 
textinput is "abc" and the model 

[flexcoders] Flex 2.0 Enterprise Services 2

2005-11-11 Thread Boddula, Sridhar

When Flex 2.0 Enterprise Services 2 Alpha will be available?

Thanks,

Sridhar Boddula,
EIS - New Tech. Development
617-664-8566(Work)




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Flex 1.x web-service and out-parameters

2005-11-11 Thread Mink, Joseph





You will probably need to copy your "out parameters" to 
variables defined in the script section of your MXML 
document.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of knly 
browneSent: Friday, November 11, 2005 10:01 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex 1.x web-service 
and out-parameters
If i call a web-service that has out parameters..how do i access 
those out parameters when the web-service call returnes.Thanks-- Kenlie BrowneSoftware Developer 





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Internal Build problem (FLEX 2)

2005-11-11 Thread Matt Chotin










Do you have a small file giving you that
build problem? Sounds like a bug











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yaagcur
Sent: Friday, November 11, 2005
6:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Internal
Build problem (FLEX 2)





I am getting a problem An internal build error has occured

Checking the error log it states
Warning: valueOf is not a function

What should I be looking for
I have no valueOf string in the code 











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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] regarding Canvas container in flex-2

2005-11-11 Thread Matt Chotin










The problem is probably the
mx:Fade that you have, we dont allow faceless components to be
declared at any level other than under the root tag. I would just move your
script blocks and the Fade outside the Canvas.



You raise an interesting usability issue
with how the default Application looks, I know weve been looking into
that.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jignesh Dodiya
Sent: Friday, November 11, 2005
12:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
regarding Canvas container in flex-2







thanx phil...











itz simple code..









?xml version=1.0
encoding=utf-8?

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

mx:Script 

![CDATA[

private function text1()

{

text2.text
= hellow
this is Jignesh;

}

]]

/mx:Script

mx:Button id=m_btn
label=button
click=text1(); /


mx:TextArea id=text2
borderThickness=5
effectStart=true  alpha=50
backgroundColor=#00ff00
text=this text going to
be clear /


mx:Fade
id=myFade
duration=15000
/

mx:Image
source=m_photo.jpg
creationCompleteEffect={myFade} / 

/mx:Application

works fine but if i use (or as per default in flex-2
alfa-1) 









?xml version=1.0
encoding=utf-8?

mx:Application

xmlns:mx=http://www.macromedia.com/2005/mxml
xmlns= * 

mx:Canvas width=100% height=100% 

mx:Script 

![CDATA[

private function text1() 

{

text2.text
= 

hellow this is
Jignesh; 

}

]]

/mx:Script 

mx:Button id=m_btn label=button  click=text1(); / 

mx:TextArea id=text2 borderThickness= 5
effectStart=true alpha=50 backgroundColor= #00ff00
text=this text going to
be clear/ 

mx:Fade id=myFade duration=15000  / 

mx:Image source=m_photo.jpg
creationCompleteEffect=
{myFade}
/ 

/mx:Canvas

/mx:Application

it gives error as COMPONENT DECLARATION ARE NOT ALLOWED HERE

thats why i m confused









On 11/12/05, Philip Costa [EMAIL PROTECTED] wrote:


What code are you writing in the canvas
tags?



Phil









From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Jignesh
Dodiya
Sent: Friday, November 11, 2005
3:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] regarding
Canvas container in flex-2







hi...i m having one silly question but important











when i write my code within mx:Canvas .
/mx:Canvas











i get the error COMPONENT DECLARATION ARE NOT ALLOWED HERE











if i remove Canvas container it works fine..











and by default in Flex-2 alfa-1 we get





mx:Application





 mx:Canvascode
. /mx:Canvas





/mx:Application











so i m bit confused.anybody else did experience such problem???



















-- 
jignesh dodiya 












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










YAHOO!
GROUPS LINKS





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.















-- 
jignesh dodiya 







--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] It's Time to Flex My Zorn: Flex 2.0 Flex Builder 2

2005-11-11 Thread Tariq Ahmed
It's Time to Flex My Zorn: Flex 2.0  Flex Builder 2
Flex 2.0 will change the web development sphere forever
http://au.sys-con.com/read/142730.htm

Very nice article Mr Barnes!





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Irregular Tables and TreeTables

2005-11-11 Thread Mrsny, Lynn





I would also like to know if this is possible and if so, is 
it using rowRenderers or custom controls?



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Richard 
RodsethSent: Thursday, November 10, 2005 10:58 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Irregular Tables and 
TreeTables
Has anybody done anything like Swing's TreeTable in 
Flex?Also, is it possible with cell renderers to do a table/grid 
where each selectable row is actually two lines high, and the second line has 
information that ignores/spans columns?Thanks- Richard





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Irregular Tables and TreeTables

2005-11-11 Thread huhgawz



Ok guys...here is my first approach. I wish to share it with all of you but please contribute to enhance it.Maybe it could be more dynamic. Actually it has some minor visual bugs but it could be a good start...main.mxml-?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:hz="*" mx:Script ![CDATA[  import mx.controls.Alert;  import ProductDetailRenderer;function chkAll_Click():Void {   switch(chkAll.selected) {case true: lstProducts.checkAll(); break;case false: lstProducts.uncheckAll(); break;   } // switch   lblChecked.text=lstProducts.selectedCount+"";  } // chkAll_Clickfunction lstProducts_checkClick(event):Void {   Alert.show(event.index+" : "+event.selected);   lblChecked.text=lstProducts.selectedCount+"";  } // lstProducts_checkClick() ]] /mx:Script  mx:Model id="xmlProducts"  product   nameFanta/name   price10/price   descriptionOrange Soda/description  /product  product   nameCoca Cola/name   price20/price   descriptionBlack Soda/description  /product  product   nameTequila/name   price30/price   descriptionMexican drink/description  /product  product   nameVodka/name   price40/price   descriptionRussian drink/description  /product  product   namePulque/name   price60/price   descriptionAnother mexican drink/description  /product /mx:Model  mx:CheckBox id="chkAll" label="Check All" click="chkAll_Click()" / mx:Button click="lstProducts.toggleAll()" label="Toggle All" / mx:Button click="lstProducts.checkByIndex(1)" label="checkByIndex(1)" / mx:Button click="lstProducts.enableCheckboxByIndex(1)" label="enableCheckboxByIndex(1)" / mx:Button click="lstProducts.disableCheckboxByIndex(1)" label="disableCheckboxByIndex(1)" / mx:Button click="lstProducts.uncheckByIndex(0)" label="uncheckByIndex(0)" /  hz:ExpandableCheckboxCellList id="lstProducts" width="400" height="150" labelWidth="100" linkHeaderText="Name" labelHeaderText="Price" linkField="name" labelField="price" dataProvider="{xmlProducts.product}" checkClick="lstProducts_checkClick(event)" showHeaderCheckbox="true" / mx:Label id="lblChecked" text="" //mx:ApplicationExpandableCheckboxCellList.mxml-?xml version="1.0" encoding="utf-8"?mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:hz="*" borderStyle="solid" backgroundColor="#FF" tabEnabled="true" width="100%" height="100%" minWidth="150" minHeight="150" marginTop="0" marginBottom="0" marginLeft="0" marginRight="0" verticalGap="0" horizontalGap="0" hScrollPolicy="off" vScrollPolicy="off" mx:Metadata  [Event("checkClick")] /mx:Metadata  mx:Script ![CDATA[  public var alternateColors:Boolean=true;  public var dataProviderbject;  public var detailRendererbject;  public var headerCheckboxTooltip:String="Check / uncheck all";  public var image:String;  public var labelField:String;  public var labelHeaderText:String;  public var labelWidth:Number=100;  public var linkField:String;  public var linkHeaderText:String;  public var selectedCount:Number=0;  public var selectedIndices:Array=new Array();  public var showHeaders:Boolean=true;  public var showHeaderCheckbox:Boolean=true;  public var showLabel:Boolean=true;//   // Events  //   private function chkAll_Click(event):Void {   switch(chkAll.selected) {case true: checkAll(); break;case false: uncheckAll(); break;   } // switch  } // chkAll_Clickprivate function chkCell_CheckClick(event):Void {   selectedCount=0;   selectedIndices.length=0;   for(var i:Number=0;ichkCell.length;i++) {if(chkCell[i].isChecked()) { selectedCount++; selectedIndices.push(i);} // if   } // for   chkAll.selected=(selectedCount==chkCell.length);   dispatchEvent({type:'checkClick',index:event.index,selected:event.selected})  } // chkCell_CheckClickprivate function header_CreationComplete():Void {   var gradientHeight:Number=header.height;   var gradientWidth:Number=1080;   var colors:Array=[0xE6,0xff];   var alphas:Array=[100,100];   var ratios:Array=[0,255];   var matrixbject={matrixType:"box",x:0,y:0,w:gradientWidth,h:gradientHeight,r:degreesToRadians(90)};  header.createEmptyMovieClip("gradientBackground",0);   header["gradientBackground"].beginGradientFill("linear",colors,alphas,ratios,matrix);   header["gradientBackground"].lineTo(gradientWidth,0);   header["gradientBackground"].lineTo(gradientWidth,gradientHeight);   header["gradientBackground"].lineTo(0,gradientHeight);   header["gradientBackground"].lineTo(0,0);   header["gradientBackground"].endFill();  } // header_CreationComplete  //   // Functions  //