Re: [flexcoders] Dispatching events from cairngorm viewhelper

2006-02-23 Thread Alberto Albericio Salvador
Hi Alex,

I stopped playing with ViewHelpers in the 80% of the cases. I was 
overloading the use of ViewHelpers and thank God I soon realized of 
that. To make more reusable components, I prefer embeding script code 
into the mxml file, use reusable commands (this was discussed in another 
thread) and dispatch events from the same component.
Talking about the other 20% of cases, I use your (and some other guys) 
approach of dispatching events from the parent view or the main 
application that both extend display objects.

Thanks again for your help and please read my new post about Cairngorm 
and memory Im just writing in a sec hehe

Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



Alex Uhlmann escribió:
 Hi Alberto,

 When dispatching events you have to be sure that the object you call 
 dispatchEvent from is a display object (all display objects extend 
 flash.events.EventDispatcher) and is on the display list. i.e. as Dirk 
 mentioned you can call the dispatchEvent method in your MXML file because it 
 is on the display list and extends EventDispatcher. If you want to trigger a 
 Cairngorm Command with your call you could access the most parent display 
 object your application in mx.core.Application.application. So, 
 Application.application.dispatchEvent(event);. From your View Helper, I would 
 just access the view of your MXML file to dispatch an event. Flex then uses 
 event bubbling and triggers the registered Command.

 Best,
 Alex

 Alex Uhlmann
 Technical Consultant (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951 
 [EMAIL PROTECTED] 


 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
 Alberto Albericio Salvador
 Sent: 14 February 2006 13:16
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper

 Joao,

 Im using cairngorm 2a2 and my event extends CairngormEvent but the problem is 
 not with the event but with dispatchEvent method:

 Im meaning, in this function, LocalidadesEvent extends CairngormEvent

 public function getPoblaciones(cp:String):void {
 var event : LocalidadesEvent = new LocalidadesEvent(cp);
 dispatchEvent(event);
 }

 But I get the error:

 Call to a possibly undefined method 'dispatchEvent'

 Im using the same code in the main view and in the helper and it should work, 
 but it doesnt.

 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática



 João Fernandes escribió:
   
 OK if you are using cairngorm 2alpha2 you should be able to use it 
 like this

 In your viewhelper you should import the new cairngormEvent import 
 org.nevis.cairngorm.control.CairngormEvent
 And your event should extend cairngormEvent

 It should work,

 João Fernandes
 Sistemas de Informação

 Programador Informático
 Cofina media

 Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 
 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]


 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Alberto Albericio Salvador
 Sent: terça-feira, 14 de Fevereiro de 2006 12:46
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Dispatching events from cairngorm viewhelper

 Hi Joao,

 Im working with Flex2b1 and I dont import anything, neither in the 
 main view nor in my custom viewhelper.

 Anyway, importing that continues throwing the error:

 Call to a possibly undefined method 'dispatchEvent'

 Alberto Albericio Salvador
 Aura S.A. Seguros
 Departamento Informática



 João Fernandes escribió:
   
 
 Alberto,

 Did you import mx.events.EventDispatcher?

 João Fernandes
 Sistemas de Informação
 Programador Informático
 Cofina media

 Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 
 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED]

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Alberto Albericio Salvador
 Sent: terça-feira, 14 de Fevereiro de 2006 12:19
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dispatching events from cairngorm viewhelper

 Hi all,

 When trying to dispatch an event from a custom class that extends 
 cairngorm ViewHelper, I get this error:

   Call to a possibly undefined method 'dispatchEvent'

 Firing the event from a function of the main view, same code, it works fine.

 My function is something like, same in the view and in my custom viewhelper.

 public function getPoblaciones(cp:String):void {
 var event : LocalidadesEvent = new LocalidadesEvent(cp);
 dispatchEvent(event); }

 Has anybody run into this issue?

   
 
   
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 

[flexcoders] Merger of Datagrid Tree - Urgent !

2006-02-23 Thread Robs
Hi all,
  Is it possible that I can merge the dataGrid  Tree components to
make a single custom component. I have a scenario where I need to
simulate the MS Outlook inbox section when the mails are grouped as
per a specific field.
   Please help...

Thanks.






--
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 and memory administration

2006-02-23 Thread Alberto Albericio Salvador
Hi all,

When using Cairngorm (usually for middle-large developments), lots of 
events, services, commands, etc start to move behind the scenes:
new Delegates, new Events, etc... so my question is, when are these 
objects removed from memory?

Imagine I have a screen that loads products depending on some options. 
Each time these options change, I must recall the products load that 
means:dispatching new event with new options (new event), passing 
control to the command, then to the bussiness delegate (new delegate), 
etc...

So, if I want to display products depending on 10 variations of these 
options, I must use the same mechanism to get the new product list... 
thats 10 new delegates, events, etc on memory? What if I set to Nothing 
the new Delegate created after each use?

-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
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] flexbuilder 2 keyboard bug ???

2006-02-23 Thread bhaq1972
Hi
A couple of times this has happened. I've been playing with the 
shortcut keys and somehow my keyboard has ended up being in US 
keyboard format (i'm used to UK). I don't know how it got like this 
(but i'm monitoring the situation). Interestingly, if i open up 
another app (eg Notepad) it remans UK keyboard.





--
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] Problem with Datefield Control

2006-02-23 Thread Rajni



I am using DateField control in my application, my problem is that when I click a date then it shows date perfectly fine..but, when I click somewhere at the end towards right side of the control it shows value :NaN/NaN/NaNas selected date. Please refer to the attached datefield.jpg file.Thanks in advance -Rajni





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



  







attachment: datefield.jpg


Re: [flexcoders] Strange Error on compiling Flex-2 project

2006-02-23 Thread Jignesh Dodiya



Matt,

Yes, the value my_cb.selectedIndex is a integer value and is not -1 , its sure...coz this value gives me the auto increament ID value from themysql database table...and accordingly i store this value to other database, and i get the perfect result.


Infact thethere is no effect of this runtime error dialog box, either i cleak DismissAll or do click Continue,my program working perfect ok, justi want is to eliminate the runtime error dialog box, and for that i am not getting the sollution


thanks,
jignesh

On 2/23/06, Matt Chotin [EMAIL PROTECTED] wrote:


Are you sure that my_cb.selectedIndex is returning a value that is not -1? 





From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jignesh DodiyaSent: Wednesday, February 22, 2006 1:38 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Strange Error on compiling Flex-2 project



Thanx, for clarifying my fundas regarding runtime Error..



Matt,



I m trying to retrive the data from the mySQL database in Flex through AMFPHP...some part of code is as below...



function onResult(event:Object):void{

var array_id:Array = []; var array_cat_name:Array = []; var a:Array = event.serverInfo.initialData;  var len:int = 
a.length;for(var i:int=0; ilen; i++){ var o:Object = {};  var item:Array = a[i];  
o.id = item[0];  o.cat_name = item[1];array_id.push( o.id);array_cat_name.push(
o.cat_name); }var ac_id:ArrayCollection = new ArrayCollection(array_id);
bb = ac_id[my_cb.selectedIndex]; 

}



i got that the codes in Bold is creating the runtime error .but i m using the variable bb 
to somewhere else in codes just out of this function



Is there other alternatiove to eliminate runtime error? i can't got the fault ?



regards,



jignesh



On 2/22/06, Matt Chotin 
[EMAIL PROTECTED] wrote:


What is your onResult function trying to do? This is considered a
runtime error by the way, not compilation. This error looks like you have an ArrayCollection or XMLListCollection and tried to read a
property off of it like myCollection[someBadValue].Matt 

-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Jignesh M. Dodiya
Sent: Tuesday, February 21, 2006 3:32 PM To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange Error on compiling Flex-2 projectHi,when I am compiling the codes in mxml,i found the Error as below..
ActionScript Error has occured::Error: Unknown property -1 at mx.collections::ListCollectionView/ 
http://www.macromedia.com/2005/actionscript/flash/proxy::getProperty() at states/states::onResult() Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead of stopping the functionality of swfit still works fine as normal..Confused.
Is anybody has idea of how to eliminate that error,regards,Jignesh--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
Yahoo! Groups Links


--
Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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. 




-- jignesh dodiya --Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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. 




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

Re: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde





hi jason,
this was not the problem. look at my example i responsed to 
Matt.

Cheers
Sönke

  the return from your 
  dataForFormat call is anarray or a collection.
  
  so try 
  trace("data " + data[0].toString());
  
  where the 
  [0] is the first item in the collection or array.
  
  Jason
  
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Sönke RohdeEnvoyé: mercredi 22 février 2006 
19:02À: flexcoders@yahoogroups.comObjet: 
[flexcoders] Tree DragAndDrop no data for 
leafHi,I have got a problem getting the data of 
a dragged leaf from a tree.The DragEvent.DRAG_DROP is handled by the 
following function:private function 
doDrop(e:DragEvent):void{ var data:Object 
= e.dragSource.dataForFormat("treeItems"); 
trace("data " + data.toString());}The leaf which is dragged has 
this XML node label="Test" data="" / andnothing for the data 
is traced. When I drag a branch like:node 
label="common" node label="Test" 
data=""//nodeAll is traced correctly.Why 
do I get no data for the leaf? Is the XML 
malformated?Thanks,Sönke





--
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] Binding Data to DataGrid from webservice response

2006-02-23 Thread Sathish K





actually my problem is 

their
will two webservices 
 1. one for fetching data from
thedatabase andfilling the datagrid.

example: response
data
Namesathish/Name
AddressChennai/Address
/data
data
Nameselva/Name
Addressdelhi/Address
/data
/response
 2. anothor for saving the data to
the database whch gets data from the grid

example : request

data

usernamesathish/username

locationChennai/location

/data


data

usernameselva/username

locationdelhi/location

/data

/request


both
the webservice access the same datagrid with the given column
names

Now
how i will bind data and get it back...
as
mention earlier the data will huge one so i can't able loop through
it.

regards
sathish

  -Original Message-From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]On Behalf Of Matt
  ChotinSent: 22 February 2006 11:06To:
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Binding Data to
  DataGrid from webservice responsecolumnName can be
  "Name" and headerText can be "Column 1". You couldalso use a
  labelFunction if you really needed to.Matt-Original
  Message-From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] OnBehalf Of sathish_kumar_18Sent:
  Tuesday, February 21, 2006 1:47 AMTo:
  flexcoders@yahoogroups.comSubject: [flexcoders] Binding Data to DataGrid
  from webservice responseHow to bind data from webservice
  response...if the column name in the grid is different and child tag in
  response is different...i cannot able to loop through the data because
  the response would contains huge data of 2 rows..example
  if webservice response is 
  response
  data
  Namesathish/Name
  AddressChennai/Address
  /data
  data
  Nameselva/Name
  Addressdelhi/Address
  /data
  /response mx:VBox
   mx:DataGrid id="dg1"
  dataProvider="{response.data}"
  mx:columns
  mx:Array
  mx:DataGridColumn columnName="Column1"
  /
  mx:DataGridColumn columnName="Column2"
  /
  /mx:Array
  /mx:columns 
  /mx:DataGrid/mx:VBoxregardssathish--Flexcoders
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links





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



  








DISCLAIMER: 

Information transmitted by this e-mail may be proprietary to Ramco Systems Ltd., and / or the authors of the information and is intended for use only by the individual or entity to which it is addressed, and may contain confidential or legally privileged information. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are not authorised to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful. 

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. Ramco Systems Limited therefore does not accept liability for any errors, omissions, viruses or computer problems experienced as a result of this transmission.

If you have received this e-mail in error, please notify us immediately at mail to: [EMAIL PROTECTED] and delete this mail from your records. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail.


[flexcoders] Re: Delegation and Callbacks

2006-02-23 Thread mvbaffa
Hi Matt,

What I need is to callback a function at the object that 
instantiated my class. 

My class wraps the flex webservice object, it calls the webservice 
operations e drives the result event so that the operation can be 
executed synchronously.

The class needs a reference of a function to be called back before 
it calls the webservice operation. In .NET we have a delegation 
process implemented so that we define a delegate that will be driven 
by anyone who needs to receive the event.

In Flex 2.0, I presume, that this can be implemented by the 
listeners, like in java. Is it the right feature to be used or there 
is simething more adequate 

Thanks in advance

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

 Sorry, I'm not sure I get what you're trying to do.  When you say
 delegate do you mean the 1.5 mx.utils.Delegate?  We don't need 
that in
 2.0 because we have closures which means that the function will 
maintain
 the correct this pointer.  Or are you looking for a different 
delegate
 class?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of mvbaffa
 Sent: Monday, February 20, 2006 4:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Delegation and Callbacks
 
 Hi everybody,
 
 I have developed an ActionScript class to help synchonize 
WebService 
 calls. 
 
 You have to create an instance of it in the load event of the 
 WebService. Then the class initializes some internal data 
structures 
 looping through the webservice operations and drives the result 
 event.
 
 At the initialization process the class receives also a 
 setupCallback function parameter so that the application can 
define 
 methods to be called before the webservice operation is sent and 
 after the result event is fired. This setupCallback function is 
 called by the class when it is initializing.
 
 I Would rather use a delegate to communicate with the application. 
 How can I define and use delegation in Flex 2/ActionScript 3
 
 Thanks in advance
 
 
 
 
 
 
 --
 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








--
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] add lable on column/set color of specified row

2006-02-23 Thread wujunjr
Hello,

I tried following issues for several days but failed.

1.add a lable on the top of each column in a column chart.

2.set the color of a specified row in datagrid, I found it is possible
to set the color of the column.

Thanks in advance!

John





--
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: different color and shape in one plot chart

2006-02-23 Thread wujunjr
Problem fixed. Here is the code. It seems a little stupid but it 
works. var colors value is same with the value in chart series 
render, so we can get the same color.

  mx:Legend dataProvider={countryList} initialize=initLegend() 
