[flexcoders] SliderThumb / Canvas Movement Syncronization

2006-10-28 Thread Tim Hoff



Hi all,
I havea VSlider control that uses a custom sliderThumbClass (Image). In the same view as the VSlider, thereis a small Canvas that I want to move up and down; right along side of the SliderThumb. I've banged on it for a while, but haven't found the right approach to syncronize the vertical movement of the SliderThumb and the Canvas. Any ideas?
Thanks,-TH__
Tim HoffCynergy Systems, Inc.http://www.cynergysystems.comOffice: 866-CYNERGY

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] Re: TextField causes other graphics to bounce off

2006-10-28 Thread coldfusionpaul
--- In flexcoders@yahoogroups.com, Paul Hastings [EMAIL PROTECTED]
wrote:

 i'm adding TextFields at various user chosen points on an image, works
 fine. the app also requires other graphics (lines, etc.) to be drawn
 on the image as well. the trouble is that once a TextField takes up a
 spot on the image, any graphics drawn over the text bounces off it
 (it looks like the coord system is set to the TextField object instead
 of the parent image object, so the graphics coords for those areas are
 0 or near 0). i've added the text to a Sprite  added that as a child
 of the main image w/the same results.

still getting nowhere on this, i've put up an example w/source
illustrating the issue here:

http://www.sustainablegis.com/projects/flex/drawingTest/

mouse down to draw, drop text on the image. throw some text on the
image, then try to draw over it to see the issue.

maybe someone can offer advice?

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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: ContextMenuEvent on BarSeries - how can I access the item that was clicked o

2006-10-28 Thread Brian Dunphy



Awesome, thanks Thunder!I guess sometimes you just get buried in the API docs, I was sure I looked everywhere. :)Will keep you guys posted.Thanks again,Brian
On 10/27/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote:













  



Hey guys,

I do something similar with our charts. The ITEM_ROLL_OVER event has
everything you need... just add like so:

chart.addEventListener(ChartItemEvent.ITEM_ROLL_OVER, hoverChartData);

and in the ChartItemEvent class there is a hitData property...

good luck! I'm interested to hear if you get something working =)

Thunder

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

 I thought about that as well. I also thought about having a rollOver or
 mouseOver event on the bar series, and when the user hovered over a
 BarSeriesItem, I thought you could set a temporary variable with the
 hitData, and then when they right clicked on the context menu, you would
 know which one they are referring to.
 
 I think the first idea holds more potential, as I could not find a
way to
 get the hitData from the rollOver method either.
 
 I will definitely keep this thread updated with my progress as I do
with all
 of my other questions on here... which I usually answer myself a few
minutes
 later :)
 
 Cheers,
 
 Brian
 
 On 10/27/06, cdhbookingedge [EMAIL PROTECTED] wrote:
 
Not an answer, more of me commiserating with you. I ran into the
same
  thing and spent a bit investigating it. Essentially it seems that
  it's
  (as you stated) that the series not the bar that gets and passes on
  the
  context menu call. I've got a message up on Actionscript.org asking
  around about it and if I hear anything I'll pass it on. And would be
  pleased if you would do likewise.
 
  Here's a kind of klugey idea I've been thinking about off and on in
  my
  head. If there is someway to tell where (x,y) the click was performed
  that brought up the context menu then a call to findDataPoints could
  be
  made and therefore you'd have a hitdata. But I've not really done any
  work on devising a way to figure that out.
 
  Sorry I couldn't be of more help. Hopefully one of us will come up
  with
  an answer or workaround and pass it on.
 
  Christopher
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  klumikaze briandunphy@
  wrote:
  
   I've got a BarChart component with one series attached to it. I've
  got
   a ContextMenu (with one custom ContextMenuItem) attached to that
   series. When I right click on one of the items in the series, and
   click my custom menu item, as far as I can tell the
  ContextMenuEvent I
   can't figure out how to access the particular item that was right
   clicked on.
  
   Note: My BarChart has my dataProvider associated with it, not the
   BarSeries.
  
   Any ideas?
  
   Thanks in advance,
  
   Brian
  
 
   
 
 
 
 
 -- 
 Brian Dunphy



  













-- Brian Dunphy

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] Autoscrolling Text

2006-10-28 Thread Pascal Schrafl
Hi all,

I wanted to ask, if somebody can let me know, how I can create a 
autoscroll text. As I will have a fixed screen size, I would like to 
display the text in a textbox, and check the text, if it surpasses a 
certain length. If the complete text can not be displayed in the textbox 
(as it is too small), I would like to create an automatic scrolling 
text, that just scroll the text down and then starts again. If the 
autoscrolling is too complicated, could I somehow implement a listender, 
that reacts on a mouse click on the textbox and then displays the next 
portion of the text?

Thanks a lot for your tipps.

Best regards,


Pascal


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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] += operator is changing the encodings

2006-10-28 Thread Luis Eduardo


  wow gordon!
  i am completly newbie on flex but understood perfectly your explanations!

  this should be putted on the help of += operator  :)

  thank you very much dude!


  []'s

   Luís Eduardo



