Re: [flexcoders] HRule tabEnabled?
Bahaha! You used prototype... I SAW YOU! - Original Message - From: Manish Jethani [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, March 14, 2005 8:07 AM Subject: Re: [flexcoders] HRule tabEnabled? On Sun, 13 Mar 2005 18:21:57 -0500, JesterXL [EMAIL PROTECTED] wrote: Is there a way to have this tabEnabled=false by default? Seems weird to be able to tab to an HRule... I wonder why it inherits from UIComponent. Anyway, I found this the best option: initialize=mx.controls.HRule.prototype.tabEnabled = false :) Manish Yahoo! Groups Links
ComboBox databinding
I'm trying to create an application based on the LoanCalculator example in the Webster/McLeod book. Everything's working fine for simple bindings between text inputs on a form and the value object. Where I'm having trouble creating a databinding between a comboBox in the form and the value object. When the user selects an item in the comboBox it should be stored as a string in the value object. What's the way to accomplish this? All the value object variables are public, as in the book example. Specifically, what would the mx:Binding/ statement look like? A simple example would be even better. Thanks. - Tom
RE: [flexcoders] Data Grid entry, numerical operations with bigde cimals
Hi Valy, Its the same issue, you raised weeks back There is no BigDecimal classFlex or Flash ActionScript as of now. Gordon also gave some background on this issue in his reply, he also posted a link ofa _javascript_ library for the same. If somebody can portthis libraryto ActionScript2it would be useful for many. Here is the link: http://stz-ida.de/html/oss/js_bigdecimal.html.en, It would take sometime to port it to AS2 but its worth doing, a good community work. I started porting the same to AS2 I amable to port only one part(one class) to AS2 since I am busy with work here not sure when can I complete it. If anyoneinterested to do that, I canshare the work I have doneso far... As a workaround for now, I can suggest you that you use that _javascript_ library in your app. Do calculation in _javascript_ using that library and pass value back to Flex app...Yeah, its a dirty way but its a workaround until we have a ActionScript version -abdul From: Valy Sivec [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 11:28 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Data Grid entry, numerical operations with bigdecimals Hello, I have a data entry grid and a column should be numeric ( BigDecimal in java ). To get the correct representation of the number I transmit the number to flex as String, to avoid the scientific representation of the number. My problem is that in the editable grid, the user can change the numeric column(s) value and those columnsparticipate insometotal calculations, percentages displayedunderneath the grid... Problem: How should I preform the calculation without loosing the precision? For example, Java Bigdecimal value:654564564645645647872 Flex: 6.54564564645646e+20 How can I avoid loosing the last decimals? in this case 47872? Is there any way I can do that? I'll need to perform the calculation real time on the client side... I am open forsuggestions... How have you treated situations like this?. Thanks for your help, Valy Do you Yahoo!?Yahoo! Mail - 250MB free storage. Do more. Manage less.
Re: [flexcoders] mx:Panel and disabling CSS Inheritance.
On Mon, 14 Mar 2005 15:56:01 -0800, Spike [EMAIL PROTECTED] wrote: c'mon now Scott, You could have tested that out almost faster than typing the question ;-) sif i have the forsight to do that, next you'll be asking me to test my theories out as well..bah! I am about to test it now, as i've been waiting for a free power socket to plug my laptop in and figured i'd ask (curse mobile phones and co-workers stealing my powerboard spots). I'd test it myself, but I'm running out of free RAM on this machine and don't have Flex Builder running at the minute. Spike p.s. Only kidding about testing it yourself btw, I'm curious what the answer is too. heh i know :) but anyway.. hehe Yeah i've resigned myself to the fact that its the only way but all is good. Incidently In FLEX can you use multiple CSS classes? much like you do in HTML? [div class=myFirstClass mySecondClass myThirdClass id=blah] Thanks -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com
RE: [flexcoders] ComboBox databinding
Hi, I don't have the book so couldn't look at the code...I know code is available somewhere online, but me being lazy :) However, following code might help you... ###mxBindingTest.mxml### mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; !-- Form contains user input controls. -- mx:Form label=Employee Information mx:FormItem label=First Name mx:TextInput id=firstName / /mx:FormItem mx:FormItem label=Last Name mx:TextInput id=lastName / /mx:FormItem mx:FormItem label=Department mx:TextInput id=department / /mx:FormItem mx:FormItem label=Email Address mx:TextInput id=email / /mx:FormItem mx:FormItem label=Country mx:ComboBox id=countries mx:dataProvider mx:Array mx:StringIndia/mx:String mx:StringUSA/mx:String /mx:Array /mx:dataProvider /mx:ComboBox /mx:FormItem /mx:Form !-- The myEmployee data model -- mx:Model id=myEmployee name first/ last/ /name department// email/ country / /mx:Model !-- Properties of user interface controls are bound to the myEmployee data model using mx:Binding tags -- mx:Binding source=firstName.text destination=myEmployee.name.first / mx:Binding source=lastName.text destination=myEmployee.name.last / mx:Binding source=department.text destination=myEmployee.department/ mx:Binding source=email.text destination=myEmployee.email/ mx:Binding source=countries.value destination=myEmployee.country/ mx:TextInput text={myEmployee.country}/ /mx:Application Notice how combobox box is bound to a Model and Model is bound to TextInput... -abdul -Original Message- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox databinding I'm trying to create an application based on the LoanCalculator example in the Webster/McLeod book. Everything's working fine for simple bindings between text inputs on a form and the value object. Where I'm having trouble creating a databinding between a comboBox in the form and the value object. When the user selects an item in the comboBox it should be stored as a string in the value object. What's the way to accomplish this? All the value object variables are public, as in the book example. Specifically, what would the mx:Binding/ statement look like? A simple example would be even better. Thanks. - Tom Yahoo! Groups Links
RE: [flexcoders] dataprovider for mx:Array tag
If youre reading from a file for now you could look into using HTTPService (if you want to load the XML dynamically) or Model with a source attribute to get it compiled in. Matt From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20051:03 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] dataprovider for mx:Array tag The result will be array of value objects coming from Java. But since the backend objects are not yet ready I am trying to simulate with xml. Here is my remote object syntax. mx:RemoteObject id=itemDisplay_mngItemsController source= manageitems.controllers.MngItemsController showBusyCursor=true mx:method name=getItemList result=itemlist_do=event.result fault=mx.controls.Alert.show(event.fault.faultstring, 'Remote Call Error') mx:arguments arg1user_id/arg1 arg2month/arg2 /mx:arguments /mx:method /mx:RemoteObject can we treat itemlist_do as array of objects? In other words how to display records from a xml file in flex app record by record? Thanks! Hari -Original Message- From: Tarik Ahmed [mailto:[EMAIL PROTECTED]] Sent: Monday, March 14, 2005 3:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dataprovider for mx:Array tag What is your remote object returning? If it doesn't return an array, you could create a function that processes the result of the remote object function and manage it that way. Doodi, Hari - BLS CTR wrote: Hi, I need to develop a UI such that when user click 'Prev' button system should display previous product info in the queue and if user click on 'Next' then system should display next product info in the queue. I thought of achieving this by assigning result object from remote object method to a Array and keep track of current product index accordingly populate Form Items. But to my surprise there is no property of dataprovider to mx:Array tag. Did any one already developed this kind of functionality so that I can have a look at it or appreciate any suggestions. Thanks! Hari Yahoo! Groups Links Yahoo! Groups Links
RE: [flexcoders] HRule tabEnabled?
Yeah, Id prefer people to subclass HRule and set tabEnabled=false in something like commitProperties() (makesure you call super.commitProperties() in there). Manipulating the prototype is not what we push in the Flex world. Matt From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20054:01 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HRule tabEnabled? Bahaha! You used prototype... I SAW YOU! - Original Message - From: Manish Jethani [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, March 14, 2005 8:07 AM Subject: Re: [flexcoders] HRule tabEnabled? On Sun, 13 Mar 2005 18:21:57 -0500, JesterXL [EMAIL PROTECTED] wrote: Is there a way to have this tabEnabled=false by default? Seems weird to be able to tab to an HRule... I wonder why it inherits from UIComponent. Anyway, I found this the best option: initialize=mx.controls.HRule.prototype.tabEnabled = false :) Manish Yahoo! Groups Links
RE: [flexcoders] Flex SWF in Zinc
I believe the first option is the way to do it according to the existing EULA (though Im no lawyer). The 2nd way would require a special agreement I think. If you have a special reason for wanting to do something like this Id mail Libby and Lucian and they can work with you to make appropriate arrangements if possible. Matt From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20058:35 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex SWF in Zinc To expound on what you just said: - is using the Zinc projector to load the SWF from a remote URL legal? (Peter's way he tested) - is using the Zinc projector to wrap the SWF locally by getting a local copy of the SWF generated from a Flex server (way I've tested) legal? The first uses a Flex server, upon the user running the EXE. The second uses a Flex server to get a local copyof the SWF that you then compile into a Zinc exe, making it self-contained and have no need of a Flex server. - Original Message - From: peter blazejewicz To: flexcoders@yahoogroups.com Sent: Monday, March 14, 2005 11:18 AM Subject: Re: [flexcoders] Flex SWF in Zinc Hi Jessie, I wondered about the same licensing question when I've been testing Flex inside ZINC, I've simply use .exe as shell container for .swf served from Flex just likein browser , thanx for asking that, regards Peter, MDM Support Team [EMAIL PROTECTED] JesterXL wrote: Is wrapping a Flex SWF using Zinc, and distributing the EXE ok via the EULA? Aral Balkan brought this up to me after I told him my progress on a project, and thought I'd ask.I wrote a small GUI for NaturalDocs (naturaldocs.org) since it's only command line. I used Zinc as the wrapper since Central cannot get folder paths.Thanks in advance if you can help!--JesterXL
RE: [flexcoders] Two Button Questions + editable datagrid problem
Set editable=true on the DataGrid itself, then use the column-level properties to turn off any that you want. Tracy -Original Message- From: Gina Chin [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 10:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two Button Questions + editable datagrid problem Hi Jeff, Thank you for your reply, I appreciate that website and all the goodies. However, what our client requires is a toggle button - it has to have the button's look and feel. I should be able to just use mx:Button label=press me toggle=true / but strangely it does not work. I've just come across another problem which has to do with editable datagrid cells. Based on Flex API documentation, this can be done simply by setting DataGridColumn's editable property to true. For some reason it does not work for me. (See code pasted below) Is the developer's license kwown for having such limitations? As I have been using the developer's license and have to live with it until my company gets the production license for me in two weeks - I'm wondering if these weird behaviours will go away once I get the production license. Any insight and suggestions will be very appreciated! Many thanks! Gina mx:DataGrid id=qDataGrid dataProvider={qData} vScrollPolicy=on multipleSelection=true columnStretch=EventDrivenDisplay.resizeInputToMatchColumn(qDataGrid, qFilter); mx:columns mx:Array id=qCols mx:DataGridColumn columnName=dn headerText=DN editable=true/ mx:DataGridColumn columnName=esn headerText=ESN editable=true/ mx:DataGridColumn columnName=type headerText=Type editable=true/ mx:DataGridColumn columnName=line headerText=Line editable=true/ /mx:Array /mx:columns /mx:DataGrid -Original Message- From: Jeff Steiner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 March 2005 3:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Two Button Questions Gina, I have not played with images on buttons, but I can do so today and let you know later this evening. I would guess that someone else will give you an answer before then. To answer your second question, check out www.flexauthority.com/samplesIndex.cfm on the Beginner tab and select the mx:CheckBox - Check All / Uncheck All sample to see if that answers your question. It begins by setting a String to one value and thenas you click the button it changes the verbage to another. There is also the script that shows you how the checking is done. Let me know. Jeff http://www.flexauthority.com - Original Message - From: Gina Chin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 06, 2005 2:33 PM Subject: [flexcoders] Two Button Questions Hi all, I am new to Flex and Actionscript, and only started prototyping for our new project (a UI application on a J2EE server) a week ago. It's been a fun learning this technology and the Cairngorm framework does present a very neat framework that suits our purpose well. However I've come across two small problems.could someone please point me in the right direction (I'm using Developer Edition of Flex 1.5): 1. I have a button whose face is completely occupied by a .gif image. When the button is disabled, it is expected that the image will be grayed out in addition to having a flat appearance. Do I need to swap the image file references whenever the image is enabled/disabled, or is there a better way of achieving the same effect in Flex? 2. Another button I have is meant to be a toggle button so I used the syntax: mx:Button label=Is toggle=true selected=true / But this does not have the toggled effect - it looks exactly the same whether I set toggle property to true or not. I thought it should be quite straightforward so please suggest what's my blindspot! Thank you in advance. Gina ## Attention: The information in this electronic mail is privileged and confidential, intended only for use of the individual or entity named. If you are not the intended recipient, any dissemination, copying or use of the information is strictly prohibited. If you have received this transmission in error, please delete it immediately from your system and inform us via e-mail : [EMAIL PROTECTED] This e-mail has been scanned and cleared by MailMarshal ## Yahoo! Groups Links
Re: Problem with WebService using HTTPS protocol
Thanks, I posted my own answer to question (1) previously, and for question (2) - asking for example code - well, I'm really only concerned with web service (both unnamed and named) over HTTPS. Actually, I've got that (WS over HTTPS) working to the point where the service loads the WSDL and initializes; the actual operation RPC times out however, so I'm going to talk to the vendor to determine if the problem is perhaps my definition and call in Flex or their web service's behaviour. I do believe that MM needs to supply (in their documentation or by some other means) a really good, complete, real-world example of using both an unnamed and a named web service over HTPPS. --- In flexcoders@yahoogroups.com, Dennis Jackson [EMAIL PROTECTED] wrote: here is the code I used. obviously it refers to an internal webservice for us. it points to a cold fusion component. the return from it is a cfquery. the method is called on initialize. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; verticalGap=10 initialize=ReconcileWS.remGetReconcileProjects.send() mx:WebService id=ReconcileWS wsdl=http://devppcintranet/sitecomposer/globals/cfcomponents/reconcile/reconcile.cfc?wsdl; showBusyCursor=true fault=alert(event.fault.faultstring) mx:operation name=remGetReconcileProjects /mx:operation ...edited... /mx:WebService mx:HBox mx:Label text=Select a department:/ mx:ComboBox id=numProjectID width=150 dataProvider={ReconcileWS.remGetReconcileProjects.result} labelField=NAME /mx:ComboBox /mx:HBox extensive_systems [EMAIL PROTECTED] wrote: I'm trying to invoke an unnamed web service and the fault string Could not load WSDL is returned. (typing the URL in a browser returns valid (WSDL) XML). A couple of questions: (1) Does anyone have an idea why the WSDL could not be loaded? (2) Does anyone have a complete, working example of invoking a Web Service, from a separate server, over HTTPS (with flex-config.xml, etc., settings)? Yahoo! Groups SponsorADVERTISEMENT - 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 the Yahoo! Terms of Service.
RE: [flexcoders] Two Button Questions + editable datagrid problem
Thank you! -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 March 2005 3:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two Button Questions + editable datagrid problem Set editable=true on the DataGrid itself, then use the column-level properties to turn off any that you want. Tracy -Original Message- From: Gina Chin [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 10:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two Button Questions + editable datagrid problem Hi Jeff, Thank you for your reply, I appreciate that website and all the goodies. However, what our client requires is a toggle button - it has to have the button's look and feel. I should be able to just use mx:Button label=press me toggle=true / but strangely it does not work. I've just come across another problem which has to do with editable datagrid cells. Based on Flex API documentation, this can be done simply by setting DataGridColumn's editable property to true. For some reason it does not work for me. (See code pasted below) Is the developer's license kwown for having such limitations? As I have been using the developer's license and have to live with it until my company gets the production license for me in two weeks - I'm wondering if these weird behaviours will go away once I get the production license. Any insight and suggestions will be very appreciated! Many thanks! Gina mx:DataGrid id=qDataGrid dataProvider={qData} vScrollPolicy=on multipleSelection=true columnStretch=EventDrivenDisplay.resizeInputToMatchColumn(qDataGrid, qFilter); mx:columns mx:Array id=qCols mx:DataGridColumn columnName=dn headerText=DN editable=true/ mx:DataGridColumn columnName=esn headerText=ESN editable=true/ mx:DataGridColumn columnName=type headerText=Type editable=true/ mx:DataGridColumn columnName=line headerText=Line editable=true/ /mx:Array /mx:columns /mx:DataGrid -Original Message- From: Jeff Steiner [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 March 2005 3:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Two Button Questions Gina, I have not played with images on buttons, but I can do so today and let you know later this evening. I would guess that someone else will give you an answer before then. To answer your second question, check out www.flexauthority.com/samplesIndex.cfm on the Beginner tab and select the mx:CheckBox - Check All / Uncheck All sample to see if that answers your question. It begins by setting a String to one value and thenas you click the button it changes the verbage to another. There is also the script that shows you how the checking is done. Let me know. Jeff http://www.flexauthority.com - Original Message - From: Gina Chin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 06, 2005 2:33 PM Subject: [flexcoders] Two Button Questions Hi all, I am new to Flex and Actionscript, and only started prototyping for our new project (a UI application on a J2EE server) a week ago. It's been a fun learning this technology and the Cairngorm framework does present a very neat framework that suits our purpose well. However I've come across two small problems.could someone please point me in the right direction (I'm using Developer Edition of Flex 1.5): 1. I have a button whose face is completely occupied by a .gif image. When the button is disabled, it is expected that the image will be grayed out in addition to having a flat appearance. Do I need to swap the image file references whenever the image is enabled/disabled, or is there a better way of achieving the same effect in Flex? 2. Another button I have is meant to be a toggle button so I used the syntax: mx:Button label=Is toggle=true selected=true / But this does not have the toggled effect - it looks exactly the same whether I set toggle property to true or not. I thought it should be quite straightforward so please suggest what's my blindspot! Thank you in advance. Gina ## Attention: The information in this electronic mail is privileged and confidential, intended only for use of the individual or entity named. If you are not the intended recipient, any dissemination, copying or use of the information is strictly prohibited. If you have received this transmission in error, please delete it immediately from your system and inform us via e-mail : [EMAIL PROTECTED] This e-mail has been scanned and cleared by MailMarshal ## Yahoo! Groups Links Yahoo! Groups Links
Re: [flexcoders] Flow Control in Flex
On Sun, 13 Mar 2005 00:51:57 -, Harris Reynolds [EMAIL PROTECTED] wrote: Quick question: What is the primary control one would use in Flex to implement a Wizard like application? ViewStack! Manish
RE: [flexcoders] Use hand cursor
Thanks Tracy, James, and Jason! Valuable input! -hands out buy this person a beer coupons- From: Jason Szeto [mailto:[EMAIL PROTECTED] Sent: 14 March 2005 11:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use hand cursor You can also use the ImageButton component that ships in the extras folder of Flex 1.5. Jason From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20059:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use hand cursor I found this: mouseOver=event.target. It's the onRelease that fixes it. But also: FYI, I've found it much easier to use an mx:Link icon=.../tag than to overide all the handlers on an image tag. Tracy From: Robert Stuttaford [mailto:[EMAIL PROTECTED]] Sent: Monday, March 14, 20059:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Use hand cursor Hi flex coders, Does anyone know how I can force use of the hand cursor,specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true; Do I have to write a derivative and override the relevant mouse handlers? Thanks! Robert
TabNavigator Text Colour
Just wondering if anyone has managed to get the TabNavigator label text to display in different colours (e.g MainTab(black), SecondTab(Blue), ThirdTab(Red)) within the same TabNavigator - see below Unfortunately explicitly setting the color property of each individual tab deosn't seem to work. Then again I could be missing something. mx:TabNavigator id=homePageTabs borderStyle=solid width=100% height=100% themeColor=#3A73BA color=#00 fontSize=10 view:Applicant id=applicantTab label=Applicant color=#FF/ view:Address id=addressTab label=Address color=#00/ view:Employment id=employmentTab label=Employment color=#FF3300/ /mx:TabNavigator Any Ideas? Thanks in advance Matt Voerman
Re: [flexcoders] Still Need Example of Custom Component Built in Flash
Coding it in Flash isn't hard... it's installing the mofo that I don't know how to do. The docs say you can use an SWC, but where said SWC goes, is beyond me. I managed to throw one in here: C:\Program Files\Macromedia\Flex Builder 1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks ANd it shows up as a no package tab when you reboot FlexBuilder, but has no size when dragged to a form (even though width and height default to values), nor does it compile, complaining about my classpath or something. Anyway, that's the key part that's missing I think. DevNet article anyone? - Original Message - From: dduuggllaa [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 15, 2005 9:34 AM Subject: [flexcoders] Still Need Example of Custom Component Built in Flash Hello, Would someone be willing to post a simple example of a custom component built in Flash for use in Flex? The simpler the better. Thanks. -Douglass Turner Yahoo! Groups Links
I am looking for a Flex tutorial on Do while loops
Anyone know of any I am trying to create a do while loop that keeps looping until a condition is met. I have made them before but not with Flex Idid not see any in the flex xamples webpage so I was wondering if any of you could direct me to anywhere I can see an example I can learn from. Thanks again
RE: [flexcoders] dataprovider for mx:Array tag
Thank you very much for the tip. It did work. I am able to traverse thru the result object. Thanks! Hari -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 3:25 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dataprovider for mx:Array tag On Mon, 14 Mar 2005 15:13:56 -0500, Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote: thought of achieving this by assigning result object from remote object method to a Array and keep track of current product index accordingly populate Form Items. But to my surprise there is no property of dataprovider to mx:Array tag. What are you using the array for? Whatever it is, you could use the result object directly. Manish Yahoo! Groups Links
RE: [flexcoders] ComboBox databinding
I leave this for Matt, he is Binding guru :) I just removed type annotation from VO class EmployeeOptions { public var firstname; public var lastname; public var country; } I see no error Stay tuned.. -abdul -Original Message- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox databinding Hi - Your example works fine, but when I try to achieve a similar binding using a value object defined as an external class, I get a type mismatch error: Type mismatch in assignment statement: found Object where String is required. Here are some more details of my test setup. I have a value object defined as a class: class EmployeeOptions { public var firstname:String; public var lastname:String; public var country:String; } In a component called Employee, I've instantiated the class as: EmployeeOptions id=vo/ I'm trying to bind it from text fields and the comboBox this way: mx:Binding source=firstName.text destination=vo.firstname / mx:Binding source=lastName.text destination=vo.lastname / mx:Binding source=countries.value destination=vo.country/ To return values to my component, I've created a delegate called EmployeeDelegate. This is instantiated in the component as: EmployeeDelegate id=delegate/ I'm trying to call methods in the delegate to populate the component with constructions such as: mx:Label id=Name text={delegate.getEmployeeName(vo.firstname,vo.lastname)}/ This setup works just fine with the text fields, but the comboBox gives me the type mismatch error when I use the above bindings. Help! - Tom At 08:38 PM 3/14/2005, you wrote: Hi, I don't have the book so couldn't look at the code...I know code is available somewhere online, but me being lazy :) However, following code might help you... ###mxBindingTest.mxml### mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxmlhttp://www.macromedia.com/20 03/mxml !-- Form contains user input controls. -- mx:Form label=Employee Information mx:FormItem label=First Name mx:TextInput id=firstName / /mx:FormItem mx:FormItem label=Last Name mx:TextInput id=lastName / /mx:FormItem mx:FormItem label=Department mx:TextInput id=department / /mx:FormItem mx:FormItem label=Email Address mx:TextInput id=email / /mx:FormItem mx:FormItem label=Country mx:ComboBox id=countries mx:dataProvider mx:Array mx:StringIndia/mx:String mx:StringUSA/mx:String /mx:Array /mx:dataProvider /mx:ComboBox /mx:FormItem /mx:Form !-- The myEmployee data model -- mx:Model id=myEmployee name first/ last/ /name department// email/ country / /mx:Model !-- Properties of user interface controls are bound to the myEmployee data model using mx:Binding tags -- mx:Binding source=firstName.text destination=myEmployee.name.first / mx:Binding source=lastName.text destination=myEmployee.name.last / mx:Binding source=department.text destination=myEmployee.department/ mx:Binding source=email.text destination=myEmployee.email/ mx:Binding source=countries.value destination=myEmployee.country/ mx:TextInput text={myEmployee.country}/ /mx:Application Notice how combobox box is bound to a Model and Model is bound to TextInput... -abdul -Original Message- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox databinding I'm trying to create an application based on the LoanCalculator example in the Webster/McLeod book. Everything's working fine for simple bindings between text inputs on a form and the value object. Where I'm having trouble creating a databinding between a comboBox in the form and the value object. When the user selects an item in the comboBox it should be stored as a string in the value object. What's the way to accomplish this? All the value object variables are public, as in the book example. Specifically, what would the mx:Binding/ statement look like? A simple example would be even better. Thanks. - Tom Yahoo! Groups Links Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/D=g roups/S=1705007207:HM/EXP=1110937115/A=2593423/R=0/SIG=11el9gslf/*http://www .netflix.com/Default?mqso=60190075 click here [] -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/fle xcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexcoder [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links
RE: [flexcoders] dataProvider in custom component
Title: dataProvider in custom component mx:Model id="myDataModel" source="test.xml"/ myComp dataProvider="myDataModel.customer"/ This is one way, other way you can mx:Modal / in your component. That way, you will only pass xml path to the component... myComp source="test.xml" / you can also allow users to set dataProvider, which sets the appropriate datastructure for your component... myCom dataProvider="[10, 20, 30, 30,]" / If you want to change the data source on runtime, then you should use mx:HTTPService / tag to load data rather than mx:Modal / tag... If you tell use more about how you want to achieve, we can further discuss... -abdul From: Artur de Paula Ribeiro [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:39 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] dataProvider in custom component How to load data from XML file in my custom component? ex; mx:Model id="myDataModel" source="test.xml"/ myComp dataProvider="myDataModel.customer"/ Im a flex beginner. :-) (As informações contidas nesta mensagem e nos arquivos anexados são para o uso exclusivo do destinatário aqui indicado e podem conter assuntos comerciais, de propriedade intelectual ou outras informações confidenciais, protegidas pelas leis aplicáveis. Caso não seja o destinatário correto, por favor, notifique o remetente imediatamente e elimine esta mensagem, uma vez que qualquer revisão, leitura, cópia e/ou divulgação do conteúdo desta mensagem são estritamente proibidas e não autorizadas. Obrigado por sua cooperação. The information contained in this message and the attached files are restricted to the addressee, and may contain commercial information, copyright, or other confidential information protected by law. If you are not the recipient, please notify the sender immediately and delete it from your system, since any change, reading, copy and/or dissemination of this e-mail is strictly prohibited and not authorized. Thank you.)
RE: [flexcoders] Still Need Example of Custom Component Built in Flash
There's an 80 page document that shows: - how to build simple components in Flash for use in Flex; - instructions on how to compile components into SWCs; - where to put SWCs for use in your Flex environment; - and Much Much More! :) This document was removed from the Flex 1.0 DevApps book and put up as a separate document on the Macr website because it details a workflow that we don't really want to encourage. The process for building and skinning components made in Flash for use in Flex applications should be streamlined (again!) for 2.0. Link: http://download.macromedia.com/pub/documentation/en/flex/15/flex_compone nts_themes.pdf Also, read the last chapter of the 1.5 DevApps book which provides info on using the components document for Flex 1.5. Hope this helps, matt horn From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 9:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Still Need Example of Custom Component Built in Flash Coding it in Flash isn't hard... it's installing the mofo that I don't know how to do. The docs say you can use an SWC, but where said SWC goes, is beyond me. I managed to throw one in here: C:\Program Files\Macromedia\Flex Builder 1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks ANd it shows up as a no package tab when you reboot FlexBuilder, but has no size when dragged to a form (even though width and height default to values), nor does it compile, complaining about my classpath or something. Anyway, that's the key part that's missing I think. DevNet article anyone? - Original Message - From: dduuggllaa [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 15, 2005 9:34 AM Subject: [flexcoders] Still Need Example of Custom Component Built in Flash Hello, Would someone be willing to post a simple example of a custom component built in Flash for use in Flex? The simpler the better. Thanks. -Douglass Turner Yahoo! Groups Links Yahoo! Groups Sponsor ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=1292td13b/M=298184.6018725.7038619.3001176/ D=groups/S=1705007207:HM/EXP=1110983862/A=2593423/R=0/SIG=11el9gslf/*htt p://www.netflix.com/Default?mqso=60190075 http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group s/S=:HM/A=2593423/rand=721672570 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] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .
Re: [flexcoders] Still Need Example of Custom Component Built in Flash
Just re-read the question and realized it was asking about creating stuff in Flash rather than specifically ActionScript. I think Jesse's right and if you're generating .swc files you'll need to put them in either /WEB-INF/flex/frameworks or /WEB-INF/flex/user_classes. I think the recommendation is to use the second of those. As for creating the .swc itself, you should probably go take a look at the following area in the ActionScript documentation: http://livedocs.macromedia.com/flash/mx2004/main_7_2/3072.html Spike JesterXL wrote: Coding it in Flash isn't hard... it's installing the mofo that I don't know how to do. The docs say you can use an SWC, but where said SWC goes, is beyond me. I managed to throw one in here: C:\Program Files\Macromedia\Flex Builder 1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks ANd it shows up as a no package tab when you reboot FlexBuilder, but has no size when dragged to a form (even though width and height default to values), nor does it compile, complaining about my classpath or something. Anyway, that's the key part that's missing I think. DevNet article anyone? - Original Message - From: dduuggllaa [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 15, 2005 9:34 AM Subject: [flexcoders] Still Need Example of Custom Component Built in Flash Hello, Would someone be willing to post a simple example of a custom component built in Flash for use in Flex? The simpler the better. Thanks. -Douglass Turner Yahoo! Groups Links Yahoo! Groups Links -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org
Re: Still Need Example of Custom Component Built in Flash
Matt, My friend. Is it not possible for someone from the Macromedia braintrust to post a link to a simple component built in Flash that is usable in Flex. This is a very simple and request and I would think you guys have a closet full of shiney Flash widgets you can share with us timeline/movieclip averse types. Come on, share. Cheers, Douglass Turner
RE: [flexcoders] ComboBox databinding
At 10:44 AM 3/15/2005, you wrote: Abdul - That worked - thanks! I'm still troubled as to why I can't set types for the variables in my value object, though - if anyone has an idea. - Tom I leave this for Matt, he is Binding guru :) I just removed type annotation from VO class EmployeeOptions { public var firstname; public var lastname; public var country; } I see no error Stay tuned.. -abdul -Original Message- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox databinding Hi - Your example works fine, but when I try to achieve a similar binding using a value object defined as an external class, I get a type mismatch error: Type mismatch in assignment statement: found Object where String is required. Here are some more details of my test setup. I have a value object defined as a class: class EmployeeOptions { public var firstname:String; public var lastname:String; public var country:String; } In a component called Employee, I've instantiated the class as: EmployeeOptions id=vo/ I'm trying to bind it from text fields and the comboBox this way: mx:Binding source=firstName.text destination=vo.firstname / mx:Binding source=lastName.text destination=vo.lastname / mx:Binding source=countries.value destination=vo.country/ To return values to my component, I've created a delegate called EmployeeDelegate. This is instantiated in the component as: EmployeeDelegate id=delegate/ I'm trying to call methods in the delegate to populate the component with constructions such as: mx:Label id=Name text={delegate.getEmployeeName(vo.firstname,vo.lastname)}/ This setup works just fine with the text fields, but the comboBox gives me the type mismatch error when I use the above bindings. Help! - Tom At 08:38 PM 3/14/2005, you wrote: Hi, I don't have the book so couldn't look at the code...I know code is available somewhere online, but me being lazy :) However, following code might help you... ###mxBindingTest.mxml### mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxmlhttp://www.macromedia.com /2003/mxmlhttp://www.macromedia.com/20 03/mxml !-- Form contains user input controls. -- mx:Form label=Employee Information mx:FormItem label=First Name mx:TextInput id=firstName / /mx:FormItem mx:FormItem label=Last Name mx:TextInput id=lastName / /mx:FormItem mx:FormItem label=Department mx:TextInput id=department / /mx:FormItem mx:FormItem label=Email Address mx:TextInput id=email / /mx:FormItem mx:FormItem label=Country mx:ComboBox id=countries mx:dataProvider mx:Array mx:StringIndia/mx:String mx:StringUSA/mx:String /mx:Array /mx:dataProvider /mx:ComboBox /mx:FormItem /mx:Form !-- The myEmployee data model -- mx:Model id=myEmployee name first/ last/ /name department// email/ country / /mx:Model !-- Properties of user interface controls are bound to the myEmployee data model using mx:Binding tags -- mx:Binding source=firstName.text destination=myEmployee.name.first / mx:Binding source=lastName.text destination=myEmployee.name.last / mx:Binding source=department.text destination=myEmployee.department/ mx:Binding source=email.text destination=myEmployee.email/ mx:Binding source=countries.value destination=myEmployee.country/ mx:TextInput text={myEmployee.country}/ /mx:Application Notice how combobox box is bound to a Model and Model is bound to TextInput... -abdul -Original Message- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 6:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox databinding I'm trying to create an application based on the LoanCalculator example in the Webster/McLeod book. Everything's working fine for simple bindings between text inputs on a form and the value object. Where I'm having trouble creating a databinding between a comboBox in the form and the value object. When the user selects an item in the comboBox it should be stored as a string in the value object. What's the way to accomplish this? All the value object variables are public, as in the book example. Specifically, what would the mx:Binding/ statement look like? A simple example would be even better. Thanks. - Tom Yahoo! Groups Links Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/ D=ghttp://us.ard.yahoo.com/SIG=129m8jrlh/M=298184.6018725.7038619.3001176/D=g roups/S=1705007207:HM/EXP=1110937115/A=2593423/R=0/SIG=11el9gslf/*http://wwwhttp://www .netflix.com/Default?mqso=60190075 click here [] -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/fle xcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexcoder [EMAIL PROTECTED] * * Your
RE: [flexcoders] dataProvider in custom component
Title: dataProvider in custom component You might just be missing the binding curly braces: myComp dataProvider={myDataModel.customer}/ Matt From: Artur dePaula Ribeiro [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 5:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dataProvider in custom component How to load data from XML file in my custom component? ex; mx:Model id=myDataModel source=test.xml/ myComp dataProvider=myDataModel.customer/ Im a flex beginner. :-) (As informações contidas nesta mensagem e nos arquivos anexados são para o uso exclusivo do destinatário aqui indicado e podem conter assuntos comerciais, de propriedade intelectual ou outras informações confidenciais, protegidas pelas leis aplicáveis. Caso não seja o destinatário correto, por favor, notifique o remetente imediatamente e elimine esta mensagem, uma vez que qualquer revisão, leitura, cópia e/ou divulgação do conteúdo desta mensagem são estritamenteproibidas e não autorizadas. Obrigado por sua cooperação. The information contained in this message and the attached files are restricted to the addressee, and may contain commercial information, copyright, or other confidential information protected by law. If you are not the recipient, please notify the sender immediately and delete it from your system, since any change, reading, copy and/or dissemination of this e-mail is strictly prohibited and not authorized. Thank you.)
FlashPaper
hi, who can load a pdf file in flex with flashpaper and the pdf file inurl ex: object flashpaper.url = http://localhost/file.pdf
RE: [flexcoders] Is there a mod function
Correct: Example The following numeric example uses the modulo (%) operator: trace(12%5); // traces 2trace(4.3%2.1); // traces 0.0996trace(4%4); // traces 0 From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 3:14 PM To: [EMAIL PROTECTED] Subject: Re: [flexcoders] Isthere a mod function I think % does that. Says modulo division(sp?) in the docs, just guessing here. - Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 15, 2005 3:07 PM Subject: [flexcoders] Is there a mod function I am trying find a function that will divide two numbersand then return the remainder. I checked the math function to see if there was a mod function but there wasn't?
Handling Complex Data With Remote Object and Coldfusion CFC
Hi, My Environment -- Coldfusion 6.1 Flex 1.5 I would like to pass a complex object (Name,Title,Phone Number) as a parameter to my CFC function. I should be able to process this complex data in CFC and have to insert multiple rows into the table. How can I pass such complex data through my Remote Object call? Can someone post a simple example? Thanks, Mohanraj
Re: [flexcoders] HRule tabEnabled?
On Mon, 14 Mar 2005 17:54:09 -0800, Matt Chotin [EMAIL PROTECTED] wrote: Yeah, I'd prefer people to subclass HRule and set tabEnabled=false in something like commitProperties() (make sure you call super.commitProperties() in there). Manipulating the prototype is not what we push in the Flex world. Or a custom MXML component instead: ?xml version=1.0? mx:HRule xmlns:mx=http://www.macromedia.com/2003/mxml; tabEnabled=false/ Manish