direction=horizontal markerHeight=5 markerWidth=5 width=100%/

  function initLegend() {
  var fill : SolidColor;
  var stroke : Stroke = new Stroke(0x001100);
  var label : String;
  var keyItems = new Array();
  var colors = 
[0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0xCC00
00,0xDD,0xEE,0xFF,
   
0x005500,0x006600,0x007700,0x008800,0x009900,0x00AA00,0x00BB00,0x00CC0
0,0x00DD00,0x00EE00,0x00FF00,
   
0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0xC
C,0xDD,0xEE,0xFF];
  for (var i = 0; i  csaRO1.getElements.result.length; 
i++) {
  fill = new SolidColor(colors[i]);
  keyItems[i]={label:csaRO1.getElements.result
[i].name,fill:fill,stroke:stroke};
  }
  countryList = keyItems;
  }


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

 Thanks. I'm afraid it is not suitable for me to use LegendItem 
since 
 there are over 30 plots on one chart. And there are many charts in 
 the application.
 Could you kindly give me an example about make a series or 
 chart extends Series/ChartBase?
 Maybe we can use the function get legendData():, but I don't know 
 how.
 
 Thanks a lot!
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ 
 wrote:
 
  
  
  
  So you want to use one series, but have multiple items show up in 
 the
  legend?
  
  There are ways to make a series do this through subclassing 
 (PieSeries
  does this, for example), but for you the easiest thing might be 
to 
 just
  build your legend manually.  Rather than hooking up your legend 
to a
  chart, you can explicitly populate it with LegendItems (like you 
 would a
  Vbox).  LegendItems use renderers to draw their markers just like 
 series
  do, so if necessary you can write custom renderers for your 
legend 
 items
  as well.
  
  Ely.
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of wujunjr
  Sent: Wednesday, February 22, 2006 2:55 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: different color and shape in one plot 
 chart
  
  Ely,
  
  Thank you so much.
  Your examples are terrific!
  But, when I did it that way, the Legend of the chart cannot work
  correctly (only display one item) even if I use the same renderer 
 with
  PlotChart.
  
  Also, is there any way to add a lable on the top of a column 
chart?
  
  Regards,
  John
  
  --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@
  wrote:
  
   
   
   
   There's a solution in both Flex 1.5 and Flex 2, but it's easier 
in
  Flex
   2.
   
   
   In Flex 1.5, you'll want to looking into building a custom 
 renderer
  (I
   just posted an example a few days ago of doing this for a 
column 
   chart...doing it for a PlotChart is esentially the same).
   
   In Flex 2, you'd build a custom itemSkin...again, I posted an
  example of
   this recently for columnCharts.
   
   Ely.

   
   -Original Message-
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of wujunjr
   Sent: Tuesday, February 21, 2006 6:56 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: different color and shape in one plot
  chart
   
   Is there any solution in Flex 2?
   I'm using Flex 1.5 now.
   
   Thanks.
   John
   
   --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@
   wrote:
   



This is probably starting to sound repetetive, but...


Flex 1.5 or 2?

E.
 

-Original Message-
From: flexcoders@yahoogroups.com
   [mailto:[EMAIL PROTECTED] On
Behalf Of wujunjr
Sent: Tuesday, February 21, 2006 1:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] different color and shape in one plot 
 chart

Hi, all,

Is it possible to implement a plot chart in flex, which have
   different
color and shape within same PlotSeries.
We are implementing this function like that:

  mx:PlotSeries name=Company1 xField=Debt_1 
 yField=Cds_1/
  mx:PlotSeries name=Company2 xField=Debt_2 
 yField=Cds_2/
  mx:PlotSeries name=Company3 xField=Debt_3 
 yField=Cds_3/
  ...

but it cannot get data from backgroud dynamically. If we put 
all
   company
infomation into same Array, there would be no different color 
 and
   shape.

Thanks in advance!
John





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

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk





Try 
this node label="Test" data=""/node I 
structure my xml this way, so this might verywell be a 
bug.

jason

  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Sönke RohdeEnvoyé: jeudi 23 février 2006 
  11:59À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Tree DragAndDrop no data for leaf
  hi jason,
  this was not the problem. look at my example i responsed 
  to Matt.
  
  Cheers
  Sönke
  
the return from 
your dataForFormat call is anarray or a 
collection.

so try 
trace("data " + data[0].toString());

where 
the [0] is the first item in the collection or array.

Jason



  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Sönke RohdeEnvoyé: mercredi 22 février 2006 
  19:02À: flexcoders@yahoogroups.comObjet: 
  [flexcoders] Tree DragAndDrop no data for 
  leafHi,I have got a problem getting the data 
  of a dragged leaf from a tree.The DragEvent.DRAG_DROP is handled by 
  the following function:private function 
  doDrop(e:DragEvent):void{ var 
  data:Object = 
  e.dragSource.dataForFormat("treeItems"); 
  trace("data " + data.toString());}The leaf which is dragged 
  has this XML node label="Test" data="" / andnothing for the 
  data is traced. When I drag a branch like:node 
  label="common" node label="Test" 
  data=""//nodeAll is traced 
  correctly.Why do I get no data for the leaf? Is the XML 
  malformated?Thanks,Sönke





--
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] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde
Hi Matt,
This really looks like a bug. I have made a simple example. Try to drag the
leaf of the tree and there will be traced that the array has length 1 but
the trace of the item itself is empty.

Cheers,
Sönke

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

mx:Script
![CDATA[
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.*;
import mx.containers.Canvas;
import flash.util.trace;

private function doDragEnter(event:DragEvent):void {
var dropTarget:Canvas=Canvas(event.currentTarget);
if (event.dragSource.hasFormat('treeItems')) {
DragManager.acceptDragDrop(dropTarget);
}
}

private function doDragDrop(event:DragEvent):void {
var data:Object = event.dragSource.dataForFormat('treeItems');
if(data is Array){
var a:Array = Array(data);
trace(isArray l  +  a.length);
trace(doDragDrop  + a[0].toString());
}
}

]]
/mx:Script


!-- Simple example to demonstrate the Tree control --
mx:XML id=myxml
Company label=Macromedia
Branch label=Newton
Department label=Flex Doc
Title label=Intern
Name label=Kapil Virdi/Name
/Title
/Department
/Branch
/Company
/mx:XML

mx:Tree x=34 y=39 height=375 id=tree dragEnabled=true
dataProvider={myxml} labelField=@label width=194/mx:Tree

mx:Canvas x=378 y=39 width=200 height=200
backgroundColor=0xff id=canvas 
dragEnter=doDragEnter(event);
dragDrop=doDragDrop(event); 
/mx:Canvas

/mx:Application 


 It may be a bug in the drag and drop code.  Can you send a test case?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde
 Sent: Wednesday, February 22, 2006 10:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Tree DragAndDrop no data for leaf
 
 Hi,
 I have got a problem getting the data of a dragged leaf from a tree.
 The DragEvent.DRAG_DROP is handled by the following function:
 
 private function doDrop(e:DragEvent):void{
   var data:Object = e.dragSource.dataForFormat(treeItems);
   trace(data  + data.toString());
 }
 
 The leaf which is dragged has this XML node label=Test 
 data=foo / and
 nothing for the data is traced. When I drag a branch like:
 node label=common
   node label=Test data=bar/
 /node
 All is traced correctly.
 
 
 Why do I get no data for the leaf? Is the XML malformated?
 
 Thanks,
 Sönke
 
 
 
 --
 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
 
 
 
  
 
 
 
 
 --
 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
 
 
 
  
 
 
 
 



--
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] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk





I 
really see no prob with this i traced


isArray l 1
doDragDrop Title label="Intern"
Name label="Kapil Virdi"/
/Title
Seems to 
work, what exactly are you expecting ? as a result other then the 
above
jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Sönke RohdeEnvoyé: jeudi 23 février 2006 
  11:57À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Tree DragAndDrop no data for leafHi 
  Matt,This really looks like a bug. I have made a simple example. Try to 
  drag theleaf of the tree and there will be traced that the array has 
  length 1 butthe trace of the item itself is 
  empty.Cheers,Sönke?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
  mx:Script 
  ![CDATA[ import 
  mx.core.DragSource; import 
  mx.managers.DragManager; import 
  mx.events.*; import 
  mx.containers.Canvas; import 
  flash.util.trace; private 
  function doDragEnter(event:DragEvent):void 
  { var 
  dropTarget:Canvas=Canvas(event.currentTarget); 
  if (event.dragSource.hasFormat('treeItems')) 
  { 
  DragManager.acceptDragDrop(dropTarget); 
  } 
  } 
   private function 
  doDragDrop(event:DragEvent):void 
  { var 
  data:Object = 
  event.dragSource.dataForFormat('treeItems'); 
  if(data is 
  Array){ 
   var a:Array = 
  Array(data); 
   trace("isArray l " + 
  a.length); 
   trace("doDragDrop " + 
  a[0].toString()); 
  } } 
   ]] 
  /mx:Script !-- Simple 
  example to demonstrate the Tree control -- 
  mx:XML id="myxml" 
  Company 
  label="Macromedia" 
  Branch 
  label="Newton" 
  Department label="Flex 
  Doc" 
  Title 
  label="Intern" 
  Name label="Kapil 
  Virdi"/Name 
  /Title 
  /Department 
  /Branch 
  /Company 
  /mx:XML mx:Tree x="34" 
  y="39" height="375" id="tree" dragEnabled="true"dataProvider="{myxml}" 
  labelField="@label" 
  width="194"/mx:Tree 
   mx:Canvas x="378" y="39" width="200" 
  height="200"backgroundColor="0xff" id="canvas" 

  dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
   
  /mx:Canvas 
  /mx:Application  It may be a bug in the drag and 
  drop code. Can you send a test case?  -Original 
  Message- From: flexcoders@yahoogroups.com  
  [mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde Sent: 
  Wednesday, February 22, 2006 10:02 AM To: 
  flexcoders@yahoogroups.com Subject: [flexcoders] Tree DragAndDrop no 
  data for leaf  Hi, I have got a problem getting the 
  data of a dragged leaf from a tree. The DragEvent.DRAG_DROP is handled 
  by the following function:  private function 
  doDrop(e:DragEvent):void{  var 
  data:Object = e.dragSource.dataForFormat("treeItems"); 
   trace("data " + data.toString()); 
  }  The leaf which is dragged has this XML node 
  label="Test"  data="" / and nothing for the data is 
  traced. When I drag a branch like: node label="common" 
   node label="Test" data=""/ 
  /node All is traced correctly.   Why 
  do I get no data for the leaf? Is the XML malformated?  
  Thanks, Sönke-- 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 
  -- 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 
 
  





--
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] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk





never 
mind i see now the leaf is the problem give me a couple secs


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jason HawrylukEnvoyé: jeudi 23 février 2006 
  13:56À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Tree DragAndDrop no data for leaf
  I 
  really see no prob with this i traced
  
  
  isArray l 1
  doDragDrop Title label="Intern"
  Name label="Kapil Virdi"/
  /Title
  Seems 
  to work, what exactly are you expecting ? as a result other then the 
  above
  jason
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Sönke RohdeEnvoyé: jeudi 23 février 2006 
11:57À: flexcoders@yahoogroups.comObjet: 
Re: [flexcoders] Tree DragAndDrop no data for 
leafHi Matt,This really looks like a bug. I 
have made a simple example. Try to drag theleaf of the tree and there 
will be traced that the array has length 1 butthe trace of the item 
itself is empty.Cheers,Sönke?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
mx:Script 
![CDATA[ import 
mx.core.DragSource; import 
mx.managers.DragManager; 
import mx.events.*; import 
mx.containers.Canvas; import 
flash.util.trace; private 
function doDragEnter(event:DragEvent):void 
{ var 
dropTarget:Canvas=Canvas(event.currentTarget); 
if (event.dragSource.hasFormat('treeItems')) 
{ 
DragManager.acceptDragDrop(dropTarget); 
} 
} 
 private function 
doDragDrop(event:DragEvent):void 
{ var 
data:Object = 
event.dragSource.dataForFormat('treeItems'); 
if(data is 
Array){ 
 var a:Array = 
Array(data); 
 trace("isArray l " + 
a.length); 
 trace("doDragDrop " + 
a[0].toString()); 
} } 
 ]] 
/mx:Script !-- Simple 
example to demonstrate the Tree control -- 
mx:XML id="myxml" 
Company 
label="Macromedia" 
Branch 
label="Newton" 
Department label="Flex 
Doc" 
Title 
label="Intern" 
Name label="Kapil 
Virdi"/Name 
/Title 
/Department 
/Branch 
/Company 
/mx:XML mx:Tree x="34" 
y="39" height="375" id="tree" dragEnabled="true"dataProvider="{myxml}" 
labelField="@label" 
width="194"/mx:Tree 
 mx:Canvas x="378" y="39" width="200" 
height="200"backgroundColor="0xff" id="canvas" 
  
dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
 
/mx:Canvas 
/mx:Application  It may be a bug in the drag and 
drop code. Can you send a test case?  -Original 
Message- From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde Sent: 
Wednesday, February 22, 2006 10:02 AM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Tree DragAndDrop no 
data for leaf  Hi, I have got a problem getting the 
data of a dragged leaf from a tree. The DragEvent.DRAG_DROP is 
handled by the following function:  private function 
doDrop(e:DragEvent):void{  var 
data:Object = e.dragSource.dataForFormat("treeItems"); 
 trace("data " + data.toString()); 
}  The leaf which is dragged has this XML node 
label="Test"  data="" / and nothing for the data is 
traced. When I drag a branch like: node 
label="common"  node 
label="Test" data=""/ /node All is traced 
correctly.   Why do I get no data for the leaf? Is 
the XML malformated?  Thanks, Sönke  
  -- 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
 -- 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






--
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] positioning - absolute / relative??

2006-02-23 Thread nirav
Hi,

We have a menu that needs to be displayed right below a label. The menu
shows up on mouse over of the label.

It works well with fixed x and y positions in menu.show(). But the menu
shows in the wrong place if we resize the window. The menu would show at
the original x and y positions and not relative to the new window size.

Tried to find out the x and y of the hbox the label is in and then work
the menu. But the position is always the same, no matter what the size of
the window is.

Our application does not take 100% screen - it is centered.

How do we get the x and y coordinates to display the menu at?

TIA.

:Nirav


--
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 get the bitmap of controls,such as the Button