Gordon Smith escreveu:

 You're running into a difference between an XMLList (a built-in E4X 
 type, along with the XML type) and XMLListCollection (a Flex framework 
 type).

  

 If the right-hand-side (RHS) of the E4X += operator is an XML instance 
 or an XMLList instance, it inserts children as you are expecting.

  

 For example, suppose var x:XML = ab//a.

  

 Then x.b += c/ sets x to ab/c//a. (This is the case where 
 RHS is an XML instance.)

  

 And x.b += c/c// sets x to ab/c/c//a. (This is the 
 case where RHS is an XMLList instance.)

  

 (Note that you can't write an XMLList literal as c/c/; it doesn't 
 compile. You  wrap the nodes of the list between  and /.)

  

 However, if the RHS is any other type, then it calls toString() on the 
 RHS and inserts it as text, not as child nodes.

  

 For eample, x.b += foo sets x to abfoo/b/a.

  

 You can't have  and  in XML text, so they get converted to the XML 
 escape entities lt; and gt;

  

 For example, x.b += c/ sets x to ablt;c/gt; /b/a.

  

 Since E4X doesn't know about XMLListCollection, it treats it like any 
 other type and converts your XMLLC to a string and then escapes it. I 
 don't know of any way to directly convert an XMLListCollection to an 
 XMLList without looping over the items, which is similar to what 
 you're doing extract one XML from the XMLListCollection at a time.

  

 - Gordon

  

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Luis Eduardo
 *Sent:* Wednesday, October 25, 2006 12:33 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] += operator is changing the encodings

  



 Igor,

 thx for your answer, but i think something isnt clear...

 my problem is on the += operator in this line of code:

 xgravar.root.request += XMLLC;

 the XMLLC object is declared as:

 mx:XMLListCollection id=XMLLC
 collectionChange=collectionEventHandler(event)/

 and have, at the time this line of code fire, the follow XML

 TipoVeiculo Id=1 Nome=Moto Descricao=desc
 TipoVeiculo Id=2 Nome=Carro Descricao=desc
 TipoVeiculo Id=3 Nome=Caminhao Descricao=desc
 TipoVeiculo Id=4 Nome=Aviao Descricao=desc

 just that. (without a root node).

 the root node is at xgravar.request.

 but, when i do:

 xgravar.root.request += XMLLC;

 and after Alert.show(xgravar.toXMLString()) the code is changed to:

 ds
 root
 request
 ltTipoVeiculo Id=1 Nome=Moto Descricao=descgt
 ltTipoVeiculo Id=2 Nome=Carro Descricao=descgt
 ltTipoVeiculo Id=3 Nome=Caminhao Descricao=descgt
 ltTipoVeiculo Id=4 Nome=Aviao Descricao=descgt
 /request
 /root
 /ds

 i have made a workaround for this with the follow code:

 for each( var item : XML in XMLLC ) {
 XML(xgravar.root.request).appendChild(item);
 }

 but i think that the += operator SHOULD do the same thing WITHOUT
 changing the  and  simbols.

 dont you agree?

 best regards to you!

 Luís Eduardo.

 Igor Costa escreveu:

 Hi Luiz


 Isn't the operator that's wrong, you just missed out how to pass
 String and concatening in both side of wall.

 Check out this heck of how could be done.

 public function myList():void
 {
 var myXML = new
 XMLList(dsRQrootrequest//root/dsRQ);
 szCommand = insert;
 if( [EMAIL PROTECTED] = szCommand == true)
 {
 Alert.show(xgravar.toString());
 }
 else {
 Alert.show(xgravar);
 }
 }


 The problem is, you are trying to convert an object twice in time in
 the same function, that's why the problem happens. if you put anything
 in braces  than you convert to string, the compiler intend to
 undrestand that, ok the users now want to convert that cacharecter.


 Regards.

 szCommand = insert;
 [EMAIL PROTECTED] = szCommand;

 Alert.show(XMLLC.toXMLString()); // OK here. all  and 
 works fine

 xgravar.root.request += XMLLC;

 Alert.show(xgravar.toXMLString()); // ERROR here.  and 
 converted to lt and gt
 }







 On 10/24/06, *Luis Eduardo* [EMAIL PROTECTED] 
 mailto:illogic_code%40yahoo.com.br
 mailto:[EMAIL PROTECTED] 
 mailto:illogic_code%40yahoo.com.br wrote:


 hi,

 In my app, when i use the += operator, the data inside xmls turns
 with
 diferent encoding.
 The  and  caracters become wierds like lt and gt respectively.

 How can i fix this?

 this is the code:

 public function doGravar():void {
 var xgravar:XMLList = new
 XMLList(dsRQrootrequest//root/dsRQ);

 szCommand = insert;
 [EMAIL PROTECTED] = szCommand;

 Alert.show(XMLLC.toXMLString()); // OK here. all  and 
 works fine

 xgravar.root.request += XMLLC;

 Alert.show(xgravar.toXMLString()); // ERROR here.  and 
 converted to lt and gt
 }

 where XMLLC : XMLListCollection and szCommand : String.
 The first Alert will show correct data but the second will show
 caracters converted.

 regards,

 

[flexcoders] Re: reorder datagrid columns

2006-10-28 Thread dzeitman
Hey,

If all you want to do is organize the column order you can manually 
set up columns in the appropriate order.  

The flex docs show a way to hide and show columns, so assuming they 
are in the right order that would work.

Essentially you name each column with an ID and then toggle the 
visibity.

Otherwise, you could use an addChild and removeChild in a method.  
Remember columns are just another object so just treat it that way.

Examples for the Docs:
Hiding and displaying columns
If you might display a column at some times, but not at others, you 
can specify the DataGridColumn class visible property to hide or show 
the column. The following example lets you hide or show the album 
price by clicking a button:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
mx:DataGrid id=myDG width=350 
mx:dataProvider
mx:ArrayCollection
mx:source
mx:Object Artist=Pavement Price=11.99 
Album=Slanted and Enchanted /
mx:Object Artist=Pavement 
Album=Brighten the Corners Price=11.99 /
/mx:source
/mx:ArrayCollection
/mx:dataProvider
mx:columns
mx:Array
mx:DataGridColumn dataField=Artist /
mx:DataGridColumn dataField=Album width=175 /
mx:DataGridColumn id=price dataField=Price 
visible=false/
/mx:Array
/mx:columns
/mx:DataGrid

!-- The column id property specifies the column to show.--
mx:Button label=Show Price click=price.visible=true; /
/mx:Application 


Example2:
Creating Children: (this case is a textarea, but you can define a 
column just as well)


// Declare two variables for the component children.
private var text_mc:TextArea;
private var mode_mc:Button;

override protected function createChildren():void {

// Call the createChildren() method of the superclass.
super.createChildren();

// Test for the existence of the children before creating them.
if (!text_mc) {
text_mc = new TextArea();
text_mc.explicitWidth = 80;
text_mc.editable = false;
text_mc.addEventListener(change, handleChangeEvent);
// Add the child component to the custom component.
addChild(text_mc);
}

// Test for the existence of the children before creating them.
if (!mode_mc) {
mode_mc = new Button();
mode_mc.label = Toggle Editing;
mode_mc.addEventListener(click, handleClickEvent);
// Add the child component to the custom component.
addChild(mode_mc);
}
}



More detail on the datagrid column:

The DataGridColumn class describes a column in a DataGrid control. 
There is one DataGridColumn per displayable column, even if a column 
is hidden or off-screen. The data provider items of a DataGrid 
control can contain properties that are not displayed and, therefore, 
do not need a DataGridColumn. A DataGridColumn allows specification 
of the color and font of the text in a column; what kind of component 
displays the data for the column; whether the column is editable, 
sortable, or resizeable; and the text for the column header. 








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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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 - performance issues with large BarChart quantities and a minimum

2006-10-28 Thread Chris



Hello - Thanks for taking the time to read this posting. I have found an issue with BarChart performance. If this problem is already known please guide me to a bug # so that I can track the issue.I have found that if I am charting quantities in the thousands and tens of thousands value range *and* I set a minimum y-axis value, performance is horrible. If I remove the minimum value, performance is just fine.I definitely need the minimum value functionality in order to display the data properly because with out the minimum value set, the lower value bar chart column appears to be zero.The sample application below is an example of poor performance.thank you-chris?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" mx:Script ![CDATA[[Bindable] private var dataSource:XML = root level x="1001" y="Chris Services" DataSet DisplayTitle="Customer" AmountDataType="Numeric" PlotValue Period="2006-04-21 11:41:13" Amount="42330"/ PlotValue Period="2006-04-22 11:41:13" Amount="47338"/ PlotValue Period="2006-04-23 11:41:13" Amount="42279"/ PlotValue Period="2006-04-24 11:41:13" Amount="48336"/ PlotValue Period="2006-04-25 11:41:13" Amount="54334"/ PlotValue Period="2006-04-26 11:41:13" Amount="53222"/ /DataSet  /level/root;   ]]  /mx:Script  mx:BarChart id="barchart" height="80%" width="80%"   visible="true" showDataTips="true"dataProvider="{this.dataSource.level.DataSet.PlotValue}"  mx:horizontalAxis   mx:CategoryAxis categoryField="@Period"/ /mx:horizontalAxis mx:series  mx:ColumnSeries id="columnSeries" yField="@Amount"/ /mx:series mx:verticalAxis  mx:LinearAxis minimum="0" interval="1"/ /mx:verticalAxis /mx:BarChart/mx:Application

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] mm.cfg where is this file?

