[flexcoders] Compile css to swf for runtime css

2009-05-12 Thread sinacapho
Hi,

I have try the runtime css for my project, I have set the Main source path 
in the Flex Builder as 'flex\src' and the Output folder as 'WebContent'. The 
css file is under the flex\src\css\test.css. When i click the compile CSS to 
SWF.Actually the css folder have already create in the WebContent. But there is 
a error show that 
'A file found in a source-path must have the same package structure 'css' , as 
the definition's package , '' '. 

 But when i try to move the css file one more layer up flex\src\test.css , 
it is ok and a test.swf is created in the WebContent. 
Would someone tell me why this happen?


  thx
capho



[flexcoders] DataGrid sorting problem on variableRowHeight with headerrenderer

2008-11-04 Thread sinacapho
Hi,
 I have writing a datagrid using the headerrenderer to make some
controls , and also set up the variableRowHeight to true. But find
that when you click on the headerrenderer, the screen freeze and
trigger many redraw action until to click another columns. It work
well in Flex 3 but no on Flex 2. I have attached the source using a
similar example.
can someone help me to fix in Flex2 ?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal
mx:ArrayCollection id=adgData
mx:source
mx:Object column1=A column2=29/
mx:Object column1=a column2=3/
mx:Object column1=b column2=9/
mx:Object column1=B column2=2/
mx:Object column1=c column2=1/

/mx:source
/mx:ArrayCollection
mx:DataGrid id=dg dataProvider={adgData} variableRowHeight=true
mx:columns
mx:DataGridColumn headerText=Column 1
headerRenderer=mx.controls.Text dataField=column1 /
mx:DataGridColumn headerText=Column 2 
dataField=column2 /
/mx:columns
/mx:DataGrid
/mx:Application


thx
capho



[flexcoders] Sorting problem on headerRenderer in placesortArrow

2008-10-28 Thread sinacapho
Hi ,
 I have a problem in sort the datagrid. What i am doing is i have
a datagrid with a few columns (using headerrenderer). When i click on
the column , the sort perform but the label on the headerrenderer
disappear. The browser will come slower and slower then finally hang up.
But after i override the placeSortArrow and do nothing inside the
class.It become OK although the sort arrow have disappear . I am using
Flex 2 and I found that there have not problem in Flex3 .


thx
capho



[flexcoders] Flex printing form problem : formItem label is trim and become ...

2008-07-31 Thread sinacapho
Dear hi,
   
I am facing the problem about the printing problem . i have
now printing a form in A4 format. I know that the page have enough
space but i the printing output always filled with '...' for example ,
i find the formitem label always truncate even i have set it to false.
There is a article talk about that
http://www.nabble.com/Can-Flex-really-handle-complex-printing--td15744019.html.

maybe it is related to the scale problem , it that any other
ways i can solve it without using the FlexReporting module?


 thx
capho 



[flexcoders] Charset when return UTF8 character

2008-02-26 Thread sinacapho
Hi all,
   i have facing a strange problem that hope someone to help me.
My Flex program will call the remote object that return some string
that contain chinese character.I have tested that it is ok if the data
is get from the DB. But if the character is hardcode in the Java
program . It will return strange character. i have use Debug (in RAD7)
for trace the string. The string is ok when running in java side, but
it become mess up when come to Flex.

   someone can help me?


capho



[flexcoders] Error in switch between the Tabbar

2008-02-14 Thread sinacapho
Dear all,

 i have facing the following error when using Tabbar to switch
between the page. The error is like that,

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.core::Container$/http://www.adobe.com/2006/flex/mx/internal::checkFocus()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:462]
at
mx.core::UIComponent/focusInHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8063]
at flash.display::Stage/set focus()
at
mx.core::UIComponent/setFocus()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:6284]
at
mx.managers::FocusManager/setFocus()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\FocusManager.as:390]
at
mx.managers::FocusManager/mouseDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\FocusManager.as:1350]