2006-02-23 Thread feiy



hi,somebody can tell me how to get the BitmapData/Bitmap of flex controls,such as the Button.-- 闲云孤鹤 - 清冷香中抱膝吟






--
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] Flex 1.5 ObjectCopy again

2006-02-23 Thread Stanislav Zayarsky
Hello Flex Coders,

I know this question was discussed earlier, but I can't find the
working source code.

So please if anyone has source for working ObjectCopy class, please
send it to me.

Best regards
Stanislav


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

2006-02-23 Thread ravi mishra



hi group,anybody plz tell me that, the applications build on flex 2.0 beta version will run only on Flash 8.5 or it can run on lower versions of Flash.Flex 2.0 is backward compatible with flash or not??  regards,raviGreat people talk about ideas, average people talk about things, small   people talk about others? But legends never talk , they send E MAIL 
	

	
		 
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.





--
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] how to get the Bitmap/BitmapData of controls

2006-02-23 Thread feiyhy
somebody can tell me how to get the Bitmap/BitmapData of a
control,such as the Button's BitmapData?

i know the Image control's Bitmap is the first child of it,so where is
it of other controls?






--
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 get to know that control has N% width property?

2006-02-23 Thread Stanislav Zayarsky
Hello Flex Coders,

I have next question:

For example we have declared in mxml Button with width property set to N%.

So I'm wondering how I can find at runtime that this Button is N% width?

Best regards
Stanislav


--
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] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde





Exactly! Seems like a bug doesn't 
it?

Cheers,
Sönke

  
  
  Von: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] Im Auftrag von Jason 
  HawrylukGesendet: Donnerstag, 23. Februar 2006 14:02An: 
  flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Tree 
  DragAndDrop no data for leaf
  
  never mind i see now the leaf is the problem give me a couple 
  secs
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jason HawrylukEnvoyé: jeudi 23 février 2006 
13:56À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Tree DragAndDrop no data for leaf
I 
really see no prob with this i traced


isArray l 1
doDragDrop Title label="Intern"
Name label="Kapil Virdi"/
/Title
Seems to work, what exactly are you expecting ? as a result other 
then the above
jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Sönke RohdeEnvoyé: jeudi 23 février 2006 
  11:57À: flexcoders@yahoogroups.comObjet: 
  Re: [flexcoders] Tree DragAndDrop no data for 
  leafHi Matt,This really looks like a bug. I 
  have made a simple example. Try to drag theleaf of the tree and there 
  will be traced that the array has length 1 butthe trace of the item 
  itself is empty.Cheers,Sönke?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
  mx:Script 
  ![CDATA[ import 
  mx.core.DragSource; import 
  mx.managers.DragManager; 
  import mx.events.*; import 
  mx.containers.Canvas; import 
  flash.util.trace; 
  private function doDragEnter(event:DragEvent):void 
  { 
  var 
  dropTarget:Canvas=Canvas(event.currentTarget); 
  if (event.dragSource.hasFormat('treeItems')) 
  { 
  DragManager.acceptDragDrop(dropTarget); 
  } 
  } 
   private function 
  doDragDrop(event:DragEvent):void 
  { 
  var data:Object = 
  event.dragSource.dataForFormat('treeItems'); 
  if(data is 
  Array){ 
   var a:Array = 
  Array(data); 
   trace("isArray l " + 
  a.length); 
   trace("doDragDrop " + 
  a[0].toString()); 
  } } 
   ]] 
  /mx:Script !-- 
  Simple example to demonstrate the Tree control 
  -- mx:XML 
  id="myxml" Company 
  label="Macromedia" 
  Branch 
  label="Newton" 
  Department label="Flex 
  Doc" 
  Title 
  label="Intern" 
  Name label="Kapil 
  Virdi"/Name 
  /Title 
  /Department 
  /Branch 
  /Company 
  /mx:XML mx:Tree x="34" 
  y="39" height="375" id="tree" dragEnabled="true"dataProvider="{myxml}" 
  labelField="@label" 
  width="194"/mx:Tree 
   mx:Canvas x="378" y="39" 
  width="200" height="200"backgroundColor="0xff" id="canvas" 

  dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
   
  /mx:Canvas 
  /mx:Application  It may be a bug in the drag 
  and drop code. Can you send a test case?  
  -Original Message- From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
  Rohde Sent: Wednesday, February 22, 2006 10:02 AM To: 
  flexcoders@yahoogroups.com Subject: [flexcoders] Tree DragAndDrop 
  no data for leaf  Hi, I have got a problem getting 
  the data of a dragged leaf from a tree. The DragEvent.DRAG_DROP is 
  handled by the following function:  private function 
  doDrop(e:DragEvent):void{  var 
  data:Object = e.dragSource.dataForFormat("treeItems"); 
   trace("data " + data.toString()); 
  }  The leaf which is dragged has this XML node 
  label="Test"  data="" / and nothing for the data is 
  traced. When I drag a branch like: node 
  label="common"  node 
  label="Test" data=""/ /node All is traced 
  correctly.   Why do I get no data for the leaf? Is 
  the XML malformated?  Thanks, Sönke 
 -- 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
   -- 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
  





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

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk





I 
think is has to do with our lack of knowledge I have it working inc.. in 2 mins 
got to clean it up

jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Sönke RohdeEnvoyé: jeudi 23 février 2006 
  14:37À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Tree DragAndDrop no data for leaf
  Exactly! Seems like a bug doesn't 
  it?
  
  Cheers,
  Sönke
  


Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von Jason 
HawrylukGesendet: Donnerstag, 23. Februar 2006 
14:02An: flexcoders@yahoogroups.comBetreff: RE: 
[flexcoders] Tree DragAndDrop no data for leaf

never mind i see now the leaf is the problem give me a couple 
secs


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Jason HawrylukEnvoyé: jeudi 23 février 2006 
  13:56À: flexcoders@yahoogroups.comObjet: 
  RE: [flexcoders] Tree DragAndDrop no data for leaf
  I really see no prob with this i traced
  
  
  isArray l 1
  doDragDrop Title label="Intern"
  Name label="Kapil Virdi"/
  /Title
  Seems to work, what exactly are you expecting ? as a result other 
  then the above
  jason
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
part de Sönke RohdeEnvoyé: jeudi 23 février 2006 
11:57À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Tree 
DragAndDrop no data for leafHi Matt,This 
really looks like a bug. I have made a simple example. Try to drag 
theleaf of the tree and there will be traced that the array has 
length 1 butthe trace of the item itself is 
empty.Cheers,Sönke?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
mx:Script 
![CDATA[ import 
mx.core.DragSource; import 
mx.managers.DragManager; 
import mx.events.*; import 
mx.containers.Canvas; 
import 
flash.util.trace; 
private function doDragEnter(event:DragEvent):void 
{ 
var 
dropTarget:Canvas=Canvas(event.currentTarget); 
if (event.dragSource.hasFormat('treeItems')) 
{ 
DragManager.acceptDragDrop(dropTarget); 
} 
} 
 private function 
doDragDrop(event:DragEvent):void 
{ 
var data:Object = 
event.dragSource.dataForFormat('treeItems'); 
if(data is 
Array){ 
 var a:Array = 
Array(data); 
 trace("isArray l " + 
a.length); 
 trace("doDragDrop " + 
a[0].toString()); 
} } 
 ]] 
/mx:Script !-- 
Simple example to demonstrate the Tree control 
-- mx:XML 
id="myxml" Company 
label="Macromedia" 
Branch 
label="Newton" 
Department label="Flex 
Doc" 
Title 
label="Intern" 
Name label="Kapil 
Virdi"/Name 
/Title 
/Department 
/Branch 
/Company 
/mx:XML mx:Tree x="34" 
y="39" height="375" id="tree" 
dragEnabled="true"dataProvider="{myxml}" labelField="@label" 
width="194"/mx:Tree 
 mx:Canvas x="378" y="39" 
width="200" height="200"backgroundColor="0xff" id="canvas" 
  
dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
 
/mx:Canvas 
/mx:Application  It may be a bug in the drag 
and drop code. Can you send a test case?  
-Original Message- From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
Rohde Sent: Wednesday, February 22, 2006 10:02 AM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Tree 
DragAndDrop no data for leaf  Hi, I have got a 
problem getting the data of a dragged leaf from a tree. The 
DragEvent.DRAG_DROP is handled by the following function: 
 private function doDrop(e:DragEvent):void{ 
 var data:Object = 
e.dragSource.dataForFormat("treeItems"); 
 trace("data " + data.toString()); 
}  The leaf which is dragged has this XML node 
label="Test"  data="" / and nothing for the data 
is traced. When I drag a branch like: node 
label="common"  node 
label="Test" data=""/ /node All is traced 
correctly.   Why do I get no data for the leaf? 
Is the XML malformated?  Thanks, Sönke 
   -- 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
 -- Flexcoders 
Mailing List 

RE: [flexcoders] Tree DragAndDrop no data for leaf

2006-02-23 Thread Jason Hawryluk





I have 
to assume that if this works