2006-10-28 Thread tickaellem
I am trying to get some flex/cf debug happening? 

mm.cfg where is this file? 
I cant find this file on my system anywhere. 


can someone please post the required syntax? 


thanks in advance. 

Ticka





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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: datagrid and dataField

2006-10-28 Thread Luis Eduardo


  Michael,

  i subclassed the datagrid and the datagridcolumn because i saw too 
much issues being resolved on this way. (unfortunately).
  i dont know much flex neither actionscript, but i read a lot on 
documentation and tried a lot of tests. Spent 4 hours on this trying to 
do the right thing instead of traversing by hand the datapath of the 
xml...
  but damn !!!  actionscript is too much temperamental! clearly a 
limitation (not a bug) that only root nodes can be evaluated with []s.
  is there any place which we can ask for this feature to adobe?  would 
be great!

  but...  in mean time...  thank you very much for your help bro!

  my code, inside the extendes class become (with proper credit ;)



override public function itemToLabel(data:Object):String {
if (!data)
return  ;
   
if (labelFunction != null)
return labelFunction(data, this);
   
if (owner.labelFunction != null)
return owner.labelFunction(data, this);
   
if (typeof(data) == xml) {
data = deriveComplexColumn( data,  dataField ).toString();
}
   
if (typeof(data) == object) {
try{
data = data[dataField];
}
catch(e:Error) {
data = null;
}
}
   
if (data is String)
return String(data);
   
try {
return data.toString();
}
catch(e:Error) {
}
   
return  ;
}
   
// function from Michael Labriola from Flexcoders mail list
protected function deriveComplexColumn( data:Object, 
complexFieldName:String ):Object {
var dataPtr:Object = data;
var complexName:Array = complexFieldName.split( '.', 10 );
   
for each ( var key:String in complexName )dataPtr = 
dataPtr[ key ];
return dataPtr;
}
---

the bad thing is that now sorting on the datagridcolumn doesn't work 
anymore...  and need to be made by hand again...
argh!
will just wait for the client ask for this.  ;)

  best regards!

Luís Eduardo.



Michael Labriola escreveu:


 You are correct. By default the dataField on DataGridColumn only goes
 to the root level of the structure you are passing.

 If you are feeling a little ambitious, you can subclass dataGridColumn
 and do something like this:

 protected function deriveComplexColumn( data:Object,
 complexFieldName:String ):Object
 {
 var dataPtr:Object;

 dataPtr = data;

 var complexName:Array;
 complexName = complexFieldName.split( '.', 10 );

 for each ( var key:String in complexName )
 {
 dataPtr = dataPtr[ key ];
 }

 return dataPtr;
 }

 Then in your itemToLabel method, you can replace this:

  try
  {
  data = data[dataField];
  }

 with this:
 try
 {
 data = deriveComplexColumn( data, dataField );
 }

 ...If you don't want to make your own subclass of dataField, then you
 could do the same thing with an itemRenderer or a labelFunction.

 So:

 public function myLabelFunc( row:Object, column:DataGridColumn ):String {
 return deriveComplexColumn( row, column.dataField ) as String;
 }

 Have fun,
 Mike

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Luis Eduardo [EMAIL PROTECTED] 
 wrote:
 
 
  yeah... i guess too that if the xml had another format it should
 work...
  but it can't have another format... :(.
  the servlets are coded already and they return a xml that have the
  format i presented on this sample.
  not the same data, but this is the format.
 
  i search inside the DataGridColumn.as code and find a function named
  itemToLabel that have this portion of code:
 
  if (typeof(data) == object || typeof(data) == xml)
  {
  try
  {
  data = data[dataField];
  }
  catch(e:Error)
  {
  data = null;
  }
  }
 
  so, i guess that this way of getting data from a XML (using brackets)
  only can fetch one level of info on the xml format. Not inside his
  childrens.
  in the end, this line of code will probably be evaluated to this:
 data
  = [EMAIL PROTECTED]
  To me, this is a bug or, being optmistic, a limitation.
 
  can someone confirm that? Tracy? Gordon? anyone?
 
 
 
 
  thunderstumpgesatwork escreveu:
 
   Hi,
  
   my guess is that your dataField cannot support the complex
   [EMAIL PROTECTED]... it should be just a single field name.
  
   To me the XML makes more sense (and is simpler) like this:
  
mx:XMLList id=employees
employee Id=1 gender=female
nameChristina Coenraets/name
/employee
employee Id=2 gender=male
nameMaurice Smith/name
/employee
/mx:XMLList
  
   this makes your dataField just 

Re: [flexcoders] Can form field values be remembered between forward/back button press?

2006-10-28 Thread Michael Bedar


Do you have a session variable that you could use to tell if data in the local shared object was current?  If not you could just use a timestamp...  On Oct 27, 2006, at 9:31 PM, andrewstuartblah wrote:Hello,We've designed our application to be many small flex apps embedded inHTML pages.If the site was pure HTML then field values would be remembered as theuser clicks forward and back.The BIG problem we have is that field values are forgotten betweenforward and back.Is there a clean way to implement this? We could store field values ina shared object but it gets messy when trying to work out exactly howto know if this page has been loaded as a result of forward/back.Any help much appreciated.ThanksAndrew
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___


[flexcoders] Re: datagrid select to change query result in other datagrid

2006-10-28 Thread dzeitman
You could do a basic drill down scenerio, or simply filter the 
records.

Use Drill down:
Data A:
A list of agents and other stuff, and ID

Data b: 
A more detailed view of a Typically a single record. But not only.
The details could be a list of tickets for that agent.  Basically the 
second list needs to contain a foriegn key of the agent id. 


Use a filter if all you want to do is refine the results and not look 
at additional details.

Client side filtering is easy,  check out dev net or docs for 
examples.

Process:

Load the data
Store the data (arraycollection works nicely)
Display data (in a grid)
Setup another control (combo) to display a distinct list of agents.
That combo's dataprovider could be from a select distinct in sql 
and a second remoting call. Or do what I like to do, copy the 
original data to array and filter the list down to a single record 
per agent. 

Now you have a distinct list of agents and ids, and the user can 
select an agent, call another method to filter the main data 
collection.