I have use the Debug to trace and find that sometime the IFocusManager
is null so that the error is prompt . And it is very interesting that
not all the computer will have this problem . What i can do?


thx
capho



[flexcoders] Mapping from actionscript string to java char using remote object in Flex 2.0

2006-12-06 Thread sinacapho
Dear all , 
i am now facing a problem about the mapping of the remote 
object. I am now try using remote object to get a list of Object (eg. 
Obj A). Obj A have a property that call Obj B contain a char. I can 
access all of that when i get from the server.

But when using remote obj service to update the object value by 
passing the Obj A . it can get all the value but not to one of the 
property Obj B. I am sure that i have the VO in actionscript for this 2 
class . But the server cannot get the Obj B (return null). it that 
string in actionscript cannot map to java char?


thx
capho 



[flexcoders] Panel like the Window Explorer

2006-12-03 Thread sinacapho
Dear all, 
i would like to write a component extends Panel that may fire 
event when i click on the header of the Panel (like IE and FF) to fire 
a event. It that there are already built in function for panel or i 
need to use canvas and put a invisible button to the panel header for 
capture instead?

thx
capho



[flexcoders] Cairngorm ServiceLocater Problem

2006-11-29 Thread sinacapho
Dear all,

I am new to Cairngorm and for now i am writing a program using 
flex and i have decided to use Cairngorm. I have created subsection for 
each cairngorm state (business,Commands,Event). I have created sub 
folder in business for handling different service . But when i run the 
application . It prompt and say that The ServiceLocater can only 
instantied once . What i can do? is that i need to put all the service 
in the business folder ?

thx

capho



[flexcoders] The pass the parameter or reference the component (which better?)

2006-10-03 Thread sinacapho
Dear all,
   i have some question about passing parameter. For example , i 
have a user data object which stored the information of the user. 
When i have some custom component which may use this object, which 
method is better?

a)  Pass it in the object (for example)

xx:Component user_object={user_data}/

b) Reference it inside the custom component
   in Component.mxml

   mx:VBox
mx:Label text={parentDocument.user_data.name}/
   /mx:VBox

Which one is better for performance?
thx

capho 








--
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: flex 2.0 logging

2006-10-02 Thread sinacapho
Dear all,
 i have change the config of flex to this. But still i cannot log
any HTTPservice and webservice . Can someone help me?
thx
capho

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

 Dear Jeff,
 i have modifed the service-config.xml as below
 
 logging
 target class=flex.messaging.log.ConsoleTarget level=Debug
 properties
 prefix[Flex] /prefix
 includeDatefalse/includeDate
 includeTimefalse/includeTime
 includeLevelfalse/includeLevel
 includeCategorytrue/includeCategory
 /properties
 filters
 patternEndpoint.*/pattern
 patternService.*/pattern
 patternConfiguration/pattern
 patternMessage.*/pattern
 /filters
 /target
 /logging
 
 My application will call several httpservice on the starting of
 loading. However what i get in the flex.log is only
 
 09/11 10:43:53 DEBUG configuration service started.
 09/11 10:43:53 DEBUG logger services started.
 09/11 10:44:00 DEBUG Loading configuration file

/usr/local/tomcat/jakarta-tomcat-5.0.28/webapps/flex/WEB-INF/flex/flex-webtier-config.xml
 09/11 10:44:00 DEBUG Loading configuration file

/usr/local/tomcat/jakarta-tomcat-5.0.28/webapps/flex/WEB-INF/flex/flex-config.xml
 09/11 10:44:01 DEBUG Initial setup: 350ms
 09/11 10:44:01 DEBUG Loaded 10 SWCs: 740ms
 09/11 10:44:10 DEBUG Files: 514 Time: 8293ms
 09/11 10:44:10 DEBUG Linking... 99ms
 09/11 10:44:11 DEBUG Optimizing... 767ms
 09/11 10:44:11 DEBUG Total time: 10260ms
 09/11 10:44:11 DEBUG SWF Encoding... 326ms
 
 even i have reload the tomcat . _  Have i do something wrong ?
 thx
 capho
 
 
 --- In flexcoders@yahoogroups.com, Jeff Vroom jvroom@ wrote:
 
  On the client, this shows up if you just turn on the client side