var 
data:Object = event.dragSource.dataForFormat("treeItems");trace("doDragDrop 
" + data[0].parent());

the 
xml or return object thinks no children exist there are only attributes not a 
full xml string value, so you have to access the attributes. I have not yet 
worked alot with the "mx:xml" object. Anyway i don't see what is really wrong 
with anything. In principle is should work.


below is a modified doDragDrop that works as you want it. It must be because there is 
no nested value, or the fact your not casting it to xml. Might be a bug but not 
sure how the mx:xml works internally.

private function doDragDrop(event:DragEvent):void 
{ var 
data:Object = 
event.dragSource.dataForFormat('treeItems'); 
trace("doDragDrop " + 
data[0].toString()); 
 var 
oxml:XML = 
XML(data[0]); 
 
trace(oxml.toXMLString()); 
 /*if(data 
is 
Array){ 
var a:Array = 
Array(data); 
trace("isArray l " + 
a.length); 
trace("doDragDrop " + 
a[0].toString()); 
}*/ }

Anyway 
hope this helps, cheers

Jason



  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jason HawrylukEnvoyé: jeudi 23 février 2006 
  14:02À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Tree DragAndDrop no data for leaf
  never mind i see now the leaf is the problem give me a couple 
  secs
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jason HawrylukEnvoyé: jeudi 23 février 2006 
13:56À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Tree DragAndDrop no data for leaf
I 
really see no prob with this i traced


isArray l 1
doDragDrop Title label="Intern"
Name label="Kapil Virdi"/
/Title
Seems to work, what exactly are you expecting ? as a result other 
then the above
jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Sönke RohdeEnvoyé: jeudi 23 février 2006 
  11:57À: flexcoders@yahoogroups.comObjet: 
  Re: [flexcoders] Tree DragAndDrop no data for 
  leafHi Matt,This really looks like a bug. I 
  have made a simple example. Try to drag theleaf of the tree and there 
  will be traced that the array has length 1 butthe trace of the item 
  itself is empty.Cheers,Sönke?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
  mx:Script 
  ![CDATA[ import 
  mx.core.DragSource; import 
  mx.managers.DragManager; 
  import mx.events.*; import 
  mx.containers.Canvas; import 
  flash.util.trace; 
  private function doDragEnter(event:DragEvent):void 
  { 
  var 
  dropTarget:Canvas=Canvas(event.currentTarget); 
  if (event.dragSource.hasFormat('treeItems')) 
  { 
  DragManager.acceptDragDrop(dropTarget); 
  } 
  } 
   private function 
  doDragDrop(event:DragEvent):void 
  { 
  var data:Object = 
  event.dragSource.dataForFormat('treeItems'); 
  if(data is 
  Array){ 
   var a:Array = 
  Array(data); 
   trace("isArray l " + 
  a.length); 
   trace("doDragDrop " + 
  a[0].toString()); 
  } } 
   ]] 
  /mx:Script !-- 
  Simple example to demonstrate the Tree control 
  -- mx:XML 
  id="myxml" Company 
  label="Macromedia" 
  Branch 
  label="Newton" 
  Department label="Flex 
  Doc" 
  Title 
  label="Intern" 
  Name label="Kapil 
  Virdi"/Name 
  /Title 
  /Department 
  /Branch 
  /Company 
  /mx:XML mx:Tree x="34" 
  y="39" height="375" id="tree" dragEnabled="true"dataProvider="{myxml}" 
  labelField="@label" 
  width="194"/mx:Tree 
   mx:Canvas x="378" y="39" 
  width="200" height="200"backgroundColor="0xff" id="canvas" 

  dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
   
  /mx:Canvas 
  /mx:Application  It may be a bug in the drag 
  and drop code. Can you send a test case?  
  -Original Message- From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
  Rohde Sent: Wednesday, February 22, 2006 10:02 AM To: 
  flexcoders@yahoogroups.com Subject: [flexcoders] Tree DragAndDrop 
  no data for leaf  Hi, I have got a problem getting 
  the data of a dragged leaf from a tree. The DragEvent.DRAG_DROP is 
  handled by the following function:  private function 
  doDrop(e:DragEvent):void{  var 
  data:Object = e.dragSource.dataForFormat("treeItems"); 
   trace("data " + data.toString()); 
  }  The leaf which is dragged has this XML node 
  label="Test"  data="" / and nothing for the data is 
  traced. When I drag a branch like: node 
  label="common"  node 
  label="Test" data=""/ /node All is traced 
  correctly.  

[flexcoders] Re: Disappearing Data

2006-02-23 Thread harishsivaram
hi,

Could you please send in the code of the itemRenderer that you are
using in this code?

Thanks
Harish

Flex-QA 
Adobe India.
[EMAIL PROTECTED]

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

 Wow, we're even getting weirder here. If I reference the dataGrid *at
 all* it loses the first row. The renderer is calling expandFunc when it
 gets clicked (it's a button). Here's my code(comment the Alert, and
 it works fine. Keep it, and my first row disappears)
 
  
 
 public function expandFunc(e:Event) {
 
 myLegendICV = new ArrayCollection(myData); 
 
 LegendDG.dataProvider = myData;
 
 Alert.show(Here: +LegendDG,Alert,Alert.OK);
 
 }
 
 public var myData:Array = [{name:'Contact Info',height:50},
 
 {name:'Overall Quality Rating',height:30},
 
 {name:'Clinical Services Rating',height:30},
 
 {name:'Patient Safety Rating',height:30},
 
 {name:'Safe Practice Rating',height:30},
 
 {name:'Appropriate Care',height:30},
 
 {name:'Learn More',height:30}];
 
 mx:DataGrid initialize=setData() creationComplete=placeSelect() 
 
 sortableColumns=false selectable=false
 selectionColor=#FBF2D1 
 
 rowCount=7 variableRowHeight=true
 id=LegendDG height=350 width=200 
 
 
 
 mx:columns
 
 mx:Array
 
 mx:DataGridColumn
 cellRenderer=custom.renderers.legendRenderer columnName=name
 headerText= /
 
 /mx:Array
 
 /mx:columns
 
 /mx:DataGrid
 
  
 
  
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 In the game of chess, it's important to never let your opponent see
 your pieces.
 
 HealthGrades http://www.healthgrades.com/ : Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w  (720) 963-3832
 
 c  (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or legally privileged information
 and is intended for use only by the indicated addressee.  If you are not
 the named addressee you should not disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system.
 E-mail transmissions cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender therefore does not accept
 liability for any errors or omissions in the contents of this message
 which arise as a result of e-mail transmission. If verification is
 required please request a hard-copy version.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jonathan Miranda
 Sent: Tuesday, February 21, 2006 2:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Disappearing Data
 
  
 
 Alright, think I've found a real fun bug. Have fun with this Matt :-)
 
 I have a datagrid that is populated by an ArrayCollection aka
 ICollectionView. So here I am, trying to figure out why my first row of
 data is disappearing and I found it.
 
  
 
 myLegendICV = new ArrayCollection(myData); 
 
 LegendDG.dataProvider = myLegendICV;
 
 Alert.show(Here: +LegendDG.dataProvider[3].height,Alert,Alert.OK);
 
 Alert.show(Here: +myLegendICV[3].height,Alert,Alert.OK);
 
 
 Guess what 2 lines it is? That's right folks, the Alerts. I comment
 those Alerts out and it works fine. But soon as anywhere I reference a
 specific row of the dataProvider or the ICV directly (even outside the
 alerts), it removes the first line of my dataprovider. I'm assuming it
 has to do with the dataProvider starting at 0 and the ArrayCollection
 starting at 1? If I use a normal array, it goes away.
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 In the game of chess, it's important to never let your opponent see
 your pieces.
 
 HealthGrades http://www.healthgrades.com/ : Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w  (720) 963-3832
 
 c  (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or legally privileged information
 and is intended for use only by the indicated addressee.  If you are not
 the named addressee you should not disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system.
 E-mail transmissions cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender therefore does not accept
 liability for any errors or omissions in the contents of this message
 which arise as a result of e-mail transmission. If verification is
 required 

Re: [flexcoders] Flex 1.5 ObjectCopy again

2006-02-23 Thread Andriy Panas
Hello Stanislav,

Thursday, February 23, 2006, 3:16:59 PM, you wrote:


 So please if anyone has source for working ObjectCopy class, please
 send it to me.

As a true ActionScript programmer you better subscribe to Flashcoders
mailing list too :)

Taken From FlashCoders:

use mx.utils.ObjectCopy:
http://www.darronschall.com/weblog/archives/000148.cfm
NB: it doesn't resolve circular references

-- 
Best regards,
 Andriymailto:[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

* 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] More datagrid row height issues

2006-02-23 Thread Jonathan Miranda










Yeah, Ive got that working now with
individual row heights changed. I guess I just wanted a way to take one
datagrid and copy the heights to another  a bindable solution for
datagrids with different row heights. It seems the only way to make an
individual row height different is by a cellrenderer  I was looking for
a way to do it in code by doing something like datagrid[theRow].rowheight = 40.




_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a hard-copy
version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Thursday, February 23, 2006
12:19 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] More
datagrid row height issues





Im not sure what youre
trying to accomplish here. Generally the only way you can control an
individual rows height would be to put a cell renderer in that you
explicitly change the height on. I dont see how you then bind two
grids together.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Wednesday, February 22, 2006
11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] More
datagrid row height issues





Still having problems changing the height of one row
specifically in actionscript, but that aside Im also having problems
matching datagrids together via height.

lets say I have 2 datagrids with variableRowHeight=true.
Is there a way to bind 2 data grids together via their row heights?

_

Jonathan Miranda

Flexible Master of
the Web

In the game of
chess, it's important to never let your opponent see your pieces.

HealthGrades:
Guiding America
to Better Healthcare

NASDAQ: HGRD

w (720) 963-3832

c (707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or legally privileged
information and is intended for use only by the indicated addressee. If
you are not the named addressee you should not disseminate, distribute, or copy
this e-mail. Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. E-mail
transmissions cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any errors
or omissions in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard-copy version.












--
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] Access components from other modules

2006-02-23 Thread Jan L. Nauta
Hi,

I have a mx:XML component in the 'application' mxml file that I want to
access from another mxml file, how do I do that? The other mxml is a form
that's part of a viewstack in the 'application' mxml file:

Main.mxml:

mx:Application ...
...
mx:XML id=my_xml .../
mx:ViewStack id=pages
TestPage id=test_page label=Test/
/mx:ViewStack
/mx:Application

TestPage.mxml:

mx:Form ...
...
mx:Label text={my_xml}/
...
/mx:Form

Regards,

Jan L. Nauta



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

2006-02-23 Thread Graham, Jason










Flex 2.0 would not be supported in older
flash players, but older content created in Flex 1.5 should work in Flash 8.5
player. 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ravi
mishra
Sent: Thursday, February 23, 2006
12:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex 2.0







hi group,











anybody plz tell me that, the applications build on flex 2.0 beta
version will run only on Flash 8.5 or it can run on lower versions of Flash.











Flex 2.0 is backward compatible with flash or not??





regards,











ravi











Great people talk about ideas, average
people talk about things, small 





people talk about others? But legends
never talk , they send E
MAIL 















Jiyo cricket on Yahoo!
India cricket
Yahoo!
Messenger Mobile Stay in touch with your buddies all the time. 







--
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] How to get to know that control has N% width property?

2006-02-23 Thread Graham, Jason
I think there is method on the Box container called pixelsToPercent.
Other than that just do the math yourself.

Button.width/parent.width  that should give you a percentage.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stanislav Zayarsky
Sent: Thursday, February 23, 2006 7:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get to know that control has N% width
property?

Hello Flex Coders,

I have next question:

For example we have declared in mxml Button with width property set to
N%.

So I'm wondering how I can find at runtime that this Button is N% width?

Best regards
Stanislav


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



 




--
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] Error on tree folder (Flex:2.0 b1)

2006-02-23 Thread sourcecoderia
Hello all;

I'm getting a error that i can't seem to trap when dragging an item 
into a folder that has no child items yet. The tree uses a 
XMLListCollection for a datasource. If there is at least one item
(leaf) it works fine.

Has anyone noticed any issue here, and/or a possible solution?
 

TypeError: Error #1006: Call attempted on an object that is not a 
function.
at mx.controls::Tree/mx.controls:Tree::updateDropData()
[C:\dev\beta1\sdk\frameworks\mx\controls\Tree.as:2003]
at mx.controls::Tree/showDropFeedback()[C:\dev\beta1
\sdk\frameworks\mx\controls\Tree.as:815]
at mx.controls::Tree/dragOverHandler()[C:\dev\beta1
\sdk\frameworks\mx\controls\Tree.as:2252]
at flash.events::EventDispatcher/dispatchEvent()
at C:\dev\beta1
\sdk\frameworks\mx\collections\ClassicSort.as$544::DragProxy/mouseMove
Handler()[C:\dev\beta1\sdk\frameworks\mx\managers\DragManager.as:860]







--
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] Tree DragAndDrop no data for leaf

2006-02-23 Thread Sönke Rohde





Hi Jason,
thanks a lot! this works. Anyway I would expect a different 
behaviour but now I can go on with the real problem.

Cheers,
Sönke

  
  
  Von: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] Im Auftrag von Jason 
  HawrylukGesendet: Donnerstag, 23. Februar 2006 14:57An: 
  flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Tree 
  DragAndDrop no data for leaf
  
  I 
  have to assume that if this works
  
  var 
  data:Object = 
  event.dragSource.dataForFormat("treeItems");trace("doDragDrop " + 
  data[0].parent());
  
  the 
  xml or return object thinks no children exist there are only attributes not a 
  full xml string value, so you have to access the attributes. I have not yet 
  worked alot with the "mx:xml" object. Anyway i don't see what is really wrong 
  with anything. In principle is should work.
  
  
  below is a modified 
  doDragDrop that works as you want it. It must 
  be because there is no nested value, or the fact your not casting it to xml. 
  Might be a bug but not sure how the mx:xml works 
  internally.
  
  private function doDragDrop(event:DragEvent):void 
  { var 
  data:Object = 
  event.dragSource.dataForFormat('treeItems'); 
  trace("doDragDrop " + 
  data[0].toString()); 
   var 
  oxml:XML = 
  XML(data[0]); 
   
  trace(oxml.toXMLString()); 
   
  /*if(data is 
  Array){ 
  var a:Array = 
  Array(data); 
  trace("isArray l " + 
  a.length); 
  trace("doDragDrop " + 
  a[0].toString()); 
  }*/ }
  
  Anyway hope this helps, cheers
  
  Jason
  
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jason HawrylukEnvoyé: jeudi 23 février 2006 
14:02À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Tree DragAndDrop no data for leaf
never mind i see now the leaf is the problem give me a couple 
secs


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Jason HawrylukEnvoyé: jeudi 23 février 2006 
  13:56À: flexcoders@yahoogroups.comObjet: 
  RE: [flexcoders] Tree DragAndDrop no data for leaf
  I really see no prob with this i traced
  
  
  isArray l 1
  doDragDrop Title label="Intern"
  Name label="Kapil Virdi"/
  /Title
  Seems to work, what exactly are you expecting ? as a result other 
  then the above
  jason
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
part de Sönke RohdeEnvoyé: jeudi 23 février 2006 
11:57À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Tree 
DragAndDrop no data for leafHi Matt,This 
really looks like a bug. I have made a simple example. Try to drag 
theleaf of the tree and there will be traced that the array has 
length 1 butthe trace of the item itself is 
empty.Cheers,Sönke?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"layout="absolute" 
mx:Script 
![CDATA[ import 
mx.core.DragSource; import 
mx.managers.DragManager; 
import mx.events.*; import 
mx.containers.Canvas; 
import 
flash.util.trace; 
private function doDragEnter(event:DragEvent):void 
{ 
var 
dropTarget:Canvas=Canvas(event.currentTarget); 
if (event.dragSource.hasFormat('treeItems')) 
{ 
DragManager.acceptDragDrop(dropTarget); 
} 
} 
 private function 
doDragDrop(event:DragEvent):void 
{ 
var data:Object = 
event.dragSource.dataForFormat('treeItems'); 
if(data is 
Array){ 
 var a:Array = 
Array(data); 
 trace("isArray l " + 
a.length); 
 trace("doDragDrop " + 
a[0].toString()); 
} } 
 ]] 
/mx:Script !-- 
Simple example to demonstrate the Tree control 
-- mx:XML 
id="myxml" Company 
label="Macromedia" 
Branch 
label="Newton" 
Department label="Flex 
Doc" 
Title 
label="Intern" 
Name label="Kapil 
Virdi"/Name 
/Title 
/Department 
/Branch 
/Company 
/mx:XML mx:Tree x="34" 
y="39" height="375" id="tree" 
dragEnabled="true"dataProvider="{myxml}" labelField="@label" 
width="194"/mx:Tree 
 mx:Canvas x="378" y="39" 
width="200" height="200"backgroundColor="0xff" id="canvas" 
  
dragEnter="doDragEnter(event);"dragDrop="doDragDrop(event);" 
 
/mx:Canvas 
/mx:Application  It may be a bug in the drag 
and drop code. Can you send a test case?  
-Original Message- From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Sönke 
Rohde Sent: 

[flexcoders] Re: createChild and destroyChild

2006-02-23 Thread rgwilson26
Thanks Matt, that worked great! However, I am creating a new 
component with my add function. That component is an HBox with 
various text inputs and a delete button to handle a delete function 
for that particular HBox. How do I get the newly created component to 
recognize what number it is in the array and to delete itself? Do I 
need to dispatch the position in the array from the first component, 
handle it in the 2nd component, call a delete function then dispatch 
that result back to the 1st component? Or, is there a better way to 
get this functionality?


***
comp1:
***
 ?xml version=1.0? 
mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; 
 
 mx:Script
 ![CDATA[
var rowArray : Object = new Array() ;
var counter : Number = 0 ;


 private function addRow():Void
 {
 rowArray[counter] = comp2(HBox.createChild(comp2));
 counter++;
}

 public function deleteRow():Void{  //-- this function does not work
 
 if(rowArray[counter]  0){
 this.destroyChild(rowArray[counter -1] );
 counter--;
 }
 }

 ]]
 /mx:Script

 mx:Button label=Add width=60 click=addRow();/
 
 mx:FormItem textAlign=left id=formItem
 mx:HBox
 mx:TextInput id=txtRCAParticipants width=150/
 mx:TextInput id=txtTitle width=150/   
 
 mx:Button label=Delete click=deleteRow(); /
 /mx:HBox
 /mx:FormItem
 /mx:Form

***
comp2: --- component being created from add function
***
public function deleteMe(){
  //delete this object instance in the array 
}



mx:HBox height=25 xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
mx:TextInput id=txtRCAParticipants1 width=150 text= /
mx:TextInput id=txtPhoneNumber1 width=150 text= /
mx:Spacer width=20 /
mx:Button label=Delete click=deleteMe()  textAlign=center /
/mx:HBox





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

 I think that if statement should be
 
 if (counter  0)
 {
   this.destroyChild(rowArray[counter-1]);
   counter--;
 }
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of rgwilson26
 Sent: Tuesday, February 21, 2006 8:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] createChild and destroyChild
 
 I am new to FLEX and am working on an app that allows the user to 
 dynamically create a FormItem w/ various text boxes dynamically 
