RE: [flexcoders] Annpuncing Log4x
One more for you. Clicking on register generates the error message: document.getElementsByName(flexapp)[0].SetVariable is not a function This is in Firefox. However, if I navigate to your homepage first and then find the Flex area and click register, it works fine. -Blake -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Friday, December 02, 2005 10:07 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Annpuncing Log4x João, We have addressed this problem. To be quite frank, I don't know why we were requiring that information so I removed the required attributes. We're sure not going to start calling people up so you can give us your phone and address if you want to get a Happy Holidays card or you can just leave it all blank. :) The keyboard definition is definitely an interesting issue. I assume we'll be able to see this in other regions as well. I'll get someone in our CPH office to try this on one of their Danish keyboards. Thanks again for letting us know. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Friday, December 02, 2005 9:24 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Annpuncing Log4x Carson, No problem with that, I managed to register even if I had to fake those values. I'll update them when you fix this. BTW, when filling the form, it was assuming some other keyboard definition. Regards, João Fernandes Secção de Desenvolvimento Departamento de Informática -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: sexta-feira, 2 de Dezembro de 2005 16:58 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Annpuncing Log4x João, I apologize for this. I brought this up early on and it was apparently missed. We have offices all over the world with customers in just about every country. There is absolutely no excuse for us to be guilty of this. I will take care of this personally and let you know. I appreciate you bringing it to our attention. Thanks again... Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Friday, December 02, 2005 4:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Annpuncing Log4x Well, I registered but in your form you assume that many information is US format when there are Flex Users all over the world ;) You should disable ZIP format and phone number length at least for those who picks a country different from US. Regards, João Fernandes Secção de Desenvolvimento Departamento de Informática -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: sexta-feira, 2 de Dezembro de 2005 5:44 To: flexcoders@yahoogroups.com Subject: [flexcoders] Annpuncing Log4x I am incredibly excited to announce the availability of Log4x to the Flex community. Log4x is a toolkit to assist in the development and runtime monitoring and debugging of applications built with Macromedia Flex. Based on and designed to integrate with Log4j, effectively the most popular logging framework ever developed, Log4x provides the Flex developer with a best-of-breed solution for instrumenting and logging their Flex based RIAs.Log4x takes advantage the Flex web services model, and can be intricately controlled by the developer on a per-application basis during development as well as by administrators in production. Integrating seamlessly with Log4j, Log4x provides a similar programming model making it intuitive for enterprise developers with Log4j experience. Log4x is being released under a community source license free of charge to all licensed Flex users. Features include: - Integrated logging between user experience and server layers. No other logging framework to date lets you bring together every tier of your enterprise flex application. - Ability to assign not only pre-set categories (INFO, DEBUG, WARN, ERROR) but also arbitrary logical application name spaces such as shopping cart, system, navigation, etc. - Logging levels are completely dynamic and can be enabled and disabled in real-time without having to ever recompile your Flex application. - Configurable batching with thresholds reduces network traffic and allows you to configure rules such as don't log unless an error occurs, then log the all steps that lead up to that error. - Based on industry
RE: [flexcoders] Annpuncing Log4x
I've tried to subscribe and download log4X and I've noticed the form isn't working in player 8.5. When I focus textInputs I can't write in them. However player 8.0 works fine. Well, the 8.0 player doesn't work for me here. I can tab around and everything, but just can't type. That's in Firefox. In IE, it works as expected except for the initial field focus issue. Blake Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Annpuncing Log4x
Thanks for letting us know. We believe this has something to do with loading javascript files with certain browsers within the Flex iframe. Would you mind sharing with us the version of FFX that you are using? Version 1.0.7 ... probably time to upgrade though. :) Cheers, Blake Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AJAX ms etc -- Flex2: pricing info
Robert Thompson wrote: ... (I know ms didn't invent Ajax but they do have things going on with Avalon and will use the Ajax opp... My history may be a bit fuzzy, but wasn't it Microsoft who initially created the XMLHttpRequest ActiveX control for use with Outlook Web Access? They may not have invented the AJAX marketing buzzword, but they're fairly central to having created the technology. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] set Effect at runtime
I did something similar to implement a Mac OS X style"invalid login shake"on a login panel: function badLogin() { var seq : mx.effects.Sequence = new mx.effects.Sequence(this.loginPanel); var shakeLeft : mx.effects.Move = new mx.effects.Move(this.loginPanel);shakeLeft.xBy = -10;shakeLeft.duration = 50;var shakeRight : mx.effects.Move = new mx.effects.Move(this.loginPanel);shakeRight.xBy = 10;shakeRight.duration = 50;seq.addChild(shakeLeft);seq.addChild(shakeRight);seq.addChild(shakeLeft);seq.addChild(shakeRight);seq.addChild(shakeLeft);seq.addChild(shakeRight);seq.playEffect();} In the code, this.loginPanel is the thing you want to move. Hopefully you can adapt that to your circumstances. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Wednesday, October 26, 2005 8:55 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] set Effect at runtime Try this? Application.application.canvas1.viewstack1.panel1.viewstack2.selectedChild.setStyle(moveEffect, b); From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of keishichi2001Sent: Wednesday, October 26, 2005 3:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] set Effect at runtime My Flex application is based on Cairngorm 0.99.Main application includes several custom components and those have own ViewHelper to render themselves.Let's assume two of custom components, CompA and CompB.CompA has a mx:Image in it, and it has moveEffect setting.CompA also has definition of several mx:Effect.ie)mx:Effect name="a" ... /mx:Effect name="b" ... /I'd like to change this effect to another one from a ViewHelper of CompB.To accomplish this, I tried following code.=...var curImage:mx.controls.Image = mx.core.Application.application.canvas1.viewstack1.panel1.viewstack2.selectedChild.childDescriptors[0]; // Image objectcurImage["moveEffect"] = "b";...=It seems that the moveEffect isn't changed, and no error at runtime.Am I wrong on my code?Does anyone have good solution for this issue?Thanks,Keishichi -- 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: Number(011) = 9 ????
You might want to alter Abdul's function slightly if you expect more than one leading zero: function getDecimalNumber(numStr:String):Number { if(numStr.indexOf(0)== 0) { return getDecimalNumber(numStr.substr(1)); } return Number(numStr); } Cheers, Blake Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] StringValidator and required fields
You can't have bindings in Validators, so the compiler is parsing required={usePurchaseOrder.selected} to either true or false - and it looks like true from what you're saying. It'd be good if the compiler helper a bit more here, but it doesn't. I was hoping that wouldn't be the case. Is there some architectural reason why bindings don't apply to Validators? I couldn't find anything in the docs about why this would be the case. We don't think Cairngorm store has any bindings on validators - please let us know if it does. No, it doesn't. I modified the store and apparently tried to be too clever. For what you're wanting to do, you're best bet will be to drop into ActionScript and change your validators at runtime. Okay, will do that -- thanks for the information. Cheers, Blake Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h71oldl/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123700056/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 Fair play? Video games influencing politics. Click and talk back!/a./font ~- -- 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] StringValidator and required fields
For what you're wanting to do, you're best bet will be to drop into ActionScript and change your validators at runtime. I've been working on this trying to figure out the best way to handle it. The compiler nicely informs me that id tags aren't supported on validators, so it appears setting the required property on a validator isn't directly possible. The only way I can determine is that I should be calling the validator's disable method, eg: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/validators/Validator .html#disable So I modified the PaymentInformation.mxml to have: mx:Model id=paymentInformationModel usepurchaseorder{ usePurchaseOrder.selected }/usepurchaseorder purchaseordernumber{ purchaseOrderNumber.text }/purchaseordernumber ... etc ... /mx:Model mx:StringValidator field=paymentInformationModel.purchaseordernumber requiredFieldError=Please enter your purchase order number. / Then, in CheckoutViewHelper.as, I modified it to have: public function validateCheckOutForm() : Boolean { var validStructures : Number = 0; var structuresToBeValidated : Number = 2; // manually set required for non-binding validators if (view.paymentInformationComp.usePurchaseOrder.selected) { mx.validators.Validator.enable(view, paymentInformationModel.purchaseordernumber); } else { mx.validators.Validator.disable(view, paymentInformationModel.purchaseordernumber); } ... etc ... } However, this doesn't seem to work. I've tried passing in purchaseOrderNumber and other variations to the disable and enable methods, but it still shows up as being a required field. I hope I'm missing something obvious -- my next step would be to use a generic Validator with a custom validate() function, which all seems rather messy. Thanks, Blake Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h65lnr9/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123702726/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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] StringValidator and required fields
I would take the click event from your checkbox and map that to an event handler which enables/disables your StringValidator. Thank you, that seems to have done the trick! Now to submit a feature request for validator bindings... :) Blake Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h392bgq/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123704489/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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: selectedItem in a list shows an icon
Very close to what I need...How to change the image if I click back on the same item. The idea is that I want to permit no selection in the list. Holding down the Ctrl key while clicking does it. Otherwise, you might need to write your own toggle function called by a click event. Blake Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hl37u6e/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123709257/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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] StringValidator and required fields
I've been playing around with validators and seem to have encountered a behavior which is unexpected. Here's a sample of what I'm doing: --- [snip...] mx:Model id="paymentInformationModel" usepurchaseorder{ usePurchaseOrder.selected }/usepurchaseorder purchaseordernumber{ purchaseOrderNumber.text }/purchaseordernumber/mx:Model mx:StringValidator field="paymentInformationModel.purchaseordernumber" required="{usePurchaseOrder.selected}" / mx:Form width="100%"mx:FormHeading label="Purchase Order" / mx:FormItem label="Pay using purchase order" required="false" mx:CheckBox id="usePurchaseOrder" label=""/ /mx:FormItem mx:FormItem label="Purchase Order Number" required="{usePurchaseOrder.selected}" enabled="{usePurchaseOrder.selected}"mx:TextInput id="purchaseOrderNumber" width="100" maxChars="50" / /mx:FormItem/mx:Form [...snip] -- (This is modified from the Cairngorm store and uses the Validator.isStructureValid call in the same way.) This displays correctly -- the user clicks the checkbox to use a purchase order and the field becomes enabled and displays an asterisk beside it. But if the user leaves it unchecked, then upon submitting the form it still thinks the field is required. The telling part is that if I change the StringValidator to have required="false" instead of required="{usePurchaseOrder.selected}" then it correctly sees it as not required. What am I missing here? Thanks, Blake -- 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 Computer software testing Macromedia flex Development Software developer 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] Making a page with a video clip
How much do these programs cost If you're not already familiar with it, http://froogle.google.com is a good place to start shopping for software prices. Enter appropriate product to search for (eg: sorenson squeeze) and have fun! Cheers, Blake 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] MXML Schema
But some featrues are missing, so I have a hunch that the Scheme is not complete. For example while beeing in a mx:operation within a mx:Webservice no hinting for result or concurenncy is provided. Checking the Schema with a Schema-Browser results in that attributes or sub-tags for mx:operation are not provided. As I learned earlier (see ColumnChart thread), the lower-case tags aren't objects but shortcuts for defining properties of the parent tag. So, as in that ColumnChart thread, this code: mx:ColumnChart ... mx:verticalAxis ... ... /mx:verticalAxis /mx:ColumnChart Is the same as: mx:ColumnChart verticalAxis=... ... ... /mx:ColumnChart Cheers, Blake 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] ColumnChart with logarithmic Y axis?
Is it possible to have a ColumnChart where the Y axis is plotted on a logarithmic scale? This would be handy for those cases where some values are so large that they make the small values display with only a few pixels. If not, consider it a feature request. :) Thanks! 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] ColumnChart with logarithmic Y axis?
I'll see if that's workable. I'm pulling the data from an HTTPService result and using it to drill down to other figures so I don't want to alter the original data, and data binding works so cleanly for the charting -- I assume using this method I'll need to take the result and parse it out to an array of Objects first, then bind that array to the chart? For the next release, perhaps instead of or in addition to a LogAxis object, would it make sense to have an attribute called scale which you could set as scale=linear or scale=logarithmic, etc. for quick implementations? Thanks, Blake -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield Sent: Wednesday, May 18, 2005 10:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ColumnChart with logarithmic Y axis? Not officially possible, but you might be able to make it work by: - convert your values into logarithmic values using Math.log. - specify the interval property on your vertical axis to be 1. - use a label function on your verticalAxisRenderer to convert the labels on the axis to Math.pow(10,value); I think that would work. And a LogAxis object is being considered for the next release flex. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Blake Kadatz Sent: Wednesday, May 18, 2005 10:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ColumnChart with logarithmic Y axis? Is it possible to have a ColumnChart where the Y axis is plotted on a logarithmic scale? This would be handy for those cases where some values are so large that they make the small values display with only a few pixels. If not, consider it a feature request. :) Thanks! Yahoo! Groups Links Yahoo! Groups Links 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] ColumnChart with logarithmic Y axis?
I suppose, but this: LinearAxis scale=logarithmic / Feels a little bit oxymoronic, don't you think? Sure, that example does! :) Doing it with a separate LogAxis would require, at a minimum, this code: LineChart veritcalAxis LogAxis / /verticalAxis series ... /series /LineChart That doesn't seem like it's too much overhead, no? I was thinking more along the lines of: mx:verticalAxis scale={customScale} ... Then you could change the scale type on the fly should that need ever arise. Cheers, Blake 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] ColumnChart with logarithmic Y axis?
Ah, I see. The problem is, mx:verticalAxis is the name of a property, not an object. MXML doesn't allow you to set properties on properties...you need to set the property to an object, then set a property of the object. ... You can still change the scale dynamically at runtime: myChart.verticalAxis = new LinearAxis(); myChart.verticalAxis = new LogAxis(); Got it, makes sense now. I was blurring the distinction between properties and objects a bit there. Thanks! 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 icon to panel?
Is it possible to add an icon to a panel's titlebar? I've tried: mx:Panel icon=@Embed('icon.png') title=Test but that doesn't seem to work. If it's not possible to have an icon, can anyone suggest a good workaround which will preserve the rounded and shaded look of the titlebar? Regards, Blake Kadatz 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 icon to panel?
You can always create a subclass and add icons there. Take a look at Christophe's Pod class for a nice example. Thank you -- it looks like that's just the thing to get me started. Cheers, Blake Kadatz 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] OT:?versionChecked=false crashes JRun/Apache
That's known bug, hopefully it gets fixed in next version of Flex. Is that a Flex bug or a JRun bug? Sounds a bit too easy if a malicious user can do a denial of service just by changing the querystring. 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] Passing Models into MXML components...
I ran into this as well. The ugly way around it is to move the code from the externally referenced file into the main file. So in your case, that would be put the dspTravelProfile.mxml code into index.mxml. However, for anything more than a small app, that's clearly unacceptable. However, given that it's not able to find certain properties, perhaps it's possible to give Flex some hints on where employeeModel is being defined so that it's able to resolve references across different files? Blake -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 9:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Passing Models into MXML components... I have a really weird situation here, basically i have: --index.mxml--- mx:Model id=testModel firstNameScott/firstName /mx:Model inco:dspTravelProfile employeeModel={this.testModel} / -- dspTravelProfile.mxml-- mx:Script ![CDATA] public var employeeModel; ]] /mx:Script mx:FormItem label=First Name: mx:Label text={employeeModel.firstName}/ /mx:FormItem When I first save/change the physical mxml and then run, i get this message in the compiler: Changes to unknown property, firstName will not be detected. -THEN- I hit refresh again, and it goes away? Is this just a polite exception? and how do you pass down a byReference as a variable into other components? (if its possible) -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) Yahoo! Groups Links 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] Updating datagrid using dynamic combo boxes
I seem to have solved my own problem. In the HTTPService definitions, I was defining a result=purchaseService.send() call to refresh the grid. Given that the combo boxes won't be updating except for the first time, I've removed the result event and that seems to have done the trick. Blake -Original Message- From: Blake Kadatz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 3:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Updating datagrid using dynamic combo boxes Hi, In my application I have three combo boxes which act as a filter for a datagrid. For example, I have: Customer: Sales rep: Country: _ _ |__|_||___|_| |___|_| || | ... Datagrid of customer purchases here ... | The datagrid and all combo boxes are populated dynamically from HTTPServices. When the user chooses a different country, for example, I want to show all purchases from that country which also match the currently selected customer and sales rep. So I've defined them as such: mx:ComboBox id=customer_combo change=purchaseService.send() labelField=company_name dataProvider={customerService.result.customers.customer} /mx:ComboBox The others are defined similarly. When my app initializes, I call: customerService.send() to populate the list of customers. The problem is that the change event fires from the init routine, which then triggers the datagrid to refresh. If all three combo boxes do this, then it's grabbing the data three times from the server when it should only be doing one query. After it initializes, it's not a problem, but I just want to avoid three (possibly lengthy) database fetches at the start. Any ideas on a cleaner way to do this? Perhaps it's possible to set the change event for each after the initial send() completes or disable the event until then? Or have I missed something totally obvious? :) Thanks, Blake Yahoo! Groups Links 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] Proper login window handling?
Hello, I've build a LoginWindow.mxml consisting of a mx:TitleWindow ... tag and related code. I call this from my main application as such: function show_login():Void{var parent = this;var isModal:Boolean = true;var initObj = {};var login = PopUpManager.createPopUp(parent, LoginWindow, isModal, initObj);login.parentObject = this; // store a referenceto this Applicationlogin.centerPopUp();} So far so good. When the user wants to login, I call a remote object withthe username andpassword supplied by the userwhich queries a databaseand passes the return value to a loginResult function: function loginResult(result):Void{if (result == true){//switch to a different panel in the stack//parentObject.main_stack.selectedChild = parentObject.login_ok_panel;this.deletePopUp();}else{login_result.text = "Sorry, your login details are incorrect.";}} And this works fine, but it seems like a hack. I originally wanted to get this to work with events. I setup an event handler on the "login" variable, the LoginWindow fires off an event if the login is successful, and the application handles the event and switches to a different panel in the stack. The problem is, this didn't work. I could display an alert dialog, but the call to switch the stack didn't execute. I assume this has something to do with how it's being references (eg: event handlers are outside of the scope of the code in which they're created) but after an hour of fiddling with broadcast handlers and various other mechanisms, I couldn't seem to get main_stack to update. Is this the only way to do it, is the event model cleaner, or is there a better methodology for displaying modal dialogs like a login screen? Any pointers would be appreciated. Thanks, Blake Yahoo! Groups Sponsor ADVERTISEMENT 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] Proper login window handling?
Ah, I found the problem. In the code below, I'm mistakingly using: login.addEventListener(login_success, new mx.utils.Delegate.create(this, showSuccessPanel)); Note the undesired new call when creating the delegate. Instead, it should just be: login.addEventListener(login_success, mx.utils.Delegate.create(this, showSuccessPanel)); It works just fine now. I can't believe it was that simple. Thanks for all the help! Blake -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 6:12 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Proper login window handling? I notice you are using selectedChild. It is possible that login_ok_panel does not exist when you try to set the selectedChild. ViewStack, by default uses deferred instantiation and does not create the children until the first navigation. So if login_ok_panel has not been instantiated, you cannot set selectedchild to it Try selectedIndex instead. Tracy -Original Message- From: Blake Kadatz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Proper login window handling? I did try using a mx.utils.Delegate object but that didn't seem to work either. Basically, I used: // create login window, etc... login.addEventListener(login_success, new mx.utils.Delegate.create(this, showSuccessPanel)); and... function showSuccessPanel():Void { login.deletePopUp(); main_stack.selectedChild = login_ok_panel; } In my LoginWindow file, if the username/password matched, I used: dispatchEvent({type: login_success}); Still didn't work, unless I'm missing something obvious on how delegates work. In the Developing Rich Clients book, page 367, I didn't see where the setUpContextMenu was defined so perhaps there's an object being passed I'm not aware of. Thanks, Blake Yahoo! Groups Links Yahoo! Groups Links 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/