RE: [flexcoders] can not have separate flex war apps?!?!?
There might be a classloader issue on JBoss, that probably can be fixed by appropriate JBoss configuration. There is one more issue that is commonly run into with JBoss, which is that deploying more than one Flex web application doesn't work right. I recently found out that there's a solution for this that experienced JBoss people may have already known about. The trick is to turn off the unified class loading behavior for the Flex web applications. You can do this by setting loader-repositity in jboss-app. A quick search comes up with this example: http://www.junlu.com/msg/78287.html -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dan Diodati Sent: 17. tammikuuta 2006 3:20 To: flexcoders@yahoogroups.com Subject: [flexcoders] can not have separate flex war apps?!?!? I'm having a wierd problem when trying to have different J2EE web application that have the flex configurations. The code will fail to compile Error /com/sf/sfv4/view/sharkfin/AddGoal.mxml:74 Expected object definition or binding _expression_ inside mx.controls.Label This does not occur when it is the only one web application /war. This only occurs when I have separate web application (each with their own web.xml configured to use flex). This is occuring in jboss 3.2.7. Has anyone else had problems when using flex in multiple wars? Dan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex Builder 2 panel align
On 1/13/06, Andy Johnston [EMAIL PROTECTED] wrote: Hey all just wondering with this constraints based layout for Flex Builder 2 is it possible to simply align a Panel to centre of a liquid layout? Why can't you set x and y values to a %? Can you be more specific about what you mean by liquid layout? We've added some support (since Alpha 1) for centering using constraints-based layout, but I'm not sure it'll fulfill your requirement. There's no support for x%/y% but you can always compute the value in a binding expression. Panel x={canvas.width / 100 * 20} ... -- 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] Runtime width of tree control - Urgent !!
Hi all, I have a tree control in my app, whose width has been set to 100%. Can i get the width at runtime in pixels? If yes, then how? Regards, Robi. -- 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] event flow / URLLoader
I am going to show off my newbishness with the following question :) I have a simple application called URLLoaderTest which has an initApp() function and a couple of controls. In the initApp function I initialise a class which contains a URLLoader (slightly modified version from the livedocs). That class called MyURLLoader loads a jpeg from a URL. I then try to reference the returned jpeg to display through an image control. The jpeg is retrieved successfully by the loader but the event is handled after I've tried to assign it back to the image control in the application. The data is there but the execution order is off. Stepping through the debugger the entire initApp() function executes before the events from MyURLLoader are handled. How can I get MyURLLoader to handle events immediately and then return to initApp() to complete? I've included the code below as my explanation is probably confusing. I just don't think I understand the event flow. Am I missing a listener in application? Many thanks Angus PS. I initially thought it was due to scoping so the data is pushed into a public variable and I also coded a getter which you will see below. // URLLoaderTest.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* creationComplete=initApp() mx:Script ![CDATA[ import MyURLLoader; import flash.util.trace; import mx.controls.Image; private function initApp() { var JPGLoader:MyURLLoader = new MyURLLoader(); var myImage:Image = new mx.controls.Image(); myImage.dataObject = JPGLoader.getData(); myBox.addChild(myImage); } ]] /mx:Script mx:Canvas width=100% height=100% mx:HBox id=myBox /mx:HBox /mx:Canvas /mx:Application // MyURLLoader.as package { import flash.util.trace; import flash.display.Sprite; import flash.net.*; import flash.events.*; public class MyURLLoader extends Sprite { // public properties public var myJPG; public function MyURLLoader() { var loader:URLLoader = new URLLoader(); configureListeners(loader); var request:URLRequest = new URLRequest(http://flextest/sample.jpg); loader.load(request); } public function getData() { trace(getData); return this.myJPG; } private function configureListeners(dispatcher:IEventDispatcher):Void { trace(configure listeners); dispatcher.addEventListener(EventType.COMPLETE, onComplete); dispatcher.addEventListener(EventType.OPEN, onOpen); dispatcher.addEventListener(ProgressEventType.PROGRESS, onProgress); dispatcher.addEventListener(SecurityErrorEventType.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(HTTPStatusEventType.HTTP_STATUS, onHTTPStatus); dispatcher.addEventListener(IOErrorEventType.IO_ERROR, onIOError); } private function onComplete(event:Event):Void { var loader:URLLoader = URLLoader(event.target); this.myJPG = loader.data; trace(onLoaded: + loader.data); } private function onHTTPStatus(event:HTTPStatusEvent):Void { trace(onHTTPStatus: + event); } private function onIOError(event:IOErrorEvent):Void { trace(onIOError: + event); } private function onOpen(event:Event):Void { trace(onOpen: + event); } private function onProgress(event:ProgressEvent):Void { trace(onProgress loaded: + event.bytesLoaded + total: + event.bytesTotal); } private function onSecurityError(event:SecurityErrorEvent):Void { trace(onSecurityError: + event); } } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] how to change the appearance of a custom button
hi group,i want to make a custom button. anybody please tell me that from where the image of a button is accessed and if i want to change the image(that is Button.png, by default) then what should i do.regards,ravii love to walk in rain, b'coz no one can see me crying. Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Printing a .swf in Flex.
Hi, We are currently using Flex in a large scale project and the issue of accurate printing has come up. When printing out a .swf that has been entered into a Loader object, when printing only the viewable area of the swf is printed out, i.e. the size of the browser window with the rest of the image printed as a grey shape. Interestingly this also happens if the Loader isn't visible. this is obviously a concern with the app possibly being used at different screen resolutions. I have found the .addPage() workaround for this in the macromedia tech note: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19241 , but this raises some issues about it's accuracy (as well as being a nasty kludge). So my question is, is there a way to print a .swf (or anything else for that matter) in Flex without it being constrained by the size of the browser window? Gk. -- 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] Can you provide me the pdf version of flex book.....
Hi Sir Can u have PDF version of flex rich book .Please Attach send me. I am developing application using flex. Can u help me sir You can send it through attachment in www.yousendit.com . Regards Anil Kumar Software Engineer [EMAIL PROTECTED] VANGUARD INFO SOLUTION From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 2:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about a book written by Steven Webster and Allistair McCloud I have the book Developing Rich Clients with Macromedia Flex by Steven Webster and Allistair McCloud and I am trying to find what is the best chapter to read about security. I want to learn how to put information on a server and have it be kept secure? The information would be things like passwords and money amounts etc etc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" --
RE: [flexcoders] Can you provide me the pdf version of flex book.....
You have to purchase the book. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anil thakurSent: Monday, January 16, 2006 10:05 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Can you provide me the pdf version of flex book. Hi Sir Can u have PDF version of flex rich book .Please Attach send me. I am developing application using flex. Can u help me sir You can send it through attachment in www.yousendit.com . Regards Anil Kumar Software Engineer [EMAIL PROTECTED] VANGUARD INFO SOLUTION From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Tuesday, January 17, 2006 2:52 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Question about a book written by Steven Webster and Allistair McCloud I have the book Developing Rich Clients with Macromedia Flex by Steven Webster and Allistair McCloud and I am trying to find what is the best chapter to read about security. I want to learn how to put information on a server and have it be kept secure? The information would be things like passwords and money amounts etc etc. -- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: best way to handle this ViewStack situation when loading
Can any body help me to make customized number-formattor. On Sun, Jan 15, 2006 at 12:00 PM, jgraham_us wrote: Well I came up with a solution. Basically when the viewstack in initialized I create just the view containers for each view in the viewstack, setting an initialization flag to false. Then when the change event gets fired on the viewstack I check that flag and dynamically create the children in the view at that point. So in a nutshell the creation of a view in the viewstack is delayed until the user actually switches to a given view for the first time. Seems to work fine and the load time is very fast now. --- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] wrote: I have a linkbar with a viewstack, the viewstacks children are VBox'es that have rather complicated layouts that are done dynamically. The initial load time takes too long. I want to create the views when they are requested for the first time, from a click on the linkbar, instead of them all being loaded initially. I have tried to place a creationPolicy=queued on the VBox'es that are being put in the viewstack but since I am creating the rest of the VBox dynamically it isn't working correctly. Anyone have a suggestion on how to handle something like this? -- 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 -- Sent using Laszlo Mail. Try it yourself. http://www.laszlomail.com -- 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] Printing a .swf in Flex.
Yes - you can create a new, non visible version of the area you are planning to print, and use the PrintJob class to interrogate the particular printer's printable dimensions. Some more info (Flex 1.5/Flash) here: http://www.sephiroth.it/reference.php?id=505cat=1 or for Flex 2 http://livedocs.macromedia.com/labs/1/flex/langref/flash/print/PrintJob.html HTH, Alias On 1/17/06, egor_flex [EMAIL PROTECTED] wrote: Hi, We are currently using Flex in a large scale project and the issue of accurate printing has come up. When printing out a .swf that has been entered into a Loader object, when printing only the viewable area of the swf is printed out, i.e. the size of the browser window with the rest of the image printed as a grey shape. Interestingly this also happens if the Loader isn't visible. this is obviously a concern with the app possibly being used at different screen resolutions. I have found the .addPage() workaround for this in the macromedia tech note: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19241 , but this raises some issues about it's accuracy (as well as being a nasty kludge). So my question is, is there a way to print a .swf (or anything else for that matter) in Flex without it being constrained by the size of the browser window? Gk. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] event flow / URLLoader
Hi, data loading in Flash Player (and therefore in your Flex application) happens asynchronously. You'll have to wait until the JPG is loaded completely before you can access the data. The best way to handle this would be to have your MyURLLoader class dispatch an Event (e.g. of type dataLoaded) after the image is loaded (the below is untested email code - but it should point you to the right directrion): // inside MyURLLoader private function onComplete(event:Event):Void { var loader:URLLoader = URLLoader(event.target); this.myJPG = loader.data; var e:Event = new Event(); e.type = dataLoaded; dispatchEvent(e); } Of course, you'll now need to add a listener to the MyURLLoader instance itself to get informed when the imgae is downloaded completely: // URLLoaderTest.mxml private function initApp() { var JPGLoader:MyURLLoader = new MyURLLoader(); JPGLoader.addEventListener(dataLoaded, imageLoaded); var myImage:Image = new mx.controls.Image(); myBox.addChild(myImage); } private function imageLoaded(event:Event):Void { myImage.dataObject = MyURLLoader(event.target.getData()); } Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Angus Johnson Sent: Tuesday, January 17, 2006 10:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] event flow / URLLoader I am going to show off my newbishness with the following question :) I have a simple application called URLLoaderTest which has an initApp() function and a couple of controls. In the initApp function I initialise a class which contains a URLLoader (slightly modified version from the livedocs). That class called MyURLLoader loads a jpeg from a URL. I then try to reference the returned jpeg to display through an image control. The jpeg is retrieved successfully by the loader but the event is handled after I've tried to assign it back to the image control in the application. The data is there but the execution order is off. Stepping through the debugger the entire initApp() function executes before the events from MyURLLoader are handled. How can I get MyURLLoader to handle events immediately and then return to initApp() to complete? I've included the code below as my explanation is probably confusing. I just don't think I understand the event flow. Am I missing a listener in application? Many thanks Angus PS. I initially thought it was due to scoping so the data is pushed into a public variable and I also coded a getter which you will see below. // URLLoaderTest.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* creationComplete=initApp() mx:Script ![CDATA[ import MyURLLoader; import flash.util.trace; import mx.controls.Image; private function initApp() { var JPGLoader:MyURLLoader = new MyURLLoader(); var myImage:Image = new mx.controls.Image(); myImage.dataObject = JPGLoader.getData(); myBox.addChild(myImage); } ]] /mx:Script mx:Canvas width=100% height=100% mx:HBox id=myBox /mx:HBox /mx:Canvas /mx:Application // MyURLLoader.as package { import flash.util.trace; import flash.display.Sprite; import flash.net.*; import flash.events.*; public class MyURLLoader extends Sprite { // public properties public var myJPG; public function MyURLLoader() { var loader:URLLoader = new URLLoader(); configureListeners(loader); var request:URLRequest = new URLRequest(http://flextest/sample.jpg;); loader.load(request); } public function getData() { trace(getData); return this.myJPG; } private function configureListeners(dispatcher:IEventDispatcher):Void { trace(configure listeners); dispatcher.addEventListener(EventType.COMPLETE, onComplete); dispatcher.addEventListener(EventType.OPEN, onOpen); dispatcher.addEventListener(ProgressEventType.PROGRESS, onProgress); dispatcher.addEventListener(SecurityErrorEventType.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(HTTPStatusEventType.HTTP_STATUS, onHTTPStatus); dispatcher.addEventListener(IOErrorEventType.IO_ERROR, onIOError);
Re: [flexcoders] Printing a .swf in Flex.
The short answer is no, but there is always a workaround. In the document you refered to the statement setSize() is crucial. In reality, you save objects dimensions, setSize it above the real page metricsfrom JobPrinter propsand print. Upon completion of the printing you size the document back. It would be nice to have an ability to distinguish between printer and document settings via "copying" movie content to the new document with different metrics (for printing and such), I do not think this functionality is available yet. HTH, Anatole - Original Message - From: egor_flex To: flexcoders@yahoogroups.com Sent: Tuesday, January 17, 2006 5:54 AM Subject: [flexcoders] Printing a .swf in Flex. Hi,We are currently using Flex in a large scale project and the issue ofaccurate printing has come up.When printing out a .swf that has been entered into a Loader object,when printing only the viewable area of the swf is printed out, i.e.the size of the browser window with the rest of the image printed as agrey shape. Interestingly this also happens if the Loader isn'tvisible. this is obviously a concern with the app possibly being usedat different screen resolutions.I have found the .addPage() workaround for this in the macromedia technote:http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19241, but this raises some issues about it's accuracy (as well as being anasty kludge).So my question is, is there a way to print a .swf (or anything elsefor that matter) in Flex without it being constrained by the size ofthe browser window?Gk. -- 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] How to add an MXML component which is not in the root folder?
Thanks Martin, For some reason, when i first tried that, I also had to include a folder reference to the other project. Now, I've found that I'm killing eclipse when I try to include another application. Is this forbidden, in Flex? As in, I'm trying to include TimeSheet / in my application, where TimeSheet / is another application. This appears to be a bad idea! Would the appropriate course be to load the other application's .swf file? Scott On 1/16/06, Martin Wood [EMAIL PROTECTED] wrote: right, well i was only referring to as3 files, but i built a simple test following the same technique and using mxml files and it works fine. I had this setup Project : Test (The 'library project') Image.mxml com/test/Image2.mxml both mxml files are just simple image tags Project : Test2 (The main project) Test2.mxml In Test2 I right clicked the project node, selected properties then in the classpath tab in the build path section I added the Test project as a folder (it showed up as ${DOCUMENTS}\Test) Then in the Test2.mxml I could access both Image and Image2 from Test. for Image I just declared Image/ and to access image 2 i added another xmlns declaration to the application tag : xmlns:test2=com.test.* and the component was declared like : test2:Images2/ all worked fine, the image component appeared with the image inside. dont know if thats useful, but i'll do what i can to help thanks, Martin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders 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] Binding in Flex 2
Hi All, I'm sure this is going to be one of those questions that you regret asking as soon as it leaves your mouth, because it seems so simple. I'm having an issue binding 2 levels deep. Something that does work in Flex 1.5 doesn't work in Flex 2. Below are 3 files for an example... The value of labelText shows up properly in Child1.mxml, but does not bind into Child2.mxml properly. I have tried using getters/setters with a Change event and Bindable property attached to them with no luck. //MainApp.mxml -- passing initial value of labelText to first child mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* Child1 labelText=My Text / /mx:Application //Child1.mxml -- labelText binds properly mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text first = {String(labelText)} / Child2 labelText={String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox //Child2.mxml -- labelText does not bind proplery mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text second = {String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox Thanks in advance for the help, Brendan -- 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] How to add an MXML component which is not in the root folder?
very good question, something i was wondering about last night. To be honest i dont know the best course of action, you could of course just load the swf if you dont need to integrate it at the code level ..well, of course being flash you can still load a swf and call methods etc, but i mean integration support via the IDE so its more like using a jar file or similar. Hopefully when the beta drops there will be a more obvious route to combining projects. If anyone has any suggestions / recommendations id also love to hear them. thanks, Martin Scott Langeberg wrote: Thanks Martin, For some reason, when i first tried that, I also had to include a folder reference to the other project. Now, I've found that I'm killing eclipse when I try to include another application. Is this forbidden, in Flex? As in, I'm trying to include TimeSheet / in my application, where TimeSheet / is another application. This appears to be a bad idea! Would the appropriate course be to load the other application's .swf file? Scott -- Martin Wood http://relivethefuture.com/choronzon -- 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] DateField: selectableRange
That's the problem, the calendar doesn't remain at the last date selected. The date in the field input remainbut not the popupcalendar. The popup calendar is always showing first the rangeStart date. See pictures attached I would like the calendar to show the month and year of the date previously selected at the initialization of the page. As the date is coming from the database, maybe I should do something after the value is commited in the field for the calendar to be set correctly. Any idea? Thanks Ghislain Simard Analyst Technique web | Web Technical AnalystRessources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Deepa SubramaniamSent: Monday, January 16, 2006 7:09 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] DateField: selectableRange Setting the selectableRange means only the dates between rangeStart and rangeEnd (or in your case from rangeStart onwards) are selectable - that is why the calendar starts at rangeStart upon startup. There's no way to select a date earlier then rangeStart. If you want to keep the range of dates open and just disable some ranges from being selected, then look into setting disabledRanges. Upon making a selection in a DateField, when it is re-opened it will remain at the date last selected. If you want to keep the calendar at a particular selected date when the app is re-loaded, you'll have to write a mechanism where that selected date is stored somewhere and re-set when the app is loaded again. -deepa -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, GhislainSent: Monday, January 16, 2006 2:59 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] DateField: selectableRange it works well except the calendar is always showing the rangeStart date bydefault. How to get the calendar back to the month and year of the dateselected when you reload the page?Ghislain SimardAnalyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada[EMAIL PROTECTED]613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]Behalf Of Deepa SubramaniamSent: Monday, January 16, 2006 4:38 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] DateField: selectableRangeHi - You can set whichever range property you want (disabledRanges which disablessingle or multiple days or selectableRange which sets a range of dates whichare selectable) in ActionScript or at the tag level. Both those propertiestake an Object which contains two properties - rangeStart and rangeEnd whichare Date objects. For example:mx:DateField selectableRange="{ {rangeStart: new Date(2006, 1, 1),rangeEnd: new Date(2006, 1, 16)} }" /Will make it such that the DateField enables the range 1/1/06 to 1/16/06 asselectable. In your case, you'd want to do: mx:DateField id="myDate" selectableRange="{ {rangeStart: newDate(2004,4,1)} }"/HTH -Deepa-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Simard, GhislainSent: Monday, January 16, 2006 1:12 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] DateField: selectableRangeWhat I am trying to do is to get the calendar selectable only from 1 April2001.The following is not working:mx:DateField id="myDate" selectableRange="rangeStart(new Date(2004,4,1))"/Thanks for any helpGhislain SimardAnalyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada[EMAIL PROTECTED]613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]Behalf Of Ghislain SimardSent: Monday, January 16, 2006 1:06 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] DateField: selectableRangeIs there an example on how to get the range set for the tag DateField?Thanks--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:
[flexcoders] 1.5 Combobox: bug cursoring through list with long labels
Title: 1.5 Combobox: bug cursoring through list with long labels As show in the tiny sample app below, the long labels interfere with cursoring through the drop list items. Any cursor key causes the item to be selected and the list to close. Perhaps someone who has looked into the combobox code might suggest a workaround? Tracy ?xml version=1.0 encoding=utf-8? !-- This combo box closes when you attempt to cursor through the list the long labels are the cause of the problem. -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% mx:Script ![CDATA[ var tr = [{name:t,value:0}, {name:j,value:1}, {name:r,value:2}]; ]] /mx:Script mx:ComboBox dataProvider={tr} labelField=name/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] how to change the appearance of a custom button
There is an ImageButton in the Flex\extras install folder, perhaps that will help. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ravi mishra Sent: Tuesday, January 17, 2006 5:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to change the appearance of a custom button hi group, i want to make a custom button. anybody please tell me that from where the image of a button is accessed and if i want to change the image(that is Button.png, by default) then what should i do. regards, ravi i love to walk in rain, b'coz no one can see me crying. Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Binding in Flex 2
Hi, In flex 2 you are obrigate to use a metatag [Bindable] like: ![CDATA[ [Bindable] public var labelText:String;]] in flex 1.5 you also can you [Bindable] but this don't make diferences. Another point to say is about static vars. Until now, in tha alpha version, you canot useyou bindable, but the engeniers of macromedia are working to change this in the following vensions. Bye... On 1/17/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi All,I'm sure this is going to be one of those questions that you regretasking as soon as it leaves your mouth, because it seems so simple. I'm having an issue binding 2 levels deep. Something that does workin Flex 1.5 doesn't work in Flex 2. Below are 3 files for an example...The value of labelText shows up properly in Child1.mxml , but doesnot bind into Child2.mxml properly. I have tried usinggetters/setters with a Change event and Bindable property attached tothem with no luck. //MainApp.mxml -- passing initial value of labelText to first child mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* Child1 labelText=My Text //mx:Application//Child1.mxml -- labelText binds properlymx:HBox xmlns:mx= http://www.macromedia.com/2005/mxml xmlns=* mx:Label text=my text first = {String(labelText)} / Child2 labelText={String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script/mx:HBox//Child2.mxml -- labelText does not bind proplery mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* mx:Label text=my text second = {String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBoxThanks in advance for the help,Brendan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Bruno Gustavo MartinsMobile: (55)(11)9585-9587[EMAIL PROTECTED] -- 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] DateField: selectableRange
image can be seen at: http://www.small-hydro.com/calendar.gif Ghislain Simard Analyst Technique web | Web Technical AnalystRessources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Simard, GhislainSent: Tuesday, January 17, 2006 12:05 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] DateField: selectableRange That's the problem, the calendar doesn't remain at the last date selected. The date in the field input remainbut not the popupcalendar. The popup calendar is always showing first the rangeStart date. See pictures attached I would like the calendar to show the month and year of the date previously selected at the initialization of the page. As the date is coming from the database, maybe I should do something after the value is commited in the field for the calendar to be set correctly. Any idea? Thanks Ghislain Simard Analyst Technique web | Web Technical AnalystRessources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Deepa SubramaniamSent: Monday, January 16, 2006 7:09 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] DateField: selectableRange Setting the selectableRange means only the dates between rangeStart and rangeEnd (or in your case from rangeStart onwards) are selectable - that is why the calendar starts at rangeStart upon startup. There's no way to select a date earlier then rangeStart. If you want to keep the range of dates open and just disable some ranges from being selected, then look into setting disabledRanges. Upon making a selection in a DateField, when it is re-opened it will remain at the date last selected. If you want to keep the calendar at a particular selected date when the app is re-loaded, you'll have to write a mechanism where that selected date is stored somewhere and re-set when the app is loaded again. -deepa -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, GhislainSent: Monday, January 16, 2006 2:59 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] DateField: selectableRange it works well except the calendar is always showing the rangeStart date bydefault. How to get the calendar back to the month and year of the dateselected when you reload the page?Ghislain SimardAnalyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4Gouvernement du Canada | Government of Canada[EMAIL PROTECTED]613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]Behalf Of Deepa SubramaniamSent: Monday, January 16, 2006 4:38 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] DateField: selectableRangeHi - You can set whichever range property you want (disabledRanges which disablessingle or multiple days or selectableRange which sets a range of dates whichare selectable) in ActionScript or at the tag level. Both those propertiestake an Object which contains two properties - rangeStart and rangeEnd whichare Date objects. For example:mx:DateField selectableRange="{ {rangeStart: new Date(2006, 1, 1),rangeEnd: new Date(2006, 1, 16)} }" /Will make it such that the DateField enables the range 1/1/06 to 1/16/06 asselectable. In your case, you'd want to do: mx:DateField id="myDate" selectableRange="{ {rangeStart: newDate(2004,4,1)} }"/HTH -Deepa-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Simard, GhislainSent: Monday, January 16, 2006 1:12 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] DateField: selectableRangeWhat I am trying to do is to get the calendar selectable only from 1 April2001.The following is not working:mx:DateField id="myDate" selectableRange="rangeStart(new Date(2004,4,1))"/Thanks for any helpGhislain SimardAnalyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4Natural Resources Canada | 580
[flexcoders] Re: Binding in Flex 2
Bruno, See... I knew it was going to be that easy. I had tried this, but was obviously doing it incorrectly. Works now. Thanks! Brendan --- In flexcoders@yahoogroups.com, Bruno Martins [EMAIL PROTECTED] wrote: Hi, In flex 2 you are obrigate to use a metatag [Bindable] like: ![CDATA[ [Bindable] public var labelText:String; ]] in flex 1.5 you also can you [Bindable] but this don't make diferences. Another point to say is about static vars. Until now, in tha alpha version, you canot use you bindable, but the engeniers of macromedia are working to change this in the following vensions. Bye... On 1/17/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi All, I'm sure this is going to be one of those questions that you regret asking as soon as it leaves your mouth, because it seems so simple. I'm having an issue binding 2 levels deep. Something that does work in Flex 1.5 doesn't work in Flex 2. Below are 3 files for an example... The value of labelText shows up properly in Child1.mxml, but does not bind into Child2.mxml properly. I have tried using getters/setters with a Change event and Bindable property attached to them with no luck. //MainApp.mxml -- passing initial value of labelText to first child mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* Child1 labelText=My Text / /mx:Application //Child1.mxml -- labelText binds properly mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text first = {String(labelText)} / Child2 labelText={String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox //Child2.mxml -- labelText does not bind proplery mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text second = {String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox Thanks in advance for the help, Brendan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED][EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- Bruno Gustavo Martins Mobile: (55)(11)9585-9587 [EMAIL PROTECTED] -- 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] How to add an MXML component which is not in the root folder?
Java, not so sure, but seems likely to work there. Flex 2 itself is an example of this :) martin. -- 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] how to change the appearance of a custom button
What version of flex? If youre extending the flex framework you should be able to skin it by substituting your own images via the props: selectedDisabledIcon=No default. selectedDisabled=buttonSkin selectedDownIcon=No default. selectedDown=buttonSkin selectedOverIcon=No default. selectedOver=buttonSkin selectedUpIcon=No default. Youll need to embed your images and reference them. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, January 17, 2006 12:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how to change the appearance of a custom button There is an ImageButton in the Flex\extras install folder, perhaps that will help. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ravi mishra Sent: Tuesday, January 17, 2006 5:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to change the appearance of a custom button hi group, i want to make a custom button. anybody please tell me that from where the image of a button is accessed and if i want to change the image(that is Button.png, by default) then what should i do. regards, ravi i love to walk in rain, b'coz no one can see me crying. Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] how to change the appearance of a button
hi group,i want to make a custom button. anybody please tell me that from where the image of a button is accessed and if i want to change the image(that is Button.png, by default) then what should i do.regards,ravii love to walk in rain, b'coz no one can see me crying. Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Destroying/Re-creating Objects
Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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] How to add an MXML component which is not in the root folder?
I guess, if your application were a class, but if you're using MXML, it is not!Java only requires a main() method. Flex requires extending Application /, which seems to be causing the problem.Scott On 1/17/06, Martin Wood [EMAIL PROTECTED] wrote: Java, not so sure, but seems likely to work there. Flex 2 itself is an example of this :) martin. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Runtime width of tree control - Urgent !!
Can i get the width at runtime in pixels? Yes If yes, then how? myTree.width - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robs Sent: Tuesday, January 17, 2006 2:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Runtime width of tree control - Urgent !! Hi all, I have a tree control in my app, whose width has been set to 100%. Can i get the width at runtime in pixels? If yes, then how? Regards, Robi. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Destroying/Re-creating Objects
The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm Question
Hi Robin, Your application appears very organized and well thought-out. One question: If workspace instance X broadcasts an event, and workspace instance Y is also open (in this example, let's say that both X and Y are instances of the search screen, and X just broadcasted a search event), would workspace instance Y respond to the information returned from the search? Are you using the EventBroadcaster exactly as it exists in Cairngorm? Thanks, YJ (Sorry if this is a duplicate post... I posted earlier today and never saw the message make it to the mailing list.) --- In flexcoders@yahoogroups.com, Robin Hilliard [EMAIL PROTECTED] wrote: Hi YJ, RocketBoots is working with a development team on a large (100s of classes) Flex 1.5 Cairngorm application at the moment with potentially many instances of the same sub-application (we call them workspaces) around at the same time - e.g. two searches, three articles, a calculator etc. Here's our solution, which is working nicely. Each type of workspace has it's own viewHelper class. Each workspace instance has it's own viewHelper instance. Because there are multiple instances it was going to be difficult to use the ViewLocator and ModelLocator, so we didn't. Instead, when workspace instance X broadcasts an event, we include a reference to the workspace's viewHelper in the event data. The command's execute method caches this viewHelper in an instance variable, and its onResult method uses the same viewHelper to display the results. The viewHelper instance also holds our model, using instance instead of static variables (although we can imagine using statics in some situations, for bits of the model shared across all workspaces). Happy to answer further questions about this approach - this one has been in the backlog of things to blog for a while. Cheers, Robin __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 *** On 17/01/2006, at 1:37 AM, fowleryj wrote: We have been developing a fairly large application using Flex 1.5 and the Cairngorm framework, and have recently run across what could be a large roadblock. Our application has many sub-applications the user can choose to run from a menu in the main application. To implement this we are dynamically creating the children the user selects in a view stack. All of these sub-applications rely on a particular search screen that allows the user to find a particular person in our database. The problem is that the sub-applications are bound to the selection the user makes in the search screen, and are all reacting to the same events (which are broadcast from the search screen). We would like the search screens to function as separate instances. For example, if I broadcast a change event from the search screen, all of the open sub-applications will catch the event and change all of their displayed information to reflect that of the most recently selected person. Our problem appears to stem from the way the EventBroadcaster and FrontController are designed. All events are broadcast in the same EventBroadcaster using the getInstance() method, thus everything is listening for everything. Can anyone who is familiar with the intricacies of Cairngorm propose a way to deal with this problem? We would like to be able to return the information about the selected person only to the sub-application that invoked the search screen. Perhaps it is not possible to do this using Cairngorm, and we would appreciate knowing that, too. If anyone has a different/better solution, we'd love to hear about it. Thanks in advance. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm Question
Robin, Your setup seems very organized and well thought-out. One question: What happens in your application if workspace instance X broadcasts an event while the workspace instance Y is open (let's say for this example that both X and Y are searches, and the event that is broadcast is a search event)? Does workspace instance Y also receive the results of the search? Are you using the EventBroadcaster exactly as it exists in Cairngorm? Thanks, YJ --- In flexcoders@yahoogroups.com, Robin Hilliard [EMAIL PROTECTED] wrote: Hi YJ, RocketBoots is working with a development team on a large (100s of classes) Flex 1.5 Cairngorm application at the moment with potentially many instances of the same sub-application (we call them workspaces) around at the same time - e.g. two searches, three articles, a calculator etc. Here's our solution, which is working nicely. Each type of workspace has it's own viewHelper class. Each workspace instance has it's own viewHelper instance. Because there are multiple instances it was going to be difficult to use the ViewLocator and ModelLocator, so we didn't. Instead, when workspace instance X broadcasts an event, we include a reference to the workspace's viewHelper in the event data. The command's execute method caches this viewHelper in an instance variable, and its onResult method uses the same viewHelper to display the results. The viewHelper instance also holds our model, using instance instead of static variables (although we can imagine using statics in some situations, for bits of the model shared across all workspaces). Happy to answer further questions about this approach - this one has been in the backlog of things to blog for a while. Cheers, Robin __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 *** On 17/01/2006, at 1:37 AM, fowleryj wrote: We have been developing a fairly large application using Flex 1.5 and the Cairngorm framework, and have recently run across what could be a large roadblock. Our application has many sub-applications the user can choose to run from a menu in the main application. To implement this we are dynamically creating the children the user selects in a view stack. All of these sub-applications rely on a particular search screen that allows the user to find a particular person in our database. The problem is that the sub-applications are bound to the selection the user makes in the search screen, and are all reacting to the same events (which are broadcast from the search screen). We would like the search screens to function as separate instances. For example, if I broadcast a change event from the search screen, all of the open sub-applications will catch the event and change all of their displayed information to reflect that of the most recently selected person. Our problem appears to stem from the way the EventBroadcaster and FrontController are designed. All events are broadcast in the same EventBroadcaster using the getInstance() method, thus everything is listening for everything. Can anyone who is familiar with the intricacies of Cairngorm propose a way to deal with this problem? We would like to be able to return the information about the selected person only to the sub-application that invoked the search screen. Perhaps it is not possible to do this using Cairngorm, and we would appreciate knowing that, too. If anyone has a different/better solution, we'd love to hear about it. Thanks in advance. -- 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] Changing states with DG Click
I have a datagrid that I am using to display file search info. When a user clicks on the file they want to view, it should change the current state from the search state to the view state. However, I cant seem to get this to work. Here is the code that I am trying. Can someone give me a bit of help. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* width=100% height=100% mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true / mx:Panel x=0 panelAlpha=1.0 height=100% width=100% y=03 title=View Transaction: Search mx:Script ![CDATA[ function qpListSearch(fld_fileNum){ srv.qpListSearch(fld_fileNum);} ]] /mx:Script mx:Canvas height=100% width=100% mx:TextInput x=6 y=22 id=fld_fileNum/ mx:Button x=184 y=22 click=qpListSearch(fld_fileNum.text) label=Button/ mx:DataGrid x=6 id=FSDG click=currentState='ntcl' dataProvider={srv.qpListSearch.result} y=71 width=100% height=80% mx:columns mx:DataGridColumn headerText=File Number columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Address columnName=FLD_PROPNUM FLD_PROPDIR FLD_PROPSTREET/ /mx:columns /mx:DataGrid /mx:Canvas /mx:Panel -- 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: How to add an MXML component which is not in the root folder?
Lets say you have a webroot like this. webroot/ index.mxml popups/mypopups/ (this is a folder) If you want to use a custom component in the popups/mypopups/ folder you would do something like this. mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:mp=popups.* currentState=stackStart This is in your mxml file with the application tag. Lets say you want to include it in your app. You would use something like this mp:filename / So if I had the file popupFoo.mxml and it was in your popups/mypopups/ folder you would use this mp:popupFoo / HTH --- In flexcoders@yahoogroups.com, Scott Langeberg [EMAIL PROTECTED] wrote: I guess, if your application were a class, but if you're using MXML, it is not! Java only requires a main() method. Flex requires extending Application /, which seems to be causing the problem. Scott On 1/17/06, Martin Wood [EMAIL PROTECTED] wrote: Java, not so sure, but seems likely to work there. Flex 2 itself is an example of this :) martin. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED][EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to handle sessions in Flex
I don't believe we are. We have a login screen that makes a service call to our EJB layer for authentication and verification. I think that answers your question. George --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: Before I answer this, let me get some background. Are you using J2EE security? If so, FORM or BASIC authentication? 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 george_lui Sent: Friday, January 13, 2006 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to handle sessions in Flex thanx for the prompt reply. I neglected to mention some other requirements. The nature of our app can have our users spends a good deal amount of time filling out the form. There's a save button there to save your work. However say the user is filling out the form and doesn't bother to save the form. There's a good chance that the session could expire before he gets a chance to save the form. Our server session is usually 30 minutes. In this scenario, when the session expires, we don't want the user to lose the data on the form. We want to somehow catch the session timeout and save the form. Another scenario we want to catch is, say you logout. The session is invalidated. However you could hit the browser Back button and have the previous screen display. You wouldn't know that the session time out until you invoke a service call. Instead I want to go to the login screen in such a scenerio. Can this be done? Please advise. thx, george --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: You'll need to expire the page with cache headers so that the browser attempts to reload the page which will then take you to the login page. 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 george_lui Sent: Thursday, January 12, 2006 5:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to handle sessions in Flex Hi, I click on Logout in my application. However if I hit the browser Back button, I go back to the previous screen. I want to go to the login screen however. You guru's know how I would be able to do this? Can I catch the browser button events? George -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] BOSTON AREA? FYI drop by Adobe for talk on Flex Enterprise Services tomorrow
Hello, FYI, I see the new BFPUG is being hosted in our offices and William is giving a talk on FES. Unfortunately I am out in our SF office this week and will miss it, but for folks in the Boston area it should be interesting. William is the Director of Engineering for Flex Enterprise Services. http://www.bfpug.com/?p=9 Regards, David Adobe -- 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] Binding in Flex 2
You should need Bindable metadata on both labelText variables: [Bindable] public var labelText:String; I'm not sure why the value shows up properly in Child1.mxml. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Tuesday, January 17, 2006 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding in Flex 2 Hi All, I'm sure this is going to be one of those questions that you regret asking as soon as it leaves your mouth, because it seems so simple. I'm having an issue binding 2 levels deep. Something that does work in Flex 1.5 doesn't work in Flex 2. Below are 3 files for an example... The value of labelText shows up properly in Child1.mxml, but does not bind into Child2.mxml properly. I have tried using getters/setters with a Change event and Bindable property attached to them with no luck. //MainApp.mxml -- passing initial value of labelText to first child mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* Child1 labelText=My Text / /mx:Application //Child1.mxml -- labelText binds properly mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text first = {String(labelText)} / Child2 labelText={String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox //Child2.mxml -- labelText does not bind proplery mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text second = {String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox Thanks in advance for the help, Brendan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Binding in Flex 2
(Err, messages were sent to me out of order, and I now see this as being answered) -Original Message- From: Brian Deitte Sent: Tuesday, January 17, 2006 4:02 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Binding in Flex 2 You should need Bindable metadata on both labelText variables: [Bindable] public var labelText:String; I'm not sure why the value shows up properly in Child1.mxml. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Tuesday, January 17, 2006 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding in Flex 2 Hi All, I'm sure this is going to be one of those questions that you regret asking as soon as it leaves your mouth, because it seems so simple. I'm having an issue binding 2 levels deep. Something that does work in Flex 1.5 doesn't work in Flex 2. Below are 3 files for an example... The value of labelText shows up properly in Child1.mxml, but does not bind into Child2.mxml properly. I have tried using getters/setters with a Change event and Bindable property attached to them with no luck. //MainApp.mxml -- passing initial value of labelText to first child mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* Child1 labelText=My Text / /mx:Application //Child1.mxml -- labelText binds properly mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text first = {String(labelText)} / Child2 labelText={String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox //Child2.mxml -- labelText does not bind proplery mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Label text=my text second = {String(labelText)} / mx:Script ![CDATA[ public var labelText:String; ]] /mx:Script /mx:HBox Thanks in advance for the help, Brendan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] BOSTON AREA? FYI drop by Adobe for talk on Flex Enterprise Services tomorrow
To add to this, some of the Flex folks in the Newton office will probably be there as well. (I plan on showing up.) -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Mendels Sent: Tuesday, January 17, 2006 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BOSTON AREA? FYI drop by Adobe for talk on Flex Enterprise Services tomorrow Hello, FYI, I see the new BFPUG is being hosted in our offices and William is giving a talk on FES. Unfortunately I am out in our SF office this week and will miss it, but for folks in the Boston area it should be interesting. William is the Director of Engineering for Flex Enterprise Services. http://www.bfpug.com/?p=9 Regards, David Adobe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Destroying/Re-creating Objects
I believe that is the issue...after sending the email I realized that I am not waiting for the creationComplete event to be dispatched on each child before attempting to use the child. Thanks for the response. Rob From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, January 17, 2006 10:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] BOSTON AREA? FYI drop by Adobe for talk on Flex Enterprise Services tomorrow
...and will this be breezed? DK On 1/17/06, Brian Deitte [EMAIL PROTECTED] wrote: To add to this, some of the Flex folks in the Newton office will probably be there as well. (I plan on showing up.) -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Mendels Sent: Tuesday, January 17, 2006 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BOSTON AREA? FYI drop by Adobe for talk on Flex Enterprise Services tomorrow Hello, FYI, I see the new BFPUG is being hosted in our offices and William is giving a talk on FES. Unfortunately I am out in our SF office this week and will miss it, but for folks in the Boston area it should be interesting. William is the Director of Engineering for Flex Enterprise Services. http://www.bfpug.com/?p=9 Regards, David Adobe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Passing Vars from one state to another state.
I am currently working on my app and I have run into a problem. I have a custom component that I am using to search for files with in my database. The search works fine. However, when I try to pass the var fld_fileNum into my edit state, I get the error below. ReferenceError: Error #1069: Property aal not found on hs2f and there is no default value at custom.components.sv::adminFileSearch/custom.components.sv$internal::ListState() at custom.components.sv::adminFileSearch/__FSDG_click() Here is the code I am using. Can someone offer me some insight. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* width=100% height=100% mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true / mx:Panel x=0 panelAlpha=1.0 height=100% width=100% y=03 title=View Transaction: Search mx:Script ![CDATA[ function qpListSearch(fld_fileNum){ srv.qpListSearch(fld_fileNum);} function ListState() { parentApplication.currentState = 'ntcl'; var app:Object = mx.core.Application.application; app.aal.fld_fileNum.text = FSDG.selectedItem.FLD_FILENUM; } ]] /mx:Script mx:Canvas height=100% width=100% mx:TextInput x=6 y=22 id=fld_fileNum/ mx:Button x=184 y=22 click=qpListSearch(fld_fileNum.text) label=Button/ mx:DataGrid x=6 id=FSDG click=ListState(); dataProvider={srv.qpListSearch.result} y=71 width=100% height=80% mx:columns mx:DataGridColumn headerText=File Number columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Address columnName=FLD_PROPNUM FLD_PROPDIR FLD_PROPSTREET/ /mx:columns /mx:DataGrid /mx:Canvas /mx:Panel /mx:Canvas -- 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] Destroying/Re-creating Objects
I verified that the component I am creating does have the creationComplete event defined but it is not firingshould I be listening for the childCreated event on the view stack instead? Thanks again for the info and assist From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Tuesday, January 17, 2006 10:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 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: Cairngorm Question
Hi YJ, Sure - the Cairngorm code is unmodified. For instance, in your view you might have: private var viewHelper : OurViewHelper; private var searchDefinition : SearchDefinitionVO; ... EventBroadcaster.getInstance().broadcastEvent (OurController.SEARCH_COMMAND, {viewHelper:viewHelper, searchDefinition:searchDefinition}); And in the command: private var cachedViewHelper : OurViewHelper; function execute(event : Event) : Void { cachedViewHelper = event.data.viewHelper; delegate.search(event.data.searchDefinition); } public function onResult(event : Object) : Void { cachedViewHelper.showSearchResult(SearchResultCollectionVO (event.result)); } There is a bit more to talk about regarding the initial creation of the view helpers and views which I hope to blog soon, but if you have more specific questions fire away. Cheers, Robin __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Register for WebDU http://www.mxdu.com 2-3 March 2006 *** On 18/01/2006, at 5:50 AM, fowleryj wrote: Hi Robin, Your application appears very organized and well thought-out. One question: If workspace instance X broadcasts an event, and workspace instance Y is also open (in this example, let's say that both X and Y are instances of the search screen, and X just broadcasted a search event), would workspace instance Y respond to the information returned from the search? Are you using the EventBroadcaster exactly as it exists in Cairngorm? Thanks, YJ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your 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] DateField: selectableRange
Hi Ghislain You need to be sure youre programmatically setting the selectedDate property on the DateField if you want the calendar to display that date and open up at that date correctly. So when a date comes in from the backing database, set the selectedDate property to a Date object corresponding to that returned date and the calendar should behave how youd like. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, Ghislain Sent: Tuesday, January 17, 2006 9:05 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] DateField: selectableRange That's the problem, the calendar doesn't remain at the last date selected. The date in the field input remainbut not the popupcalendar. The popup calendar is always showing first the rangeStart date. See pictures attached I would like the calendar to show the month and year of the date previously selected at the initialization of the page. As the date is coming from the database, maybe I should do something after the value is commited in the field for the calendar to be set correctly. Any idea? Thanks Ghislain Simard Analyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Deepa Subramaniam Sent: Monday, January 16, 2006 7:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateField: selectableRange Setting the selectableRange means only the dates between rangeStart and rangeEnd (or in your case from rangeStart onwards) are selectable - that is why the calendar starts at rangeStart upon startup. There's no way to select a date earlier then rangeStart. If you want to keep the range of dates open and just disable some ranges from being selected, then look into setting disabledRanges. Upon making a selection in a DateField, when it is re-opened it will remain at the date last selected. If you want to keep the calendar at a particular selected date when the app is re-loaded, you'll have to write a mechanism where that selected date is stored somewhere and re-set when the app is loaded again. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, Ghislain Sent: Monday, January 16, 2006 2:59 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] DateField: selectableRange it works well except the calendar is always showing the rangeStart date by default. How to get the calendar back to the month and year of the date selected when you reload the page? Ghislain Simard Analyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Deepa Subramaniam Sent: Monday, January 16, 2006 4:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateField: selectableRange Hi - You can set whichever range property you want (disabledRanges which disables single or multiple days or selectableRange which sets a range of dates which are selectable) in ActionScript or at the tag level. Both those properties take an Object which contains two properties - rangeStart and rangeEnd which are Date objects. For example: mx:DateField selectableRange={ {rangeStart: new Date(2006, 1, 1), rangeEnd: new Date(2006, 1, 16)} } / Will make it such that the DateField enables the range 1/1/06 to 1/16/06 as selectable. In your case, you'd want to do: mx:DateField id=myDate selectableRange={ {rangeStart: new Date(2004,4,1)} }/ HTH - Deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simard, Ghislain Sent: Monday, January 16, 2006 1:12 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] DateField: selectableRange What I am trying to do is to get the calendar selectable only from 1 April 2001. The following is not working: mx:DateField id=myDate selectableRange=rangeStart(new Date(2004,4,1))/ Thanks for any help Ghislain Simard Analyst Technique web | Web Technical Analyst Ressources Naturelles Canada | 580 Booth Ottawa (Ontario) K1A 0E4 Natural Resources Canada | 580 Booth St Ottawa ON K1A 0E4 Gouvernement du Canada | Government of Canada [EMAIL PROTECTED] 613-947-0582 | télécopieur / facsimile 613-996-9416 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Ghislain Simard Sent: Monday, January
[flexcoders] Column Chart to display data label without mouseover
I'm new to Flex so hopefully this is not a stupid question. I was wondering if there is a way to display the data labels on column charts without having to mouseover. In a sense, I want the charts to behave like pie charts, where the labels will always be displayed. I can't seem to find any documentations regarding this online, so any insight is deeply appreciated. Thank you for all your help! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2 Custom Component Event
You should be able to just do parent.addEventListener(showType, ...) Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Kroll Sent: Monday, January 16, 2006 2:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Custom Component Event Hello all, I'm new to this list and am glad to join the community. I've been working with flex 2 and have run into a problem I'm hoping someone here might be able to help me solve. I'm dispatching an event in my main mxml file, and need to have it be captured within a custom component I've created. The problem I'm having is that the custom component is created numerous times from within an mx:Repeater so I can't seem to attach the listener in the correct fashion. Here is a snipped from my main app: mx:Script import mx.collections.ArrayCollection; import flash.util.trace; public function broadcastShowType() { dispatchEvent(new Event(showType)); mx.controls.Alert.show(broadcast show event); } /mx:Script mx:Repeater id=list dataProvider={inventory} mx:GridItem inventoryItem id=invItem invItem={list.currentItem} / /mx:GridItem /mx:Repeater Then within my component I've got: mx:Script private function initComponent() { addEventListener(showType, handleShowType); } private function handleShowType(event) { Alert.show(Received Event Notification); } /mx:Script I assumed that putting the addEventListener() within the component would create it when the component was created, but it seems to be a local listener, and will not receive events from the main app. Considering the dynamic nature of how I'm creating the custom component, is there another way to add the event listener and have it able to respond to the outer events? Rich Kroll -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Passing Vars from one state to another state.
Does aal get created when the state changes to ntcl? Maybe it hasn't completed the transition yet so aal doesn't exist yet but would after the state has changed? Not sure what you need to do to wait for that to finish, maybe you'd want a holder variable that you'd set and then you'd bind the fld_fileNum.text value to that holder? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, January 17, 2006 1:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Passing Vars from one state to another state. I am currently working on my app and I have run into a problem. I have a custom component that I am using to search for files with in my database. The search works fine. However, when I try to pass the var fld_fileNum into my edit state, I get the error below. ReferenceError: Error #1069: Property aal not found on hs2f and there is no default value at custom.components.sv::adminFileSearch/custom.components.sv$internal::Lis tState() at custom.components.sv::adminFileSearch/__FSDG_click() Here is the code I am using. Can someone offer me some insight. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* width=100% height=100% mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true / mx:Panel x=0 panelAlpha=1.0 height=100% width=100% y=03 title=View Transaction: Search mx:Script ![CDATA[ function qpListSearch(fld_fileNum){ srv.qpListSearch(fld_fileNum);} function ListState() { parentApplication.currentState = 'ntcl'; var app:Object = mx.core.Application.application; app.aal.fld_fileNum.text = FSDG.selectedItem.FLD_FILENUM; } ]] /mx:Script mx:Canvas height=100% width=100% mx:TextInput x=6 y=22 id=fld_fileNum/ mx:Button x=184 y=22 click=qpListSearch(fld_fileNum.text) label=Button/ mx:DataGrid x=6 id=FSDG click=ListState(); dataProvider={srv.qpListSearch.result} y=71 width=100% height=80% mx:columns mx:DataGridColumn headerText=File Number columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Address columnName=FLD_PROPNUM FLD_PROPDIR FLD_PROPSTREET/ /mx:columns /mx:DataGrid /mx:Canvas /mx:Panel /mx:Canvas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Changing states with DG Click
I don't see the mx:state stuff in here, do you mean to be setting the currentState on the parent application maybe? parent.currentState = 'ntcl' or something? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, January 17, 2006 11:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing states with DG Click I have a datagrid that I am using to display file search info. When a user clicks on the file they want to view, it should change the current state from the search state to the view state. However, I cant seem to get this to work. Here is the code that I am trying. Can someone give me a bit of help. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* width=100% height=100% mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true / mx:Panel x=0 panelAlpha=1.0 height=100% width=100% y=03 title=View Transaction: Search mx:Script ![CDATA[ function qpListSearch(fld_fileNum){ srv.qpListSearch(fld_fileNum);} ]] /mx:Script mx:Canvas height=100% width=100% mx:TextInput x=6 y=22 id=fld_fileNum/ mx:Button x=184 y=22 click=qpListSearch(fld_fileNum.text) label=Button/ mx:DataGrid x=6 id=FSDG click=currentState='ntcl' dataProvider={srv.qpListSearch.result} y=71 width=100% height=80% mx:columns mx:DataGridColumn headerText=File Number columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Address columnName=FLD_PROPNUM FLD_PROPDIR FLD_PROPSTREET/ /mx:columns /mx:DataGrid /mx:Canvas /mx:Panel -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: REPOST: [flexcoders] PrintJob cutting text on datagrid
Any news on this printing problem?? Anyone? -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: 20. joulukuuta 2005 20:39 To: flexcoders@yahoogroups.com Subject: Re: REPOST: [flexcoders] PrintJob cutting text on datagrid On 12/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! I asked Nihit (the printing guy), and he thinks he has seen this problem before. Can you provide a sample that I can run on my machine? Manish -- 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] Destroying/Re-creating Objects
If you're using Flex 2 and it isn't firing, please file a bug. But are you registering for the event by doing newChild.addEventListener(creationComplete, creationCompleteHandler); ? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 12:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects I verified that the component I am creating does have the creationComplete event defined but it is not firingshould I be listening for the childCreated event on the view stack instead? Thanks again for the info and assist From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Tuesday, January 17, 2006 10:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 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.