from 
 a click event including a delete button in each form item that will 
 allow the user to delete that specific instance of the object. I am 
 able to create the FormItem using createChild, but don't know how 
to 
 get destroyChild to work for a specific object. I am guessing you 
 must reference this when referring to the specific FormItem 
object, 
 but not sure of the correct syntax.
 
 Note: In my code my add function calls a component I have created 
 (Start_New_Event.Components.Entry) 
 
 
 Here is what I have:
 ***
 Main.mxml
 **
 ?xml version=1.0? 
 mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; 
 
 mx:Script
 ![CDATA[
   var rowArray : Object = new Array() ;
   var counter : Number = 0 ;
   
   
 private function addRow():Void
 {
 rowArray[counter] = Start_New_Event.Components.Entry
 (formItem.createChild(Start_New_Event.Components.Entry, undefined, 
 null ) );
 counter++;
   }
   
 public function deleteRow():Void{  //-- this function does not work
 
 if(rowArray[counter] != 0){
 this.destroyChild(rowArray[counter -1] );
 counter--;
 }
 }
   
 ]]
 /mx:Script

 mx:Button label=Add width=60 click=addRow();/
 
 mx:FormItem textAlign=left id=formItem
 mx:HBox
 mx:TextInput id=txtRCAParticipants width=150/
 mx:TextInput id=txtTitle width=150/  
 
 mx:Button label=Delete click=deleteRow(); /
 /mx:HBox
 /mx:FormItem
 /mx:Form

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







--
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: Access components from other modules

2006-02-23 Thread Doug Lowder
Hi Jan,

You can define a variable in TestPage.mxml and then assign it a value
as a property of TestPage in your main application. Example below
passes a String object.

- Doug


TestPage.mxml:

mx:Form ...
mx:Script
public var myVar: String;
/mx:Script
...
mx:Label text={myVar}/
...
/mx:Form

Main.mxml:

mx:Application ...
...
mx:XML id=my_xml .../
mx:ViewStack id=pages
TestPage id=test_page myVar={my_xml.someString}/
/mx:ViewStack
/mx:Application


--- In flexcoders@yahoogroups.com, Jan L. Nauta [EMAIL PROTECTED] wrote:

 Hi,
 
 I have a mx:XML component in the 'application' mxml file that I want to
 access from another mxml file, how do I do that? The other mxml is a
form
 that's part of a viewstack in the 'application' mxml file:
 
 Main.mxml:
 
 mx:Application ...
   ...
   mx:XML id=my_xml .../
   mx:ViewStack id=pages
   TestPage id=test_page label=Test/
   /mx:ViewStack
 /mx:Application
 
 TestPage.mxml:
 
 mx:Form ...
   ...
   mx:Label text={my_xml}/
   ...
 /mx:Form
 
 Regards,
 
 Jan L. Nauta







--
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 Builder 1.5 question

2006-02-23 Thread Sauro, Nick










Hey everyone, has anyone come across a problem while
attempting to a compile a flex application, and the builder freezing, and then
coming back with an error stating a flex server couldnt be found
at the url?



I know its not my java memory, as I have increased it to
256m, and when I watch the process table, both tomcat and flexbuilders
mem usage doesnt increase like it usually does while compiling.



Is this a bug? 





Thanks



Nick









--
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] Adobe Videos

2006-02-23 Thread Jonas Windey










Id like to know that too! Lets
hope Glenn Ruehle is reading this and would be so kind to post his example ;)











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: dinsdag 21 februari 2006
17:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe Videos





http://labs..macromedia.com/flexproductline/videos/#/

Anyone find out if
they posted the Transition code somewhere?





_

Jonathan Miranda

Flexible Master of
the Web

In the game of
chess, it's important to never let your opponent see your pieces.











--
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] Configuring Flex to work with J2EE version of CFMX7

2006-02-23 Thread Yvan Gagnon










I have the J2EE version of CFMX7 server installed on my home pc. Note
that this is a special CFEverywhere version of CFMX7, running on
top of the Jetty http server. For all intensive purposes, however, .. it is a
working installation of CFMX7 that's powered by JRun, .. which, as I understand
it, is required in order to use Flex 2.0.

For whatever reason, I am not able to install the Flex connectivity adapter for
ColdFusion, as everytime I attempt to do so, and to specify the folder where my
CFMX7 server is installed (ie: D:\CFEverywhere) .. the installer tells me that
The specified directory is invalid. Why is this happening? Is the
installer corrupted? Or is it NOT possible to install the ColdFusion / Flex
adapter with the j2EE version of CFMX7? 

Thanks in advance,
- Yvan









--
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] Adobe Videos

2006-02-23 Thread Sho Kuwamoto





Hi all.

I've talked to Glenn, and he says that because of an 
unfortunate late breaking bug that was introduced right before beta 1, two of 
the three demos he did on the video don't actually work on beta 
1.

His plan is to get the bugs fixed and to post the source in 
time for beta 2.

Don't shoot me. I'm just the messenger!

-Sho


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan 
MirandaSent: Thursday, February 23, 2006 9:31 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Adobe 
Videos



That or someone knows 
Glenn and can toss a note into his cube J
_
Jonathan 
Miranda
Flexible 
Master of the Web
"In the game of 
chess, it's important to never let your opponent see your 
pieces."
HealthGrades: Guiding 
America to Better 
Healthcare
NASDAQ: 
HGRD
w 
(720) 963-3832
c 
(707) 761-0868
[EMAIL PROTECTED] 

_
The message contains 
confidential and/or legally privileged information and is intended for use only 
by the indicated addressee. If you are not the named addressee you should 
not disseminate, distribute, or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmissions cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed,arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jonas 
WindeySent: Thursday, February 
23, 2006 10:17 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Adobe 
Videos

Id like to know that 
too! Lets hope Glenn Ruehle is reading this and would be so kind to post his 
example ;)





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jonathan 
MirandaSent: dinsdag 21 
februari 2006 17:45To: 
flexcoders@yahoogroups.comSubject: [flexcoders] Adobe 
Videos

http://labs..macromedia.com/flexproductline/videos/#/
Anyone find 
out if they posted the Transition code somewhere?


_
Jonathan 
Miranda
Flexible Master 
of the Web
"In the game of chess, it's important to 
never let your opponent see your pieces."







--
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] Adobe Videos

2006-02-23 Thread Jonathan Miranda










Speaking of which, is there any sort of
timeline for beta2? Next week, next month, next year? J



_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a hard-copy
version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sho Kuwamoto
Sent: Thursday, February 23, 2006
10:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Adobe
Videos





Hi all.



I've talked to Glenn, and he says that
because of an unfortunate late breaking bug that was introduced right before
beta 1, two of the three demos he did on the video don't actually work on beta
1.



His plan is to get the bugs fixed and to
post the source in time for beta 2.



Don't shoot me. I'm just the messenger!



-Sho









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Thursday, February 23, 2006
9:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Adobe
Videos



That or someone knows Glenn and can toss a
note into his cube J

_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w
(720) 963-3832

c
(707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey
Sent: Thursday, February 23, 2006
10:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Adobe
Videos





Id like to know that too!
Lets hope Glenn Ruehle is reading this and would be so kind to post his
example ;)











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: dinsdag 21 februari 2006
17:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe Videos





http://labs..macromedia.com/flexproductline/videos/#/

Anyone find out if
they posted the Transition code somewhere?





_

Jonathan Miranda

Flexible Master of
the Web

In the game of
chess, it's important to never let your opponent see your pieces.













--
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] testing 1 2

2006-02-23 Thread Yvan Gagnon










Is this thing on?









--
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] addChild method in mx.core.Container

2006-02-23 Thread tyombria
Hello,
i have a problem.
Please, help...

if:
...
var s:Sprite = new Sprite();
var b:Box = new Box(); // box - mx.core.Container.Box

then:
b.addChild(s);// - ERROR: cannot convert 
flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent


i know (from debugger) that method 'addChild(val:DisplayObject)' in 
mx.core.Container is overriden and it checks the argument 'val' 
on IUIComponent'ness (sorry for my English:)).

So, i can't add Sprite instance as a child to a Container instance.
Is it true?
It seems, it's not good...





--
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: Flex2 Phones Example Failing w. Multiserver

2006-02-23 Thread j_hotch
Hi Everyone,

I'm having the same problem as Ian, here.  The example works great on
a single-server CF7 install but I can't get the example to run
correctly on a multi-server CF7 install.

The test.cfm page runs correctly on the multi-server CF7 but the
Flex app returns the following errors when I try to run it:

Error: code:Server.Processing string:'java.lang.NullPointerException'
detail:'null'
at
mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/internal::faultHandler()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::MessageAgent/fault()
at mx.messaging::Producer/fault()
at
C:\dev\enterprise_beta1\frameworks\libs\framework.swc(mx/core/mx_internal)$35::NetConnectionMessageResponder/status()

My compiler argument is as follows:

--services=C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\flex-enterprise-services.xml

And my server/port number attribute in flex-enterprise-services.xml is
as follows:

endpoint uri=http://localhost:80{context.root}/flex2gateway/;
class=flex.messaging.endpoints.AMFEndpoint/




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

 Thanks Benoit
 
 Have you added the additional argument in Flex Builder2 to take into
account flex-enterprise-services.xml?
 
 I have added the following value in the Additional compiler arguments:

--services=C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\flex-enterprise-services.xml
 
 I am running ColdFusion in a multi-home configuration on the native
Jrun.  So I am not sure this is the correct value.  But I picked the
flex-enterprise-services.xml that was in the cfusion jrun server. 
This is the Cf/jrun instance associated with the default website
configured in my IIS manager.
 
 Have you verified the port number in flex-enterprise-services.xml?
 I have tried.  I looked in the flex-enterprise-services.xml file,
but I do not see a port number, I am not sure which element is
supposed to have one and whether I should be seing one or not.  I
access my defalut website with http://localhost without a portnumber.
 I've tested the CF code with the following url:
http://localhost/CFIDE/samples/Phones/CF/test.cfm.
 
 So what port number should I be checking in the
flex-enterprise-services.xml?
 
 Thanks
  
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 -
 | 1 |   |
 -  Binary Soduko
 |   |   |
 -
  
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
 You might checked two things.
 Have you verified the port number in flex-enterprise-services.xml?
 Have you added the additional argument in Flex Builder2 to take into
account
 flex-enterprise-services.xml?
 
 Benoit Hediard 
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
De la
 part de ianskinnerbs
 Envoy� : lundi 20 f�vrier 2006 20:42
 � : flexcoders@yahoogroups.com
 Objet : [flexcoders] First time flex2 app Phones Example Failing
 
 I followed the instructions for the phone sample flex2 app found here:

http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity:Sampl
 es:Phone_Selector.
 
 I have confirmed that the CF side is apparently working correctly,
but when
 I try to run the flex app, I just get an empty container and an endless
 loading clock cursor.  What am I missing?  I don't see any errors
either
 during compilation or runtime.  Just an endless blank app.
 
 TIA
 Ian Skinner
 
 
 
 
 
 --
 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
 
 
 
  
 
 
 
 
 
 
 
 
 --
 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







--
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: TextArea - Scrolling to selected text

2006-02-23 Thread Andrew Cacioppo



So is there no way to to scroll to an arbitrary location within a TextArea in AS3/Flex 2?-andrewOn 2/22/06, Andrew Cacioppo 
[EMAIL PROTECTED] wrote:I'm programtically selecting text in a TextArea component by calling setSelection( startIndex, endIndex ), but often times, the selection is offscreen.
Is there a way to get the TextArea to scroll so the selected text is part of the displayed area?
I can get the text area to scroll to the end of the text by setting vPostion = maxVpostion, but I'm not sure of a way to calculate the vPostion of currently selected text.Searching the list, I've seen solutions for doing this with a List, but not TextArea.
Thanks-andrew








--
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] addChild method in mx.core.Container

2006-02-23 Thread Jens Halm

 var s:Sprite = new Sprite();
 var b:Box = new Box(); // box - mx.core.Container.Box

 then:
 b.addChild(s);// - ERROR: cannot convert 
 flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent

 
 i know (from debugger) that method 'addChild(val:DisplayObject)' in 
 mx.core.Container is overriden and it checks the argument 'val' 
 on IUIComponent'ness (sorry for my English:)).

 So, i can't add Sprite instance as a child to a Container instance.
 Is it true?
 It seems, it's not good...


You can wrap your Sprite inside an UIComponent (code not tested):

var s:Sprite = new Sprite();

var c:UIComponent = new UIComponent();
c.addChild(s);

var b:Box = new Box();
b.addChild(b);


I think the Flex Container can only accept UIComponents because it
needs the properties and methods they add to layout the children.


Jens




--
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] addChild method in mx.core.Container

2006-02-23 Thread Jens Halm

 You can wrap your Sprite inside an UIComponent (code not tested):

 var s:Sprite = new Sprite();

 var c:UIComponent = new UIComponent();
 c.addChild(s);

 var b:Box = new Box();
 b.addChild(b);

I meant b.addChild(c) of course...





--
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.0 Cairngorm 2.0 experimenting

2006-02-23 Thread everflashnox



Hi all,
just did some experimenting with Cairngorm 2 for Flex 2. You might take a look at my blog for the sample and it's source.
check it out at everflash.com
Have fun !!!






--
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: addChild method in mx.core.Container

2006-02-23 Thread tyombria
--- In flexcoders@yahoogroups.com, Jens Halm [EMAIL PROTECTED] wrote:

 
  You can wrap your Sprite inside an UIComponent (code not tested):
 
  var s:Sprite = new Sprite();
 
  var c:UIComponent = new UIComponent();
  c.addChild(s);
 
  var b:Box = new Box();
  b.addChild(b);
 
 I meant b.addChild(c) of course...



thanks, Jens.
wrapping Sprite inside an UIComponent is a good idea, all is ok





--
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 2 / Flex 2 / Flickr

2006-02-23 Thread Brian Riley