I will tell you I searched flex blogs for weeks to find the equiv of 
a select distinct filter.  I did not have any luck.  So I was able to 
find a javascript code snip that did the task.  My big tip is this, 
if you can't find a method in the native language, look at other 
languages and see how it's done.  Javascript has the same kinds of 
datatypes (ie ARRAYS, lists) and similar methods,  split, join etc.

Just find a snip that works there and update the syntax to 
actionscript.

Learn how filters work, they are essential for managing RIA's, as 
they can save a ton of trips back and forth from the server.

Good luck.






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

 Basic question...I think...
  
 
 I have a grid of agent name and a grid of tickets.  I'd like 
the user
 to select an agent and filter the tickets down to just the selected
 agent's tickets.
 
 
 I'm using remoteobject talking to a Cold Fusion CFC.  I'm new to AS
 and I'm trying to learn how to pass the selected agent name to the
 query and return the new results to the ticketgrid.
 
 
 In general, What do I add to the MXML in the agentgrid?
 
 In general, What Actionscript do I need?
 
 
 I think I see how to modify the CFC side, but not the Flex Builder 2
 MXML/AS side.
 
 
 If this is not the best way to do this, I'm open to suggestions.
 
 Thanks,
 
 Don







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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] flex2ant

2006-10-28 Thread flex2ant
Hi list,

Now Flash player 9 (beta) for Linux has been released we can finally
develop Flex 2 and AS3 apps on Linux. I've been putting in a lof of
effort in the past week to create flex2ant.

With flex2ant you can develop Flex2/AS3 apps from within Eclipse. All
you need is the Flex 2 SDK, Eclipse and flex2ant and off you go.

If you are interessed in this type of development then please go over
to  http://www.flex2ant.org and download the latest release.

regards,
Luke






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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] A web survey based on Flex

2006-10-28 Thread advantexllc
I posted this on the Adobe web forum, but I think I'll have better 
luck posting here.

I am a newbie to flex... using flex 2 builder and cfmx 7.0.2.  I have 
my first project to be done in flex --  a fairly large web survey.

So far I've built the UI using a ViewStack... each canvas has one or 
more related questions.  There's a previous/next button row at the 
bottom, and I eventually need it to work in such a way as to not 
allow NEXT to be clicked unless all fields on the canvas are filled 
in.

My MXML file is huge, but one design goal I had was to have the 
entire survey be loaded by the user, and not communicate with the 
server again until the user has made choices on all fields and is 
ready to submit.  This way, I'm hoping I can try to capture the data 
in the event that the user has an internet problem and let them try 
again or save their choices to an XML file and either email it or 
upload it later when they are back online.  This is a nice thing to 
do for the user, since the survey is so long.  I just want to prevent 
the survey from being interrupted, since it's so long. If the entire 
survey is loaded when the person loads the swf, and I can just 
attempt to send one survey object back to the server at the end, I 
can trap errors and provide another route to go.

I was going to use mx:Form to build the forms on each ViewStack 
Canvas... one form for each canvas, but still all bound to a single 
Survey object, as follows...

So then I created a Survey.xml file that I was going to use with 
mx:Model, and try to simply create an xml tree representing a Survey 
object, it's metadata (startDateTime, endDateTime, IP address, 
etc.), and it's questions and answers.  My thought was that I could 
populate this Survey object as the user progressed through the 
ViewStack, and then send the entire object to the server when 
complete, and if that failed, ask them to try again or offer to save 
the XML file to their system for later upload or emailing.

Is this a reasonable way to proceed?  What are the pitfalls?  Is 
there something different I should be considering?

Thanks,

M





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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: DataGrid not displaying nested data

2006-10-28 Thread Luís Eduardo


  did u found the solution?  i am running on the same problem here.




Luís Eduardo.




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

 I have a Rails App that produces XML data in the structure:
 
 price_sets
   price_set
 id56/id
 start_date2006-11-25/start_date
 statusO/status
 store_set
   id528/id
   nameSmall size Stores/name
 /store_set
   /price_set
 ..
 /price_sets
 
 The data is returned via a HTTPService:
 
 mx:HTTPService id=priceSetSummary useProxy=false method=GET
 url=http://localhost:3000/price_set/list;
   mx:request xmlns=
 vendor_id{vendorIdToUse}/vendor_id 
   /mx:request
 /mx:HTTPService
 
 I populate a DataGrid with this data:
   dataProvider={priceSetSummary.lastResult.price_sets.price_set}
 
 I have 2 columns in the grid:
   mx:DataGridColumn headerText=Start Date dataField=start_date/
   mx:DataGridColumn headerText=Status dataField=status/
 
 But the problem is when I want to add a column for the store set name
   mx:DataGridColumn headerText=Stores dataField=store_set.name/
 
 No values are displayed in this column.
 
 Using the FlexBuilder debugger, I can see that there is a value
 for the store set name.
 
 I noticed that the dataProvider for the grid is an array collection,
 could this be the problem. Do I need to have the data in Flex as an
 XMLList or XMLListCollection. How do you get the HTTPService result
 into XML for the grid.
 
 I admit I have tried different ways with XMLList etc, but do not get
 any data in the grid.
 
 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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: TextField causes other graphics to bounce off

2006-10-28 Thread luchi_bustos
Try to make the text field no selectable.
It's look like the coordinates of the mouse where translated to text
field relative cords.





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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] create a jpeg from a chart control?

2006-10-28 Thread mschumacher74
Hi friends,

I have a Flex 2 chart, one of the requirements for the project is to 
be able to create an image of the chart that the user may be able to 
save and/or paste into presentations etc.  At the MAX conf yesterday, 
I was told that BitMap is the class to use for this purpose.  However, 
I don't see the relevant API for this purpose.  

Could you please provide a sample piece of code to help me out.  

Thanks much in advance.

Khurram





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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Hi there

2006-10-28 Thread write2jaga
hi, 
i am new to this flex community and the software, i am doing a web
layout using flex. i have a doubt in placing a text input inside of
the menu bar. how can i achieve doing that? i would be grateful if you
could help me.

thank you.

regards
Jaga





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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Event viewer for Flex 2

2006-10-28 Thread dimalh
Hello !
 Do anyonew hear about Event viewer for Flex 2?

 Need understood why tool do not catch event.
  

-- 
Best regards,
  Laskojam




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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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 Tab order

2006-10-28 Thread gur_sukh
Hi,

In flex i have vbox with 4 TextInputs. when we tab through them after 
the last input the tab goes to InternetExplorer's  status bar, header 
and then the address bar before coming back to the first textinput. Is 
there a way that we can stop the tab from leaving the flex applicaiton 
and going to IE. I tried tabIndex but this doesn't hold it on to the 
component. Any help will be highly appreciated and if there is code 
then more better.

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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] create a jpeg from a chart control?

2006-10-28 Thread Andrew Trice