logging
  facility.  You can do this by adding the MXML tag:
  
   
  
  mx:TraceTarget/
  
   
  
  It then goes into the flashlog.txt which lives in
%HOMEDRIVE%\%HOMEPATH%
  by default.  A couple of other notes on flashlog.txt - it only
shows up
  with the debug player and its location can be overridden if you
have an
  mm.cfg in that folder which specifies a TraceOutputFileName
property. 
  
   
  
  If you are talking about server side logging using the FDS server, you
  go into WEB-INF/flex/services-config.xml, find the line which says
  level= and change that attributes value to Debug.  Then make sure
  you have Message.* enabled as one of the patterns below.  This
logs a
  debug message in the app server's log file before and after each
message
  processed by the server for each client.
  
   
  
  Jeff
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of sinacapho
  Sent: Thursday, September 07, 2006 12:55 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] flex 2.0 logging
  
   
  
  Dear all, 
  Can someone tell we that how i can get logging of the Httpservice
  result . I remember that i can find it in flex.log in Flex 1.5 after
  the config the xml file. But i dont know that i can do it in Flex 2.0
  
  thx
  capho
 







--
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] Httpservice result binding

2006-09-22 Thread sinacapho
Dear all,
i am a Flex 1.5 user that now switch to Flex 2.0 . i have found
many diffculty in using Flex 2.0 . Here is some question

i have calling a httpservice that return a xml about the
datacolumn data that use for creating the datagird column dynamically.
I call the
mx.utils.ArrayUtil.toArray(httpservice_get_helplabel.lastResult.array.result_set.Item)
to an array call output_array .  i want to loop the array to get the
detail. i find a strange thing that. For a single record , i need to
get the item property by output_array[i].property. But for muplite
record , i need to get it by output_array[0][i].property. anything i
can do avoid it?

thx
capho







--
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] Binding the service result to HTTPservice

2006-09-11 Thread sinacapho
Dear all,
 I have some question about the data binding . I have write a
custom component that get the user detail -- Login_detail Class. The
Class if call some HTTPservice and then bind the result into a
application HTTPservice . I have bind one custom component attribute
to that service. But i find that the result is not what i have
expected. Maybe it is because the custom object attribute have not set
before the application httpservice is called. How i can solve this ?

thx
capho
 
 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:shared=shared_comp.* creationComplete=init_form();
mx:Script
![CDATA[

private function init_form():void{
help_menu_show();
if (user_object.uinfo.userId)
function_list_service.send();
else
Alert.show(wait);
}

]]
/mx:Script
shared:Login_detail id=user_object login_name=newuser1/

mx:HTTPService id=function_list_service url=http://xx;
method=POST destination=DefaultHTTP
mx:request
cUserId{user_object.uinfo.userId}/cUserId
/mx:request
/mx:HTTPService



/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 
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: flex 2.0 logging

2006-09-10 Thread sinacapho
Dear Jeff,
i have modifed the service-config.xml as below

logging
target class=flex.messaging.log.ConsoleTarget level=Debug
properties
prefix[Flex] /prefix
includeDatefalse/includeDate
includeTimefalse/includeTime
includeLevelfalse/includeLevel
includeCategorytrue/includeCategory
/properties
filters
patternEndpoint.*/pattern
patternService.*/pattern
patternConfiguration/pattern
patternMessage.*/pattern
/filters
/target
/logging

My application will call several httpservice on the starting of
loading. However what i get in the flex.log is only