I leveraged the new Cairngorm Framework (C2) recently on a Flex enabled Flickr app. Functionally, it's pretty similar to the hundreds of other Flickr apps, but the point of the app was to immerse myself in the new vr of C2, rather than to get bogged down in functionality. NOTE: loosely documented and some small errors, as this was just a first pass with C2 and Flex 2. Lots of refactoring and some small defects to address, but you'll get the pt. Just enter in tag(s) comma separated without spaces. eg: munch,rocco -- brings up my dogs.http://www.brianmriley.com/sandbox/flickr/FlickrV2.htmlOne point or issue I had with C2 was the implementation of the ServiceLocator as an MXML component. The thing I love most about Flex is the clear separation of business logic from presentation logic -- MXML for views and AS for business / application logic. Sure, you'll have to add a bit of AS to all your views in order to make it work, but my ideal app leverages MXML only for views
 only. So, I created my own ServiceLocator for the application, and moved some of the result and fault objects to the BusinessDelegate. My BusinessDelegate is specific to the my Flickr application, but it could be refactored to a an AbstractBusinessDelegate or similar.Also, since I leverage the ARP framework for Flash apps quite a bit, I like the idea of instantiating Commands as they're needed, not when the Controller is instantiated -- while I didn't implement this in my first pass at the app, I'm probably going to introduce this in my next vr.And then there's the use of additional controllers. I usually introduce controllers into my app for the different MVC triads that require it -- while this can be seen as overkill, I sometimes like the granular control of smaller MVCs within my app. I took this away from large Flash apps, but I've found it's not as necessary in Flex. That being said, I've considered creating an additional controller here to handle the click
 event from the DataGrid, although it could be completey unnecessary in this small app.I'll continue to add additional functionality as I have time. Feel free to comment.Yes, I know my Flickr info is in the src ;-)-riley
		 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.





--
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: TextArea - Scrolling to selected text

2006-02-23 Thread Doug Lowder
Does giving your TextArea the focus with setFocus() inside a 
callLater() scroll the selection into view?  I have no direct 
experience with this in AS3, so take it for what it's worth...

Doug


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

 So is there no way to to scroll to an arbitrary location within a 
TextArea
 in AS3/Flex 2?
 
 -andrew
 
 
 On 2/22/06, Andrew Cacioppo [EMAIL PROTECTED] wrote:
 
  I'm programtically selecting text in a TextArea component by 
calling
  setSelection( startIndex, endIndex ), but often times, the 
selection is
  offscreen.
 
  Is there a way to get the TextArea to scroll so the selected 
text is part
  of the displayed area?
 
  I can get the text area to scroll to the end of the text by 
setting
  vPostion = maxVpostion, but I'm not sure of a way to calculate 
the vPostion
  of currently selected text.
 
  Searching the list, I've seen solutions for doing this with a 
List, but
  not TextArea.
 
  Thanks
 
  -andrew
 








--
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] Cairngorm 2 / Flex 2 / Flickr

2006-02-23 Thread Jonathan Miranda












Probably worthy of an entire other
discussion, but what was the benefit of using Cairngorm Framework with this
application? This could be done a lot simplier outside unless Im missing
something. I guess Im in the mood for a framework versus overkill
discussion J

_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a hard-copy
version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Riley
Sent: Thursday, February 23, 2006
12:48 PM
To: flexcoders@yahoogroups.com;
Brian Riley
Subject: [flexcoders] Cairngorm 2
/ Flex 2 / Flickr





I leveraged the new
Cairngorm Framework (C2) recently on a Flex enabled Flickr app. Functionally,
it's pretty similar to the hundreds of other Flickr apps, but the point of the
app was to immerse myself in the new vr of C2, rather than to get bogged down
in functionality. NOTE: loosely documented and some small errors, as this was
just a first pass with C2 and Flex 2. Lots of refactoring and some small
defects to address, but you'll get the pt. Just enter in tag(s) comma separated
without spaces. eg: munch,rocco -- brings up my dogs.

http://www.brianmriley.com/sandbox/flickr/FlickrV2.html

One point or issue I had with C2 was the implementation of the ServiceLocator
as an MXML component. The thing I love most about Flex is the clear separation
of business logic from presentation logic -- MXML for views and AS for business
/ application logic. Sure, you'll have to add a bit of AS to all your views in
order to make it work, but my ideal app leverages MXML only for views only. So,
I created my own ServiceLocator for the application, and moved some of the
result and fault objects to the BusinessDelegate. My BusinessDelegate is
specific to the my Flickr application, but it could be refactored to a an
AbstractBusinessDelegate or similar.

Also, since I leverage the ARP framework for Flash apps quite a bit, I like the
idea of instantiating Commands as they're needed, not when the Controller is
instantiated -- while I didn't implement this in my first pass at the app, I'm
probably going to introduce this in my next vr.

And then there's the use of additional controllers. I usually introduce
controllers into my app for the different MVC triads that require it -- while
this can be seen as overkill, I sometimes like the granular control of smaller
MVCs within my app. I took this away from large Flash apps, but I've found it's
not as necessary in Flex. That being said, I've considered creating an
additional controller here to handle the c lick event from the DataGrid,
although it could be completey unnecessary in this small app.

I'll continue to add additional functionality as I have time. Feel free to
comment.

Yes, I know my Flickr info is in the src ;-)

-riley







Yahoo!
Autos. Looking for a sweet ride? Get pricing, reviews,  more on new
and used cars. 







--
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: TextArea - Scrolling to selected text

2006-02-23 Thread Dirk Eismann
Try this:
 
  myTextArea.text = newText;
  myTextArea.validateNow();
  myTextArea.vPosition = myTextArea.maxVPosition;
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Andrew Cacioppo
Gesendet: Do 23.02.2006 19:18
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: TextArea - Scrolling to selected text


So is there no way to to scroll to an arbitrary location within a TextArea in 
AS3/Flex 2?

-andrew



On 2/22/06, Andrew Cacioppo  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
wrote: 

I'm programtically selecting text in a TextArea component by calling 
setSelection( startIndex, endIndex ), but often times, the selection is 
offscreen. 

Is there a way to get the TextArea to scroll so the selected text is 
part of the displayed area? 

I can get the text area to scroll to the end of the text by setting 
vPostion = maxVpostion, but I'm not sure of a way to calculate the vPostion of 
currently selected text.

Searching the list, I've seen solutions for doing this with a List, but 
not TextArea. 

Thanks

-andrew





--
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 
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_quFDtMyhrQaHQ
 Computer software 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=lvQjSRfQDfWudJSe1lLjHw
 Software design and 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=1pMBCdo3DsJbuU9AEmO1oQ
 
Macromedia flex 
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_EpZI36cYzBjw
 Software development best practice 
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=f89quyyulIDsnABLD6IXIw
   



YAHOO! GROUPS LINKS 



*Visit your group flexcoders 
http://groups.yahoo.com/group/flexcoders  on the web.
  
*To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
*Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
http://docs.yahoo.com/info/terms/ . 







--
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/
 
winmail.dat

RE: [flexcoders] Flex Builder 1.5 question

2006-02-23 Thread Tracy Spratt










Hey, Nick, No, I use FB 1.5 regularly and
I have not seen this. FB 1.5 has a few quirks I have learned to live with, but
not that one. (yet!)

Sorry to be no help.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sauro, Nick
Sent: Thursday, February 23, 2006
12:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder
1.5 question





Hey everyone, has anyone come across a problem while
attempting to a compile a flex application, and the builder freezing, and then
coming back with an error stating a flex server couldnt be found
at the url?



I know its not my java memory, as I have increased it to
256m, and when I watch the process table, both tomcat and flexbuilders
mem usage doesnt increase like it usually does while compiling.



Is this a bug? 





Thanks



Nick









--
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] Merger of Datagrid Tree - Urgent !

2006-02-23 Thread Tracy Spratt
Someone has done this and there is example code available.  I believe
the name is TreeGrid.  Check out FlexAuthority, I think that is where I
saw it.  If not, google.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robs
Sent: Thursday, February 23, 2006 4:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Merger of Datagrid  Tree - Urgent !

Hi all,
  Is it possible that I can merge the dataGrid  Tree components to
make a single custom component. I have a scenario where I need to
simulate the MS Outlook inbox section when the mails are grouped as
per a specific field.
   Please help...

Thanks.






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



 






--
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] Cairngorm 2 / Flex 2 / Flickr

2006-02-23 Thread Steven Webster





Jonathan,

I think it's important to separate when people are using 
Cairngorm in an application (such asa Flickr application) in order to 
immerse oneself in or learn/understand the framework, or when people are 
applying the framework to leverage benefits in much larger application 
developments.

Are frameworks overkill for simple use-case apps like this 
? Probably. But is using Cairngorm for the first time wise on a 
mission-critical multi-developer application, before you're familiar with it 
? Definitely.

And as people contribute their sample applicaitons that 
helped them better understand the concepts, surely there is merit in others 
being able to use them to help in their understanding also ?

Best wishes,

Steven




  
  

  


  
  

Steven WebsterPractice Director (Rich 
Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs 
Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 
6108
m: +44 (0)7917 428 947[EMAIL PROTECTED] 
  









Probably worthy of an entire other 
discussion, but what was the benefit of using Cairngorm Framework with this 
application? This could be done a lot simplier outside unless Im missing 
something. I guess Im in the mood for a framework versus overkill discussion 
J

  
  
  _
  Jonathan 
  Miranda
  Flexible 
  Master of the Web
  "In the game of chess, it's important to 
  never let your opponent see your pieces."
  HealthGrades: Guiding 
  America to Better 
  Healthcare
  NASDAQ: 
  HGRD
  w 
  (720) 963-3832
  c 
  (707) 761-0868
  [EMAIL PROTECTED] 
  
  _
  The message contains 
  confidential and/or legally privileged information and is intended for use 
  only by the indicated addressee. If you are not the named addressee you 
  should not disseminate, distribute, or copy this e-mail. Please notify the 
  sender immediately by e-mail if you have received this e-mail by mistake and 
  delete this e-mail from your system. E-mail transmissions cannot be guaranteed 
  to be secure or error-free as information could be intercepted, corrupted, 
  lost, destroyed,arrive late or incomplete, or contain viruses. The sender 
  therefore does not accept liability for any errors or omissions in the 
  contents of this message which arise as a result of e-mail transmission. If 
  verification is required please request a hard-copy 
  version.
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Brian 
  RileySent: Thursday, 
  February 23, 2006 12:48 PMTo: flexcoders@yahoogroups.com; Brian RileySubject: [flexcoders] Cairngorm 2 / Flex 
  2 / Flickr
  
  I leveraged the new Cairngorm Framework 
  (C2) recently on a Flex enabled Flickr app. Functionally, it's pretty similar 
  to the hundreds of other Flickr apps, but the point of the app was to immerse 
  myself in the new vr of C2, rather than to get bogged down in functionality. 
  NOTE: loosely documented and some small errors, as this was just a first pass 
  with C2 and Flex 2. Lots of refactoring and some small defects to address, but 
  you'll get the pt. Just enter in tag(s) comma separated without spaces. eg: 
  munch,rocco -- brings up my 
  dogs.http://www.brianmriley.com/sandbox/flickr/FlickrV2.htmlOne 
  point or issue I had with C2 was the implementation of the ServiceLocator as 
  an MXML component. The thing I love most about Flex is the clear separation of 
  business logic from presentation logic -- MXML for views and AS for business / 
  application logic. Sure, you'll have to add a bit of AS to all your views in 
  order to make it work, but my ideal app leverages MXML only for views only. 
  So, I created my own ServiceLocator for the application, and moved some of the 
  result and fault objects to the BusinessDelegate. My BusinessDelegate is 
  specific to the my Flickr application, but it could be refactored to a an 
  AbstractBusinessDelegate or similar.Also, since I leverage the ARP 
  framework for Flash apps quite a bit, I like the idea of instantiating 
  Commands as they're needed, not when the Controller is instantiated -- while I 
  didn't implement this in my first pass at the app, I'm probably going to 
  introduce this in my next vr.And then there's the use of additional 
  controllers. I usually introduce controllers into my app for the different MVC 
  triads that require it -- while this can be seen as overkill, I sometimes like 
  the granular control of smaller MVCs within my app. I took this away from 
  large Flash apps, but I've found it's not as necessary in Flex. That being 
  said, I've considered creating an additional controller here to handle the c 
  lick event from the DataGrid, although it could be completey unnecessary in 
  this small app.I'll continue to add additional functionality as I have 
  

RE: [flexcoders] Re: TextArea - Scrolling to selected text

2006-02-23 Thread Dirk Eismann
Oops, sorry - seems as if I misinterpreted your inquiry.
 
Maybe if you read the TextMetrics (lineheight etc.)? I don't have the 
documentation in front of me but I'm sure there's such a thing.
 
Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Andrew Cacioppo
Gesendet: Do 23.02.2006 21:57
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] Re: TextArea - Scrolling to selected text


Doesn't that just send the scroll bar to the end of the TextArea?

I'm trying to be able to scroll to a selected piece of text that may be 
offscreen but still somewhere in the middle of the entire text block.




On 2/23/06, Dirk Eismann [EMAIL PROTECTED] wrote: 

Try this:

  myTextArea.text = newText;
  myTextArea.validateNow();
  myTextArea.vPosition = myTextArea.maxVPosition;

Dirk.



Von: flexcoders@yahoogroups.com im Auftrag von Andrew Cacioppo
Gesendet: Do 23.02.2006 19:18
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: TextArea - Scrolling to selected text


So is there no way to to scroll to an arbitrary location within a 
TextArea in AS3/Flex 2?

-andrew



On 2/22/06, Andrew Cacioppo  [EMAIL PROTECTED] mailto: [EMAIL 
PROTECTED] mailto:[EMAIL PROTECTED]   wrote: 

  I'm programtically selecting text in a TextArea component by 
calling setSelection( startIndex, endIndex ), but often times, the selection is 
offscreen. 
  
  Is there a way to get the TextArea to scroll so the selected text 
is part of the displayed area? 
  
  I can get the text area to scroll to the end of the text by 
setting vPostion = maxVpostion, but I'm not sure of a way to calculate the 
vPostion of currently selected text.
  
  Searching the list, I've seen solutions for doing this with a 