Take a look at this. It 
will show you how to get the BitmapData from any UIComponent. You can use 
the Jpg encoder class that is part of the corelib project on adobe labs to 
convert it to a jpg. Then use a remoteobject method to push the bitmap to 
your server (if that is what you are trying to do).

http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and

-Andy


From: flexcoders@yahoogroups.com on behalf of 
mschumacher74Sent: Sat 10/28/2006 2:27 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] create a jpeg from a 
chart control?




Hi friends,I have a Flex 2 chart, one of the requirements for the 
project is to be able to create an image of the chart that the user may be 
able to save and/or paste into presentations etc. At the MAX conf yesterday, 
I was told that BitMap is the class to use for this purpose. However, I 
don't see the relevant API for this purpose. Could you please provide a 
sample piece of code to help me out. Thanks much in 
advance.Khurram 



__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___










Re: [flexcoders] Hi there

2006-10-28 Thread Igor Costa



Hi there man.Just go to www.adobe.com/devnet/flex and than take a look at the Quick starts tutorials.RegardsOn 10/28/06, 
write2jaga [EMAIL PROTECTED] wrote:













  



hi, 
i am new to this flex community and the software, i am doing a web
layout using flex. i have a doubt in placing a text input inside of
the menu bar. how can i achieve doing that? i would be grateful if you
could help me.

thank you.

regards
Jaga


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] Re: Hi there

2006-10-28 Thread Tim Hoff



Hi Jaga,
You can place the TexInputcontrol, along side theMenuBar, inside a ControlBar.
-TH__
Tim HoffCynergy Systems, Inc.http://www.cynergysystems.comOffice: 866-CYNERGY
--- In flexcoders@yahoogroups.com, "write2jaga" [EMAIL PROTECTED] wrote: hi,  i am new to this flex community and the software, i am doing a web layout using flex. i have a doubt in placing a text input inside of the menu bar. how can i achieve doing that? i would be grateful if you could help me.  thank you.  regards Jaga

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] mm.cfg where is this file?

2006-10-28 Thread Prakaz



that file got you too :-)

You will never find that file in your system if you havent created it yourself.

You have to manually create that file. To see where you should create this file refer to livedocs,the folderwill differ depending on your OS : 
http://livedocs.macromedia.com/flex/2/docs/1528.html#179436

cheers!

P
On 10/28/06, tickaellem [EMAIL PROTECTED] wrote:





I am trying to get some flex/cf debug happening? mm.cfg where is this file? I cant find this file on my system anywhere. can someone please post the required syntax? thanks in advance. 
Ticka 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



[flexcoders] Convert Object to a Value Object

2006-10-28 Thread mvbaffa
Hi All,

This is pretty basic but I cannot find the problem. I have service 
that returns a userAccountVO. When I receive the result I am trying 
to convert the event.result, that is an Object, to UserAccountVO and 
I receive an error:

- Type Coercion failed: cannot convert [EMAIL PROTECTED] to 
com.mvb.boe.vo.UserAccountVO.

Well the code is very simple like this:

var userAccount: UserAccountVO = new UserAccountVO();
userAccount = UserAccountVO(event.result);

In another application I had the same problem but solved it 
assigning the properties one by one.

What is the problem 

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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: SliderThumb / Canvas Movement Syncronization

2006-10-28 Thread Tim Hoff



Nevermind,
I figured it out, but it was tricky. Because the VSlider is vertical, the x and y values of the SliderThumbare opposite. If interested, here's the tag.
mx:VSlider id="mySlider" change="myCanvas.move(0, -mySlider.getThumbAt(0).x+this.height-myCanvas.height-1)"/
-TH__
Tim HoffCynergy Systems, Inc.http://www.cynergysystems.comOffice: 866-CYNERGY
--- In flexcoders@yahoogroups.com, "Tim Hoff" [EMAIL PROTECTED] wrote:  Hi all,  I have a VSlider control that uses a custom sliderThumbClass (Image).  In the same view as the VSlider, there is a small Canvas that I want to move up and down; right along side of the SliderThumb. I've banged on it for a while, but haven't found the right approach to syncronize the vertical movement of the SliderThumb and the Canvas. Any ideas?  Thanks, -TH __  Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.com Office http://www.cynergysystems.comoffice/ : 866-CYNERGY

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



RE: [flexcoders] Convert Object to a Value Object

2006-10-28 Thread Shannon Hicks





Try assigning it via the "preferred" 
method:

userAccount = event.result as 
UserAccountVO;

Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of mvbaffaSent: 
Saturday, October 28, 2006 2:36 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Convert Object to a 
Value Object


Hi All,This is pretty basic but I cannot find the problem. I have 
service that returns a userAccountVO. When I receive the result I am trying 
to convert the event.result, that is an Object, to UserAccountVO and I 
receive an error:- Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to com.mvb.boe.vo.UserAccountVO.Well the code is very 
simple like this:var userAccount: UserAccountVO = new 
UserAccountVO();userAccount = 
UserAccountVO(event.result);In another application I had the 
same problem but solved it assigning the properties one by one.What 
is the problem Thanks in advance.
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.408 / Virus Database: 268.13.17/505 - Release 
Date: 10/27/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006
 


[flexcoders] Re: A web survey based on Flex

2006-10-28 Thread Michael Labriola

Overall it is not a bad way to proceed. The only place I might direct
you some place different is where you save to the local drive if the
server is unavailable.

For this part, I would suggest you take a look at a concept called
'Local Shared Objects'

Without knowing all of the details of your setup, I would suggest that
saving an XML file to their system without the help of a server is
going to be tricky if not impossible.

--Mike

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

 I posted this on the Adobe web forum, but I think I'll have better 
 luck posting here.
 
 I am a newbie to flex... using flex 2 builder and cfmx 7.0.2.  I have 
 my first project to be done in flex --  a fairly large web survey.
 
 So far I've built the UI using a ViewStack... each canvas has one or 
 more related questions.  There's a previous/next button row at the 
 bottom, and I eventually need it to work in such a way as to not 
 allow NEXT to be clicked unless all fields on the canvas are filled 
 in.
 
 My MXML file is huge, but one design goal I had was to have the 
 entire survey be loaded by the user, and not communicate with the 
 server again until the user has made choices on all fields and is 
 ready to submit.  This way, I'm hoping I can try to capture the data 
 in the event that the user has an internet problem and let them try 
 again or save their choices to an XML file and either email it or 
 upload it later when they are back online.  This is a nice thing to 
 do for the user, since the survey is so long.  I just want to prevent 
 the survey from being interrupted, since it's so long. If the entire 
 survey is loaded when the person loads the swf, and I can just 
 attempt to send one survey object back to the server at the end, I 
 can trap errors and provide another route to go.
 
 I was going to use mx:Form to build the forms on each ViewStack 
 Canvas... one form for each canvas, but still all bound to a single 
 Survey object, as follows...
 
 So then I created a Survey.xml file that I was going to use with 
 mx:Model, and try to simply create an xml tree representing a Survey 
 object, it's metadata (startDateTime, endDateTime, IP address, 
 etc.), and it's questions and answers.  My thought was that I could 
 populate this Survey object as the user progressed through the 
 ViewStack, and then send the entire object to the server when 
 complete, and if that failed, ask them to try again or offer to save 
 the XML file to their system for later upload or emailing.
 
 Is this a reasonable way to proceed?  What are the pitfalls?  Is 
 there something different I should be considering?
 
 Thanks,
 
 M






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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: Convert Object to a Value Object