09/11 10:43:53 DEBUG configuration service started.
09/11 10:43:53 DEBUG logger services started.
09/11 10:44:00 DEBUG Loading configuration file
/usr/local/tomcat/jakarta-tomcat-5.0.28/webapps/flex/WEB-INF/flex/flex-webtier-config.xml
09/11 10:44:00 DEBUG Loading configuration file
/usr/local/tomcat/jakarta-tomcat-5.0.28/webapps/flex/WEB-INF/flex/flex-config.xml
09/11 10:44:01 DEBUG Initial setup: 350ms
09/11 10:44:01 DEBUG Loaded 10 SWCs: 740ms
09/11 10:44:10 DEBUG Files: 514 Time: 8293ms
09/11 10:44:10 DEBUG Linking... 99ms
09/11 10:44:11 DEBUG Optimizing... 767ms
09/11 10:44:11 DEBUG Total time: 10260ms
09/11 10:44:11 DEBUG SWF Encoding... 326ms

even i have reload the tomcat . _  Have i do something wrong ?
thx
capho


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

 On the client, this shows up if you just turn on the client side logging
 facility.  You can do this by adding the MXML tag:
 
  
 
 mx:TraceTarget/
 
  
 
 It then goes into the flashlog.txt which lives in %HOMEDRIVE%\%HOMEPATH%
 by default.  A couple of other notes on flashlog.txt - it only shows up
 with the debug player and its location can be overridden if you have an
 mm.cfg in that folder which specifies a TraceOutputFileName property. 
 
  
 
 If you are talking about server side logging using the FDS server, you
 go into WEB-INF/flex/services-config.xml, find the line which says
 level= and change that attributes value to Debug.  Then make sure
 you have Message.* enabled as one of the patterns below.  This logs a
 debug message in the app server's log file before and after each message
 processed by the server for each client.
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sinacapho
 Sent: Thursday, September 07, 2006 12:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flex 2.0 logging
 
  
 
 Dear all, 
 Can someone tell we that how i can get logging of the Httpservice
 result . I remember that i can find it in flex.log in Flex 1.5 after
 the config the xml file. But i dont know that i can do it in Flex 2.0
 
 thx
 capho








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

2006-09-07 Thread sinacapho
Dear all, 
Can someone tell we that how i can get logging of the Httpservice
result . I remember that i can find it in flex.log in Flex 1.5 after
the  config the xml file. But i dont know that i can do it in Flex 2.0


thx
capho





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] DataGrid DataProvider question

2006-09-06 Thread sinacapho
Dear all,
  i have face a problem about dataprovider .Actually it is about
data model 
  For example i can run this with no problem

  dg.dataProvider = exec_function.lastResult  // HttpService result

  But when i assign it to a model , say:

  mx:Model id=service
 result
 function_set{exec_function.lastResult}/function_set
 /result
  /mx:Model 

  and then assign it to the datagrid

  dg.dataProvider = service.result.function_set

  Nothing have been show.


   Can someone help me?

thx
capho






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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] Custom UIComponent creating problem

2006-08-15 Thread sinacapho
Dear all, 
 i have the followig problem , i have using AS3 to created a
custom component (extends from UIComponent) , i find that the custom
component cannot display on the screen. But if the component extends
from HBox , it will show correctly . Can someone tell me why?
The code is attached.

thx
capho

// Mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:gp=test_comp.*
mx:Panel width=100% height=100%
gp:test_item/
/mx:Panel
/mx:Application

// ActionScript file

package test_comp{

import mx.core.UIComponent;
import mx.controls.Button;
import mx.containers.HBox;

public class test_item extends HBox{

private var item_button:Button;

public function test_item(){
super();
}

override protected function createChildren():void {

super.createChildren();

if (!item_button){
item_button = new Button();
item_button.label = As;
addChild(item_button);  
}

}

override protected function measure():void{
super.measure();
measuredWidth = measuredMinWidth =  410;
measuredHeight = measuredMinHeight = 30;
}


}
}