List, but not TextArea. 
  
  Thanks
  
  -andrew
  




--
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  
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_quFDtMyhrQaHQ
 
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_quFDtMyhrQaHQ
 Computer software 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=lvQjSRfQDfWudJSe1lLjHw
 
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=lvQjSRfQDfWudJSe1lLjHw
 Software design and 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=1pMBCdo3DsJbuU9AEmO1oQ
 
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=1pMBCdo3DsJbuU9AEmO1oQ
 
Macromedia flex  
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_EpZI36cYzBjw
 
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_EpZI36cYzBjw
 Software development best practice  
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=f89quyyulIDsnABLD6IXIw
 

RE: [flexcoders] Cairngorm 2 / Flex 2 / Flickr

2006-02-23 Thread Jonathan Miranda












Oh of course, I didnt mean to come
across as dogging his application efforts  I was asking mostly if he
found benefits to using Cairngorm besides a learning experience. I probably
should have started another discussion instead of coat-tail his application, it
probably came off as negative. Hats off for getting it to work in Cairngorm, I
know its not easy. 

_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a hard-copy
version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Thursday, February 23, 2006
2:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Cairngorm 2 / Flex 2 / Flickr





Jonathan,



I think it's important to separate when
people are using Cairngorm in an application (such asa Flickr
application) in order to immerse oneself in or learn/understand the framework,
or when people are applying the framework to leverage benefits in much larger
application developments.



Are frameworks overkill for simple
use-case apps like this ? Probably. But is using Cairngorm for the
first time wise on a mission-critical multi-developer application, before
you're familiar with it ? Definitely.



And as people contribute their sample
applicaitons that helped them better understand the concepts, surely there is
merit in others being able to use them to help in their understanding also ?



Best wishes,



Steven




 
  
  
   






Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ,
 UK
p: +44 (0) 131 338 6108


m: +44 (0)7917 428
947
[EMAIL PROTECTED] 



   
  
  
  
 






















Probably worthy of an entire other discussion,
but what was the benefit of using Cairngorm Framework with this application?
This could be done a lot simplier outside unless Im missing something. I
guess Im in the mood for a framework versus overkill discussion J





_

Jonathan Miranda

Flexible Master of the Web

In the
game of chess, it's important to never let your opponent see your pieces.

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c
(707) 761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Riley
Sent: Thursday, February 23, 2006
12:48 PM
To: flexcoders@yahoogroups.com;
Brian Riley
Subject: [flexcoders] Cairngorm 2
/ Flex 2 / Flickr





I leveraged the new
Cairngorm Framework (C2) recently on a Flex enabled Flickr app. Functionally,
it's pretty similar to the hundreds of other Flickr apps, but the point of the
app was to immerse myself in the new vr of C2, rather than to get bogged down
in functionality. NOTE: loosely documented and some small errors, as this was
just a first pass with C2 and Flex 2. Lots of refactoring and some small
defects to address, but you'll get the pt. Just enter in tag(s) comma separated
without spaces. eg: munch,rocco -- brings up my dogs.


[flexcoders] Flex2 :: TileList :: ScrollBar

2006-02-23 Thread Teoti Graphix



Hello,

This just seems like a dumb question but, I have the code below;

[code]

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* 
 layout=vertical 
 creationComplete=addHoldsToList();

 mx:Script
  ![CDATA[
   import HandHold;

   var dp:Array = 
   [
  
 {name:HandHold 1,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 2,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 3,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 4,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 5,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 6,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 7,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 8,
source:images/icon_projectsLarge.png}, 
  
 {name:HandHold 9,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 10,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 11,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 12,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 13,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 14,
source:images/icon_projectsLarge.png},
  
 {name:HandHold 15,
source:images/icon_projectsLarge.png}
   ];
   
   public function addHoldsToList()
   {
   }
   
  ]]
 /mx:Script
 
 mx:Panel width=750 height=600 layout=absolute
 
  mx:TileList x=10 y=10 height=549 width=200 
   dataProvider={dp} 
   direction=vertical 
   id=holdList 
   listItemRenderer=HandHold 
   columnCount=1 
   selectedIndex=2
  /mx:TileList
  
 /mx:Panel
 
/mx:Application

[/code]


Why is the vertical scrollbar not showing? There is defintely enough items in the dp to register the scroll bar.

If I ture vScrollPolicy to on, the scroll bar is there but no setScrollProperties(0 has been called on it?

Any thoughts?

Peace, Mike






--
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: Cairngorm 2 / Flex 2 / Flickr

2006-02-23 Thread brian_m_riley
--- In flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED]
wrote:

 Probably worthy of an entire other discussion, but what was the benefit
 of using Cairngorm Framework with this application? This could be done a
 lot simplier outside unless I'm missing something. I guess I'm in the
 mood for a framework versus overkill discussion :-)
 
 _
 
 Jonathan Miranda
 
 Flexible Master of the Web
 
 In the game of chess, it's important to never let your opponent see
 your pieces.
 
 HealthGrades http://www.healthgrades.com/ : Guiding America to Better
 Healthcare(tm)
 
 NASDAQ: HGRD
 
 w  (720) 963-3832
 
 c  (707) 761-0868
 
 [EMAIL PROTECTED] 
 
 _
 
 The message contains confidential and/or legally privileged information
 and is intended for use only by the indicated addressee.  If you are not
 the named addressee you should not disseminate, distribute, or copy this
 e-mail. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system.
 E-mail transmissions cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,arrive late
 or incomplete, or contain viruses. The sender therefore does not accept
 liability for any errors or omissions in the contents of this message
 which arise as a result of e-mail transmission. If verification is
 required please request a hard-copy version.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Brian Riley
 Sent: Thursday, February 23, 2006 12:48 PM
 To: flexcoders@yahoogroups.com; Brian Riley
 Subject: [flexcoders] Cairngorm 2 / Flex 2 / Flickr
 
  
 
 I leveraged the new Cairngorm Framework (C2) recently on a Flex enabled
 Flickr app. Functionally, it's pretty similar to the hundreds of other
 Flickr apps, but the point of the app was to immerse myself in the new
 vr of C2, rather than to get bogged down in functionality. NOTE: loosely
 documented and some small errors, as this was just a first pass with C2
 and Flex 2. Lots of refactoring and some small defects to address, but
 you'll get the pt. Just enter in tag(s) comma separated without spaces.
 eg: munch,rocco -- brings up my dogs.
 
 http://www.brianmriley.com/sandbox/flickr/FlickrV2.html
 
 One point or issue I had with C2 was the implementation of the
 ServiceLocator as an MXML component. The thing I love most about Flex is
 the clear separation of business logic from presentation logic -- MXML
 for views and AS for business / application logic. Sure, you'll have to
 add a bit of AS to all your views in order to make it work, but my ideal
 app leverages MXML only for views only. So, I created my own
 ServiceLocator for the application, and moved some of the result and
 fault objects to the BusinessDelegate. My BusinessDelegate is specific
 to the my Flickr application, but it could be refactored to a an
 AbstractBusinessDelegate or similar.
 
 Also, since I leverage the ARP framework for Flash apps quite a bit, I
 like the idea of instantiating Commands as they're needed, not when the
 Controller is instantiated -- while I didn't implement this in my first
 pass at the app, I'm probably going to introduce this in my next vr.
 
 And then there's the use of additional controllers. I usually introduce
 controllers into my app for the different MVC triads that require it --
 while this can be seen as overkill, I sometimes like the granular
 control of smaller MVCs within my app. I took this away from large Flash
 apps, but I've found it's not as necessary in Flex. That being said,
 I've considered creating an additional controller here to handle the c
 lick event from the DataGrid, although it could be completey unnecessary
 in this small app.
 
 I'll continue to add additional functionality as I have time. Feel free
 to comment.
 
 Yes, I know my Flickr info is in the src ;-)
 
 -riley
 
 
 
 Yahoo! Autos
 http://us.rd.yahoo.com/evt=38381/%20ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc
 2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http:/autos.yahoo.com/index.html%20
 . Looking for a sweet ride? Get pricing, reviews,  more on new and used
 cars. 
 
 --
 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
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
 site+design+developmentw2=Computer+software+developmentw3=Software+des
 ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 b+site+design+developmentw2=Computer+software+developmentw3=Software+d
 

[flexcoders] Re: Cairngorm 2 / Flex 2 / Flickr

2006-02-23 Thread brian_m_riley
--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote:

 Jonathan,
  
 I think it's important to separate when people are using Cairngorm in an
 application (such as a Flickr application) in order to immerse oneself
 in or learn/understand the framework, or when people are applying the
 framework to leverage benefits in much larger application developments.
  
 Are frameworks overkill for simple use-case apps like this ?  Probably.
 But is using Cairngorm for the first time wise on a mission-critical
 multi-developer application, before you're familiar with it ?
 Definitely.
  
 And as people contribute their sample applicaitons that helped them
 better understand the concepts, surely there is merit in others being
 able to use them to help in their understanding also ?
  
 Best wishes,
  
 Steven
  
Steven Webster
 Practice Director (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6108
 m: +44 (0) 7917 428 947 
 [EMAIL PROTECTED] 
 
  
  
  
  
  
  
  
  
  
  Probably worthy of an entire other discussion, but what was the benefit
 of using Cairngorm Framework with this application? This could be done a
 lot simplier outside unless I'm missing something. I guess I'm in the
 mood for a framework versus overkill discussion :-)
 
   _
 
   Jonathan Miranda
 
   Flexible Master of the Web
 
   In the game of chess, it's important to never let your opponent
 see your pieces.
 
   HealthGrades http://www.healthgrades.com/ : Guiding America to
 Better Healthcare(tm)
 
   NASDAQ: HGRD
 
   w  (720) 963-3832
 
   c  (707) 761-0868
 
   [EMAIL PROTECTED] 
 
   _
 
   The message contains confidential and/or legally privileged
 information and is intended for use only by the indicated addressee.  If
 you are not the named addressee you should not disseminate, distribute,
 or copy this e-mail. Please notify the sender immediately by e-mail if
 you have received this e-mail by mistake and delete this e-mail from
 your system. E-mail transmissions cannot be guaranteed to be secure or
 error-free as information could be intercepted, corrupted, lost,
 destroyed,arrive late or incomplete, or contain viruses. The sender
 therefore does not accept liability for any errors or omissions in the
 contents of this message which arise as a result of e-mail transmission.
 If verification is required please request a hard-copy version.
 
   
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Brian Riley
   Sent: Thursday, February 23, 2006 12:48 PM
   To: flexcoders@yahoogroups.com; Brian Riley
   Subject: [flexcoders] Cairngorm 2 / Flex 2 / Flickr
 

 
   I leveraged the new Cairngorm Framework (C2) recently on a Flex
 enabled Flickr app. Functionally, it's pretty similar to the hundreds of
 other Flickr apps, but the point of the app was to immerse myself in the
 new vr of C2, rather than to get bogged down in functionality. NOTE:
 loosely documented and some small errors, as this was just a first pass
 with C2 and Flex 2. Lots of refactoring and some small defects to
 address, but you'll get the pt. Just enter in tag(s) comma separated
 without spaces. eg: munch,rocco -- brings up my dogs.
   
   http://www.brianmriley.com/sandbox/flickr/FlickrV2.html
   
   One point or issue I had with C2 was the implementation of the
 ServiceLocator as an MXML component. The thing I love most about Flex is
 the clear separation of business logic from presentation logic -- MXML
 for views and AS for business / application logic. Sure, you'll have to
 add a bit of AS to all your views in order to make it work, but my ideal
 app leverages MXML only for views only. So, I created my own
 ServiceLocator for the application, and moved some of the result and
 fault objects to the BusinessDelegate. My BusinessDelegate is specific
 to the my Flickr application, but it could be refactored to a an
 AbstractBusinessDelegate or similar.
   
   Also, since I leverage the ARP framework for Flash apps quite a
 bit, I like the idea of instantiating Commands as they're needed, not
 when the Controller is instantiated -- while I didn't implement this in
 my first pass at the app, I'm probably going to introduce this in my
 next vr.
   
   And then there's the use of additional controllers. I usually
 introduce controllers into my app for the different MVC triads that
 require it -- while this can be seen as overkill, I sometimes like the
 granular control of smaller MVCs within my app. I took this away from
 large Flash apps, but I've found it's not as necessary in Flex. That
 being said, I've considered creating an additional controller here to
 handle the c lick event from the DataGrid, although it 

[flexcoders] Using Two returned Fields in a single DG Column.

2006-02-23 Thread Jeremy Rottman
I have a cfc function that I am using to search my db and it returns
results as a query. This works fine with my testing.

The issue that I have run into is. How I can use two returned db
fields in one dg column. 

Right now I am testing this.

mx:DataGrid x=10 y=67 id=ASDG click= width=85% height=65%
 mx:columns
mx:DataGridColumn headerText=Name columnName=FLD_FULLNAME
FLD_OAFULLNAME/
/mx:columns
/mx:DataGrid

The fields I am returning are FLD_FULLNAME AND FLD_OAFULLNAME.







--
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: Using Two returned Fields in a single DG Column.

2006-02-23 Thread Doug Lowder
Have a look at DataGridColumn.labelFunction in the docs.  You can 
specify a function for the column that returns a concatenation of 
your two fields.

Doug

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

 I have a cfc function that I am using to search my db and it 
returns
 results as a query. This works fine with my testing.
 
 The issue that I have run into is. How I can use two returned db
 fields in one dg column. 
 
 Right now I am testing this.
 
 mx:DataGrid x=10 y=67 id=ASDG click= width=85% 
height=65%
  mx:columns
   mx:DataGridColumn headerText=Name columnName=FLD_FULLNAME
 FLD_OAFULLNAME/
 /mx:columns
 /mx:DataGrid
 
 The fields I am returning are FLD_FULLNAME AND FLD_OAFULLNAME.








--
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] Flexbuilder 2B1: coercion error at package declaration, JSON

2006-02-23 Thread dhirshbe
When I try to compile with -strict, I get the error:
Implicit coercion of a value of type 'String' to an unrelated type 'int'