2006-10-28 Thread Michael Labriola

2 more things to consider.

Not sure of your particular setup, but, you may want to look at the
[Managed] metadata tag. Setup dependent, it may be what you are
looking for.

Second, and more generally, casts fail when the system cannot convert
one type to another. So, take a look at your objects. You mentioned
setting the params one by one, a common technique is to build a static
method which accepts an Object and returns (by internally assigning
the properties) your value object.

Just a couple of thoughts,
--Mike




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

 Try assigning it via the preferred method:
  
 userAccount = event.result as UserAccountVO;
  
 Shan
 
_  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of mvbaffa
 Sent: Saturday, October 28, 2006 2:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Convert Object to a Value Object
 
 
 
 Hi All,
 
 This is pretty basic but I cannot find the problem. I have service 
 that returns a userAccountVO. When I receive the result I am trying 
 to convert the event.result, that is an Object, to UserAccountVO and 
 I receive an error:
 
 - Type Coercion failed: cannot convert [EMAIL PROTECTED] to 
 com.mvb.boe.-vo.UserAccountVO-.
 
 Well the code is very simple like this:
 
 var userAccount: UserAccountVO = new UserAccountVO(-);
 userAccount = UserAccountVO(-event.result)-;
 
 In another application I had the same problem but solved it 
 assigning the properties one by one.
 
 What is the problem 
 
 Thanks in advance.
 
 
 
  
 
 
 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date:
10/27/2006
 
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date:
10/27/2006






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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: datagrid and dataField

2006-10-28 Thread Michael Labriola

Luis,

I agree it would be a good feature. Just as an FYI, I submitted it
previously as a feature request to Adobe.

On a side note, next week I will be back at the office, and I will
post the solution to the sorting problem you had as well.

Mike


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

 
 
   Michael,
 
   i subclassed the datagrid and the datagridcolumn because i saw too 
 much issues being resolved on this way. (unfortunately).
   i dont know much flex neither actionscript, but i read a lot on 
 documentation and tried a lot of tests. Spent 4 hours on this trying to 
 do the right thing instead of traversing by hand the datapath of
the 
 xml...
   but damn !!!  actionscript is too much temperamental! clearly a 
 limitation (not a bug) that only root nodes can be evaluated with []s.
   is there any place which we can ask for this feature to adobe?  would 
 be great!
 
   but...  in mean time...  thank you very much for your help bro!
 
   my code, inside the extendes class become (with proper credit ;)


 
 
 override public function itemToLabel(data:Object):String {
 if (!data)
 return  ;

 if (labelFunction != null)
 return labelFunction(data, this);

 if (owner.labelFunction != null)
 return owner.labelFunction(data, this);

 if (typeof(data) == xml) {
 data = deriveComplexColumn( data,  dataField
).toString();
 }

 if (typeof(data) == object) {
 try{
 data = data[dataField];
 }
 catch(e:Error) {
 data = null;
 }
 }

 if (data is String)
 return String(data);

 try {
 return data.toString();
 }
 catch(e:Error) {
 }

 return  ;
 }

 // function from Michael Labriola from Flexcoders mail list
 protected function deriveComplexColumn( data:Object, 
 complexFieldName:String ):Object {
 var dataPtr:Object = data;
 var complexName:Array = complexFieldName.split( '.', 10 );

 for each ( var key:String in complexName )dataPtr = 
 dataPtr[ key ];
 return dataPtr;
 }

---
 
 the bad thing is that now sorting on the datagridcolumn doesn't work 
 anymore...  and need to be made by hand again...
 argh!
 will just wait for the client ask for this.  ;)
 
   best regards!
 
 Luís Eduardo.
 
 
 
 Michael Labriola escreveu:
 
 
  You are correct. By default the dataField on DataGridColumn only goes
  to the root level of the structure you are passing.
 
  If you are feeling a little ambitious, you can subclass dataGridColumn
  and do something like this:
 
  protected function deriveComplexColumn( data:Object,
  complexFieldName:String ):Object
  {
  var dataPtr:Object;
 
  dataPtr = data;
 
  var complexName:Array;
  complexName = complexFieldName.split( '.', 10 );
 
  for each ( var key:String in complexName )
  {
  dataPtr = dataPtr[ key ];
  }
 
  return dataPtr;
  }
 
  Then in your itemToLabel method, you can replace this:
 
   try
   {
   data = data[dataField];
   }
 
  with this:
  try
  {
  data = deriveComplexColumn( data, dataField );
  }
 
  ...If you don't want to make your own subclass of dataField, then you
  could do the same thing with an itemRenderer or a labelFunction.
 
  So:
 
  public function myLabelFunc( row:Object, column:DataGridColumn
):String {
  return deriveComplexColumn( row, column.dataField ) as String;
  }
 
  Have fun,
  Mike
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Luis Eduardo illogic_code@ 
  wrote:
  
  
   yeah... i guess too that if the xml had another format it should
  work...
   but it can't have another format... :(.
   the servlets are coded already and they return a xml that have the
   format i presented on this sample.
   not the same data, but this is the format.
  
   i search inside the DataGridColumn.as code and find a function named
   itemToLabel that have this portion of code:
  
   if (typeof(data) == object || typeof(data) == xml)
   {
   try
   {
   data = data[dataField];
   }
   catch(e:Error)
   {
   data = null;
   }
   }
  
   so, i guess that this way of getting data from a XML (using
brackets)
   only can fetch one level of info on the xml format. Not inside his
   childrens.
   in the end, this line of code will probably be evaluated to this:
  data
   = [EMAIL PROTECTED]
   To me, this is a bug or, being optmistic, a limitation.
  
   can someone confirm that? Tracy? Gordon? 

Re: [flexcoders] Flex Tab order

2006-10-28 Thread Igor Costa



Not sure what your real problem.Can you describe more specific .RegardsOn 10/28/06, gur_sukh 
[EMAIL PROTECTED] wrote:












  



Hi,

In flex i have vbox with 4 TextInputs. when we tab through them after 
the last input the tab goes to InternetExplorer's  status bar, header 
and then the address bar before coming back to the first textinput. Is 
there a way that we can stop the tab from leaving the flex applicaiton 
and going to IE. I tried tabIndex but this doesn't hold it on to the 
component. Any help will be highly appreciated and if there is code 
then more better.

Thanks


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Flex 2.0 - performance issues with large BarChart quantities and a minimum

2006-10-28 Thread Igor Costa