--
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] Using Repeater with custom actionscript component

2006-08-03 Thread sinacapho
Dear all,
  I have a problem with using the repeater with custom actionscipt
component. 

for example 

mx:Repeater dataProvider={Array} id=form_repeater
recycleChildren=true
general_item:Form_item
item_source={form_repeater.currentItem} //mx:Repeater

i have use write the component Form_item using mxml and actionscript
but find that only mxml format can be success. actionscript component
even only run for once and cannot get my input paramter item_source
. i have attend with the source of actionscript format and mxml format
. Can someone tell me ?


mxml format
?xml version=1.0 encoding=utf-8?
mx:TextInput xmlns:mx=http://www.adobe.com/2006/mxml;
text={item_source.fieldName}
mx:Script
![CDATA[
public var item_source:Object;
]]
/mx:Script
/mx:TextInput

actionscript format
// ActionScript file

package general_comp.general_item {

import mx.core.UIComponent;

import mx.controls.Button;
import mx.controls.TextInput;
import mx.controls.Label;
import mx.controls.NumericStepper;
import mx.controls.CheckBox;
import mx.controls.DateField;
import mx.controls.Alert;

public class Form_item extends UIComponent{

public var item_source:Object;
   
private var item_label:Label;   
private var item_textinput:TextInput;
private var item_numstepper:NumericStepper; 

private var item_checkbox:CheckBox;
private var item_button:Button; 
private var item_datefield:DateField;   

public function Form_item(){
super();
}

override protected function createChildren():void {
super.createChildren();

item_label = new Label();
item_label.text = hi;
addChild(item_label);   
}

override protected function commitProperties():void{
super.commitProperties();
}

override protected function measure():void{
super.measure();
measuredWidth = measuredMinWidth =  410;
measuredHeight = measuredMinHeight = 30;
}

override protected function 
updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth,unscaledHeight);

}





}
} 







--
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] webservice or http service log

2006-08-01 Thread sinacapho
Dear all,
Can someone tell me that where i can find the log (httpservice and
webservice return xml log) that similar to flex 1.5 ?
thx
capho






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

2006-07-12 Thread sinacapho
Dear all,
   I am a Flex 1.5 developer now switch to Flex 2.0 . I want to
ask some question which maybe very easy for all of you.

   I am now try to Use HttpService or WebService to access some
data. But all of them return Security error Access Url in faultstring.
i have use the same domain for my flex program and the service (Http ,
webservice) path. But the problem remain the same. I have read the doc
but i cannot find a clear solution (There are so many page in doc _). 
Can someone help me?


thx
capho







 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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





[flexcoders] macromedia.css.LocatorParser Problem

2006-06-26 Thread sinacapho
Dear all,

 I have the macromedia.css.LocatorParser problem after
install the Flex 2b3 and move the war to tomcat 5.0. I also face this
problem. I have search for the web that only flex with weblogic have
this problem. I have also find that there are not fop.jar in the lib
folder . What can i do ?

thx
capho

















 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: DataGrid cell edit and Row color problem

2006-05-23 Thread sinacapho



Dear all,

 Thanks all of you. By the way, there are some method which can
work for Both Flex 1.5 and Flex 2?

capho

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

 I think you need to have your renderer implement one of the
interfaces like
 mx.controls.listClasses.IDropInListItemRenderer but not 100 percent
sure.
 it might give you somewhere to look..
 
 
 
 
  I assume you are not using Flex 2 as I am pretty sure
setPropertiesAt is
  no longer supported. But even in 1.5, setPropertiesAt can only be used
  to set a very small amount of styles/properties. Color I know is
not one
  of them. You can set backgroundColor, icon and maybe one or two
others.
 
  Otherwise, probably best to use a customer cellRenderer that