The line it refers to reads package packagename {

Any ideas?

Also: 
Is there a convenient way to create objects from JSON in AS3?  

  








--
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.0 and Flash 8

2006-02-23 Thread Stephane B.










Is there any way to get an application developed using Flex Builder
2.0 to be viewable with version 8 (not 8.5) of the player?









--
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] Your preference - Loader or createChild?

2006-02-23 Thread Anatole Tartakovsky





Roger,
Speaking of 
factories - I am missing something on object initialization when cloning 
instantiated classes - is it going to be possible in Flex 2 final? Something 
like this:
package {import 
mx.core.IFactory;import mx.utils.ObjectUtil;

public class ObjectClassFactory implements 
mx.core.IFactory {public var obj:Object;public 
function ObjectClassFactory(cloneFrom:Object) 
{super();obj = 
cloneFrom;}public function newInstance() : 
*{return 
(mx.utils.ObjectUtil.copy(obj));}}}

I do understand overhead - just want to capture 
"dynamically" built class and pass it through factory 
interfaces
Thank you,
Anatole Tartakovsky

 

  - Original Message - 
  From: 
  Roger 
  Gonzalez 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, February 21, 2006 12:46 
  PM
  Subject: RE: [flexcoders] Your preference 
  - Loader or createChild?
   createChild Good: seems to 
  execute more quickly than mx:Loader Bad: one huge 
  SWF  mx:Loader Good: multiple 
  SWFs Bad: seems to execute more slowly than 
  createChildWell, its certainly going to be a bit slower, since it 
  needs to pullstuff over the network and initialize it.I'll be 
  publishing examples at some point that demonstrates how to atleast make 
  the things you load much more efficient.I actually don't think 
  mx:Loader is necessarily the best way to pullthem in. I've built a 
  new class that uses the underlying Flash Loaderclass to load modules as a 
  class factory. This way you can choreographwhen they get pulled in a 
  bit better.Stay tuned.-rg





--
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] Flex Coldfusion

2006-02-23 Thread Dekayd Media Inc.
How are you reading data from ColdFusion?

If you are using CFC's connected to remote objects then you can already
easily do everything you mentioned.

Once you have a remote object tag in flex pointing to a CFC you can any of
its methods just like you could using cfinvoke. 

There is a working example of an upload form that you can incorporate into
flex. It probably won't work with Flex 2 though but you could open it in a
new window.

Uploading is easy. You do it just like you would from an html form posting
to a coldfusion page.



Have fun

--Kelly



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of christopherjdunn
Sent: Thursday, February 23, 2006 7:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex  Coldfusion

I'm new to Flex and have been looking to start playing with it. I'm
looking to interface with CF. So far i have only seen examples on how
to get data from CF. Can Flex be used to send data to CF? Example:
Photo browser, user Flex to create an interface to select a photo to
upload, enter a discription, etc the CF uploads the photo and writes
the info to a DB.

Any pointers would be great, also, i'm using CF 7.0.1 Standard. I have
an sample app working that can read data just fine.

Chris





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



 




--
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] Strange Error on compiling Flex-2 project

2006-02-23 Thread Matt Chotin










On your remote object try setting
makeObjectsBindable=false. Maybe its one of our known bugs? Otherwise this
doesnt make sense without seeing it in action.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jignesh Dodiya
Sent: Thursday, February 23, 2006
2:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange
Error on compiling Flex-2 project







Matt,











Yes, the value my_cb.selectedIndex
is a integer value and is not -1
, its sure...coz this value gives me the auto increament ID value from
themysql database table...and accordingly i store this value to other
database, and i get the perfect result. 











Infact thethere is no
effect of this runtime error dialog box, either i cleak DismissAll or do
click Continue,my program working perfect ok,
justi want is to eliminate the runtime error dialog box, and for that i
am not getting the sollution 











thanks,





jignesh













On 2/23/06, Matt Chotin [EMAIL PROTECTED] wrote:




Are you sure that my_cb.selectedIndex is returning a value
that is not -1? 











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Jignesh Dodiya
Sent: Wednesday, February 22, 2006
1:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange
Error on compiling Flex-2 project









Thanx,
for clarifying my fundas regarding runtime Error..











Matt,











I m
trying to retrive the data from the mySQL database in Flex through
AMFPHP...some part of code is as below...











function
onResult(event:Object):void{





var
array_id:Array = []; 
var array_cat_name:Array = [];

 var a:Array
= event.serverInfo.initialData; 
 var len:int
= a.length;
for(var i:int=0; ilen; i++)
{

var o:Object = {}; 

var item:Array = a[i]; 

o.id = item[0]; 

o.cat_name = item[1];

array_id.push( o.id);
array_cat_name.push( o.cat_name);
 }

var
ac_id:ArrayCollection = new ArrayCollection(array_id);
bb =
ac_id[my_cb.selectedIndex]; 





}











i got
that the codes in Bold is creating the runtime error .but i m using the
variable bb to
somewhere else in codes just out of this function











Is there
other alternatiove to eliminate runtime error? i can't got the fault ?











regards,











jignesh












On 2/22/06, Matt
 Chotin  [EMAIL PROTECTED] wrote:





What is
your onResult function trying to do? This is considered a

runtime error by the way, not compilation.
This error looks like you 
have an ArrayCollection or XMLListCollection and
tried to read a 
property off of it like
myCollection[someBadValue].

Matt 





-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Jignesh M. Dodiya 
Sent: Tuesday, February 21, 2006 3:32 PM 
To: flexcoders@yahoogroups.com

Subject: [flexcoders] Strange Error on compiling Flex-2 project

Hi,
when I am compiling the codes in mxml,
i found the Error as below..

ActionScript Error has occured::

Error: Unknown property -1
 at 
mx.collections::ListCollectionView/ http://www.macromedia.com/2005/actio
nscript/flash/proxy::getProperty()
 at states/states::onResult() 


Strange thing is that when I click on button like CONTINUE...the 
swf file works fine and when click on button DISMISS ALL..instead 
of stopping the functionality of swfit still works fine as 
normal..Confused.

Is anybody has idea of how to eliminate that error,

regards,

Jignesh







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










--

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. 





















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

RE: [flexcoders] Error on tree folder (Flex:2.0 b1)

2006-02-23 Thread Matt Chotin
This is probably a known bug but I'll forward it on.  Not sure if
there's a workaround.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sourcecoderia
Sent: Thursday, February 23, 2006 7:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error on tree folder (Flex:2.0 b1)

Hello all;

I'm getting a error that i can't seem to trap when dragging an item 
into a folder that has no child items yet. The tree uses a 
XMLListCollection for a datasource. If there is at least one item
(leaf) it works fine.

Has anyone noticed any issue here, and/or a possible solution?
 

TypeError: Error #1006: Call attempted on an object that is not a 
function.
at mx.controls::Tree/mx.controls:Tree::updateDropData()
[C:\dev\beta1\sdk\frameworks\mx\controls\Tree.as:2003]
at mx.controls::Tree/showDropFeedback()[C:\dev\beta1
\sdk\frameworks\mx\controls\Tree.as:815]
at mx.controls::Tree/dragOverHandler()[C:\dev\beta1
\sdk\frameworks\mx\controls\Tree.as:2252]
at flash.events::EventDispatcher/dispatchEvent()
at C:\dev\beta1
\sdk\frameworks\mx\collections\ClassicSort.as$544::DragProxy/mouseMove
Handler()[C:\dev\beta1\sdk\frameworks\mx\managers\DragManager.as:860]







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



 




--
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: createChild and destroyChild

2006-02-23 Thread Matt Chotin
Declare a variable in comp2 of type integer.  Then simply set it on the
created child with the counter value.  When you delete you simply pass
that back through.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rgwilson26
Sent: Thursday, February 23, 2006 8:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: createChild and destroyChild

Thanks Matt, that worked great! However, I am creating a new 
component with my add function. That component is an HBox with 
various text inputs and a delete button to handle a delete function 
for that particular HBox. How do I get the newly created component to 
recognize what number it is in the array and to delete itself? Do I 
need to dispatch the position in the array from the first component, 
handle it in the 2nd component, call a delete function then dispatch 
that result back to the 1st component? Or, is there a better way to 
get this functionality?


***
comp1:
***
 ?xml version=1.0? 
mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; 
 
 mx:Script
 ![CDATA[
var rowArray : Object = new Array() ;
var counter : Number = 0 ;


 private function addRow():Void
 {
 rowArray[counter] = comp2(HBox.createChild(comp2));
 counter++;
}

 public function deleteRow():Void{  //-- this function does not work
 
 if(rowArray[counter]  0){
 this.destroyChild(rowArray[counter -1] );
 counter--;
 }
 }

 ]]
 /mx:Script

 mx:Button label=Add width=60 click=addRow();/
 
 mx:FormItem textAlign=left id=formItem
 mx:HBox
 mx:TextInput id=txtRCAParticipants width=150/
 mx:TextInput id=txtTitle width=150/   
 
 mx:Button label=Delete click=deleteRow(); /
 /mx:HBox
 /mx:FormItem
 /mx:Form

***
comp2: --- component being created from add function
***
public function deleteMe(){
  //delete this object instance in the array 
}



mx:HBox height=25 xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
mx:TextInput id=txtRCAParticipants1 width=150 text= /
mx:TextInput id=txtPhoneNumber1 width=150 text= /
mx:Spacer width=20 /
mx:Button label=Delete click=deleteMe()  textAlign=center /
/mx:HBox





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

 I think that if statement should be
 
 if (counter  0)
 {
   this.destroyChild(rowArray[counter-1]);
   counter--;
 }
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of rgwilson26
 Sent: Tuesday, February 21, 2006 8:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] createChild and destroyChild
 
 I am new to FLEX and am working on an app that allows the user to 
 dynamically create a FormItem w/ various text boxes dynamically 
from 
 a click event including a delete button in each form item that will 
 allow the user to delete that specific instance of the object. I am 
 able to create the FormItem using createChild, but don't know how 
to 
 get destroyChild to work for a specific object. I am guessing you 
 must reference this when referring to the specific FormItem 
object, 
 but not sure of the correct syntax.
 
 Note: In my code my add function calls a component I have created 
 (Start_New_Event.Components.Entry) 
 
 
 Here is what I have:
 ***
 Main.mxml
 **
 ?xml version=1.0? 
 mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; 
 
 mx:Script
 ![CDATA[
   var rowArray : Object = new Array() ;
   var counter : Number = 0 ;
   
   
 private function addRow():Void
 {
 rowArray[counter] = Start_New_Event.Components.Entry
 (formItem.createChild(Start_New_Event.Components.Entry, undefined, 
 null ) );
 counter++;
   }
   
 public function deleteRow():Void{  //-- this function does not work
 
 if(rowArray[counter] != 0){
 this.destroyChild(rowArray[counter -1] );
 counter--;
 }
 }
   
 ]]
 /mx:Script

 mx:Button label=Add width=60 click=addRow();/
 
 mx:FormItem textAlign=left id=formItem
 mx:HBox
 mx:TextInput id=txtRCAParticipants width=150/
 mx:TextInput id=txtTitle width=150/  
 
 mx:Button label=Delete click=deleteRow(); /
 /mx:HBox
 /mx:FormItem
 /mx:Form

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







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



 




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

RE: [flexcoders] Flex2 :: TileList :: ScrollBar

2006-02-23 Thread Matt Chotin










Try setting direction to horizontal. With
the direction vertical if you had more than one column youd see it go
down first and then right which means extra stuff goes off to the right. In
the horizontal case you go right and then down, so the extra stuff goes off the
bottom and the scrollbar should be correct.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Teoti Graphix
Sent: Thursday, February 23, 2006
1:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 ::
TileList :: ScrollBar





Hello,

This just seems like a dumb question but, I have the code below;

[code]

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml
xmlns=* 
 layout=vertical 
 creationComplete=addHoldsToList();

 mx:Script
  ![CDATA[
   import HandHold;

   var dp:Array = 
   [
   
{name:HandHold 1,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 2,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 3,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 4,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 5, source:images/icon_projectsLarge.png},

   
{name:HandHold 6,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 7,
source:images/icon_projectsLarge.png}, 
   
{name:HandHold 8, source:images/icon_projectsLarge.png},

   
{name:HandHold 9,
source:images/icon_projectsLarge.png},
   
{name:HandHold 10,
source:images/icon_projectsLarge.png},
   
{name:HandHold 11,
source:images/icon_projectsLarge.png},
   
{name:HandHold 12,
source:images/icon_projectsLarge.png},
   
{name:HandHold 13,
source:images/icon_projectsLarge.png},
   
{name:HandHold 14,
source:images/icon_projectsLarge.png},
   
{name:HandHold 15,
source:images/icon_projectsLarge.png}
   ];
   
   public function
addHoldsToList()
   {
   }
   
  ]]
 /mx:Script
 
 mx:Panel width=750 height=600
layout=absolute
 
  mx:TileList x=10
y=10 height=549 width=200 
  
dataProvider={dp} 
  
direction=vertical 
  
id=holdList 
  
listItemRenderer=HandHold 
  
columnCount=1 
  
selectedIndex=2
  /mx:TileList
  
 /mx:Panel
 
/mx:Application

[/code]


Why is the vertical scrollbar not showing? There is defintely enough items in
the dp to register the scroll bar.

If I ture vScrollPolicy to on, the scroll bar is there but no setScrollProperties(0
has been called on it?

Any thoughts?

Peace, Mike








--
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] Flexbuilder 2B1: coercion error at package declaration, JSON

2006-02-23 Thread Matt Chotin
I think there must be another problem in your file and the compiler just
can't line it up correctly.  Can you break the file down further and see
what happens?  I'm assuming you did this in an AS file and not MXML?

As for JSON I don't think anyone has tried it yet.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dhirshbe
Sent: Thursday, February 23, 2006 3:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flexbuilder 2B1: coercion error at package
declaration, JSON

When I try to compile with -strict, I get the error:
Implicit coercion of a value of type 'String' to an unrelated type 'int'


The line it refers to reads package packagename {

Any ideas?

Also: 
Is there a convenient way to create objects from JSON in AS3?  

  








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



 




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