[flexcoders] how to forbid pasting text into a textArea£¿
hi all, i forgot this question right now..i have to force the user to type the text manually rather than using the paste command from the context menu,or merely pressing ctrl+v to paste the text that in the clip board.is it possible? any prompt would be appreciated.. thanks! kevin Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] 2 problems about textArea
hi all, there're 2 problem about textArea confused me.. 1: where set a html text for a textArea,then print the textArea.text property in the trace window,what is displaying is the same with the htmlText property. but sometimes,the result is correct without any html tags..why? 2: can i set the caretIndex at will? Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] problem about Text or TextArea
hi all, the problem i'm facing is that i need to use an editable text field with the ability adjusting its height like the Text control. is it possible?how to make the Text control editable or to make the TextArea control adjust its height to fit the content? thanks! kevin Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] about synchronization in retrieving data by using a httpservice
hi all, in my app,i need to retrieve data from different tables in the database and i have to divide the process into several steps.i send each request till the result of the previous step is received.but i think there're some problem due to synchronization all the same... i traced the result of each request.and i found some repeated results.. any help would be appreciated! thanks. kevin Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: 3 problems about datagrid ...
thanks for your prompt. but i think there must be something wrong with my code and the event cellClick cannot be caught by the listener. when using myGrid.addEventListener(cellClick, this); or mx:DataGrid cellClick=trace('cell was clicked')/ what i can see on the sreen is the following: Unknown attribute 'cellClick' on mx.controls.DataGrid here attaches my CheckCellRenderer.as. import mx.core.UIComponent; import mx.controls.CheckBox; [Event(cellClick)] class CheckCellRenderer extends UIComponent { var check : MovieClip; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function CheckCellRenderer() { } function createChildren(Void) : Void { check = createClassObject(CheckBox, check, 1, {styleName:this, owner:this}); check.addEventListener(click, this); size(); } function size(Void) : Void { check.setSize(20, layoutHeight); check._x = (layoutWidth-20)/2; check._y = (layoutHeight-16)/2; } function setValue(str:String, item:Object, sel:Boolean) : Void { check._visible = (item!=undefined); check.selected = item[getDataLabel()]; } function getPreferredHeight(Void) : Number { return 16; } function getPreferredWidth(Void) : Number { return 20; } function click() { var currentIndex:Number = getCellIndex().itemIndex; listOwner.dataProvider.editField(getCellIndex ().itemIndex, getDataLabel(), check.selected ? 1 : 0); listOwner.dispatchEvent({type:cellClick, row:getCellIndex().itemIndex}); } } --- In flexcoders@yahoogroups.com, Dirk Eismann [EMAIL PROTECTED] wrote: You could make the CheckCellRenderer dispatch an event on the DataGrid, i.e. inside your CheckCellRenderer: mx:CheckBox click=listOwner.dispatchEvent({type: 'cellClick', row: getCellIndex().itemIndex}) / This will make the DataGrid dispatch a cellClick event. To listen to this event you'll need to add an event listener on the DataGrid myGrid.addEventListener(cellClick, this); The clicked row will be available in the event object passed to the cellClick function, e.g. function cellClick(event:Object):Void { mx.controls.Alert.show(Row clicked: + event.row); } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of xiankevin2005 Sent: Thursday, September 08, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: 3 problems about datagrid ... thanks for the reply...let me describe the problem i'm facing. assume that the dategrid is a song list with several pages and i use a CheckCellRenderer for a column.when user clicks the check box,the song will add to his play list and remove it for another click. i want to create a click handler in the mxml file,which functions to watch all the check boxes,and when one of them is clicked,i can get the number of the row.then append the selected song to the play list. i used to add some code in the click handler in CheckCellRenderer.as.like this: if(check.checked) listOwner._parent.addToPlayList(getCellIndex().itemIndex); else listOwner._parent.delFromPlayList(getCellIndex().itemIndex); it seems strange though can work properly... how can i do? about problem 3: to add a ... is just what i want.but how to implement this cell renderer?i've no idea...any prompt would be appreciated... thanks a lot. kevin Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: 3 problems about datagrid ...
sorry for my neglect... the way that using myGrid.addEventListener(cellClick, this) works correctly.but it seems that i cannot use the event handler cellClick directly in the mx:DataGrid tag. thank you very much! --- In flexcoders@yahoogroups.com, Dirk Eismann [EMAIL PROTECTED] wrote: You could make the CheckCellRenderer dispatch an event on the DataGrid, i.e. inside your CheckCellRenderer: mx:CheckBox click=listOwner.dispatchEvent({type: 'cellClick', row: getCellIndex().itemIndex}) / This will make the DataGrid dispatch a cellClick event. To listen to this event you'll need to add an event listener on the DataGrid myGrid.addEventListener(cellClick, this); The clicked row will be available in the event object passed to the cellClick function, e.g. function cellClick(event:Object):Void { mx.controls.Alert.show(Row clicked: + event.row); } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of xiankevin2005 Sent: Thursday, September 08, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: 3 problems about datagrid ... thanks for the reply...let me describe the problem i'm facing. assume that the dategrid is a song list with several pages and i use a CheckCellRenderer for a column.when user clicks the check box,the song will add to his play list and remove it for another click. i want to create a click handler in the mxml file,which functions to watch all the check boxes,and when one of them is clicked,i can get the number of the row.then append the selected song to the play list. i used to add some code in the click handler in CheckCellRenderer.as.like this: if(check.checked) listOwner._parent.addToPlayList(getCellIndex().itemIndex); else listOwner._parent.delFromPlayList(getCellIndex().itemIndex); it seems strange though can work properly... how can i do? about problem 3: to add a ... is just what i want.but how to implement this cell renderer?i've no idea...any prompt would be appreciated... thanks a lot. kevin Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: getting data from xml file
i think this would be fine: mx:Repeater id=jobrepeat dataProvider={jobdata.job} mx:Image source={jobrepeat.currentItem.imageid} x={jobrepeat.currentItem.xcordinate} y={jobrepeat.currentItem.ycordinate} /mx:Image /mx:Repeater kevin --- In flexcoders@yahoogroups.com, Prasad Dhananjaya [EMAIL PROTECTED] wrote: Hello, I hava a small problem with getting data from xml file. What I want to do is get the image data from xml file and display image on canves. When I'm trying to run this application, getting the following error Problem parsing external XML. And also I am not sure of writing varible(is this correct jobrepeat.jobs.job. ?). If somebody could help, I would appreciate it. Thanks, ---readxmlfile.mxml- - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Model id=jobdata source=jobdata.xml/ mx:Panel mx:Canvas width=100% height=100% backgroundColor=#F4FECF mx:Canvas x=3 y=10 width=640 height=400 backgroundColor=#D3EFFE mx:Repeater id=jobrepeat dataProvider={jobdata} mx:Image source={jobrepeat.jobs.job.imageid} x={jobrepeat.jobs.job.xcordinate} y={jobrepeat.jobs.job.ycordinate} /mx:Image /mx:Repeater /mx:Canvas /mx:Canvas /mx:Panel /mx:Application jobdata.xml-- ?xml version=1.0 encoding=utf-8? jobs job jobnamejob1/jobname jobid200/jobid xcordinate100/xcordinate ycordinate100/ycordinate imageidjob1.jpg/imageid /job job jobnamejob2/jobname jobid300/jobid xcordinate200/xcordinate ycordinate100/ycordinate imageidjob2.jpg/imageid /job /jobs -- Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: 3 problems about datagrid ...
thanks for the reply...let me describe the problem i'm facing. assume that the dategrid is a song list with several pages and i use a CheckCellRenderer for a column.when user clicks the check box,the song will add to his play list and remove it for another click. i want to create a click handler in the mxml file,which functions to watch all the check boxes,and when one of them is clicked,i can get the number of the row.then append the selected song to the play list. i used to add some code in the click handler in CheckCellRenderer.as.like this: if(check.checked) listOwner._parent.addToPlayList(getCellIndex().itemIndex); else listOwner._parent.delFromPlayList(getCellIndex().itemIndex); it seems strange though can work properly... how can i do? about problem 3: to add a ... is just what i want.but how to implement this cell renderer?i've no idea...any prompt would be appreciated... thanks a lot. kevin Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] is there any way to get the width of a string when displaying on the screen?
hi all! as i mentioned in my subject,how can i get the width of a string? when i use a datagrid control and the text in a cell is too long to be fully displayed,the text should be cut off,and then add a ... at the end of the substring.further more,while the width of the column is changing,the substring adjusts its length to the cell. so,i think the key is to get the width of the string...it there any solution? i found a method named calculateWidths in flex reference,but it seems to be a internal method.how can i use it? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] is there any way to get the width of a string when displaying on the screen?
hi all! as i mentioned in my subject,how can i get the width of a string? when i use a datagrid control and the text in a cell is too long to be fully displayed,the text should be cut off,and then add a ... at the end of the substring.further more,while the width of the column is changing,the substring adjusts its length to the cell. so,i think the key is to get the width of the string...it there any solution? i found a method named calculateWidths in flex reference,but it seems to be a internal method.how can i use it? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] problem about using a cellrenderer in dategrid control
when using a cellrenderer,such as checkCellRenderer,in the click event handler of the checkBox,the method listOwner.dataProvider.editField is invoked.but it seems that the datagrid control cannot handle the event that the value of the cell was changed. if my app need to get the number of the row in which the checkBox was clicked just now,what should i do? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] 3 problems about datagrid ...
hi, i've got 3 problems when using the datagrid... 1: when i use a cellrenderer in the datagrid,such as checkCellRenderer,in the click event handler of the checkBox,the method listOwner.dataProvider.editField is invoked.but it seems that the datagrid control cannot handle the event that the value of the cell was changed. if my app need to get the number of the row in which the checkBox was clicked just now,what should i do? 2: when the text in some cell is too long to be fully displayed,i think i need to set the wordWrap and variableRowHeight to true.however,if i set the rowCount to a certain number then,3 for instance,there will be some other empty row at the bottom...why? 3: if i'd like the text be cut off to fit the cell rather than wrap.further more,while the width of the column is changing,the text should adjust its length...any ideas? a lot of thanks.. kevin Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] how to prevent the flex app from loading the data in the cache?
my app invokes some asp files by using a httpservice.the records in the database are displayed in the datagrid. when the app was published as a swf file and was made to work on the web,after inserting new records into the database,i retrieve all the records again.however,there's nothing changed in the datagrid.it seems that the app loads data from the cache...but,when working in FlashPlayer,everything goes normally.what can i do to force my app to load the latest data rather than that in the cache? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: how to prevent the flex app from loading the data in the cache?
the problem that confused me 4 several days is now resolved successfully! a lot of thx! --- In flexcoders@yahoogroups.com, Sjors Pals [EMAIL PROTECTED] wrote: Make sure you set the right headers in your asp output: Put something like this in your asp response: Response.Buffer = True Response.Expires = -1 Response.ExpiresAbsolute = Now() - 2 Response.AddHeader pragma,no-cache Response.AddHeader cache-control,private Response.CacheControl = No-Store Greets, Sjors xiankevin2005 wrote: my app invokes some asp files by using a httpservice.the records in the database are displayed in the datagrid. when the app was published as a swf file and was made to work on the web,after inserting new records into the database,i retrieve all the records again.however,there's nothing changed in the datagrid.it seems that the app loads data from the cache...but,when working in FlashPlayer,everything goes normally.what can i do to force my app to load the latest data rather than that in the cache? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=S oftware+design+and+developmentw3=Macromedia+flexw4=Software+developm ent+best+practicec=4s=131.sig=FkTWphZzV9mFulU7V3u7pQ Software design and development http://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1=Web+site+design+development w2=Software+design+and+developmentw3=Macromedia+flexw4=Software+deve lopment+best+practicec=4s=131.sig=w0jnvy4gyxC04c4dhRnw6A Macromedia flex http://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Software+desi gn+and+developmentw3=Macromedia+flexw4=Software+development+best+pra cticec=4s=131.sig=XXu7YeegB3Vi-5Qngf6oNQ Software development best practice http://groups.yahoo.com/gads? t=msk=Software+development+best+practicew1=Web+site+design+developme ntw2=Software+design+and+developmentw3=Macromedia+flexw4=Software+d evelopment+best+practicec=4s=131.sig=ZT_U6e_iPgXSriY_dI9nIg -- -- YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/