contains a
  method which updates that cell's styles on edit, etc..
 
  Hope that helps.
 
  Karl
 
  Karl Johnson
  Cynergys Systems, Inc.
 
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of sinacapho
  Sent: Monday, May 22, 2006 9:42 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] DataGrid cell edit and Row color problem
 
  Dear all,
 
  nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; i have need to change
  the row color after the one of the cell have been edit. people
says that
  it can use
 
  nbsp;nbsp;nbsp;nbsp; dg.setPropertiesAt(2,
  {backgroundColor:0xFF});
 
  nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; i find it work
^_^, but
  i have also add other properties by
 
  1) dg.setPropertiesAt(2, {backgroundColor:0xFF,color:0xFF});
 
  2) dg.setPropertiesAt(2, {backgroundColor:0xFF});
  nbsp;nbsp; dg.setPropertiesAt(2, {color:0xFF});
 
  3) updated_style.backgroundColor = quot;0xFFquot;;
  nbsp;nbsp; updated_style.color nbsp;nbsp;nbsp;nbsp;nbsp;
  nbsp;nbsp;nbsp;nbsp;nbsp; = quot;0xFFquot;; nbsp;nbsp;
  updated_style.fontStyle nbsp;nbsp;nbsp;nbsp;nbsp; =
  quot;italicquot;; nbsp;nbsp;nbsp;nbsp;nbsp;
  nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;
  nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;
  dg.setPropertiesAt(2,updated_style);
 
  only the backgroundColor change , is that any method?
 
  thx
  capho
 
 
 
 
 
 
   Yahoo! Groups Sponsor
  ~--gt; Protect your PC from spy ware with award
  winning anti spy technology. It's free.
  http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
 
~-gt;
 
 
  --
  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
 
 
 
  nbsp;Visit your group flexcoders on the web.nbsp;
  nbsp;To unsubscribe from this group, send an email
  to:nbsp;[EMAIL PROTECTED]nbsp; nbsp;Your use
  of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 
 
 
 











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








  
  
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] DataGrid cell edit and Row color problem

2006-05-22 Thread sinacapho



Dear all,

 i have need to change the row color after the one of the cell
have been edit. people says that it can use

 dg.setPropertiesAt(2, {backgroundColor:0xFF});

 i find it work ^_^, but i have also add other properties by 

1) dg.setPropertiesAt(2, {backgroundColor:0xFF,color:0xFF});

2) dg.setPropertiesAt(2, {backgroundColor:0xFF});
 dg.setPropertiesAt(2, {color:0xFF});

3) updated_style.backgroundColor = 0xFF;
 updated_style.color= 0xFF;
 updated_style.fontStyle   = italic;

 dg.setPropertiesAt(2,updated_style);

only the backgroundColor change , is that any method?

thx
capho










--
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] Passing the array as the dataprovider in the combobox cellrenderer

2006-04-27 Thread sinacapho



Dear all,
 how can i reference it?
 thx
capho










--
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: Dynamic create child in Flex1.5

2006-04-25 Thread sinacapho



Dear all,

 that mean can i do at this way?

var component_name = My_Component;

My_VBox.createChild(mx.utils.ClassUtil.findClass(component_name),undefined);


But i fail in using this method_ . can someone help me?

thx
capho

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

 We have mx.utils.ClassUtil.findClass which takes a string and will
 return the class instance. You still need to make sure that your custom
 class gets linked into the SWF though by making sure there's a typed
 reference to it somewhere.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sinacapho
 Sent: Thursday, April 20, 2006 11:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dynamic create child in Flex1.5
 
 Dear all,
 
 i have a container that i need to create different custom component on
 it. I find that the function createChild() only accept hard code
 component. For example createChild(Button,undefined);
 
 Does it have some method that can run like this?
 
 var c_component = Button; // Actually it may be my custom component.
 
 XX.createChild(c_component,undefined);
 
 thx
 capho
 
 
 
 
 
 
 --
 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



  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] Autocompletion textfield

2006-04-25 Thread sinacapho