Couldn't reproduce your problem here at my machine, it's works.On 10/26/06, Chris [EMAIL PROTECTED] wrote:













  



Hello - Thanks for taking the time to read this posting. I have found an issue with BarChart performance. I
f this problem is already known please guide me to a bug # so that I can track the issue.I have found that if I am charting quantities in the thousands and tens of thousands value range *and* I set a minimum y-axis value, performance is horrible. If I remove the minimum value, performance is just fine.
I definitely need the minimum value functionality in order to display the data properly because with out the minimum value set, the lower value bar chart column appears to be zero.The sample application below is an example of poor performance.
thank you-chris?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=absolute xmlns=* mx:Script ![CDATA[[Bindable] private var dataSource:XML = root level x=1001 y=Chris Services
 DataSet DisplayTitle=Customer AmountDataType=Numeric PlotValue Period=2006-04-21 11:41:13 Amount=42330/ PlotValue Period=2006-04-22 11:41:13 Amount=47338/
 PlotValue Period=2006-04-23 11:41:13 Amount=42279/ PlotValue Period=2006-04-24 11:41:13 Amount=48336/ PlotValue Period=2006-04-25 11:41:13 Amount=54334/
 PlotValue Period=2006-04-26 11:41:13 Amount=53222/ /DataSet  /level/root;   ]]  /mx:Script
  mx:BarChart id=barchart height=80% width=80%   visible=true showDataTips=truedataProvider={this.dataSource.level.DataSet.PlotValue
}  mx:horizontalAxis   mx:CategoryAxis categoryField=@Period/ /mx:horizontalAxis mx:series  mx:ColumnSeries id=columnSeries yField=@Amount/
 /mx:series mx:verticalAxis  mx:LinearAxis minimum=0 interval=1/ /mx:verticalAxis /mx:BarChart/mx:Application


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] sending bmp instead of jpeg/png

2006-10-28 Thread Igor Costa



Just work with ColdFusion image manipulation or PHP (imagewanki ** I guess this name).So, that's all.On 10/27/06, Brian 
[EMAIL PROTECTED] wrote:












  



I'm working on a project where we send snapshots of the Flex frontend
to the server.  I've used the png encoder and the jpeg encoder from
Adobe and those work fine.  The problem is that the images are a
little fuzzy, and the client is looking for very high quality images
(as in print quality).

I tried creating a ByteArray using the
BitmapData.getPixels(rect:Rectangle) method, but the server has no
idea what it's looking at, and the stream is gigantic.  I understand
that this is why you need to encode on the flex side, but does anyone
know of any encoders out there that can encode higher quality images,
maybe like BMPs?  Or is it unrealistic to expect so much quality out
of anything generated from BitmapData objects?

Any help would be greatly appreciated.  Thanks!


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Autoscrolling Text

2006-10-28 Thread Igor Costa



Pascal if I'm not wrong the textArea component already has this feature as default.On 10/28/06, Pascal Schrafl [EMAIL PROTECTED]
 wrote:












  



Hi all,

I wanted to ask, if somebody can let me know, how I can create a 
autoscroll text. As I will have a fixed screen size, I would like to 
display the text in a textbox, and check the text, if it surpasses a 
certain length. If the complete text can not be displayed in the textbox 
(as it is too small), I would like to create an automatic scrolling 
text, that just scroll the text down and then starts again. If the 
autoscrolling is too complicated, could I somehow implement a listender, 
that reacts on a mouse click on the textbox and then displays the next 
portion of the text?

Thanks a lot for your tipps.

Best regards,

Pascal

  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Accepted css properties

2006-10-28 Thread Igor Costa



Robert, did you check out the LiveDocs for it?Regards.On 10/26/06, Robert W [EMAIL PROTECTED] wrote:
I not found list of accepted css properties for TextField in as3/flex2in reference documentation. Is that specification?
Robert--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]* 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/
-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Configure what is copied to bin?

2006-10-28 Thread Igor Costa



Isn't so smart, it's because you choose the Build Automaticly than each file in the project directory it's copied in to bin .So, How to change that, just change the Ant in the project. Using the Window Preferences, Flex compiler.
Regards.On 10/27/06, Sönke Rohde [EMAIL PROTECTED] wrote:













  



Hi,

How can I control which files and directories from a Flex project are copied
to the bin directory?
The Flex Builder is already so smart that the directory containing the code
isn't copied but how can I configure this stuff?

Thanks,
Sönke


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Dynamically Generated Forms

2006-10-28 Thread Igor Costa



You really have to test the DaoFlex or the Flex Coldfusion Integration kit.Regards.On 10/26/06, javaflash1 
[EMAIL PROTECTED] wrote:












  



My company has a database-driven system of web forms, each of which 
consists of many questions in various layouts (2-column radio, 1 
column checkbox, etc). The forms are never hard-coded. Each HTTP 
request causes Java code to perform DB queries to dynamically 
generate the various questions and answers. Those questions are then 
rendered through JSP and Struts tiles into HTML. 

The HTML also contains _javascript_ functions to hide/show conditional 
questions on the web page based on answers to earlier questions. 

Now we're trying to figure out the best way to adapt this system to 
use a Flash front-end instead of HTML/_javascript_. 

My preliminary research suggests at least two possible approaches:

1. A pre-compiled SWF could send a request with certain parameters, 
and the server could respond with an XML description of the form to 
build. Then the SWF could parse that XML and dynamically generate 
the form using attachMovie for each form element (with a lot of math 
to determine relative positions of elements with variable sizes, 
like text labels). 

2. Flex might reduce the code for placing elements, by using MXML to 
describe the form structure as well as visual arrangement. I haven't 
used this yet, and I'm wary of Flex 2 simply because it requires 
Flash Player 9 which is only at 50% browser penetration 
(http://blog.flashforwardconference.com/2006/09/12/adobe-keynote-
some-highlights/) but I might try an earlier version of Flex if it 
helps. 

Does anyone have a suggestion about the best approach to solving 
this problem? 

Thanks in advance for any advice.


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



Re: [flexcoders] Event viewer for Flex 2

2006-10-28 Thread Igor Costa



What kind of Event viewer are you talking about?Regards.On 10/28/06, dimalh [EMAIL PROTECTED] wrote:













  



Hello !
 Do anyonew hear about Event viewer for Flex 2?

Need understood why tool do not catch event.
  

-- 
Best regards,
  Laskojam


  













-- Igor Costawww.igorcosta.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



RE: [Junk E-Mail - LOW] [flexcoders] Re: A web survey based on Flex

2006-10-28 Thread Shannon Hicks





Until, of course, Apollo :)

Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Michael 
LabriolaSent: Saturday, October 28, 2006 3:35 PMTo: 
flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] [flexcoders] 
Re: A web survey based on Flex


