[flexcoders] Re: BETA 2: How to validate a form before actually submitting
Hi Oriol, This *sounds* a lot better though I am getting these errors at compile time. 1::Implicit coercion of a value of type 'String' to an unrelated type 'mx.events:ValidationResultEvent (this error appears twice) 2::Comparison between a value with static type 'mx.validators:StringValidator' and a possibly unrelated type 'String' (this error appears twice) 3::Access of undefined property 'alert' I'm not such of an actionscript guy, but I'll get there sooner or later. Thanks again. Alex --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Hi Alexander, Thanks to your observation I've came to a better solution: mx:Script ![CDATA[ import mx.events.ValidationResultEvent; private function checkValidators() : Boolean { stringvalidation = stringvalidator.validate().type; stringvalidation2 = stringvalidator2.validate().type; if ( (stringvalidator == ValidationResultEvent.VALID) (stringvalidator2 == ValidationResultEvent.VALID) ) { return true; } else { return false; } } private function sendForm() : void { if(checkValidators()) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var stringvalidation : ValidationResultEvent; private var stringvalidation2 : ValidationResultEvent; ]] /mx:Script mx:StringValidator id=stringvalidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change/ mx:StringValidator id=stringvalidator2 source={inputText} property=text minLength=3 maxLength=20 trigger={inputText2} triggerEvent=change/ mx:Form mx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20/ /mx:FormItem mx:FormItem label=Input some other text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText2 width=80 maxChars=20/ /mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ Some explanation and changes: - Removed the valid/invalid properties of the validators. - Added an id for each one. - Instead of doing this: if ( (stringvalidator.validate ().type== ValidationResultEvent.VALID) (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it's better to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wanted Alexander), the other way if the first fails the other fields won't be validated. Hope this helps, Oriol 2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]: While this does the trick, what if I have 3 inputs? While one passes the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validated before executing sendForm(). BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead of having to hover over my mouse pointer? Thanks, Alexander *Oriol Gual [EMAIL PROTECTED]* wrote: Hi, What I do to validate a form, is somethig like this: mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void { if(eventObj.type==ValidationResultEvent.VALID ) { formValid = true; } else { formValid = false; } } private function sendForm() : void { if(formValid) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var formValid : Boolean = false; ]] /mx:Script mx:StringValidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid (event) invalid=handleValid(event)/ mx:Form mx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20/ /mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them. Hope this helps, Oriol 2006/4/2, Dreamer [EMAIL PROTECTED]: Alex Alex, you can put the data be validated in a model.like this: mx:Model id=order email{ email.text } /email//email is a textInput controller's id
[flexcoders] BETA 2: Tough one... LOADER
Hi all, Situation: Assuming we have a TitleWindow which contains a TabNavigator with 5 tabs. Each tab is a custom canvas component ie: myComp:MyProfile (file is MyProfile.mxml). I do not want to load all 5 custom components when opening the TitleWindow. Instead I want to put a loader while changing tabs until the new tab (custom component) fully loads. Even as a nice effect, I would like to have the loader before loading the contentent. Thanks, Alexander -- 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] BETA 2: DateField appears behind TitleWindow when clicked
Hello, I have a TitleWindow and inside I hold a signup form. In the signup form I ask for the Birthdate using a DateField. When clicked on for the first time the popup calendar appears on top of the TitleWindow. BUT if I want to pick another date and I click on the small calendar icon for a second time the popup calendar appears behind the TitleWindow. Any ideas on how to make it appear always on top? Thanks, Alexander -- 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] BETA 2: How to validate a form before actually submitting
Hello, In a signup form, when I click the submit button I would like for all the validation to happen and then actually hit the addMember() function. But if a form fails the validation how can I prevent the execution of addMember(). Thanks, Alexander -- 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: BETA 2: How to validate a form before actually submitting
Hi Mike, I understand the login, but how do I reference the validation? I mean what would actually go where you have validation is success. I'm not an actionscrip expert! I'm a cfforever guy ;-). Alexander --- In flexcoders@yahoogroups.com, Dreamer [EMAIL PROTECTED] wrote: Alex Alex, you can write a function,like that. if(validation is success) addMember(); else alert(invalid input!!!); ¡¡ Peace, Dreamer [EMAIL PROTECTED] 2006-04-01 === 2006-04-01 18:32:22 £º=== Hello, In a signup form, when I click the submit button I would like for all the validation to happen and then actually hit the addMember() function. But if a form fails the validation how can I prevent the execution of addMember(). Thanks, Alexander -- 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] BETA 2 - How can I stop a button from opening multiple TitleWindows
Hello, I have a simple TitleWindow that I open when I click on a button. Each time I click on the button a new TitleBar opens. How can I see if the TitleWindow is already open? Or any other solution to this issue will do. Alexander -- 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] BETA 2 - What is a good swf size range?
Hello, After compliling a flex 2 project, what is a normal swf size range? I currently get 259kb, but I still have lots of stuff to add. Thanks, Alexander -- 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] Minimizing functionality on TitleWindow
Hello experts, I'm working on an application similar to a desktop environment. I have a TitleWindow that works just great and I have created 2 states. the first state is when the TitleWindow is open and the second state is when the TitleWindow is minimized. Question: How can I add a dash (-) next to the (x) on the TitleWindow that when clicked on the TitleWindow will change between states? Thanks Alex -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to set a background in FLEX 2 Beta 2
Hello list, I have this simple question I need help with. I have a swf file which is 50x50, and I want to use it as a background, but I want to to replicate along the screen and fill the whole screen. How can this be done? I know it must be simple. (there is a next question on this comming once this one is asnwered) Thank you, Alexander -- 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 Partnership Opportunity
Please email me at [EMAIL PROTECTED] I cannot give pricing info over here. Currently they are not being used at all. Thanks, Alex --- In flexcoders@yahoogroups.com, jperedo [EMAIL PROTECTED] wrote: Alexander, give me an idea of what that license usually retails for? and how are you currently using it, is it hosting anything? Thanks. --- In flexcoders@yahoogroups.com, Alex Alex [EMAIL PROTECTED] wrote: Hello developers, I own a 4 cpu Flex license which apparently cannot be sold and I am entitled to free upgrade to FLEX 2.0 Enterprise etc... I am looking for serious Flex developers who have a project in mind or on the way or even ready to partner with or arrange some kind of deal. I will provide the hardware as well. Please contact me if you have anything in mind, even if its not in the above premises. EMAIL: atsoukias @ gmail.com Thanks, Alexander Tsoukias Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FLEX Partnership Opportunity
Hello developers, I own a 4 cpu Flex license which apparently cannot be sold and I am entitled to free upgrade to FLEX 2.0 Enterprise etc... I am looking for serious Flex developers who have a project in mind or on the way or even ready to partner with or arrange some kind of deal. I will provide the hardware as well. Please contact me if you have anything in mind, even if its not in the above premises. EMAIL: atsoukias @ gmail.com Thanks, Alexander Tsoukias Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FLEX Licenses for sale - FLEX 2.0 Enterprise upgrade included
The Gold support is for 6 months. You are entitled to 12 months of free upgrades. MM announced they will release Flex 2.0 in the first half of 2006. Thank you, Alex --- In flexcoders@yahoogroups.com, Chris Velevitch [EMAIL PROTECTED] wrote: On 10/12/05, João Fernandes [EMAIL PROTECTED] wrote: But if its a 6 month gold subscription... do you think in 6 months we'll have flex 2 ready to go? Macromedia has not announced a release date so... Didn't they say early 2006? And besides, if the subscription did expire before then, it would be wise to renew. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FLEX Licenses for sale - FLEX 2.0 Enterprise upgrade included
Please contact me (alex49080 @ yahoo.com) for pricing. Included is also 6 months of FLEX GOLD Support from MM. Thanks, Alex Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Server Alternatives
I just purchased a 4 cpu license. Does this mean that there is no worth in it when zorn comes out? Will I get the new flex for free? Or do I have to pay all that money again? I hope Macromedia sorts all that out. Alex --- In flexcoders@yahoogroups.com, sam / pixelconsumption [EMAIL PROTECTED] wrote: at MAX almost 50% of the sessions are about Zorn or include Zorn some how, I'm sure we'll all have a clear picture of what the future holds after MAX. // sam robbins // pixelconsumption Clint Modien wrote: According to Mike Chambers @ MM Zorn will http://weblogs.macromedia.com/mesh/archives/2005/08/will_zorn_requi.c fm On 9/29/05, *Kevin Langdon* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: WARNING: This message contains little-to-no helpful information and for the most part is a rant. The problem with Flex pricing isn't the price itself. The problem is it's model. Most development I have seen is only using Flex as a compiler, not a service. Most applications would actually perform better if developers simply compiled locally using mxmlc and then used non-Flex technologies like Remoting or openAMF on their production servers. More developers, able to develop in this architecture, need to bring this up with Macromedia. Macromedia needs to understand that we are willing to pay them for the CPUs that we compile on, but it is just ridiculous to expect us to pay for the servers serving those static swf files. Flash is a client-side technology. It has nothing to do with servers and therefore CPU pricing makes no sense. What if I were to build a desktop application compiled using Flex? Is Macromedia telling me that I need to pay for each one of my user's CPUs? I am holding my breath hoping that Zorn fixes this problem. Kevin -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] On Behalf Of Niklas Richardson Sent: Thursday, September 29, 2005 4:43 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Server Alternatives Someone might have mentioned this already, but I haven't seen it. If you want some of the functionality of Flex (i.e. forms, data grid, etc...) and cost is an issue, then ColdFusion MX 7 could be an option for you. It has a very cut down version of Flex built into it and accessible via ColdFusion tags, however you can still build some pretty good app's with it - if budget is an issue. Also, there are plenty of companies providing ColdFusion MX 7 hosting. Check out the team over at ASFusion (http://www.asfusion.com/) who are really doing some cool stuff using ColdFusion MX 7 Flash Forms! Also, http://www.cfform.com/. On 29/09/05, Scott Barnes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 9/29/05, Tariq Ahmed [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well I don't know if I would venture to dirt cheap. What other systems are you referring to? See SAP for starters, then once you jump that hurdle, now look at anything with the word ORACLE in it. If you're enterprise, and building mission critical apps, and especially if it affects financial performance and need to be SOX compliant you're basic setup is: - 1 Development WS - 1 QA Server - High Availability Setup (at least 2 load balanced machines). - Disaster Recovery Site (min 1 web server). If you're using decent hardware with 4CPU Xeons, you've got 5 machines * 4 cpus/ea = 20 CPUs * $15K/cpu = $300 000. You would have to REALLY boost automation, workflow efficiency, etc... to recuperate the cost of Flex licensing and Flex application development (not everyone is Scott Barnes level super coder) vs a CF/Whatever based solution. Not to say that it can't be done, and I'm You'd still outlay the same costs if not more with a HTML based solution such as CFMX. Furthermore, if you are to comply with SOX you have to jump through a bit more hurdles in authenticating the HTML solution is immune to various DOS attacks (injection attacks, packet sniffing the works). Then you have resources and costs associated to building a HTML application. If you are going down the path of the AJAX momentum, good luck in comparing the two. I'm also
[flexcoders] Flex Licensing / Pricing / handling
Hello all and especially MM people, I was told to post a message here about specific license needs. I am currently about to launch a website developed in FLEX. I cannot reveal what exactly this site does, as its unique to date. I will be getting about 2000 logins a day and I need to know an estimate of what hardware I will be needing and consequently how many FLEX licenses etc... I really do appreciate your time as I need to proceed in purchasing these licenses. Note the use if of course commercial. Thank you again, Alexander Tsoukias Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/