Dear all, 
 is there any help about the autocompletion textfield in Flex
1.5, basically i want to use web service to refresh ,can somebody have
any resource about that?
thx
capho









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





  




  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] set print option

2006-04-24 Thread sinacapho



Dear All, 
 is that i can set the default PrintJob.orientation before the
printing start?
 thx
capho
 









--
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] Dynamic create child in Flex1.5

2006-04-21 Thread sinacapho



Dear all,
 
i have a container that i need to create different custom component on
it. I find that the function createChild() only accept hard code
component. For example createChild(Button,undefined);

Does it have some method that can run like this?

var c_component = Button; // Actually it may be my custom component.

XX.createChild(c_component,undefined);

thx
capho










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





  




  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Install Flex2 Beta2 in tomcat

2006-04-18 Thread sinacapho
Dear all,
   My tomcat version is 5.0.28 and i am try to install the Flex2
beta2 version in my debian machine. After that i move the flex.war
,samples.war to the tomcat directory and start depolyment. It ok but
when i run the mxml it get error. Even i have write a sample mxml
myself  and it return

VerifyError: Error #1053: Illegal override of SystemManager in
mx.managers.SystemManager
at global$init()


is that i have do something wrong?\
thx
capho





--
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] editable for some of the row

2006-03-22 Thread sinacapho
Dear all,
   i have a problem in Flex 1.5 . actually, I am now using a
datagrid for updating data. column are the number of good in different
place and the row are represent the time (monthly). The use can search
for the good in different place by selecting date range. The problem
is that i am not allow the user to update previous months record. How
can i allow some of the row being edit but some dont . I am now using
Cellrenderer in the datagrid.

thx
capho





--
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] coloring the tree

2006-03-14 Thread sinacapho
Dear all, 
   is there any method that can coloring different color in
different node in the tree? is that anything set style for the node?
thx
capho





--
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] identity tree level when on click ?

2006-03-13 Thread sinacapho
Dear all,
  it that any possible way to find our the node level on a
cellpressed node in the tree controls?

thx
capho






--
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: Dynamic inserted column in datagrid

2006-03-07 Thread sinacapho
Dear Matt,
But i am using flex 1.5. is That possible ? Actually i have
working for the company that will use Flex as the front end
development. is it more convenience if i use Flex 2 and actionscript
to development? As it seems that Flex 2 have fixed any bugs
thx
capho


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

 I think you may be experiencing a bug that is fixed in beta 2.  Try
 calling validateNow() on the DataGrid after you've assigned the
 dataProvider and then try setting the width of the columns.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sinacapho
 Sent: Monday, March 06, 2006 3:19 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dynamic inserted column in datagrid
 
 Dear all,
i have facing a problem like this. I call two web service. One
 of them get the dataset .The other is get the column label and name of
 the datagrid. 
After i have get this 2 web service result(i sure i got it). I
 use actionscript to add the datagridcolumn into the datagrid according
 to the data i get from the second web service. 
 
After that i have set the dataprovider of the datagrid to be
 the result of the first web service . Actually the data can show . But
 the column width cannot set. Sometime 3 of the column width have used
 up all the datagrid width and the other column just hidden until you
 have use mouse to resize the column. i have set the column width but
 the problem come the same. What i can do?
 
 thx
 capho
 
 
 
 
 
 
 --
 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] Dynamic inserted column in datagrid

2006-03-06 Thread sinacapho
Dear all,
   i have facing a problem like this. I call two web service. One
of them get the dataset .The other is get the column label and name of
the datagrid. 
   After i have get this 2 web service result(i sure i got it). I
use actionscript to add the datagridcolumn into the datagrid according
to the data i get from the second web service. 

   After that i have set the dataprovider of the datagrid to be
the result of the first web service . Actually the data can show . But
the column width cannot set. Sometime 3 of the column width have used
up all the datagrid width and the other column just hidden until you
have use mouse to resize the column. i have set the column width but
the problem come the same. What i can do?

thx
capho






--
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] Getelementbyid and web service result problem

2006-03-03 Thread sinacapho
Dear all,
  i am very new to Flex and actionscript. I want to know if
actionscript have some function by javascript getelementbyid which can
locate the object.

  Also another question is that i want to retrieve one of the
record from a set of web service result. it that i need to parse it in
xml and is there any method? As i find that i cannot do that by
changing it into a array.

thx

capho





--
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] order of the columns in datagrid

2006-03-02 Thread sinacapho
Dear all,

 i have problem when using datagrid. The dataProvider of the
gird is mainly a web service result in xml . But for example 
my xml is 

aa
bb
cc

But the when i put this into the dataProvider . The resulting datagrid
column order is cc,bb,aa . Can i know why?


thx
capho





--
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] The column order in datagrid

2006-03-02 Thread sinacapho
If i input a xml as dataprovider in datagrid
/aa
/bb
/cc


The datagrid column order will be cc, bb,aa .someone tell me why??
thx






--
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: Use component within the repeater

2006-02-27 Thread sinacapho
Dear Matt,
 As i am afraid that my component have something wrong about the
input parameter . So i have already use method 1 to test it and it is
ok. But if the component is using with the repeater . Then error form.
thx


capho



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

 #3 looked like it should work to me.  So none of the input parameters
 are correct?  Are there any values?  What component does your InputField
 extend?  Maybe it's not playing with databinding correctly?  Maybe you
 overrode a method without calling the superclass version?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sinacapho
 Sent: Sunday, February 19, 2006 6:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Use component within the repeater
 
 Dear All,
 i am now facing a problem with repeater . I have writing a component
 completely by actionscript . As i want to generate that component
 dynamically .i use mx:Repeater to help me. For example i use the
 following code to do show.
 
 1. I should like to check if my component can work well so i create
 the component with testing input. i find it is ok
 
 gp:InputField Input_type = asdfasdfsd
 Input_label = asdfasdfasdf
 Input_fieldname = asdfasdfas
 Input_default = sdfgd
 /gp:InputField
 
 2. Then i test the dataProvider using Repeater and i also works fine
 
 mx:Repeater id=componment_repeater
 dataProvider={httpservice_function_form.result.array.Item}
 mx:Label text =
 {componment_repeater.currentItem.fieldLabel}/mx:Label
 /mx:Repeater
 
 3. I begin to using the repeater to generate the component , however
 can create the correct number of component, but all the input
 parameter cannot get. _
 
 mx:Repeater id=componment_repeater1
 dataProvider={httpservice_function_form.result.array.Item}
 gp:InputField Input_type =
 {componment_repeater1.currentItem.fieldType}
 Input_label = {componment_repeater1.currentItem.fieldLabel}
 Input_fieldname = {componment_repeater1.currentItem.fieldName}
 Input_default = {componment_repeater1.currentItem.fieldDefault}
 /gp:InputField
 /mx:Repeater--
 
 4. So i using the repeater with repeat function and using
 actionscript to create the component. It 's Fine ^_^
 
 mx:Repeater id=componment_repeater2
 dataProvider={httpservice_function_form.result.array.Item}
 repeat=capcap(event.target)/
 
 function capcap(items){
 var ddd = function_form.createChild(InputField,
 undefined,
 {Input_type:items.currentItem.fieldType,
 Input_label:items.currentItem.fieldLabel,
 Input_fieldname:items.currentItem.fieldName,
 Input_help_id:items.currentItem.funcId,
 Input_function_id:report_model.function_id,
 Input_default:items.currentItem.fieldDefault}
 );
 }
 
 
 i think that method 3 and 4 are the same, But why this happen?? i
 prefer to using method 3 as i need not consider about the recreate
 problem and it is much more standard. Can somebody help me?
 
 
 capho
 
 
 
 
 
 
 
 
 --
 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/