Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
Ok, here is a simplified version (for Flex 1.5), rename file extension pdf to zip. BTW, I found where the bug occurs (scaleX and scaleY causes it) mx:VBox id=printArea backgroundColor=#FF mx:Spacer height=15/ mx:HBox backgroundColor=#FF mx:Spacer width=15/ !-- THE BUG IS HERE -- !-- This line with scaleX and scaleY loses the bottom tails of small letters like q,g,j,y etc. -- mx:VBox id=printContainer backgroundColor=#FF scaleX=70 scaleY=70 !-- If line above was like this line commented below (without scaleX and scaleY), it would work fine with small letters like q,g,j,y etc. -- !-- mx:VBox id=printContainer backgroundColor=#FF -- mx:VBox id=regularOrdersArea height=100% mx:Spacer height=5/ mx:Label id=gridLabel width=100% textAlign=left/ mx:DataGrid id=grid/ /mx:VBox /mx:VBox /mx:HBox /mx:VBox -Mika From: Mika Kiljunen [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 11:59 AM To: Nihit Saxena; flexcoders@yahoogroups.com Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46 To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Tuesday, December 20, 2005 5:16 PM To: flexcoders@yahoogroups.com Subject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 1. joulukuuta 2005 14:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika PrintTest.pdf Description: Adobe PDF document
RE: [flexcoders] Wrapping Images and Bitmaps
Yes I think using Matrix.translate() would fix your issue Philippe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger GonzalezSent: samedi 21 janvier 2006 1:02To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Wrapping Images and Bitmaps What I have thought of: I thought that if I could cache the canvas as a bitmap and access the bitmap data that I could wrap the pixels around bit by bit.That will be... er, less than performant.Look into using your bitmap as a fill, and changing its transformationmatrix. You shouldn't need to touch the pixels to get the wrapping.-rg -- 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. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
[flexcoders] YubNub commands for searching Flex 2 1.5 LiveDocs
Hey all, Just created a couple of commands that let you search the Flex LiveDocs using YubNub (http://yubnub.org) command line commands like flex2p mx.effects (to see the documentation on the mx.effects package. More info: http://www.flashant.org/index.php?p=513more=1c=1 Might be interesting to see how this can be integrated into the various IDEs. Aral -- 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 and XSLT
Hi All, Has anyone tried their hand at using XSLT to transform XML data to a Flex interface? I have been given a piece of work that will involve me receiving XML data (schema already exist) and make it presentable within a Flex app, making use of already existing XSLT style sheets (that tie up to this specific XML data). After trawling the web for examples, I haven't found anything obvious - and it seems sensible to ask if anyone here has been involved with any such work? Many thanks for any help! Leon -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] DragManager events as3
Work like a charm for me. What's the problem?On 1/23/06, Stacey Mulcahy [EMAIL PROTECTED] wrote: Alrighty, I'm creating everything via as3 class and not using MXML persay in combo with script – How can I tap into the DragManager class – I thought it would be via adding listeners. I thought this would work: Var dg:DataGrid=new DataGrid(); // populate the columns and such dg.multipleSelection=true; dg.dragEnabled=true; dg.dropEnabled=true; dg.addEventListener(DragEvent.DRAG_OVER,onRemoteDragOver); dg.addEventListener(DragEvent.DRAG_START,onStartDrag); dg.addEventListener(DragEvent.DRAG_ENTER,onRemoteDragEnter); dg.addEventListener(DragEvent.DRAG_DROP,onRemoteDragDrop); dg.addEventListener(MouseEventType.DOUBLE_CLICK, onRemoteDoubleClick); // I thought it should be DragEventType but its not, according to the screaming compiler. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] how does remote object works for coldfusion backend
I am using the remote object with endpoint set to the coldfusion server on a different box. 1. How will the remote object work in this case (will the call to the remote server go from the flash client or it will use the flex proxy) 2. http://livedocs.macromedia.com/flashremoting/mx2004/using_flash_remoting/0071.htm shows how to work with flash remoting while passing objects. Don;t you think by passing the name of the classes between the two layers will create more dependency between the two. -- 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: all UI controls malfunction
Hi, Matt Thanks for the tips. I didn't work it out though. Since the workaround from Flashcomguru is for Flash, I am wondering how to modify it in order to apply it into Flex. cheers David -- 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] line break in the formitem label
How can wrap the text for a form label? Here is an example mx:FormItem label=Tracking amp; Reporting Requirements required=true mx:HBox mx:TextArea id=reportingRequirement textAlign=left width=500 height=80 cornerRadius=0/ mx:Link label=? / /mx:HBox /mx:FormItem In the output I want to wrap the label to show Tracking in oneline and reporting requirements in another. I tried \n in the label but it does not works. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] line break in the formitem label
Hi, You can achieve the same by subclassing the FormItem class and using multiline textinput instead of single-line textinput. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_vermaSent: Monday, January 23, 2006 5:55 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] line break in the formitem label How can wrap the text for a form label?Here is an examplemx:FormItem label="Tracking amp; Reporting Requirements"required="true" mx:HBox mx:TextArea id="reportingRequirement" textAlign="left"width="500" height="80" cornerRadius="0"/ mx:Link label="?" / /mx:HBox /mx:FormItemIn the output I want to wrap the label to show "Tracking" in onelineand "reporting requirements" in another.I tried \n in the label but it does not works. -- 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] WebService: SOAP and PHP5 on Apache
Hi, I'm trying to get a simple mx:WebService to work in Flex 2.0. The WebService is written in PHP5 and runs on Apache, nothing fancy, only a single function is exported for test purposes. I can access the server from php (i.e. a client script can communicate with a server script using SOAP), but all I get from Flash is Error: The WSDL parser has no registered document for the namespace ''. 1) my Flex app _can_ communicate with other SOAP servers, tested with the restaurant example. 2) my SOAP server _can_ communicate with a PHP soap client. What is going wrong here? Any clues are greatly appreciated. Regards, Jan L. Nauta -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Saving modelLocator variable in sharedObject?
Hi, We are currently developing a Flex prototype using the cairngorm framework. To manage the different pages of our application, we use a viewStack whose index is managed via a binding on a getMainView function : mx:ViewStack xmlns:mx=http://macromedia.com/2003/mxml xmlns:view=com.protoflex.view.* selectedChild={applicationViewHelper.getMainView( ProtoFlexModelLocator.workflowState);} This function use a model locator variable (ProtoFlexModelLocator.workflowState) to return the right view to the viewStack. Everything goes well until.. Here is my problem : Im trying to save the workflowState to a SharedObject so the user will come back to the currently visited page if he quit and come back later. To do so, i have made a public function get workflowState() and a public function set workflowState() so everytime the workflowState is changed, i stock it in a SharedObject. But now, it seems that the ViewStack is no more working, as if the getMainView function doesnt trigger when the workflowState change. Can you help me on this, or give me some clue on how to save a client context of a flex application? Thanks a lot, Regards Antoine -- 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: Flex 1.5 how to get Menu height and width
Doug and Matt (thanks for suggestions). Matt, your suggestion worked in my simple test (a doLater() did the trick). However, when i tried to migrate this into a general utility class it still gives height=0. code as follows (important bits) class myUtils { //actually a singleton var myMenu:Menu; function createmenu(mypanel, mydp):Void { var myMenu:Menu = Menu.create(mypanel, mydp); myMenu.doLater(this, positionMenu); } function positionMenu():Void { trace(myMenu.height + | + myMenu.width); } } any ideas thanks. bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You may need to wait a few frames before the width and height are known, it needs to measure and draw itself. What happens if you use a button to check the width and height so that you can wait briefly? If that works just write code to wait 3 or 4 frames and see if you can process everything then. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Wednesday, January 18, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 how to get Menu height and width Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu after creating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 how to get Menu height and width
as i posted this, i then tried another test (Matt your suggestion of trying 2-3 frames later) and this time it worked. not sure what the correct code is (for continuing code 3 frames later) but i used a doLater() and a 'count' variable. --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Doug and Matt (thanks for suggestions). Matt, your suggestion worked in my simple test (a doLater() did the trick). However, when i tried to migrate this into a general utility class it still gives height=0. code as follows (important bits) class myUtils { //actually a singleton var myMenu:Menu; function createmenu(mypanel, mydp):Void { var myMenu:Menu = Menu.create(mypanel, mydp); myMenu.doLater(this, positionMenu); } function positionMenu():Void { trace(myMenu.height + | + myMenu.width); } } any ideas thanks. bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You may need to wait a few frames before the width and height are known, it needs to measure and draw itself. What happens if you use a button to check the width and height so that you can wait briefly? If that works just write code to wait 3 or 4 frames and see if you can process everything then. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Wednesday, January 18, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 how to get Menu height and width Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu after creating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex 1.5 how to get Menu height and width
use do later and cgheck the variable on each frame and release it when its value is 0 instead of a count, since this could varyOn 1/23/06, bhaq1972 [EMAIL PROTECTED] wrote: as i posted this, i then tried another test (Matt your suggestion oftrying 2-3 frames later) and this time it worked. not sure what the correct code is (for continuing code 3 frameslater) but i used a doLater() and a 'count' variable.--- In flexcoders@yahoogroups.com , bhaq1972 [EMAIL PROTECTED] wrote: Doug and Matt (thanks for suggestions). Matt, your suggestion worked in my simple test (a doLater() didthe trick). However, when i tried to migrate this into a general utility class it still gives height=0. code as follows (important bits) class myUtils { //actually a singletonvar myMenu:Menu;function createmenu(mypanel, mydp):Void {var myMenu:Menu = Menu.create(mypanel, mydp);myMenu.doLater(this, positionMenu);}function positionMenu():Void{trace(myMenu.height + | + myMenu.width);} } any ideas thanks. bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You may need to wait a few frames before the width and heightare known, it needs to measure and draw itself.What happens if you use a button to check the width and height so that you can wait briefly?If that works just write code to wait 3 or 4 frames and see if you can process everything then. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of bhaq1972 Sent: Wednesday, January 18, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 how to get Menu height and width Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu aftercreating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA-- 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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/* 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/ -- j:pn -- 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: Flex 1.5 how to get Menu height and width
thanks. thats a better idea. --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: use do later and cgheck the variable on each frame and release it when its value is 0 instead of a count, since this could vary On 1/23/06, bhaq1972 [EMAIL PROTECTED] wrote: as i posted this, i then tried another test (Matt your suggestion of trying 2-3 frames later) and this time it worked. not sure what the correct code is (for continuing code 3 frames later) but i used a doLater() and a 'count' variable. --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Doug and Matt (thanks for suggestions). Matt, your suggestion worked in my simple test (a doLater() did the trick). However, when i tried to migrate this into a general utility class it still gives height=0. code as follows (important bits) class myUtils { //actually a singleton var myMenu:Menu; function createmenu(mypanel, mydp):Void { var myMenu:Menu = Menu.create(mypanel, mydp); myMenu.doLater(this, positionMenu); } function positionMenu():Void { trace(myMenu.height + | + myMenu.width); } } any ideas thanks. bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You may need to wait a few frames before the width and height are known, it needs to measure and draw itself. What happens if you use a button to check the width and height so that you can wait briefly? If that works just write code to wait 3 or 4 frames and see if you can process everything then. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Wednesday, January 18, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 how to get Menu height and width Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu after creating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA -- 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 -- j:pn -- 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] Adding First Element within ComboBox Control
I am trying to do a search screen that includes a comboBox control. I want to query the database to retrieve the valid values the user can select, but also want to include a default value of All Widgets at the beginning of the comboBox. I am able to use the prompt property to have my first value added, but only if I have a literal list that I have defined (i.e. not using a model). Any ideas of the best way of doing this? script stuff var first_widget = [{label:All Widgets, data:}]; /script stuff mx:Model id=WidgetModel {Widget.getWidgets.result} /mx:Model mx:ComboBox id=cboWidgets dataProvider={WidgetModel} height=22 prompt={first_role}/ Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] showCursor / setCursor
I have built a custom login pop up and have setFocus to username using a function in the Login.as. function focusUsername() {username.setFocus();} This works fine, but the cursor is hiding somewhere else. static function cursorUsername() {username.showCursor();} returns instance variables cannot be accessed in static functions. Can anyone tell me how to get the cursor in the username TextInput box? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2 Debugging
Well after fiddling around with this example forever: http://cflex.net/showfiledetails.cfm?ChannelID=1Object=CodeLibraryobjectID=286 I finally found something of use in Flex2 that worked for me: http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0851.html Thought Id just post this for the record, so anyone attempting an image in a Datagrid has just a working example. Still have no idea how to debug a customClass.as though. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, January 23, 2006 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Debugging Hi All, Complete side note: Does the [EMAIL PROTECTED] group not send out your own emails? I posted something earlier and didnt see it so Im assuming yahoo doesnt send you your own messages. Ive got an issue with a current Flex2 project Im working on right now, but Im getting no errors nor am I able to find out any debugging on my custom ImageRenderer class. Im currently using the Eclipse IDE for Flex2 and the project says it builds complete yet something is wrong in a custom class and I cant figure out how Id go about finding out the problem. Like all the examples from the macromedia page, CFlex and the flexcoders archive, I have an ImageRenderer.as file to custom renderer a Datagrid cell, and using the following line in my code: mx:DataGridColumn cellRenderer={ImageRenderer} headerText=Availability columnName=availability / Yet, taking the cellRenderer= out does nothing different than putting it in. Im assuming it is breaking somewhere in ImageRenderer.as, but how would I go about debugging this? How do you debug custom classes? Also didnt have any luck looking for solutions in the archive, so any help would be much appreciated. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Java POJO/Action Script question
I'm new to Flex we're trying evaluate in our company whether we should use FLEX or not. Right we have Java, Struts based application. I have a simple question, i have an Object and still strugling to map that to an action script and datagrid. How do i display values of UserProfileForm in datagrid, like in Struts i used to do CloserResultsForm.userProfileForm.firstname(); Can some one explain this to me. ** I can get the Single object to get displayed but not the inhertited ones. public class CloserResultsForm implements Serializable{ private UserProfileForm userProfileForm; } public class UserProfileForm { private String username=null; private int userid; private String password=null; private String firstname=null; private String lastname=null; private String roleName=null; public UserProfileForm(){ } // then getters and setters for the above } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex2 Debugging
Last email I got from you was: Changes between DataGrid cellrenderers and embed tag Friday, January 20, 2006 1:30 PM Just set a breakpoint in your custom class where you are binding to a property. - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 12:17 PM Subject: [flexcoders] Flex2 Debugging Hi All,Complete side note: Does the [EMAIL PROTECTED] group not send out your own emails? I posted something earlier and didnt see it so Im assuming yahoo doesnt send you your own messages.Ive got an issue with a current Flex2 project Im working on right now, but Im getting no errors nor am I able to find out any debugging on my custom ImageRenderer class. Im currently using the Eclipse IDE for Flex2 and the project says it builds complete yet something is wrong in a custom class and I cant figure out how Id go about finding out the problem. Like all the examples from the macromedia page, CFlex and the flexcoders archive, I have an ImageRenderer.as file to custom renderer a Datagrid cell, and using the following line in my code:mx:DataGridColumn cellRenderer="{ImageRenderer}" headerText="Availability" columnName="availability" / Yet, taking the cellRenderer= out does nothing different than putting it in. Im assuming it is breaking somewhere in ImageRenderer.as, but how would I go about debugging this? How do you debug custom classes? Also didnt have any luck looking for solutions in the archive, so any help would be much appreciated. _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex2 Debugging
Another thing to check. The compiler won't see: import YourClass; or: {YourClass} as a usage. Meaning, you have to do: private var depend:YourClass; To ensure the compiler puts it in the SWF. At least, this is this way in 1.5, don't know about 2. - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 12:41 PM Subject: RE: [flexcoders] Flex2 Debugging Well after fiddling around with this example forever: http://cflex.net/showfiledetails.cfm?ChannelID=1Object=CodeLibraryobjectID=286 I finally found something of use in Flex2 that worked for me: http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0851.htmlThought Id just post this for the record, so anyone attempting an image in a Datagrid has just a working example. Still have no idea how to debug a customClass.as though. _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan MirandaSent: Monday, January 23, 2006 10:17 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 Debugging Hi All,Complete side note: Does the [EMAIL PROTECTED] group not send out your own emails? I posted something earlier and didnt see it so Im assuming yahoo doesnt send you your own messages.Ive got an issue with a current Flex2 project Im working on right now, but Im getting no errors nor am I able to find out any debugging on my custom ImageRenderer class. Im currently using the Eclipse IDE for Flex2 and the project says it builds complete yet something is wrong in a custom class and I cant figure out how Id go about finding out the problem. Like all the examples from the macromedia page, CFlex and the flexcoders archive, I have an ImageRenderer.as file to custom renderer a Datagrid cell, and using the following line in my code:mx:DataGridColumn cellRenderer="{ImageRenderer}" headerText="Availability" columnName="availability" / Yet, taking the cellRenderer= out does nothing different than putting it in. Im assuming it is breaking somewhere in ImageRenderer.as, but how would I go about debugging this? How do you debug custom classes? Also didnt have any luck looking for solutions in the archive, so any help would be much appreciated. _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 Debugging
I just posted a message and received my own message in e-mail. Getting replies, now that is another issue. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Monday, January 23, 2006 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Debugging Hi All, Complete side note: Does the [EMAIL PROTECTED] group not send out your own emails? I posted something earlier and didnt see it so Im assuming yahoo doesnt send you your own messages. Ive got an issue with a current Flex2 project Im working on right now, but Im getting no errors nor am I able to find out any debugging on my custom ImageRenderer class. Im currently using the Eclipse IDE for Flex2 and the project says it builds complete yet something is wrong in a custom class and I cant figure out how Id go about finding out the problem. Like all the examples from the macromedia page, CFlex and the flexcoders archive, I have an ImageRenderer.as file to custom renderer a Datagrid cell, and using the following line in my code: mx:DataGridColumn cellRenderer={ImageRenderer} headerText=Availability columnName=availability / Yet, taking the cellRenderer= out does nothing different than putting it in. Im assuming it is breaking somewhere in ImageRenderer.as, but how would I go about debugging this? How do you debug custom classes? Also didnt have any luck looking for solutions in the archive, so any help would be much appreciated. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. __ This email has been scanned by the MessageLabs Email Security System. _ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Updating the data back to database
Partha, The point of the original posting is that application developers do not need to write tons of code you want to see - it is generated or written in high-level objects used by framework. Here how it works:Step 1. Youwrite SQL and method name so it can be used by doclet engine:package com.cti.composition;import java.sql.SQLException;/*** @xmlsp:webservice* pool=dbPool**/public interface Employee{/*** @xmlsp:method* scope=public* sql=:: select * from EMPLOYEE* ::* type=bean(EmployeeVO[])* updatable=true**/public Object getEmployees() throws SQLException;}Step 2. Run build or integrated doclet in Eclipse to generate the files. Usual ratio is somewhat 100 (generated statements) to 1 (lines in manually writtenSQL) - that accounts for 50% of the time savings for RAD. Other 50% are coming from bug-free code as oppose to manually written one. You should get those files out:Grid MXML for testing/cut and paste in your application?xml version="1.0" encoding="UTF-8"?mx:Application xmlns:common="common.*" xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" horizontalAlign="left" styleName="plain"!--XDataGrid allows you to maintain state on the client (Flex 1.5/2.0) as well as talk to the server automatically --common:XDataGrid id="dg" editable="true" multipleSelection="false" width="100%" height="400" retrieveMethod="getEmployees" remoteObject="com.cti.composition.EmployeeImpl" itemClass="{com.cti.composition.EmployeeVO}"common:columnsmx:Arraycommon:XDataGridColumn columnName="EMP_ID" headerText="Emp Id" editable="false"/common:XDataGridColumn columnName="MANAGER_ID" headerText="Manager Id" editable="true"/common:XDataGridColumn columnName="EMP_FNAME" headerText="Emp Fname" editable="true"/common:XDataGridColumn columnName="EMP_LNAME" headerText="Emp Lname" editable="true"/common:XDataGridColumn columnName="DEPT_ID" headerText="Dept Id" editable="true"/common:XDataGridColumn columnName="STREET" headerText="Street" editable="true"/common:XDataGridColumn columnName="CITY" headerText="City" editable="true"/common:XDataGridColumn columnName="STATE" headerText="State" editable="true"/common:XDataGridColumn columnName="ZIP_CODE" headerText="Zip Code" editable="true"/common:XDataGridColumn columnName="PHONE" headerText="Phone" editable="true"/common:XDataGridColumn columnName="STATUS" headerText="Status" editable="true"/common:XDataGridColumn columnName="SS_NUMBER" headerText="Ss Number" editable="true"/common:XDataGridColumn columnName="SALARY" headerText="Salary" editable="true"/common:XDataGridColumn columnName="START_DATE" headerText="Start Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="TERMINATION_DATE" headerText="Termination Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="BIRTH_DATE" headerText="Birth Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="BENE_HEALTH_INS" headerText="Bene Health Ins" editable="true"/common:XDataGridColumn columnName="BENE_LIFE_INS" headerText="Bene Life Ins" editable="true"/common:XDataGridColumn columnName="BENE_DAY_CARE" headerText="Bene Day Care" editable="true"/common:XDataGridColumn columnName="SEX" headerText="Sex" editable="true"//mx:Array/common:columns/common:XDataGridcommon:TestXDataGrid dataGrid="{dg}" itemClass="{com.cti.composition.EmployeeVO}"/mx:HRule width="100%"/mx:Canvas label="getEmployees()" width="280" height="44"mx:Button label="Retrieve" x="20" y="10" click="dg.retrieve();"/mx:Button label="Update" x="140" y="10" click="dg.update();"//mx:Canvasmx:Scriptvar dummy_getEmployees:com.cti.composition.EmployeeVO = null; /* init ActionScript proxies *//mx:Script/mx:ApplicationActionScript bean:/* Automatically generated file. */dynamic class com.cti.composition.EmployeeVO{public var _nulls:String; // internalspublic var EMP_ID : Number;public var MANAGER_ID : Number;public var EMP_FNAME : String;public var EMP_LNAME : String;public var DEPT_ID : Number;public var STREET : String;public var CITY : String;public var STATE : String;public var ZIP_CODE : String;public var PHONE : String;public var STATUS : String;public var SS_NUMBER : String;public var SALARY : Number;public var START_DATE : Date;public var TERMINATION_DATE : Date;public var BIRTH_DATE : Date;public var BENE_HEALTH_INS : String;public var BENE_LIFE_INS : String;public var BENE_DAY_CARE : String;public var SEX : String;static var registered = Object.registerClass("com.cti.composition.EmployeeVO", com.cti.composition.EmployeeVO);public function __typeName():String { return "com.cti.composition.EmployeeVO"; }public function toString():String { return "com.cti.composition.EmployeeVO { "+" EMP_ID:"+EMP_ID+" MANAGER_ID:"+MANAGER_ID+" EMP_FNAME:"+EMP_FNAME+" EMP_LNAME:"+EMP_LNAME+" DEPT_ID:"+DEPT_ID+" STREET:"+STREET+" CITY:"+CITY+" STATE:"+STATE+"
Re: [flexcoders] Performance question - please help!
Jester, this is a lot of good information. Thanks a ton! --- JesterXL [EMAIL PROTECTED] wrote: Creating 760,000 objects in an array takes an average of 22 seconds, and utilizes up in the 60 megs range. The RAM isn't too accurate, but the time is. Running in Flash Player 8.5 takes 2 seconds less. Creating 12,000 objects with the properties you showed takes an average of 170 milliseconds. Running in Flash Player 8.5 takes 2 seconds less. My suggestion is to find a way to continually get and update the data. Rather than get it every minute, get it every few seconds, or whatever it takes to get lesser chunks. 12,000 is definately doable by Flash 8 and 7, but 760,000 causes you to hit the script-timeout limit. While Flex can extend this, locking up your GUI is pathetic, and while stretching out the processing over frames is doable, it's not fun. ...now, if you are using Flex 2, well, results are different. Creating 760,000 Records that each hold 4 ints in a persistant array, just like the example done in Flash 8, takes 1.2 seconds... fast as heck comparitvely, so getting those records initially as well as every minute apparently would work great. Running just 12,000 takes 20 milliseconds. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 10:01 PM Subject: Re: [flexcoders] Performance question - please help! Oh i guess i should have stated that when I request the data from my web service (coldfusion cfc), 760,000 is about the number of records (in total) that i'm expecting to get (200 requests with 2100 records in each request). I have to parse through those records to create the Charts. I'm pulling the records back with a remoteobject request. I should also further say that the 760,000 records are all for the initial request. subsequent requests will be a lot less... but still along the lines of 12000 records every minute. records are coming back in the format of: machineID, propertyid, minuteid, propertyvalue 1,1,213,98 1,2,213,78 2,1,213,94 Everything is numbers Thanks for the explanations jester. --- Jonathan Hirschi [EMAIL PROTECTED] wrote: Well, the way I'm planning this out is that at the moment, i need to have 60 chart objects with essentially up around 40 or so series per chart (estimated - could go as high as 60). Each series is an array of numbers. Each array has 60 values. I'm still noodling out how to best put this together... I need still need to manage time in all this for labels on the charts, but the time element is going to be synced across alll of the charts, so I've been playing around with updating the labels and horizontal values manually.. (not sure if that's the way to go yet) so for example (hope this makes sense): Chart = cpu:object series = machine1:Array machine60:Array machine1:Array 98 100 45 67 etc.. machine2:Array 56 34 98 45 etc... --- JesterXL [EMAIL PROTECTED] wrote: Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all
RE: [flexcoders] Reload repeater data
Use the dataProvider API methods instead of the lower level array methods, which do not emit the event necessary to update the UI. For example, use aDp.addItem(oNewItem); instead of aDP.push()oNewItem. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ffej1138 Sent: Saturday, January 21, 2006 12:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Reload repeater data I have a repeater that shows a bunch of array elements. I want to have a button that will take out elements from the repeater. I can pop the elements out of the array with no problem, but the repeater still shows the array as it was before the pop-ing. Is there a way to reload or re-draw the repeater? Any ideas? Thanks for any help. Jeff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Adding First Element within ComboBox Control
Ar you sure prompt does not work with mxModel? In the example below, there is a prompt on both a staticly defined array and on one populated from a call to HTTPService, and both work. If you can't get this to work, use a handler function on the Result event, and use addItemAt() to add an initial value. Tracy ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initApp() mx:Script public var aDP:Array = [ {label:A, data:0}, {label:B, data:1}, {label:C, data:2}]; public var aDP2:Array; private function initApp():Void { dsListData.send(); //cb2.setStyle(backgroundDisabledColor, 0x00); //does not work } private function onResult(oEvent:Object):Void { aDP2 = oEvent.result.list.item; } /mx:Script mx:HTTPService id=dsListData url=http://localhost:8700/flex/Samples/_ListData.xml; result=onResult(event) / mx:ComboBox dataProvider={aDP} width=150 prompt=test / mx:ComboBox id=cb2 dataProvider={aDP2} width=150 prompt=test2 backgroundDisabledColor=0x00 disabledColor=#339900/ /mx:Application -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave7273 Sent: Monday, January 23, 2006 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding First Element within ComboBox Control I am trying to do a search screen that includes a comboBox control. I want to query the database to retrieve the valid values the user can select, but also want to include a default value of All Widgets at the beginning of the comboBox. I am able to use the prompt property to have my first value added, but only if I have a literal list that I have defined (i.e. not using a model). Any ideas of the best way of doing this? script stuff var first_widget = [{label:All Widgets, data:}]; /script stuff mx:Model id=WidgetModel {Widget.getWidgets.result} /mx:Model mx:ComboBox id=cboWidgets dataProvider={WidgetModel} height=22 prompt={first_role}/ Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Reload repeater data
ditto what Matt and Tracy said. We were using the array methods ad farting around with executebindings()thank our Gold Support rep (go Peter!) for pointing out that Array extends DataProviderdoh! DK On 1/23/06, Tracy Spratt [EMAIL PROTECTED] wrote: Use the dataProvider API methods instead of the lower level array methods, which do not emit the event necessary to update the UI. For example, use aDp.addItem(oNewItem); instead of aDP.push()oNewItem. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ffej1138 Sent: Saturday, January 21, 2006 12:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Reload repeater data I have a repeater that shows a bunch of array elements. I want to have a button that will take out elements from the repeater. I can pop the elements out of the array with no problem, but the repeater still shows the array as it was before the pop-ing. Is there a way to reload or re-draw the repeater? Any ideas? Thanks for any help. Jeff -- 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 -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- 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: Cairngorm Question
Hi Robin, Thanks again for all of the help so far. The next question I have is for any and all Flexcoders whose application is growing to a rather large size (100s of files, etc). How are you keeping your compile time down? Our application takes between 30 seconds to 1 minute to refresh, and this seems rather high. Thank you, YJ On Fri, 20 Jan 2006 11:22:03 +1100, Robin Hilliard wrote: We usually just bind the reference to the viewHelper down through the UI components, e.g. registrar:TabTwo label=tab2 viewHelper={viewHelper}/ Remember that our model is kept in instance variables of the viewHelper. The viewHelper itself is either: (a) instanciated as a tag in the mxml, or (b) in our current implementation we have a singleton workspace viewHelper with methods to: * create new viewHelper instances of various types, and * methods to create workspaces of corresponding types. In this current implementation have two sorts of commands - LaunchSearchCommand (creates a search in a new workspace) and SearchCommand (does a vanilla search and sends results to the view helper you pass to it). LaunchSearchCommand.execute() gets a new SearchViewHelper from the workspace view helper (simple Factory pattern), broadcasts a Cairngorm event to SearchCommand passing the viewhelper it just got and the search criteria, and then calls the workspace view helper again to create a new search workspace view (spotyoursubappsgo.addChild(yourWorkspaceView, null, , {viewHelper : viewHelper}), again passing the new view helper. This means that the server request and the creation of the new workspace happen in parallel, and the timing of the return from the server (before or after the view has finished rendering) doesn't matter, because the viewHelper is ready to accept the server result, and the view will bind to the model in the viewHelper in its own time. Lastly (you don't have to do this) every view helper has a corresponding interface in the commands package e.g. ISearchViewHelper that the commands use to avoid depending on a concrete view helper implementation - the workspace view helper method return types are all in terms of these interfaces. Sorry to give such a rushed description, it really needs some interaction diagrams to make it a bit clearer but hopefully you get the idea. Cheers, Robin PS: BTW I don't mind doing this on-list, other people might find it useful. PPS: I hope to make it to some US conferences this year, so I'll take you up on the drinks :-) __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 *** On 20/01/2006, at 6:52 AM, fowleryj wrote: Hi Robin, We've started implementing your ideas to solve the multiple instances problem. Forgive me for the continued questions, but we're wondering how you are handling the propagation of the data contained in the onResult() method in the Command. For instance, one of our sub-applications is laid out in the following manner (with generic names and labels in this case): FileOne.mxml mx:HBox mx:ViewStack search:SearchScreen id=searchScreen label=Open/ mx:Panel id=infoPanel label=Information mx:TabNavigator id=tabNavigator view:TabOne label=tab1/ registrar:TabTwo label=tab2/ /mx:TabNavigator /mx:Panel /mx:ViewStack /mx:HBox So in FileOneViewHelper.as, we broadcast an event to find the results of the user's search criteria, and in the Command's onResult(), we call the particular view helper's (in this case, FileOneViewHelper's) handleEvent() method, passing it the necessary data. Once the user selects the match they want to work with, we need to propagate that match's data to the tabs in the TabNavigator, so that the tabs can fill themselves appropriately. Previously we were doing this by broadcasting an event, but now we are faced with the issue of passing the data along to the various tabs (TabOne and TabTwo, for instance) from the parent ViewHelper. We've explored a few options and they all seem to involve significant amounts of hardcoding to drill down through the hierarchy. If it's not too much to ask, would you share with us your method of passing the data from for example a TabNavigator to its tabs? Thank you again for all of the time you've spent helping us with this. If you ever find yourselves in the Southern United States, drinks are on us. :) YJ -- 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
[flexcoders] Re: Cairngorm Question
We are firm believers of precompiling our applications when in production rather then using the JIT MXML compiler. We are big proponents of ANT and automate the builds of not only the MXML but of the entire production server. With one command line we build the entire site ready to go into production. Its very powerful and has an immeasureable impact on productivity of our teams. We've built some very nice macros in ant that make building Flex applications very simple. IMHO the JIT compiler is not how you want to run your production application. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: Hi Robin, Thanks again for all of the help so far. The next question I have is for any and all Flexcoders whose application is growing to a rather large size (100s of files, etc). How are you keeping your compile time down? Our application takes between 30 seconds to 1 minute to refresh, and this seems rather high. Thank you, YJ On Fri, 20 Jan 2006 11:22:03 +1100, Robin Hilliard wrote: We usually just bind the reference to the viewHelper down through the UI components, e.g. registrar:TabTwo label=tab2 viewHelper={viewHelper}/ Remember that our model is kept in instance variables of the viewHelper. The viewHelper itself is either: (a) instanciated as a tag in the mxml, or (b) in our current implementation we have a singleton workspace viewHelper with methods to: * create new viewHelper instances of various types, and * methods to create workspaces of corresponding types. In this current implementation have two sorts of commands - LaunchSearchCommand (creates a search in a new workspace) and SearchCommand (does a vanilla search and sends results to the view helper you pass to it). LaunchSearchCommand.execute() gets a new SearchViewHelper from the workspace view helper (simple Factory pattern), broadcasts a Cairngorm event to SearchCommand passing the viewhelper it just got and the search criteria, and then calls the workspace view helper again to create a new search workspace view (spotyoursubappsgo.addChild(yourWorkspaceView, null, , {viewHelper : viewHelper}), again passing the new view helper. This means that the server request and the creation of the new workspace happen in parallel, and the timing of the return from the server (before or after the view has finished rendering) doesn't matter, because the viewHelper is ready to accept the server result, and the view will bind to the model in the viewHelper in its own time. Lastly (you don't have to do this) every view helper has a corresponding interface in the commands package e.g. ISearchViewHelper that the commands use to avoid depending on a concrete view helper implementation - the workspace view helper method return types are all in terms of these interfaces. Sorry to give such a rushed description, it really needs some interaction diagrams to make it a bit clearer but hopefully you get the idea. Cheers, Robin PS: BTW I don't mind doing this on-list, other people might find it useful. PPS: I hope to make it to some US conferences this year, so I'll take you up on the drinks :-) __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 *** On 20/01/2006, at 6:52 AM, fowleryj wrote: Hi Robin, We've started implementing your ideas to solve the multiple instances problem. Forgive me for the continued questions, but we're wondering how you are handling the propagation of the data contained in the onResult() method in the Command. For instance, one of our sub-applications is laid out in the following manner (with generic names and labels in this case): FileOne.mxml mx:HBox mx:ViewStack search:SearchScreen id=searchScreen label=Open/ mx:Panel id=infoPanel label=Information mx:TabNavigator id=tabNavigator view:TabOne label=tab1/ registrar:TabTwo label=tab2/ /mx:TabNavigator /mx:Panel /mx:ViewStack /mx:HBox So in FileOneViewHelper.as, we broadcast an event to find the results of the user's search criteria, and in the Command's onResult(), we call the particular view helper's (in this case, FileOneViewHelper's) handleEvent() method, passing it the necessary data. Once the user selects the match they want to work with, we need to propagate that match's data to the tabs in the TabNavigator, so that
[flexcoders] microphone object in AS3
Any body tried to work with the microphone on AS3? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm Question
For large applications I believe you have to do a bit of refactoring and start playing with RSLs. Aside of the obvious reasons of performance gain during development by eliminating unnecessary recompilation it kind of force you to eliminate weak links and create "layered" components - based view of the application. It might save additional time if/when the team/project grows to extent that versioning and areas of responsibilities wouldmake single SWF not practical. HTH, Anatole - Original Message - From: fowleryj To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 2:20 PM Subject: [flexcoders] Re: Cairngorm Question Hi Robin,Thanks again for all of the help so far.The next question I have is for any and all Flexcoders whoseapplication is growing to a rather large size (100s of files, etc).How are you keeping your compile time down? Our application takesbetween 30 seconds to 1 minute to refresh, and this seems rather high.Thank you,YJOn Fri, 20 Jan 2006 11:22:03 +1100, Robin Hilliard wrote:We usually just bind the reference to the viewHelper down through the UI components, e.g.registrar:TabTwo label="tab2" viewHelper="{viewHelper}"/Remember that our model is kept in instance variables of the viewHelper. The viewHelper itself is either:(a) instanciated as a tag in the mxml, or(b) in our current implementation we have a singleton workspace viewHelper with methods to:* create new viewHelper instances of various types, and* methods to create workspaces of corresponding types.In this current implementation have two sorts of commands - LaunchSearchCommand (creates a search in a new workspace) and SearchCommand (does a vanilla search and sends results to the view helper you pass to it). LaunchSearchCommand.execute() gets a new SearchViewHelper from the workspace view helper (simple Factory pattern), broadcasts a Cairngorm event to SearchCommand passing the viewhelper it just got and the search criteria, and then calls the workspace view helper again to create a new search workspace view (spotyoursubappsgo.addChild(yourWorkspaceView, null, "", {viewHelper : viewHelper}), again passing the new view helper. This means that the server request and the creation of the new workspace happen in parallel, and the timing of the return from the server (before or after the view has finished rendering) doesn't matter, because the viewHelper is ready to accept the server result, and the view will bind to the model in the viewHelper in its own time. Lastly (you don't have to do this) every view helper has a corresponding interface in the commands package e.g. ISearchViewHelper that the commands use to avoid depending on a concrete view helper implementation - the workspace view helper method return types are all in terms of these interfaces.Sorry to give such a rushed description, it really needs some interaction diagrams to make it a bit clearer but hopefully you get the idea.Cheers,RobinPS: BTW I don't mind doing this on-list, other people might find it useful.PPS: I hope to make it to some US conferences this year, so I'll take you up on the drinks :-)__Robin HilliardDirector - RocketBoots Pty LtdProfessional Services for Macromedia Technologieshttp://www.rocketboots.com.auFor schedule/availability call Pamela Higgins:w +61 7 5451 0362m +61 419 677 151e [EMAIL PROTECTED]or Direct:m +61 418 414 341f +61 2 9798 0070e [EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 ***On 20/01/2006, at 6:52 AM, fowleryj wrote: Hi Robin, We've started implementing your ideas to solve the "multiple instances problem." Forgive me for the continued questions, but we're wondering how you are handling the propagation of the data contained in the onResult() method in the Command. For instance, one of our sub-applications is laid out in the following manner (with generic names and labels in this case): FileOne.mxml mx:HBox mx:ViewStack search:SearchScreen id="searchScreen" label="Open"/ mx:Panel id="infoPanel" label="Information" mx:TabNavigator id="tabNavigator" view:TabOne label="tab1"/ registrar:TabTwo label="tab2"/ /mx:TabNavigator /mx:Panel /mx:ViewStack /mx:HBox So in FileOneViewHelper.as, we broadcast an event to find the results of the user's search criteria, and in the Command's onResult(), we call the particular view helper's (in this case, FileOneViewHelper's) handleEvent() method, passing it the necessary data. Once the user selects the match they want to work with, we need to propagate that match's data to the tabs in the TabNavigator, so that the tabs can fill themselves appropriately. Previously we were doing this by broadcasting an event, but now we are faced with the issue of passing the data along to the
[flexcoders] Re: Updating the data back to database
Partha, The point of the original posting is that application developers do not need to write tons of code you want to see - it is generated or written in high-level objects used by framework. Here how it works: Step 1. Youwrite SQL and method name so it can be used by doclet engine: package com.cti.composition; import java.sql.SQLException; /*** @xmlsp:webservice* pool=dbPool**/public interface Employee{ /*** @xmlsp:method* scope=public* sql=:: select * from EMPLOYEE* ::* type=bean(EmployeeVO[])* updatable=true**/public Object getEmployees() throws SQLException; } Step 2. Run build or integrated doclet in Eclipse to generate the files. Usual ratio is somewhat 100 (generated statements) to 1 (lines in manually writtenSQL) - that accounts for 50% of the time savings for RAD. Other 50% are coming from bug-free code as oppose to manually written one. You should get those files out: Grid MXML for testing/cut and paste in your application ?xml version="1.0" encoding="UTF-8"?mx:Application xmlns:common="common.*" xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" horizontalAlign="left" styleName="plain" !--XDataGrid allows you to maintain state on the client (Flex 1.5/2.0) as well as talk to the server automatically --common:XDataGrid id="dg" editable="true" multipleSelection="false" width="100%" height="400" retrieveMethod="getEmployees" remoteObject="com.cti.composition.EmployeeImpl" itemClass="{com.cti.composition.EmployeeVO}"common:columnsmx:Arraycommon:XDataGridColumn columnName="EMP_ID" headerText="Emp Id" editable="false"/common:XDataGridColumn columnName="MANAGER_ID" headerText="Manager Id" editable="true"/common:XDataGridColumn columnName="EMP_FNAME" headerText="Emp Fname" editable="true"/common:XDataGridColumn columnName="EMP_LNAME" headerText="Emp Lname" editable="true"/common:XDataGridColumn columnName="DEPT_ID" headerText="Dept Id" editable="true"/common:XDataGridColumn columnName="STREET" headerText="Street" editable="true"/common:XDataGridColumn columnName="CITY" headerText="City" editable="true"/common:XDataGridColumn columnName="STATE" headerText="State" editable="true"/common:XDataGridColumn columnName="ZIP_CODE" headerText="Zip Code" editable="true"/common:XDataGridColumn columnName="PHONE" headerText="Phone" editable="true"/common:XDataGridColumn columnName="STATUS" headerText="Status" editable="true"/common:XDataGridColumn columnName="SS_NUMBER" headerText="Ss Number" editable="true"/common:XDataGridColumn columnName="SALARY" headerText="Salary" editable="true"/common:XDataGridColumn columnName="START_DATE" headerText="Start Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="TERMINATION_DATE" headerText="Termination Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="BIRTH_DATE" headerText="Birth Date" editable="true" cellRenderer="common.RenderEditableDate" width="102" resizable="false"/common:XDataGridColumn columnName="BENE_HEALTH_INS" headerText="Bene Health Ins" editable="true"/common:XDataGridColumn columnName="BENE_LIFE_INS" headerText="Bene Life Ins" editable="true"/common:XDataGridColumn columnName="BENE_DAY_CARE" headerText="Bene Day Care" editable="true"/common:XDataGridColumn columnName="SEX" headerText="Sex" editable="true"//mx:Array/common:columns/common:XDataGridcommon:TestXDataGrid dataGrid="{dg}" itemClass="{com.cti.composition.EmployeeVO}"/mx:HRule width="100%"/mx:Canvas label="getEmployees()" width="280" height="44"mx:Button label="Retrieve" x="20" y="10" click="dg.retrieve();"/mx:Button label="Update" x="140" y="10" click="dg.update();"//mx:Canvasmx:Scriptvar dummy_getEmployees:com.cti.composition.EmployeeVO = null; /* init ActionScript proxies *//mx:Script/mx:Application ActionScript bean: /* Automatically generated file. */dynamic class com.cti.composition.EmployeeVO{public var _nulls:String; // internalspublic var EMP_ID : Number;public var MANAGER_ID : Number;public var EMP_FNAME : String;public var EMP_LNAME : String;public var DEPT_ID : Number;public var STREET : String;public var CITY : String;public var STATE : String;public var ZIP_CODE : String;public var PHONE : String;public var STATUS : String;public var SS_NUMBER : String;public var SALARY : Number;public var START_DATE : Date;public var TERMINATION_DATE : Date;public var BIRTH_DATE : Date;public var BENE_HEALTH_INS : String;public var BENE_LIFE_INS : String;public var BENE_DAY_CARE : String;public var SEX : String; static var registered = Object.registerClass("com.cti.composition.EmployeeVO", com.cti.composition.EmployeeVO); public function __typeName():String { return "com.cti.composition.EmployeeVO"; } public function toString():String { return "com.cti.composition.EmployeeVO { "+" EMP_ID:"+EMP_ID+" MANAGER_ID:"+MANAGER_ID+"
Re: [flexcoders] DragManager events as3
The events fail to fire. I pared it down to just tracing and they don't seem to be firing. Work like a charm for me. What's the problem? On 1/23/06, Stacey Mulcahy [EMAIL PROTECTED] wrote: Alrighty, I'm creating everything via as3 class and not using MXML persay in combo with script How can I tap into the DragManager class I thought it would be via adding listeners. I thought this would work: Var dg:DataGrid=new DataGrid(); // populate the columns and such dg.multipleSelection=true; dg.dragEnabled=true; dg.dropEnabled=true; dg.addEventListener(DragEvent.DRAG_OVER ,onRemoteDragOver); dg.addEventListener(DragEvent.DRAG_START,onStartDrag); dg.addEventListener(DragEvent.DRAG_ENTER ,onRemoteDragEnter); dg.addEventListener(DragEvent.DRAG_DROP ,onRemoteDragDrop); dg.addEventListener(MouseEventType.DOUBLE_CLICK, onRemoteDoubleClick); // I thought it should be DragEventType but its not, according to the screaming compiler. -- 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 developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED][EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm Question
Dave Wolf wrote: We are firm believers of precompiling our applications when in production rather then using the JIT MXML compiler. We are big proponents of ANT and automate the builds of not only the MXML but of the entire production server. With one command line we build the entire site ready to go into production. Its very powerful and has an immeasureable impact on productivity of our teams. We've built some very nice macros in ant that make building Flex applications very simple. For the ANT macros Dave is talking about, check out the end of my weblog entry here: http://www.darronschall.com/weblog/archives/000165.cfm I outline how to build RSL's and .swf files from your .mxml. This lets you precompile your Flex applications, allowing you to deploy those .swfs to the web server for production. ANT rules for this kind of stuff. Click a button and watch it go... -d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 - How to Set Link Object to look selected
Ok, I think the problem I am up against here is that the children (Links) are inheriting the parent LinkBar's style on textDecoration. Could someone tell me how to override the style only on certain Link Objects, maintaining the parent's style on the other ones? I am setting a new stylename on the children I want to change, but the change doesn't happen. When I do this on a separate Link, the style changes as expected, but if I do it on a child Link of the LinkBar, it does not change. Please, please give me some suggestions as this simple thing is driving me nutty! Thanks, Libby --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: Hi Libby, If you've managed to control the Link and hijack the click event etc, why don't you try Link.setStyle(textDecoration, underlined); you will have to build the logic to set the textDecoration back to none when another link is clicked, but this will get you started ;-) cheers, Andrew Spaulding Adobe Systems --- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote: I have extended the LinkBar class and dynamically create children from Link objects within it. When a Link is clicked, I would like to have the color change and stay changed, or some other change occur so I know which Link was clicked. Underlining the Label text would be fine if I could figure out how to do it. I have tried Link.setStyle(selected,true); and messed with the entries below in my styleSheet, along with many other attempts. selection-color:#00FF00; selected-fill-colors: #00FF00; symbol-background-pressed-color:#FF; text-selected-color:#FF00FF; Could someone please give me some idea of how to do this? Thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5
So whats the trick to capturing the bitmap data? I haven't found a way to do this yet in Flex 1.5. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: You could probably capture the bitmap data before you open the alert, blur the bitmapData, and then open up a MovieClip via PopUpManager behind the alert (basically call it before Alert), and draw the bitmapData into that movieclip. Basically, when you shutdown Windows XP, it does a screen capture of your desktop, and then brings up a modal dialogue. If you wait 5 seconds, it'll fade that background to gray. It looks like your desktop is fading, but it's really just a screen capture, so they are fading one image. You are basically doing the same thing, except blurring it. - Original Message - From: jgraham_us [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 21, 2006 3:06 PM Subject: [flexcoders] Flex 2 mx.controls.Alert vs. Flex 1.5 The Flex 2 version of this control does and effect on the entire background app when the Alert.show is called, it does a fade/blur effect. Is there a way to get this to work in Flex 1.5? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Global classpath help (Flex 1.5)
Thank You for the Response! Yes I have done all of the obvious below is the example of everything I am doing: I have created a global class-path on our file server and added the new path to my flex-config.xml as follows: actionscript-classpath path-elementZ:\codebase\enterra\actionscript/path-element path-elementC:\dev\classes/path-element path-element/WEB-INF/flex/user_classes/path-element /actionscript-classpath The first being the mapped drive path to the root of the new global path. Second being the path to my local classes and third being the default user class path. The problem I am having is that when I try to instantiate an object from the path over the newtwork the compiler either can not resolve the class or if it does then it doesn't call the constructor or throws an error when I try to call a method on an instance of the object. When I compile in Flash everything works as it should so there is no problem regarding the code, path and / or packages. I am using this simple test in my mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=instantiateObject() mx:Script ![CDATA[ import codebase.company.actionscript.as2.classes.foo.*; public var test:Foo; public function instantiateObject():Void{ this.test = new Foo(); } ]] /mx:Script /mx:Application The test class is as follows: import mx.controls.Alert; class codebase.company.actionscript.as2.classes.foo.Foo { public function Foo(){ Alert.show(object instantiated = {}); } } I tried all of the obvious things, restarting the app server, policy files, removing member scoping, changing the leaf name, using a shared folder instead of a mapped drive, renaming members and methods, etc. I also tried renaming the directories as I have had trouble in Flash using codebase as a directory but it still doesn't work correctly. I also copied the entire directory of the path to my user classes directory and it worked fine in flex. Any assistance would be greatly appreciated since I can't seem to find any answers on the web, flex coders, etc. Thanks, Augie Marcello III --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Did you try using forward slashes? It just seems like the network drive is not being found... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of augie Sent: Thursday, January 19, 2006 9:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Global classpath help (Flex 1.5) Hi All, I have added a global class-path on a network drive in: Flex\WEB-INF\flex\flex-config.xml As follows: actionscript-classpath path-elementnetworkServer:\codebase\dev\actionscript/path-element path-element/WEB-INF/flex/user_classes/path-element /actionscript-classpath The problem that I am having is that I get an error when I try to instantiate any classes from Packages within the new global path directory. When I try to instantiate the an object from the same class but under the user classes root it works fine. I have tried just about everything including renaming the directories, cross-domain-policy files, etc. I am not sure if there is something I have to explicitly set because the classpath is on a network drive . Any help would be greatly appreaciated. Sincerely, Augie Marcello III -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2 Debugging
Ive had probs with cell renderers in DGs where the label doesnt resize properly cutting off the label until you refresh its length in the override set dataObject bit. My last couple of messages have been bouncing come to think of it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, January 23, 2006 1:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex2 Debugging Possibly worth another thread, but has anyone had issues with renderers and hiding/showing columns? I have a Datagrid with 4 columns, 3 normal data and one being cellrendererd (column 2). Using myDataGrid.getColumnAt(3).visible=true and false, my cellRenderer is actually renderering that column even though its not the column with cellRenderer=. And this time around, I saw my own message and repliesodd. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, January 23, 2006 10:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex2 Debugging Well after fiddling around with this example forever: http://cflex.net/showfiledetails.cfm?ChannelID=1Object=CodeLibraryobjectID=286 I finally found something of use in Flex2 that worked for me: http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0851.html Thought Id just post this for the record, so anyone attempting an image in a Datagrid has just a working example. Still have no idea how to debug a customClass.as though. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, January 23, 2006 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Debugging Hi All, Complete side note: Does the [EMAIL PROTECTED] group not send out your own emails? I posted something earlier and didnt see it so Im assuming yahoo doesnt send you your own messages. Ive got an issue with a current Flex2 project Im working on right now, but Im getting no errors nor am I able to find out any debugging on my custom ImageRenderer class. Im currently using the Eclipse IDE for Flex2 and the project says it builds complete yet something is wrong in a custom class and I cant figure out how Id go about finding out the problem. Like all the examples from the macromedia page, CFlex and the flexcoders archive, I have an ImageRenderer.as file to custom renderer a Datagrid cell, and using the following line in my code: mx:DataGridColumn cellRenderer={ImageRenderer} headerText=Availability columnName=availability / Yet, taking the cellRenderer= out does nothing different than putting it in. Im assuming it is breaking somewhere in ImageRenderer.as, but how would I go about debugging this? How do you debug custom classes? Also didnt have any luck looking for solutions in the archive, so any help would be much appreciated. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5
Just tested with a Flash 8 SWF proxy, and she works like a charm. I'll blog tomorrow morning post the source. Short answer: - create Flash 8 SWF - expose 2 public methods; 1 to blur a movieclip passed in, and 1 to clear the blur (remove the blur from the filters array) - load the SWF into Flex - call the blur method on the swf when it's done loading in - to remove the blur, call the unBlur method on the SWF Pretty neat! - Original Message - From: jgraham_us [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 4:13 PM Subject: [flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5 So whats the trick to capturing the bitmap data? I haven't found a way to do this yet in Flex 1.5. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: You could probably capture the bitmap data before you open the alert, blur the bitmapData, and then open up a MovieClip via PopUpManager behind the alert (basically call it before Alert), and draw the bitmapData into that movieclip. Basically, when you shutdown Windows XP, it does a screen capture of your desktop, and then brings up a modal dialogue. If you wait 5 seconds, it'll fade that background to gray. It looks like your desktop is fading, but it's really just a screen capture, so they are fading one image. You are basically doing the same thing, except blurring it. - Original Message - From: jgraham_us [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 21, 2006 3:06 PM Subject: [flexcoders] Flex 2 mx.controls.Alert vs. Flex 1.5 The Flex 2 version of this control does and effect on the entire background app when the Alert.show is called, it does a fade/blur effect. Is there a way to get this to work in Flex 1.5? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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: Cairngorm Question
I was just shown your weblog today about this and they are awesome. The crazy part is they look a ton like ours. Guess you have a couple of smart people and they reach the same conclusions! Really great posting Darron. We have tons of macros for everything from compiling the swf, the rsl's, java jars, deploying web services etc. Ted might almost be a convert now :) -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Darron J. Schall [EMAIL PROTECTED] wrote: Dave Wolf wrote: We are firm believers of precompiling our applications when in production rather then using the JIT MXML compiler. We are big proponents of ANT and automate the builds of not only the MXML but of the entire production server. With one command line we build the entire site ready to go into production. Its very powerful and has an immeasureable impact on productivity of our teams. We've built some very nice macros in ant that make building Flex applications very simple. For the ANT macros Dave is talking about, check out the end of my weblog entry here: http://www.darronschall.com/weblog/archives/000165.cfm I outline how to build RSL's and .swf files from your .mxml. This lets you precompile your Flex applications, allowing you to deploy those .swfs to the web server for production. ANT rules for this kind of stuff. Click a button and watch it go... -d -- 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: Java POJO/Action Script question
Flex 1.5 does a pretty good job of automatically translating Java types to ActionScript, but only for members that are declared public, not private. So, if you want to continue using your getter routines for private members in your existing classes, be prepared to make a lot of calls to your remote object. You could also create a new facade Java class for mapping purposes, which would have public members for all the variables you want to expose to ActionScript, and have that class make all the calls to your existing class's getters to initialize those public members. You can then refer to the variables by name (the same name as in the Java class) from within ActionScript. Another thing to keep in mind is that datagrids expect to be passed arrays (actually, anything that implements the DataProvider interface) of objects, not a single object. If your Java calls are returning a single object instead of a list of objects, use mx.utils.ArrayUtil.toArray() on the result to convert it to an array in ActionScript. Doug --- In flexcoders@yahoogroups.com, sshriyan27 [EMAIL PROTECTED] wrote: I'm new to Flex we're trying evaluate in our company whether we should use FLEX or not. Right we have Java, Struts based application. I have a simple question, i have an Object and still strugling to map that to an action script and datagrid. How do i display values of UserProfileForm in datagrid, like in Struts i used to do CloserResultsForm.userProfileForm.firstname (); Can some one explain this to me. ** I can get the Single object to get displayed but not the inhertited ones. public class CloserResultsForm implements Serializable{ private UserProfileForm userProfileForm; } public class UserProfileForm { private String username=null; private int userid; private String password=null; private String firstname=null; private String lastname=null; private String roleName=null; public UserProfileForm(){ } // then getters and setters for the above } -- 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] ChangeEvent
Hello! I am trying to get a change event working on a value object, but I just can not seem to get a change to occur. Does anyone have a working example using Chnage Event? Here is the code I have so far import mx.events.*; // ActionScript Document [ChangeEvent(configNameChanged)] class edu.psu.uaim.data.Configuration { public var currentConfig: XML; private var _configName: String = null; private var dispatcher:EventDispatcher; private static function staticConstructor():Boolean { EventDispatcher.initialize(Configuration.prototype); return true; } // Load an EventDispatcher private static var EventDispatcherDependency = EventDispatcher; private static var staticConstructed:Boolean = staticConstructor(); [ChangeEvent(configNameChanged)] public function get configName(): String { Echo.debug(Config Name Get); if ((_configName == null) (currentConfig!=null) (currentConfig!=undefined)){ var node:XMLNode = lookup(configuration.configName); _configName = node.firstChild.nodeValue; } return _configName; } public function set configName(name: String): Void { _configName = name; setText(configuration.configName, name); dispatcher.dispatchEvent({type:configNameChanged}); } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm Question
Dave Wolf wrote: I was just shown your weblog today about this and they are awesome. The crazy part is they look a ton like ours. Guess you have a couple of smart people and they reach the same conclusions! Really great posting Darron. We have tons of macros for everything from compiling the swf, the rsl's, java jars, deploying web services etc. Not so crazy - I was talking with Ted on IM when he was working on them for you. ;-) Either way, Flex + ANT is a good combination. Sure, there's a learning curve.. but it's a powerful technology and one worth learning, in my opinion. -d -- 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] Radio Button Cell Renderer for Data Grids
I have created a custom cell renderer for a datagrid that displays four radio buttons and creates a radiobuttongroup for them. The problem is that the end result only allows one radio button to be selected for the entire grid as opposed to one for each cell. Has anyone done anything like this? Is there some means for generating a dynamically named radiobuttongroup that I haven't figured out? Any advice or examples would be appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Global classpath help (Flex 1.5)
looks like you are using windows. From my experience with JRun\Cfusion, in order for the app server process to use a mapped drive, the process needs to run as a domain user in the domain that contains both servers. The system user can not be used. DK On 1/23/06, augie [EMAIL PROTECTED] wrote: Thank You for the Response! Yes I have done all of the obvious below is the example of everything I am doing: I have created a global class-path on our file server and added the new path to my flex-config.xml as follows: actionscript-classpath path-elementZ:\codebase\enterra\actionscript/path-element path-elementC:\dev\classes/path-element path-element/WEB-INF/flex/user_classes/path-element /actionscript-classpath The first being the mapped drive path to the root of the new global path. Second being the path to my local classes and third being the default user class path. The problem I am having is that when I try to instantiate an object from the path over the newtwork the compiler either can not resolve the class or if it does then it doesn't call the constructor or throws an error when I try to call a method on an instance of the object. When I compile in Flash everything works as it should so there is no problem regarding the code, path and / or packages. I am using this simple test in my mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=instantiateObject() mx:Script ![CDATA[ import codebase.company.actionscript.as2.classes.foo.*; public var test:Foo; public function instantiateObject():Void{ this.test = new Foo(); } ]] /mx:Script /mx:Application The test class is as follows: import mx.controls.Alert; class codebase.company.actionscript.as2.classes.foo.Foo { public function Foo(){ Alert.show(object instantiated = {}); } } I tried all of the obvious things, restarting the app server, policy files, removing member scoping, changing the leaf name, using a shared folder instead of a mapped drive, renaming members and methods, etc. I also tried renaming the directories as I have had trouble in Flash using codebase as a directory but it still doesn't work correctly. I also copied the entire directory of the path to my user classes directory and it worked fine in flex. Any assistance would be greatly appreciated since I can't seem to find any answers on the web, flex coders, etc. Thanks, Augie Marcello III --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Did you try using forward slashes? It just seems like the network drive is not being found... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of augie Sent: Thursday, January 19, 2006 9:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Global classpath help (Flex 1.5) Hi All, I have added a global class-path on a network drive in: Flex\WEB-INF\flex\flex-config.xml As follows: actionscript-classpath path-elementnetworkServer:\codebase\dev\actionscript/path-element path-element/WEB-INF/flex/user_classes/path-element /actionscript-classpath The problem that I am having is that I get an error when I try to instantiate any classes from Packages within the new global path directory. When I try to instantiate the an object from the same class but under the user classes root it works fine. I have tried just about everything including renaming the directories, cross-domain-policy files, etc. I am not sure if there is something I have to explicitly set because the classpath is on a network drive . Any help would be greatly appreaciated. Sincerely, Augie Marcello III -- 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 -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Radio Button Cell Renderer for Data Grids
Don't use groupnames; they are global (at least, to an application). I understand people like using group names, but for a cell-renderer, it's pretty easy to make a radio button selection straightforward. Just forward all click events to a common Delegated function, and edit the field of the dataProvider. Any setItem calls just set the appropriate radio button, and they'll take care of the actually selecting/deselecting. - Original Message - From: maxgsilverscape [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 8:57 PM Subject: [flexcoders] Radio Button Cell Renderer for Data Grids I have created a custom cell renderer for a datagrid that displays four radio buttons and creates a radiobuttongroup for them. The problem is that the end result only allows one radio button to be selected for the entire grid as opposed to one for each cell. Has anyone done anything like this? Is there some means for generating a dynamically named radiobuttongroup that I haven't figured out? Any advice or examples would be appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5
It's tomorrow! http://www.jessewarden.com/archives/2006/01/how_to_use_the.html - Original Message - From: JesterXL [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 6:10 PM Subject: Re: [flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5 Just tested with a Flash 8 SWF proxy, and she works like a charm. I'll blog tomorrow morning post the source. Short answer: - create Flash 8 SWF - expose 2 public methods; 1 to blur a movieclip passed in, and 1 to clear the blur (remove the blur from the filters array) - load the SWF into Flex - call the blur method on the swf when it's done loading in - to remove the blur, call the unBlur method on the SWF Pretty neat! - Original Message - From: jgraham_us [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 23, 2006 4:13 PM Subject: [flexcoders] Re: Flex 2 mx.controls.Alert vs. Flex 1.5 So whats the trick to capturing the bitmap data? I haven't found a way to do this yet in Flex 1.5. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: You could probably capture the bitmap data before you open the alert, blur the bitmapData, and then open up a MovieClip via PopUpManager behind the alert (basically call it before Alert), and draw the bitmapData into that movieclip. Basically, when you shutdown Windows XP, it does a screen capture of your desktop, and then brings up a modal dialogue. If you wait 5 seconds, it'll fade that background to gray. It looks like your desktop is fading, but it's really just a screen capture, so they are fading one image. You are basically doing the same thing, except blurring it. - Original Message - From: jgraham_us [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 21, 2006 3:06 PM Subject: [flexcoders] Flex 2 mx.controls.Alert vs. Flex 1.5 The Flex 2 version of this control does and effect on the entire background app when the Alert.show is called, it does a fade/blur effect. Is there a way to get this to work in Flex 1.5? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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/