Overall it is not a bad way to proceed. The only place I might 
directyou some place different is where you save to the local drive if 
theserver is unavailable.For this part, I would suggest you take a 
look at a concept called'Local Shared Objects'Without knowing all of 
the details of your setup, I would suggest thatsaving an XML file to their 
system without the help of a server isgoing to be tricky if not 
impossible.--Mike--- In [EMAIL PROTECTED]ups.com, 
"advantexllc" subscriptions@...wrote: I posted 
this on the Adobe web forum, but I think I'll have better  luck posting 
here.  I am a newbie to flex... using flex 2 builder and cfmx 
7.0.2. I have  my first project to be done in flex -- a fairly large web 
survey.  So far I've built the UI using a ViewStack... each 
canvas has one or  more related questions. There's a previous/next 
button row at the  bottom, and I eventually need it to work in such a 
way as to not  allow NEXT to be clicked unless all fields on the canvas 
are filled  in.  My MXML file is huge, but one design 
goal I had was to have the  entire survey be loaded by the user, and not 
communicate with the  server again until the user has made choices on 
all fields and is  ready to submit. This way, I'm hoping I can try to 
capture the data  in the event that the user has an internet problem and 
let them try  again or save their choices to an XML file and either 
email it or  upload it later when they are back online. This is a nice 
thing to  do for the user, since the survey is so long. I just want to 
prevent  the survey from being interrupted, since it's so long. If the 
entire  survey is loaded when the person loads the swf, and I can just 
 attempt to send one survey object back to the server at the end, I 
 can trap errors and provide another route to go.  I 
was going to use mx:Form to build the forms on each ViewStack  Canvas... 
one form for each canvas, but still all bound to a single  Survey 
object, as follows...  So then I created a Survey.xml file that 
I was going to use with  mx:Model, and try to simply create an xml tree 
representing a "Survey  object", it's metadata (startDateTime, 
endDateTime, IP address,  etc.), and it's questions and answers. My 
thought was that I could  populate this Survey object as the user 
progressed through the  ViewStack, and then send the entire object to 
the server when  complete, and if that failed, ask them to try again or 
offer to save  the XML file to their system for later upload or 
emailing.  Is this a reasonable way to proceed? What are the 
pitfalls? Is  there something different I should be considering? 
 Thanks,  M
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.408 / Virus Database: 268.13.17/505 - Release 
Date: 10/27/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






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

  




__,_._,___



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006
 


Re: [flexcoders] Re: datagrid and dataField

2006-10-28 Thread Luis Eduardo


  Would be awesome!
  waiting your replay then.

  see ya!

   Luis




Michael Labriola escreveu:


 Luis,

 I agree it would be a good feature. Just as an FYI, I submitted it
 previously as a feature request to Adobe.

 On a side note, next week I will be back at the office, and I will
 post the solution to the sorting problem you had as well.

 Mike

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Luis Eduardo [EMAIL PROTECTED] 
 wrote:
 
 
 
  Michael,
 
  i subclassed the datagrid and the datagridcolumn because i saw too
  much issues being resolved on this way. (unfortunately).
  i dont know much flex neither actionscript, but i read a lot on
  documentation and tried a lot of tests. Spent 4 hours on this trying to
  do the right thing instead of traversing by hand the datapath of
 the
  xml...
  but damn !!! actionscript is too much temperamental! clearly a
  limitation (not a bug) that only root nodes can be evaluated with []s.
  is there any place which we can ask for this feature to adobe? would
  be great!
 
  but... in mean time... thank you very much for your help bro!
 
  my code, inside the extendes class become (with proper credit ;)
 
 --
 
 
  override public function itemToLabel(data:Object):String {
  if (!data)
  return  ;
 
  if (labelFunction != null)
  return labelFunction(data, this);
 
  if (owner.labelFunction != null)
  return owner.labelFunction(data, this);
 
  if (typeof(data) == xml) {
  data = deriveComplexColumn( data, dataField
 ).toString();
  }
 
  if (typeof(data) == object) {
  try {
  data = data[dataField];
  }
  catch(e:Error) {
  data = null;
  }
  }
 
  if (data is String)
  return String(data);
 
  try {
  return data.toString();
  }
  catch(e:Error) {
  }
 
  return  ;
  }
 
  // function from Michael Labriola from Flexcoders mail list
  protected function deriveComplexColumn( data:Object,
  complexFieldName:String ):Object {
  var dataPtr:Object = data;
  var complexName:Array = complexFieldName.split( '.', 10 );
 
  for each ( var key:String in complexName ) dataPtr =
  dataPtr[ key ];
  return dataPtr;
  }
 
 --
 
  the bad thing is that now sorting on the datagridcolumn doesn't work
  anymore... and need to be made by hand again...
  argh!
  will just wait for the client ask for this. ;)
 
  best regards!
 
  Luís Eduardo.
 
 
 
  Michael Labriola escreveu:
 
  
   You are correct. By default the dataField on DataGridColumn only goes
   to the root level of the structure you are passing.
  
   If you are feeling a little ambitious, you can subclass dataGridColumn
   and do something like this:
  
   protected function deriveComplexColumn( data:Object,
   complexFieldName:String ):Object
   {
   var dataPtr:Object;
  
   dataPtr = data;
  
   var complexName:Array;
   complexName = complexFieldName.split( '.', 10 );
  
   for each ( var key:String in complexName )
   {
   dataPtr = dataPtr[ key ];
   }
  
   return dataPtr;
   }
  
   Then in your itemToLabel method, you can replace this:
  
try
{
data = data[dataField];
}
  
   with this:
   try
   {
   data = deriveComplexColumn( data, dataField );
   }
  
   ...If you don't want to make your own subclass of dataField, then you
   could do the same thing with an itemRenderer or a labelFunction.
  
   So:
  
   public function myLabelFunc( row:Object, column:DataGridColumn
 ):String {
   return deriveComplexColumn( row, column.dataField ) as String;
   }
  
   Have fun,
   Mike
  
   --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
   mailto:flexcoders%40yahoogroups.com, Luis Eduardo illogic_code@
   wrote:
   
   
yeah... i guess too that if the xml had another format it should
   work...
but it can't have another format... :(.
the servlets are coded already and they return a xml that have the
format i presented on this sample.
not the same data, but this is the format.
   
i search inside the DataGridColumn.as code and find a function named
itemToLabel that have this portion of code:
   
if (typeof(data) == object || typeof(data) == xml)
{
try
{
data = data[dataField];
}
catch(e:Error)
{
data = null;
}
}
   
so, i guess that this way of getting data from a XML (using
 brackets)
only can fetch one level of info on the xml format. Not inside his
childrens.
in the end, this line of code will probably be evaluated to this:
   data
= [EMAIL PROTECTED]
To me, this is a bug or, being optmistic, a limitation.
   
can someone confirm that? Tracy? Gordon? anyone?
   
   
   
   
thunderstumpgesatwork escreveu:
   
 Hi,

 my guess is that your dataField cannot support the complex
 [EMAIL PROTECTED]... it should be just a single field name.

 To me the XML makes more sense (and is simpler) like this: