[flexcoders] Flex Events (UK South)
Hi Flexcoders, Does anyone know of any Flex events in the South of the UK - particularly near Southampton? Kind Regards, Simon Fifield Mango Solutions 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.
[flexcoders] Using RemoteObject to pass data to the Server
Hi, I can't find much documentation on passing the data to the server using the remoteObject data service. Everything seems to be about getting info from the server. Is there any info around on carrying out such tasks? I'm almost certain that its just about filling the arguments on the called method but haven't found an example to give me confidence. Al I want to to is pass a VO to a server to be inserted into a database via remoteObject, not HTTPService or Web Services. Thanks in advance. 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] remoteObject error handling
Hi, I'm calling a remoteObject with an Argument (a String), which inserts it (the string) into a database. However, I have setup the database to not allow duplicate entries. So when testing this in Eclipse and if I try to enter the same data twice I get this error: SQLException: Duplicate entry 'myTest' for key 1 SQLState: 23000 VendorError: 1062 Now, how do I handle this in flex? Regards, Iain 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] remoteObject error handling
There are a variety of ways of handling results (success or failure) from the server. One way to do it is to assign a function that should be called on either success of failure. Here is the definition of a RemoteObject, and the processing of a failure is assigned to a function that is assigned to the remote object call. mx:RemoteObject id=services source=com.testcompany.Services mx:method name=insertString result=event.call.resultHandler(event.result) fault=event.call.faulthandler(event.fault) showBusyCursor=true/ /mx:RemoteObject Then, in your ActionScript code to invoke the remote call you would have: function handleFailure(event:Object) { mx.controls.Alert.show(error adding string); } function handleSuccess(event:Object) { mx.controls.Alert.show(success adding string); } function addString(stringValue:String) { var pendingCall = mServices.insertString(stringValue); // make sure to use the delegate utility for correct scoping failureCallback:Function = Delegate.create(this, handleFailure); successCallback:Function = Delegate.create(this, handleSuccess); pendingCall.resultHandler = successCallback; pendingCall.faultHandler = failureCallback; } -ashley digital_eyezed wrote: Hi, I'm calling a remoteObject with an Argument (a String), which inserts it (the string) into a database. However, I have setup the database to not allow duplicate entries. So when testing this in Eclipse and if I try to enter the same data twice I get this error: SQLException: Duplicate entry 'myTest' for key 1 SQLState: 23000 VendorError: 1062 Now, how do I handle this in flex? Regards, Iain *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/. 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] Job Opening
Flex/Flash engineer job opening Brightcove, Inc., a young startup lead by former Macromedia CTO Jeremy Allaire is looking for experienced Flash developers seasoned at building Flex applications to join its engineering team. As a member of this team, you will contribute to the development, release and maintenance of a service that aims to touch millions of people around the world and revolutionize the consumer television experience. The ideal candidate has 3-8 years of experience building dynamic, interactive websites with a solid background in good development practices. All positions are based in Cambridge, MA. Please send your resumes to: [EMAIL PROTECTED] 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] Flex Events (UK South)
Simon, Does anyone know of any Flex events in the South of the UK - particularly near Southampton? Edinburgh is only an Easyjet away ;) The UK Rich Internet Application usergroup is holding meetings every 6 weeks in Edinburgh, which are all focussed on RIA development with Flex. We'll be announcing the next usergroup meeting shortly, we're just confirming the speakers and topics. If you're interested, you're more than welcome to come visit us. Best, Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. 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. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.0 - Release Date: 31/03/2005
[flexcoders] In Flex, is there any equivalent to Fieldset in HTML?
Hi, In Flex, is there any tag or way of doing the same job as a fieldset as in HTML? If not, it would be great to have it out-of-the-box in Flex. 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] Javascript open.window in htmlText
Title: Javascript open.window in htmlText Hi everybody, Is there a way to open a popup from a link in htmlText? Cheers, Tony. This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS 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] Javascript open.window in htmlText
Hi You can do it, the way its done in html/javascript... _ta.htmlText = Click a href='javascript:window.open(\http://www.macromedia.com\,null,\height=600 ,width=800,status=yes,toolbar=no,menubar=no,location=no\);void(0);'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; But sometimes, these kind of linking become unmanagable, in that case you can use asfunction to call a function flex code which opens popup... Look at the following example, which demomstrates both techniques... ##asfunctionExample.mxml## ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ function appInit() { _ta.htmlText = Click a href='javascript:window.open(\http://www.macromedia.com\,null,\height=600 ,width=800,status=yes,toolbar=no,menubar=no,location=no\);void(0);'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; _ta1.htmlText = Click a href='asfunction:mx.core.Application.application.openLink,macromedia'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; } function openLink(whichLink) { alert(Which Link: + whichLink); var url:String; switch(whichLink) { case macromedia: url = http://www.macromedia.com;; } getURL('javascript:window.open(' + url + ',null,height=600,width=800,status=yes,toolbar=no,menubar=no,location=no) ;void(0);'); } ]] /mx:Script mx:Label fontSize=16 text=Usual way/ mx:TextArea id=_ta width=300 height=200/ mx:Label fontSize=16 text=Better way using asfunction:/ mx:TextArea id=_ta1 width=300 height=200/ /mx:Application Couple of links on asfunction: - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15639 - http://www.macromedia.com/support/flash/action_scripts/actionscript_dictiona ry/actionscript_dictionary073.html I just remember that someone wrote a very long tutorial on asfunction, recently some 2-3 months back it appeared on some blog...Just don't remember the URL... Anyways, I hope it helps you -abdul From: Anthony Merryfield [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 8:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Javascript open.window in htmlText Hi everybody, Is there a way to open a popup from a link in htmlText? Cheers, Tony. This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS 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/ . 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/ asfunctionExample.mxml Description: Binary data
RE: [flexcoders] Using RemoteObject to pass data to the Server
Hi, You are right, you need to pass all data as arguments in the called method. mx:RemoteObject id=remoteService source=RemoteService mx:method name=echoName result=alert(event.result.toString())/ /mx:RemoteObject mx:Button label=Pass String click=remoteService.echoName('Some string');/ Sorry about docs, I understand it should be more better... -abdul -Original Message- From: digital_eyezed [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using RemoteObject to pass data to the Server Hi, I can't find much documentation on passing the data to the server using the remoteObject data service. Everything seems to be about getting info from the server. Is there any info around on carrying out such tasks? I'm almost certain that its just about filling the arguments on the called method but haven't found an example to give me confidence. Al I want to to is pass a VO to a server to be inserted into a database via remoteObject, not HTTPService or Web Services. Thanks in advance. 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] Javascript open.window in htmlText + 128 Char links
Cool, that looks perfect. Out of interest, will this handle more than 128 characters in a link? It seems to be truncated at that point regardless of the characters when I do a normal link? Cheers, Tony. -Original Message- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: 02 April 2005 17:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Javascript open.window in htmlText Hi You can do it, the way its done in html/javascript... _ta.htmlText = Click a href='javascript:window.open(\http://www.macromedia.com\,null,\height=600 ,width=800,status=yes,toolbar=no,menubar=no,location=no\);void(0);'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; But sometimes, these kind of linking become unmanagable, in that case you can use asfunction to call a function flex code which opens popup... Look at the following example, which demomstrates both techniques... ##asfunctionExample.mxml## ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ function appInit() { _ta.htmlText = Click a href='javascript:window.open(\http://www.macromedia.com\,null,\height=600 ,width=800,status=yes,toolbar=no,menubar=no,location=no\);void(0);'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; _ta1.htmlText = Click a href='asfunction:mx.core.Application.application.openLink,macromedia'font color='#FF'uhere/u/font/a to open macromedia.com in a popup.; } function openLink(whichLink) { alert(Which Link: + whichLink); var url:String; switch(whichLink) { case macromedia: url = http://www.macromedia.com;; } getURL('javascript:window.open(' + url + ',null,height=600,width=800,status=yes,toolbar=no,menubar=no,location=no) ;void(0);'); } ]] /mx:Script mx:Label fontSize=16 text=Usual way/ mx:TextArea id=_ta width=300 height=200/ mx:Label fontSize=16 text=Better way using asfunction:/ mx:TextArea id=_ta1 width=300 height=200/ /mx:Application Couple of links on asfunction: - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15639 - http://www.macromedia.com/support/flash/action_scripts/actionscript_dictiona ry/actionscript_dictionary073.html I just remember that someone wrote a very long tutorial on asfunction, recently some 2-3 months back it appeared on some blog...Just don't remember the URL... Anyways, I hope it helps you -abdul From: Anthony Merryfield [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 8:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Javascript open.window in htmlText Hi everybody, Is there a way to open a popup from a link in htmlText? Cheers, Tony. This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS 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/ . Yahoo! Groups Links This communication together with any attachments transmitted with
[flexcoders] Re: In Flex, is there any equivalent to Fieldset in HTML?
How to embed the label inside the border like usual fieldset? --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, You can use nested Form tag with borderStyle=solid or u can us Vbox with proper margins.. But it's so easy to make your own fieldset component, its essentially one of Box container... ##FieldGroup.mxml## mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Form mx:FormHeading label=Personal Details/mx:FormHeading mx:Form borderStyle=solid mx:FormItem label=First Name:mx:TextInput id=fname_ti//mx:FormItem mx:FormItem label=Last Name:mx:TextInput id=lname_ti//mx:FormItem mx:FormItem label=Age:mx:TextInput id=age_ti//mx:FormItem /mx:Form mx:FormHeading label=Qualification/ mx:Form borderStyle=solid mx:FormItem label=School Name:mx:TextInput id=schoolName_ti//mx:FormItem mx:FormItem label=College Name:mx:TextInput id=collageName_ti//mx:FormItem /mx:Form /mx:Form /mx:Application Not sure, if something wrong might happen by nesting form tags...But it should be ok.. Does it help you? -abdul -Original Message- From: Ghislain Simard [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 7:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] In Flex, is there any equivalent to Fieldset in HTML? Hi, In Flex, is there any tag or way of doing the same job as a fieldset as in HTML? If not, it would be great to have it out-of-the-box in Flex. Thanks 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] path of external jar files
I think your JAXB files should be able to go in web-inf/lib. Im not sure if it has anything to do with classpath, but you may need the system to print out more info for you. Matt From: ssudha2 [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 11:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] path of external jar files I'd like to use jaxb parser to parse the xml files I use for my application. I created the java programs to parse the xml file and return necessary information. The java programs are compiled successfully by placing the jaxb parser jar files in the system class path. But when the java program is used as a remote object from my flex application, I am getting an error message which just displays Error: javax/xml/bind/JAXBContent. I couldn't guess With the existing examples, I placed the jaxb jar files in the app_root/WEB-INF/flex/jars folder. Still getting the same error. Does anybody have an idea where the external jar files should be placed in flex? Or is this an error which is not related to classpath? Thanks Sudha 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] Re: Help with binding null data to web service p aram eters.
Im not sure if the initial value of text is undefined or if its empty-string. I dont get why it successfully sent the empty-string over instead of sending nothing, maybe youre just getting lucky right now J From: hecubus_eh [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 8:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help with binding null data to web service param eters. Thanks for the reply, explanation and workaround, Matt! Can you explain why this logic: txtCompany.text == undefined ? 'foo':txtCompany.text didn't return 'foo' in the VO or the WebService request parameter, and performed the equivalent of initializing txtCompany.txt? Thanks again, Rick... --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Sorry for not responding sooner... Binding has some smarts that are getting in your way here. Essentially the first time binding looks at a value it checks to see if the value is null, undefined, or empty string. If it is any of those it will not copy the value over. Until the value has turned into something that is not one of those non-values it binding does not execute. The reason we do this is that many times there is to allow the destination of a binding to have an initial value that does not disappear until a real replacement is ready. For example, if we did not do this logic and you used binding from a web service to populate an image source, rather than the image not loading until the web service had returned, you'd see the image not found icon. So, this is why you have no values. And it's also why the test where you try to return '' isn't working, the '' is empty-string which means don't copy. So what I'd do as a quick workaround is go ahead and simply write an initialize handler that sets all of the web service request properties to null. mx:Script function initWS() { wsCustomer.methCustMatches.request.txtZip = null; wsCustomer.methCustMatches.request.txtLastLastName = null; wsCustomer.methCustMatches.request.txtFirstName = null; ... } /mx:Script Sorry for the confusion, Matt -Original Message- From: hecubus_eh To: flexcoders@yahoogroups.com Sent: 3/30/2005 9:12 PM Subject: [flexcoders] Help with binding null data to web service parameters. I'm building a simple Flex form that has several TextInput fields that a person can use as search criteria. They are basically optional fields. The text from the TextInput fields are bound directly to a set of web service request parameters that is sending to a CFC-based WSDL. The problem I'm running into is that if any of the TextInput fields are not filled in by the user, no value is being passed to the web service request parameters that the TextInput.text values are bound to. The result is that they are treated as null by the WebService and the parameters are not sent in the SOAP request. Since all parameters are required in a WSDL, the web service is resulting in a SOAP message that some parameters are not being passed into the request. Here is a code snippet: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml xmlns:r=view.* pageTitle=Customer Search initialize= mx:WebService wsdl=http://localhost/Customer.cfc?wsdl http://localhost/Customer.cfc?wsdl id=wsCustomer mx:operation name=methCustMatches mx:request txtZip{txtZip.text}/txtZip txtLast{txtLastName.text}/txtLast txtFirst{txtFirstName.text}/txtFirst txtPhone{txtPhone.text}/txtPhone txtCompany{txtCompany.text}/txtCompany CustomerNumber{CustomerNumber.text}/CustomerNumber /mx:request /mx:operation /mx:WebService mx:Script ![CDATA[ function sendReq(event) { wsCustomer.methCustMatches.send(); } ]] /mx:Script mx:TextInput text= id=numShipTo width=100 maxChars=9 restrict=0-9 / mx:TextInput text= id=txtPhone width=100 enabled=false maxChars=12 / mx:TextInput text= enabled=false id=txtCompany width=100 / mx:TextInput text= id=txtZip width=50 maxChars=11 / mx:TextInput text= id=txtFirstName width=75 / mx:TextInput id=txtLastName width=75 / mx:Button id=submitForm label=Go textAlign=center click=sendReq(event);/ /mx:Application That's the first problem...is there a way to explicitly send the parameters that have no value, basically as if I did not bind any variables to the request parameters? If I send the request with no value inside the parameters (e.g. txtPhone/txtPhone), the parameters are sent in the SOAP request with no values, which is fine since the WSDL doesn't yell at me for not providing all the parameters. While debugging this problem, instead of binding the TextInput text value directly to the WebService request parameters, I bound the values to a data model and used the model as a value object. I then bound
RE: [flexcoders] upload in central
Works just fine! Make sure ur using a multi-part form Do not use pound signs when specifying the file field See livedocs for more detail http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p35.htm#wp3540091 You can also try cf-talk, great general CF list. Cheers, -Stace From: Rich Tretola [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] upload in central So is this completely unreliable ? In 15 test uploads, I was able to get the form data only twice with the variables being form.FILENAME and form.FILEDATA. So whats the deal, does this work only once in a while ? Here is a sample of one of the 2 successful uploads that occurred: FILEDATA /Applications/JRun4/servers/cfmx7/SERVER-INF/temp/cfusion-tmp/neotmp19866.tmp FILENAME icon.gif Rich On Apr 1, 2005 9:50 PM, Rich Tretola [EMAIL PROTECTED] wrote: I already tried that and did not have anything in form, or url scope. On Apr 1, 2005 3:57 PM, Spike [EMAIL PROTECTED] wrote: Use cflog to log the names of the form fields that get posted. You can then check the log file to see what the name was. Spike Rich Tretola wrote: Does anyone know the reference that I need to use on the coldfusion side of a flex/ventral upload ? I know that the .cfm page is being called but I don't know what to reference in the cffile tag ? cffile action=""> filefield= destination=#tempImageDir# nameconflict=MAKEUNIQUE accept=image/* 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 the Yahoo! Terms of Service.
[flexcoders] Interfaces?
How do you use an interface in MXML? In ActionScript it's implements ISomeInterface. 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] Interfaces?
It's about the same as in ActionScript... I was just doing this today... the MXMO below is clipped from the flex docs... notice the implements attribute and the corresponding implementation in the Script element. hope that helps, ~harris mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox mx:Script function selectSuperItem():String { return Super Item was selected; } function removeSuperItem():Boolean { return true; } function addSuperItem():Boolean { return true; } /mx:Script mx:dataProvider mx:Array mx:StringAK/mx:String mx:StringAL/mx:String /mx:Array /mx:dataProvider /mx:ComboBox --- JesterXL [EMAIL PROTECTED] wrote: How do you use an interface in MXML? In ActionScript it's implements ISomeInterface. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Interfaces?
It's about the same as in ActionScript... I was just doing this today... the MXMO below is clipped from the flex docs... notice the implements attribute and the corresponding implementation in the Script element. hope that helps, ~harris mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox mx:Script function selectSuperItem():String { return Super Item was selected; } function removeSuperItem():Boolean { return true; } function addSuperItem():Boolean { return true; } /mx:Script mx:dataProvider mx:Array mx:StringAK/mx:String mx:StringAL/mx:String /mx:Array /mx:dataProvider /mx:ComboBox --- JesterXL [EMAIL PROTECTED] wrote: How do you use an interface in MXML? In ActionScript it's implements ISomeInterface. __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest 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] Interfaces?
Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.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] Interfaces?
wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com Yahoo! Groups Links __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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] Interfaces?
http://livedocs.macromedia.com/flex/15/flex_docs_en/2173.htm Spike JesterXL wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com Yahoo! Groups Links __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links Yahoo! Groups Links -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org 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] Interfaces?
Yeah... I have had trouble with the search facility as well. I am looking at the main doc available here [1]. The info I've been looking at is available by navigating to Developing Flex Applications Version 1.5 - Working with ActionScript in Flex - Working with components - Implementing interfaces. On that page there is a link to Using Interfaces [2]. After spending a fair amount of time being frustrated with finding stuff in the docs, I have now embraced these pages and can usually find whatever I need. The organization of the Flash/AS2 Component docs seems a little better organized IMO. good luck, ~harris [1] http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm [2] http://livedocs.macromedia.com/flex/15/flex_docs_en/0462.htm --- JesterXL [EMAIL PROTECTED] wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Interfaces?
Ok, both you and Spike say the LiveDocs so I'll just hang there; I still love the local AS2 class definitions, though, as a shortcut in Firefox; it's so much quicker than LiveDocs for method lookups for specific components. Cool, thanks again yall! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:56 PM Subject: Re: [flexcoders] Interfaces? Yeah... I have had trouble with the search facility as well. I am looking at the main doc available here [1]. The info I've been looking at is available by navigating to Developing Flex Applications Version 1.5 - Working with ActionScript in Flex - Working with components - Implementing interfaces. On that page there is a link to Using Interfaces [2]. After spending a fair amount of time being frustrated with finding stuff in the docs, I have now embraced these pages and can usually find whatever I need. The organization of the Flash/AS2 Component docs seems a little better organized IMO. good luck, ~harris [1] http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm [2] http://livedocs.macromedia.com/flex/15/flex_docs_en/0462.htm --- JesterXL [EMAIL PROTECTED] wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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] Create ViewStack children via Actionscript
Quick qustion... after creating a Flex component using ViewStack.createChild, how do you coerce the MovieClip that is returned to be the correct type. In the example code that was posted below, how to you get the VBox variable (vb) to actually walk and talk like a VBox? (instead of a MovieClip). thanks, ~harris --- Krzysztof Szlapinski [EMAIL PROTECTED] wrote: You can create children with CreateChild method In the example below when clicking on the button you create a label inside of a VBox which is a child of a ViewStack ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function generateChildren(){ var vs=mx.core.Application.application.vs01; var vb = vs.createChild(mx.containers.VBox,undefined,{id:vb01}); vb.createChild(mx.containers.Label,undefined,{text:Hello}); } ]] /mx:Script mx:Panel mx:ViewStack id=vs01 /mx:ViewStack mx:Button click=generateChildren() /mx:Panel /mx:Application Does any1 know how i do that? Greetz Erik Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail 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] FlashVars a security risk?
NO, I haven't found a use case yet, but to me, it seems that putting any url var translates to a FlashVars automatically written for me. Cool. ...however, I started thinking dirty, and did stuff like _root=cow, etc., trying to break it. While it's nice because now I can just reference application level variables this way, it also feels very unsecure. Is there a way in the future, vars set with private cannot be touched via FlashVars in this way? --JesterXL 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] Create ViewStack children via Actionscript
vb.createChild(mx.containers.Label,undefined,{text:Hello}); var ref:VBox = VBox(vb.createChild(VBox, undefined)); ...or something to that effect. You do the same thing with popups to give you another example: var win:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, Window, true)); - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 6:30 PM Subject: Re: [flexcoders] Create ViewStack children via Actionscript Quick qustion... after creating a Flex component using ViewStack.createChild, how do you coerce the MovieClip that is returned to be the correct type. In the example code that was posted below, how to you get the VBox variable (vb) to actually walk and talk like a VBox? (instead of a MovieClip). thanks, ~harris --- Krzysztof Szlapinski [EMAIL PROTECTED] wrote: You can create children with CreateChild method In the example below when clicking on the button you create a label inside of a VBox which is a child of a ViewStack ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function generateChildren(){ var vs=mx.core.Application.application.vs01; var vb = vs.createChild(mx.containers.VBox,undefined,{id:vb01}); vb.createChild(mx.containers.Label,undefined,{text:Hello}); } ]] /mx:Script mx:Panel mx:ViewStack id=vs01 /mx:ViewStack mx:Button click=generateChildren() /mx:Panel /mx:Application Does any1 know how i do that? Greetz Erik Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail 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] FlashVars a security risk?
Were probably taking a somewhat different approach in the next version. Matt From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 3:35 PM To: Flexcoders Subject: [flexcoders] FlashVars a security risk? NO, I haven't found a use case yet, but to me, it seems that putting any url var translates to a FlashVars automatically written for me. Cool. ...however, I started thinking dirty, and did stuff like _root=cow, etc., trying to break it. While it's nice because now I can just reference application level variables this way, it also feels very unsecure. Is there a way in the future, vars set with private cannot be touched via FlashVars in this way? --JesterXL 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] Interfaces?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I just downloaded the docs. Run them locally and it's lightning quick. Also lets me do offline dev. - - Seth On Apr 02, 2005, at 17:05, JesterXL wrote: Ok, both you and Spike say the LiveDocs so I'll just hang there; I still love the local AS2 class definitions, though, as a shortcut in Firefox; it's so much quicker than LiveDocs for method lookups for specific components. Cool, thanks again yall! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:56 PM Subject: Re: [flexcoders] Interfaces? Yeah... I have had trouble with the search facility as well. I am looking at the main doc available here [1]. The info I've been looking at is available by navigating to Developing Flex Applications Version 1.5 - Working with ActionScript in Flex - Working with components - Implementing interfaces. On that page there is a link to Using Interfaces [2]. After spending a fair amount of time being frustrated with finding stuff in the docs, I have now embraced these pages and can usually find whatever I need. The organization of the Flash/AS2 Component docs seems a little better organized IMO. good luck, ~harris [1] http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/ html/wwhelp.htm [2] http://livedocs.macromedia.com/flex/15/flex_docs_en/0462.htm --- JesterXL [EMAIL PROTECTED] wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCTzRSsnBTlzgQQ28RAkOUAKCmqK/x7Fm91yztAm42/trulzFV2wCfUH4H zSvTy7AqAgZHhCiOZqAsZ2w= =4h81 -END PGP SIGNATURE- 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] Zipcode validator
Hi guys i am very much new to flex but am really enjoying working with it, i think its really great. i have a question for anyone who can help me. can you get a zipcode validator component tag for australian zip codes (postcodes) since i have stopped using the zipcode validator even with the reqiured fileds attributes set to yes i doesn't validate the field if someone leaves it blank can you please help me with this one cheers Guys Marcus 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] Creation/Destroy Queries...
Sounds like a memory leak to me. Hopefully the next version of the player will do a better job at it. Some of my users love their app so much, they dont even close the browser, and after some days, the app/browser will become unresponsive. From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 1:34 AM To: 'Scott Barnes '; 'flexcoders@yahoogroups.com ' Subject: RE: [flexcoders] Creation/Destroy Queries... My understanding of the Player's garbage collector/memory management is by no means perfect (or even maybe accurate). I believe the deal is: - it does a real cleanup every minute or so - memory is allocated and used in chunks, but is cleaned up in pieces - the allocator is not super-smart, it does not re-organize memory within individual chunks, so you can get fragmented and continue to grow if the spaces in the chunks are not big enough for what needs to be allocated - at some point the player may have a big enough chunk free that it can give it back to the OS; but windows will not take it back (i may be wrong here, the player may never offer it back). therefore player memory will always go up, it rarely goes back down. however if you do your own de-allocation the player should arrive at a steady state, it just is possible it will end up looking like a big number in the task manager. HTH, Matt -Original Message- From: Scott Barnes To: flexcoders@yahoogroups.com Sent: 3/31/2005 11:06 PM Subject: Re: [flexcoders] Creation/Destroy Queries... heh i was wondering what happened with that..but hello back none the same ;) Ok heres what my gameplan is in terms of why I asked those Questions: I am going to have a XML situation where i Declare my Screens like this: screen name=xyz template=com.path.to.base.mxml.file creationPolicy=auto presenter=com.path.to.screens.presenter/controller.as.file defaultEvent=mail.default events event-handler name=mail.default filter name=securityCheck/ filter name=loadProfile/ listener name=mailService method=getAllMail resultKey=mailModel/ listener name=mailService method=getMailFromFolder resultKey=messagesModel argument name=folderIndex value=0/ /listener view-pod name=mailTreePOD sector=a/ view-pod name=mailActionsPOD sector=a/ /event-handler /events events event-handler name=mail.loadFolder filter name=securityCheck/ listener name=mailService method=getAllMail resultKey=mailModel/ listener name=mailService method=getMailFromFolder resultKey=messagesModel/ view-pod name=messagesGrid sector=b/ view-pod name=messagesPreview sector=c/ /event-handler /events /screen Now inside my template, I'll have panels and what not setup, then inside those panels i may put in viewStacks or no children at all, lots of base foundation stuff. Then inside the presenterClass it will know whats inside itself and add various behaviours and follow a uniform approach to how it presents stuff on screen. Now, when a button is fired an event handler request is initiated, resulting in an action. In this case, mail.loadFolder does like outlook where if you clicked on a folder it would show all mail relating to that folder and what not. Now inside the base foundation I have sectors layed out and declared via presenter, as my presenter maps to each of these sectors it records whether or not these are viewstacks or not, if not it will destroy/create a view-pod in that sector - if its a viewStack it will check to make sure that child exists, if not instantiate that view-pod or simply switch to it... Now lots more can go on here but the point is this, i'm going to be doing a lot of runtime create/destroy concepts and its very important that i'm allowed to do so without memory considerations - plus any performance gains i can conjure up in terms of asset re-use is even better. At the same time as view-pods being destroyed/created i can ontop of that kill an entire screen and move onto another screen... Hopefully that paints a picture on what my intent is, and does anyone here see any negative performance side-effects from this approach? On Apr 1, 2005 4:48 PM, Abdul Qabiz [EMAIL PROTECTED] wrote: Ignore attachment, my mistake placed there... -Original Message- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 12:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Creation/Destroy Queries... I take this one :) - mx:Model/XML if i place that inside a MXML component, on compile time, does FLEX embed that said file inside the swf or does it request it be download once base assets have been initialized (I'm a bit sketchy on this part). I'm sure its a RTFM situation but I must be missing where that part is stated heh :) Yes, Flex embeds the file into main SWF file at compile time. So your main SWF contains all custom component code, Model/XML data. -abdul -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Friday, April
RE: [flexcoders] Large Flex app architecture
We also have a quite large internal application (Campaign Management) and were using a very similar approach with an event driven Form factory and a main ViewStack. 90% of the code is based on custom views. We started with the Cairgorm framework, but we have to add some additional artifacts and extend their model to allow things like multiple commands listening to single events (believe me, we need this), generic data services and generic commands to handle multiple similar views. Our factory has also the job of destroying views (and related models, command instances and helpers). Weve been very careful trying to destroy every piece of non use memory to avoid issues, however, after some days of use (if the user doesnt reload the app) the application will stop responding and well have to kill the browser. That makes me think that there could be some issues with player garbage collection. From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 7:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Large Flex app architecture I too am in the same boat and have thought / researched on this very subject. I'm attacking my FLEX archiecture much in the same way i would with a traditional web paged system. I've looked at Screen by Screen approach where typically you active a screen for a task. Example: TravelAuthorization Request Form (Wizard Format) = Screen1 TravelAUthorization Admin Form = Screen 2 TravelAuthorization Summary / Report = Screen 3 etc.. Now each of these screens have their own sub-screen lifecycle (ie much like the FlexStore where checkout form replaces product pod and so on). Anything that significantly breaks away from a parent Screen becomes a screen onto itself. Once I formulated a pattern for this and broke my approach into screen by screen, I am then going to use a destroy / create approach. I'm hoping that my theory holds that Flash Garbage collection will free up memory every time i destroy a screen, but this is a Intranet Application so bandwidth isn't my top priority here (while i should be mindful of it) - so I plan to use Run Time Shared Libraries but will quite happilly kill an asset and move it to a download every bite situation if need be. I will use view stacks up until a point, and then i'll have my own quasi view stack manager to attack the same problem. Again, I am not finding much information on how FLEX Garbage collection works and what key tricks i need to make sure are in place, so the above may not hold water and won't know until I have it fully tested and working but surely a destroy/create approach should work and if it doesn't by god MM you better make it happen soon or i'll...i'lll bah..i got nothing. hehe. I posted on my blog on how I am attacking this screen by screen approach, via this: http://www.mossyblog.com/archives/434.cfm Its a framework I am working on and its ripped off a few concepts from Mach-II and Apache Cocoon. On Wed, 30 Mar 2005 09:08:40 -0800 (PST), Valy Sivec [EMAIL PROTECTED] wrote: I'm designing a quite large application and plann to use viewstack container(s). Because each view will contain lots of panels and info I'm affraid that the browser might hit his limit in regards with the memory consumption and crash... seen couple of messages with the same problem and I would like to avoid it... Actually I'm not even sure how the Flash Player garbage collector works or if there is any I'm very new to this Flash/Flex world so sorry if the question is dumb... Is it safe grouping the screens in multiple viewstacks and include them from the jsp pages? or should be enough having only one viewstack container for the whole application? Any suggestion? Valy Do you Yahoo!? Make Yahoo! your home page 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. -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) 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.
[flexcoders] Memory Leak?
I dunno whats going with GMAIL as I tried sending this earlier but kept going to Matt only... Heres a memory Leak test thing I did. I did a basic script which looks like this: mx:Script ![CDATA[ public var IsViewStack:Boolean = false; import mx.containers.*; import mx.controls.*; import com.SynergyFLEX.viewpods.test.testpod1; import com.SynergyFLEX.viewpods.test.testpod2; import com.SynergyFLEX.viewpods.test.testpod3; import de.richinternet.utils.Dumper; function loadPod() { if(IsViewStack) { } else { var aList = new Array(); aList.push(testpod1); aList.push(testpod2); aList.push(testpod3); aList.push(Button); aList.push(TabNavigator); aList.push(Accordion); aList.push(Label); aList.push(TextInput); var itm = Math.round(Math.random()*aList.length); Dumper.info(itm); var t = baseStack.createChild(aList[itm]); baseStack.selectedChild = t; } } function delPod(indx) { baseStack.destroyChildAt(indx); } ]] /mx:Script mx:HBox width=100% mx:Button label=LoadPod() click=loadPod()/ mx:Button label=Del Pod 1 click=delPod(1)/ mx:Button label=Del Pod 2 click=delPod(2)/ mx:Button label=Del Pod 3 click=delPod(3)/ mx:Button label=Del Pod 4 click=delPod(4)/ /mx:HBox mx:HBox width=100% height=100% !-- Sector 1-- mx:Panel id=sector1 width=100% height=100% /mx:Panel !-- Sector 2 -- mx:Panel id=sector2 width=100% height=100% /mx:Panel !-- Sector 3-- mx:Panel id=sector3 width=100% height=100% mx:LinkBar id=sectorLinks dataProvider=baseStack/ mx:ViewStack id=baseStack width=100% height=100% mx:HBox label=Test/ /mx:ViewStack /mx:Panel /mx:HBox Both browsers continue to ask for more memory every click of createChild and Destroy. Furthermore when you click on LinkBar items (back and forth randomly) I noticed that it too increases memory. I then noticed if you refresh your browser memory (thankfully) reverts back to its original size. After 15 mins the best result I got was: Internet Explorer: before: 51,000k (give or take) after: 55,500k (give or take) 15mins: 55,400k (give or take) FireFox was pretty much the same results. Q. Am i destroying incorrectly? should i do something else first? ie what should i do. As over a long period an application can easily climb in memory usage and the only counter-act for this would be to change mxml files via url when they go from screen to screen? it seems cumbersome but that appears base don the above to be a possible solution? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) 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: In Flex, is there any equivalent to Fieldset in HTML?
On Apr 3, 2005 12:06 AM, Ghislain Simard [EMAIL PROTECTED] wrote: How to embed the label inside the border like usual fieldset? You could create a small MXML component like this: VBox Script var title_mc:Label; function createChildren():Void { super.createChildren(); title_mc = createClassObject(...); } function layoutChildren():Void { /* position the title_mc slight;y off the left (say 10,0) */ super.layoutChildren(); } function get viewMetrics():Object { /* override this to make space for title_mc */ } function draw():Void { /* draw the square box around the title_mc */ /Script /VBox Something like that. Try it out. Manish 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/