RE: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
When you create the window, you can specify its modality (I think it is the 3rd parameter on the createPopUp method, its a Boolean value). Try setting the modality to false. A modal window is the topmost window in a flex application. I have had similar issues with modal windows This may not work, but it is worth a try. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of fowleryj Sent: Wednesday, October 26, 2005 5:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working Dustin, Thanks for that suggestion - it proved that the problem is indeed that the menu is showing up beneath my window. Another strange thing is that none of the items are selectable when I run my mouse cursor over them. How would I get the menu to stop showing up beneath my window? -- Renaun, PopUp.mxml's top component is an mx:Panel. Main.mxml allows the user to open any number of different windows (I gave them generic names for this example, obviously, but they are all smaller parts of a large application) in which the user will execute different tasks. Also, I do have my AS function inside of mx:Script![CDATA[ ]/mx:Script tags. -- Thank you both. =) --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: This doesn't sound like a cairngorm issue, but a flex depth issue. Try this... Try making the window height about 50 pixels, and add a bunch of menu items to the menubar's dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menu's items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=""> menuitem label=Finder B type=Finder data=""> /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=""> menuitem label=Add/Edit B type=Add/Edit data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=""> menuitem label=Close type=File data=""> menuitem label=Save type=File data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. -- 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 http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
RE: [flexcoders] RES: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
No problem J Hopefully Flex 2.0 will fix some of these problems Time to go do some tests to see so we can log these for Flex 2 J Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: Wednesday, October 26, 2005 2:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RES: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working That was it! I set modal to false and now the menu shows up. Thanks for your help, Dustin. --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: When you create the window, you can specify its' modality (I think it is the 3rd parameter on the createPopUp method, it's a Boolean value). Try setting the modality to false. A modal window is the topmost window in a flex application. I have had similar issues with modal windows... This may not work, but it is worth a try. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj Sent: Wednesday, October 26, 2005 5:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working Dustin, Thanks for that suggestion - it proved that the problem is indeed that the menu is showing up beneath my window. Another strange thing is that none of the items are selectable when I run my mouse cursor over them. How would I get the menu to stop showing up beneath my window? -- Renaun, PopUp.mxml's top component is an mx:Panel. Main.mxml allows the user to open any number of different windows (I gave them generic names for this example, obviously, but they are all smaller parts of a large application) in which the user will execute different tasks. Also, I do have my AS function inside of mx:Script![CDATA[ ]/mx:Script tags. -- Thank you both. =) --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: This doesn't sound like a cairngorm issue, but a flex depth issue. Try this... Try making the window height about 50 pixels, and add a bunch of menu items to the menubar's dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menu's items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=""> menuitem label=Finder B type=Finder data=""> /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=""> menuitem label=Add/Edit B type=Add/Edit data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=""> menuitem label=Close type=File data=""> menuitem label=Save type=File data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event
RE: [flexcoders] create-compile-report not creating report
I hate to ask this, but did you restart the server? Any changes to the flex-config.xml require a server restart to update If you did that, then try deleting the cache.dep and all the folders under the generated folders in the web-inf\flex dir. Then restart your server and access your application again. That should take care of it J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger Gonzalez Sent: Wednesday, October 26, 2005 12:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] create-compile-report not creating report i've opened my flex-config.xml file and set create-compile-report to true but it's not creating the report... production mode is set to false... any ide why it's not creating the file? Try searching for all files named '*-report.xml', hopefully its just writing it somewhere unexpected. -rg -- 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: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
This doesnt sound like a cairngorm issue, but a flex depth issue. Try this Try making the window height about 50 pixels, and add a bunch of menu items to the menubars dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menus items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=""> menuitem label=Finder B type=Finder data=""> /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=""> menuitem label=Add/Edit B type=Add/Edit data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=""> menuitem label=Close type=File data=""> menuitem label=Save type=File data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. -- 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] Remote Object not found in Flex config
Title: Remote Object not found in Flex config And make sure you are not running Flash Player 8.5. I had issues with Flash player 8.5 and Named remote objects. It was giving me a different error, but there were problems none the less. After uninstall of 8.5, my app worked fine. Very strange From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roger Gonzalez Sent: Tuesday, October 25, 2005 1:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Remote Object not found in Flex config Did you just make these changes? Try shutting down and restarting your server. There was an issue someone else had recently where this wasn't picked up correctly without a restart. -Roger Roger Gonzalez [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand Sent: Tuesday, October 25, 2005 12:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote Object not found in Flex config Hi ! I'm having the following error : Invalid value for 'named' - does not match any object name from the configuration file. I have already checked my config file and I'm sure to have the name of the remote-object there, however the error is still happening. At config file I have the settings below: remote-objects .. whitelist !-- whitelist config for named objects -- named object name=DataBaseHandler sourcecom.datasul.persistence.util.DataBaseHandlerDelegate/source typestateless-class/type /object /named /whitelist /remote-objects I have the class DataBaseHandlerDelegate at WEB-INF/lib (as a jar file) and at WEB-INF/classes/com/datasul/persistence/util/. At my MXML tag I have the following: mx:RemoteObject id=dataBaseHandlerSrv named=DataBaseHandler protocol=http showBusyCursor=true result=event.call.resultHandler( event ); fault=event.call.faultHandler( event ); /mx:RemoteObject What's wrong ? Where should I look for the error ? Thanks in advance, Michel Bertrand | Desenvolvimento | DATASUL Tecnologia Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de tecnologia -- 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] Flex2: Popup Error
I believe the removePopUp method is being called twice You will find if you click anywhere in the header of the titlewindow, the window will fire the click event (Which is set to close the window) and if you click on the close button, it fires the event twice. You get the null error because the window has already closed by the time the second remove method tries to execute. I did not find this, but I say someone else mention this somewhere. Hope this helps Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, October 20, 2005 10:03 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex2: Popup Error If this was 1.5, I's say, call the removePopUp from a doLater(). Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Wednesday, October 19, 2005 4:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: Popup Error BTW Thanks to Spike, he gave me the little bits I needed to finally see what I needed to get it with the changes in 2. Now I have tried many variations of a popup window to send stuff too. It works for the most part. But when I close the window I get an error. Here is the function that fires the popup window up. --- import mx.managers.PopUpManager; import mx.containers.TitleWindow; // Error Handler Function public function err(message:String, title:String):Void { var errpop:TitleWindow = TitleWindow (PopUpManager.createPopUp(this, MyPopup, true)); errpop.title=Test; errpop.closeButton=true; } And here is the MyPopup.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml click=PopUpManager.removePopUp(this) width=940 height=503 mx:Script ![CDATA[ import mx.managers.PopUpManager; ]] /mx:Script mx:TextArea id=messagebox width=100% height=100% editable=false / /mx:TitleWindow --- And here is the error that gets thrown --- TypeError: Error #1009: null has no properties. at mx.managers::PopUpManager$/removePopUp() at MyPopup/___TitleWindow0_click() -- 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: Flex2: Popup Error
Yes, very very sneaky Flex 2.0. I think MM is just trying to make sure we are paying attention J Good workaround though Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Thursday, October 20, 2005 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2: Popup Error Ah. Very interesting. I just gave up on the X and did a close button, which effectively did the same thing as figureing out how to get it not to do that double click. --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: I believe the removePopUp method is being called twice... You will find if you click anywhere in the header of the titlewindow, the window will fire the click event (Which is set to close the window) and if you click on the close button, it fires the event twice. You get the null error because the window has already closed by the time the second remove method tries to execute. I did not find this, but I say someone else mention this somewhere. Hope this helps Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, October 20, 2005 10:03 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex2: Popup Error If this was 1.5, I's say, call the removePopUp from a doLater(). Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Wednesday, October 19, 2005 4:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: Popup Error BTW Thanks to Spike, he gave me the little bits I needed to finally see what I needed to get it with the changes in 2. Now I have tried many variations of a popup window to send stuff too. It works for the most part. But when I close the window I get an error. Here is the function that fires the popup window up. --- import mx.managers.PopUpManager; import mx.containers.TitleWindow; // Error Handler Function public function err(message:String, title:String):Void { var errpop:TitleWindow = TitleWindow (PopUpManager.createPopUp(this, MyPopup, true)); errpop.title=Test; errpop.closeButton=true; } And here is the MyPopup.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml click=PopUpManager.removePopUp(this) width=940 height=503 mx:Script ![CDATA[ import mx.managers.PopUpManager; ]] /mx:Script mx:TextArea id=messagebox width=100% height=100% editable=false / /mx:TitleWindow --- And here is the error that gets thrown --- TypeError: Error #1009: null has no properties. at mx.managers::PopUpManager$/removePopUp() at MyPopup/___TitleWindow0_click() -- 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 http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+d es ign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr ac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads? t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software +d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+ pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Softwa re +design+and+developmentw4=Macromedia+flexw5=Software+development+bes t+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+de ve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s =1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads? t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Sof tw are+design+and+developmentw4=Macromedia+flexw5=Software+development+ be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send
RE: [flexcoders] Popping up the same window more than once
Just Curious, are you using the cairngorm framework and is there a viewhelper used in this window??? If so, the problem may be with the same viewhelper trying to be instantiated twice (Once in widow A, then again in window B). If you try to instantiate more than one viewhelper with the same name, the viewLocator with throw an exception and will halt the movieclip (hence, no second window L) This is my best guess. Hope it helps. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: Sunday, October 02, 2005 2:25 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Popping up the same window more than once On 9/29/05, fowleryj [EMAIL PROTECTED] wrote: I've noticed that if I have WindowA open, and I click a button inside of it that opens WindowB, a button inside of WindowB that is supposed to open an instance of WindowA will not do so. [...] Not sure what you mean by same window. Calling createPopUp to _create_ a new popup window should always work. -- 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] Flex DataGrid with large recordset
Try adding liveScrolling=false to the datagrid. That will make the datagrid scroll without redrawing as it is scrolling. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sergei_tsoganov Sent: Thursday, September 29, 2005 2:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex DataGrid with large recordset When I first loaded my flex datagrid with 190 records I was really disappointed in flex. It was almost impossible to scroll tha grid or resize it. It seems like flex components are much slower than even flash components. What is the reason?? How to make datagrid to scroll faster with 200 rows? -- 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 with EJB3
This almost sounds like it could be related to actionscript not having the correct Java mappings. This can cause these types of headaches. Try creating dummy variables for all the classes used in the transaction at Flex application layer. I.E. var dummyObject : DummyObject (Where DummyObject is your actual ActionScript class) Heres why: Lets say you have a one-to-many relationship with 2 objects. If Object1 has many Object2s, then Object1 should have an array containing multiple Object2s. If Object2 has never been declared in actionscript yet, then Object2 will be undefined (Yet you will be able to trace its properties) Make sure Object1 is registered with actionscript (Object.registerClass) and Object2 is also registered with Actionscript (Try making dummy variables for each of these). Since the Object.registerClass is in the AS class, it will only be executed if the class has been declared in your application somewhere. Complex objects will come back as undefined if they dont have mapped AS counterparts. The reason there may not be a pattern to this is because certain objects will be declared in certain methods only, and those methods may not be executed yet. Object Casting can also be enough to kick in the object mappings. Thats why you usually dont have to declare any dummy variables. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Wednesday, September 28, 2005 8:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex with EJB3 ...hey, I'm with you about breaking the elegance, but if I as a developer can create ActionScript objects, and you as the Java developer can understand them, who cares if the underpinnings aren't elegant, it works. Still, it'd be nice to know what is going on... - Original Message - From: Björn Abt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 28, 2005 10:30 AM Subject: AW: [flexcoders] Flex with EJB3 Hi! Thanks for the quick answer. Well, the EJB3 EntityBeans are basically POJO's. The Beans get deserialized and reach the Flash-App. It fails only when a ManyToMany Relationship exists, but not all the time. Sometimes they get deserialzed and sometimes not. There isn't really a pattern, or at least none that i can see. Maybe i have to rebuild the Model with plain POJO's, but this would in a way break the elegance of the system... Thanks Bjoern -- 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] Confusing error message
I have also heard adding more code can help Strange but true. If adding more code does not work, then yes, refactoring your mxml file should solve the problem. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 9:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Confusing error message I read the faq thanks I have more than one .as file but as of yet only one mxml file perhaps I need to work on making another one to fix the 32k error? Do you all think that would 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 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] prevent drag
One way that works, but you will sacrifice your close button on the upper right is: In your popup mxml, make it a Panel instead of a TitleWindow. Other than that, you would probably have to do a centerPopUp in the stopDragging event (of the TitleWindow) to re-center the popup. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of superabe Sent: Monday, September 26, 2005 8:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] prevent drag Hi All , Is it possible to prevent a TitleWindow initialized using the PopupManager from being dragged ? TIA superabe -- 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] prevent drag
See, you learn something new every dayJ Much easier and cleaner than overriding the stopDragging event. Thanks Jester From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, September 26, 2005 11:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] prevent drag Hack: popup = mx.managers.PopUpManager.createPopUp(this, Title, false); popup.back_mc.> - Original Message - From: Mercer, Dustin To: flexcoders@yahoogroups.com Sent: Monday, September 26, 2005 1:45 PM Subject: RE: [flexcoders] prevent drag One way that works, but you will sacrifice your close button on the upper right is: In your popup mxml, make it a Panel instead of a TitleWindow. Other than that, you would probably have to do a centerPopUp in the stopDragging event (of the TitleWindow) to re-center the popup. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of superabe Sent: Monday, September 26, 2005 8:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] prevent drag Hi All , Is it possible to prevent a TitleWindow initialized using the PopupManager from being dragged ? TIA superabe -- 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] height=100% layout problem
Try setting minHeight=0 and minWidth=0 on vBxContent. I had the same problem with some of my layouts and that fixed J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal Sent: Thursday, September 22, 2005 3:01 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] height=100% layout problem Hi @all, I have got a problem with my layout... I want my Application to fit into the browser window. A VBox (vBxContent) should fit into this Application and be as high as possible, wherefore I set its height to 100%. But if a child (canContent) within vBxContent is higher then the screen it pushes the vBxContent.height to canContent's height. How can I assure, that the vBxContent height will not get bigger? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% backgroundColor=#AA mx:VBox id=vBxContent width=100% height=100% backgroundColor=#66 verticalAlign=middle horizontalAlign=center mx:Canvas id=canContent backgroundColor=#ff width=200 height=1188 / /mx:VBox mx:Canvas id=canAnotherComponent backgroundColor=#ff width=100 height=100 / /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] height=100% layout problem
Well, during the layout phase, flex sets the minWidth and minHeight to the value of its combined childrens dimensions, if the minHeight and minWidth are undefined. So we just skip that by defining them J It used to be different in flex 1.0 and I relied upon the parent always setting the width and height and creating scrollbars automatically, but when 1.5 came out, they changed that behavior. 1.5 allowed the children to set the width and height of the parent. Yes it seemed really weird I tried to argue this, but it seemed set in stone that this is how the layout manager should work. O well, what can you do? So we found this workaround. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal Sent: Thursday, September 22, 2005 8:39 AM To: 'flexcoders@yahoogroups.com' Subject: AW: [flexcoders] height=100% layout problem Unbelievable! That works!!! Thanks very much! How did you get that fancy idea? Does not look right this way, does it? -Ursprüngliche Nachricht- Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Mercer, Dustin Gesendet: Donnerstag, 22. September 2005 16:35 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] height=100% layout problem Try setting minHeight=0 and minWidth=0 on vBxContent. I had the same problem with some of my layouts and that fixed :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal Sent: Thursday, September 22, 2005 3:01 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] height=100% layout problem Hi @all, I have got a problem with my layout... I want my Application to fit into the browser window. A VBox (vBxContent) should fit into this Application and be as high as possible, wherefore I set its height to 100%. But if a child (canContent) within vBxContent is higher then the screen it pushes the vBxContent.height to canContent's height. How can I assure, that the vBxContent height will not get bigger? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% backgroundColor=#AA mx:VBox id=vBxContent width=100% height=100% backgroundColor=#66 verticalAlign=middle horizontalAlign=center mx:Canvas id=canContent backgroundColor=#ff width=200 height=1188 / /mx:VBox mx:Canvas id=canAnotherComponent backgroundColor=#ff width=100 height=100 / /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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+si te+design+developmentw2=Computer+software+developmentw3=Software+design+ and+developmentw4=Macromedia+flexw5=Software+development+best+practicec =5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+desig n+and+developmentw4=Macromedia+flexw5=Software+development+best+practice c=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+practi cec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+de velopmentw2=Computer+software+developmentw3=Software+design+and+developm entw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.si g=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://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+pra cticec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:flexcoders- [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 SPONSORED LINKS Web site design development Computer software development
RE: [flexcoders] Cairgorn Bug?
Just curious, do you use any viewhelpers within your command? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: Friday, September 16, 2005 5:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairgorn Bug? I have set traces all over the place. No errors are occurring and the command gets executed. Any Idea what could be the problem? On 9/14/05, Omar Ramos [EMAIL PROTECTED] wrote: Thanks alot for your reply ali, If in fact there was an error why the piece of code beneth that line doesn't get executed? I am checking the command it is executing just fine. Gona check on it again. On 9/14/05, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Omar, An exception is probably getting thrown somewhere, either in the EventBroadcaster because the event hasn't been registered with a command, or within your command itself. Have you checked flashlog.txt (ensure you have debug player, mm.cfg etc). Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 14 September 2005 00:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairgorn Bug? Hi there, There is something strange going with cairngorm in the application am currently developting. It seams that when I do a broadcast the lines of code beneth if doesn't execute. I do this. EventBroadcaster.getInstance().broadcastEvent(ScrapblogController.EVENT_SELECT_OBJECT, eventObj); trace(TEST); and the trace never apears or the code beneth it never gets executed. Any ideas? Omar Ramos System Developer -- 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 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] Cairgorn Bug?
Can you try to remove all the code within the execute method in the command? After that, see if your code below the broadcastEvent works. Also, have you tried to add a trace statement to the command to make sure it is executing From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: Friday, September 16, 2005 8:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairgorn Bug? Hi mike, That is the weird thing. Other commands work fine. Also this command works also but the code beneth doesn't get executed which is the weird thing. The command doesn't implement responder therefore it doesn't use delegate either. It just manipulates the ModelLocator. The command is executed way into the application so the controller and everything is instantiated. The command is registered correctly with the controller otherwise it would not execute. On 9/16/05, Michael Herron [EMAIL PROTECTED] wrote: There are only so many things it can be: Have you registered the event correctly with the controller? Has the controller been instantiated? Has the controller been instantiated BEFORE the event is broadcast? o When is the event broadcast? Are you instantiating a delegate from within your command? Are all services required by the delegates available when they are constructed? -Mike From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 16 September 2005 15:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairgorn Bug? Nope, This is the call EventBroadcaster.getInstance().broadcastEvent(ScrapblogController.EVENT_SELECT_OBJECT, eventObj); The command only implements the Command interface and only has a if and a switch statement on execute thats it. On 9/16/05, Mercer, Dustin [EMAIL PROTECTED] wrote: Just curious, do you use any viewhelpers within your command? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: Friday, September 16, 2005 5:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairgorn Bug? I have set traces all over the place. No errors are occurring and the command gets executed. Any Idea what could be the problem? On 9/14/05, Omar Ramos [EMAIL PROTECTED] wrote: Thanks alot for your reply ali, If in fact there was an error why the piece of code beneth that line doesn't get executed? I am checking the command it is executing just fine. Gona check on it again. On 9/14/05, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Omar, An exception is probably getting thrown somewhere, either in the EventBroadcaster because the event hasn't been registered with a command, or within your command itself. Have you checked flashlog.txt (ensure you have debug player, mm.cfg etc). Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Omar Ramos Sent: 14 September 2005 00:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairgorn Bug? Hi there, There is something strange going with cairngorm in the application am currently developting. It seams that when I do a broadcast the lines of code beneth if doesn't execute. I do this. EventBroadcaster.getInstance().broadcastEvent(ScrapblogController.EVENT_SELECT_OBJECT, eventObj); trace(TEST); and the trace never apears or the code beneth it never gets executed. Any ideas? Omar Ramos System Developer -- 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 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
RE: [flexcoders] Re: How to create a binding from within an actionscript class file - Impossible?
Libby, The approach you described is impossible. Actionscript does not work this way. Once that class has finished executing it code, it is disposed so no binding would be possible. Looks like you are going to have to find a way to do this that fits in with the event model. Please describe a little more about what you are trying to do and we may be able to assist you better. BTW, it looks as though you are using the cairngorm framework Is this accurate? If so, The ModelLocator may be a perfect fit for what you are trying to do. Maybe a temporary value in the model locator to reference back in the command Just a thought. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Tuesday, September 13, 2005 8:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to create a binding from within an actionscript class file - Impossible? No takers so I guess it is not possible? How do you Flex gurus get your model updated dynamically, or, am I asking in the wrong group? --- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote: In my class file I call EventBroadcaster to dispatch an event that eventually retrieves a string into a Command.onResult(). I need that string back in my class file. So, I want to bind a variable in the class file to that onResult method. Could someone show me how to do this? Perhaps there is a way to instantiate mx:Binding in my class file some way, that would do it, but I can't figure it out. Or is there a better way (the right way) to do this without coupling the class file to the command file? Thanks, Libby -- 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 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] Including files.
You have to set the namespace property (xmlns:xxx) on either the app or the instantiated control. I.E. Option 1: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns:addsale=panels.status.* addsale:AddSale / /mx:Application Option 2 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml addsale:AddSale xmlns=panels.status.* / /mx:Application Either one of those solutions should work J If you need more explanation, let me know. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Thursday, September 01, 2005 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Including files. I am not sure where to begin. My app structure is folder based start with index.mxml/application.cfm on the top teir. Then I move into folders that I can panels within the panel folder I have several folders broken up in to the different app requirements. The question I have is, what is the best way to use custom components, as I plan to develope each panel as seperate custom components. So if I wanted to include the page Add Sale that was in the following heirarchy, how would I do it. Would I use soemthing like this /panels/status/addSale to use it as a custom component? --Folder Heirachy-- Root /Panels /Status /addSale.mxml -- 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 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] ModelLocator
Title: ModelLocator Exactly. I found after implementing the ModelLocator, I pretty much wiped out the need for ViewHelpers. The only thing I use the ViewHelpers for now is setting focus on fields! It makes things a lot more organized and simplified. You are right though. Just initialize it in the app init event and you will be able to use it anywhere, anytime. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha Sent: Tuesday, August 23, 2005 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ModelLocator Hi All, How does ModelLocator work? I am looking at the sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are bound to views and Commands manipulate ModelLocator to update views. Is ModelLocator available to the entire application once it gets initialized on the root level? If it works like that then it means that I'd hardly ever need ViewLocators??? I can create models, initialize them in ModelLocator and use them wherever I want in the app? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Fax: 408.284.2766 -- 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] ModelLocator
Title: ModelLocator IMHO, this is the best way. Works very clean. I dont know about the integration with CF (I dont use CF) but I can tell you it works great with Java. Good Luck J Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha Sent: Tuesday, August 23, 2005 12:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ModelLocator Great. That sounds exciting and a very good approach. The way Im implementing is that I have a ModelLocator, which has models as properties. Now should those individual models make the ValueObjects available to views or just their own properties? Why I am leaning towards VOs is so that its easier for me to send them over to CF. Does that sound ok? Thanks Agha Mehdi IDT - eBusiness Program Manager From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin Sent: Tuesday, August 23, 2005 11:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ModelLocator Exactly. I found after implementing the ModelLocator, I pretty much wiped out the need for ViewHelpers. The only thing I use the ViewHelpers for now is setting focus on fields! It makes things a lot more organized and simplified. You are right though. Just initialize it in the app init event and you will be able to use it anywhere, anytime. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha Sent: Tuesday, August 23, 2005 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ModelLocator Hi All, How does ModelLocator work? I am looking at the sample store and it makes sense but I am kind of confused. What I have understood so far is that ModelLocator Properties are bound to views and Commands manipulate ModelLocator to update views. Is ModelLocator available to the entire application once it gets initialized on the root level? If it works like that then it means that I'd hardly ever need ViewLocators??? I can create models, initialize them in ModelLocator and use them wherever I want in the app? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Fax: 408.284.2766 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] help.. passing arguments to a method using remoteobject
Usually that error is a result of one of the parameters being of the wrong type. What does your Remote Object method sig look like? From your example, your remote object method (func1) should look like this: public void func1(int param1, String param2){ //some code} Let me know if that helps J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Sanon Sent: Wednesday, August 10, 2005 10:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] help.. passing arguments to a method using remoteobject i cannot figure out how to pass arguments... pls send an example code as to how to pass arguments to a method using remote object i have a class as follows class A { public int func1(int i, string st) { ... } } i created a remote object like... mx:RemoteObject source=A id=remot mx:method name=func1 result=/ /mx:RemoteObject and made a call to this method as function getReply() { remot.func1(1,amit); } but was not successfull.. it gave an error cannot invoke method func1 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] help.. passing arguments to a method using remoteobject
Ok gotcha I must have missed the first part about class A Its getting lateJ Ok so anyways, this can be a tricky one. Have you tried adding a fault handler to that remote object? That may help you find out more. Try this : mx:RemoteObject source=A id=remot event.fault.detail ); mx:method name=func1 result=/ /mx:RemoteObject I think event.fault.detail is the correct property. This should give you a little more info about why it is failing. Let me know how that goes. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Sanon Sent: Wednesday, August 10, 2005 11:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] help.. passing arguments to a method using remoteobject thanks for the reply but it didnt help this is the sig of my method to be called... public int func1(int i,String st) { ... } regards Amit -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Mercer, Dustin Sent: Thursday, August 11, 2005 11:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] help.. passing arguments to a method using remoteobject Usually that error is a result of one of the parameters being of the wrong type. What does your Remote Object method sig look like? From your example, your remote object method (func1) should look like this: public void func1(int param1, String param2){ //some code} Let me know if that helps J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Sanon Sent: Wednesday, August 10, 2005 10:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] help.. passing arguments to a method using remoteobject i cannot figure out how to pass arguments... pls send an example code as to how to pass arguments to a method using remote object i have a class as follows class A { public int func1(int i, string st) { ... } } i created a remote object like... mx:RemoteObject source=A id=remot mx:method name=func1 result=/ /mx:RemoteObject and made a call to this method as function getReply() { remot.func1(1,amit); } but was not successfull.. it gave an error cannot invoke method func1 -- 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] Changing a modal popup to non-modal
Kim, Just curious, when you are creating the popup, what are you using as the first param to the createPopUp method? This is what defines the parent of the window being created. If you are passing application or _root, you may run into some of these focusing issues. Try passing this as the first parameter to the createPopUp method (this being the first TitleWindow). I.E. createPopUp( this, MyPopUpWindow.mxml, true ). I am not sure if that is the exact syntax, but this should give you enough of an idea. What this does is actually make the second TitleWindow a Modal window of the first TitleWindow, not a second modal window to the application. I have also had this problem before and that seem to fix me. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington Sent: Wednesday, August 10, 2005 7:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing a modal popup to non-modal I have a TitleWindow that pops up a second TitleWindow. Both are modal. I want the user to be able to tab through the fields in the second window. The tab works fine, if the 1st window is non-modal, but if the first window is modal, then the tab brings the user back to the first window instead of staying in the second window. Is there a way to get the tabs to work properly while still keeping both windows modal? If not, then is there a way to make the first window NON-modal before popping up the second window for example, function openSecondPopUp() { this.modal = false; //obviously I made up this code and am looking for the real code to put here var secondPopUp = . } Thank you for your help, Kim _ Kim Reddington Principal Consultant/Developer Deluxe Technologies http://www.deluxetechnologies.com 508-231-8744 -- 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] Catching effect end on composite effect.
Clint, from my experience with effects and effectEnd this is what is supposed to happen. The effectEnd fires evertime an effect is done playing, whether it a standalone effect, a part parallel effect, or part of a sequence effect. I havent yet found a good way to handle the effectEnd events. I have inspected the event object in the effectEnd and it has a reference to the effect that just ended, but I was unable to get the effects name go figure. I could get tons of other properties of the effect, just not the name. You can only find out which event is which if they are completely unique. Hope this helps. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Tuesday, August 09, 2005 5:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Catching effect end on composite effect. I have a move and a size effect playing in a parallel effect. My problem is trying to do something when the effect is done playing. I have some strange behavior going on. The effect end event on my object is firing 4 times. Is it supposed to do 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 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] Flex 1.5 file upload
Title: Flex 1.5 file upload Has anyone gotten the Flex 1.5 file upload example (http://www.macromedia.com/devnet/flex/articles/fp8_features.html) working with a JSP upload page? I am getting a Processing of multipart/form-data request failed. Stream ended unexpectedly Exception. I have been trying to get this working for a while with no success. I am trying this with a page the is currently working with the old way of uploading with flex (Standard JSP upload). If anyone can help, it would be greatly appreciated J -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 1.5 file upload
Title: Flex 1.5 file upload Thanks! I will try now with this info. I have never done much with the file uploading on the server, so some learning is required. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joan Tan Sent: Monday, August 08, 2005 11:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 1.5 file upload The server script handling the upload should expect a POST request with a Content-Type of multipart/form-data, followed by a Content-Disposition with the name attribute of Filedata and then a filename attribute giving the name of the original file. Here is a sample request: Content-Type: multipart/form-data; boundary=AaB03x --AaB03x Content-Disposition: form-data; name=Filedata; filename=example.jpg Content-Type: application/octet-stream ... contents of example.jpg ... --AaB03x-- I hope this helps. I'll see if I can dig up a jsp example somewhere. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin Sent: Monday, August 08, 2005 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 file upload Has anyone gotten the Flex 1.5 file upload example (http://www.macromedia.com/devnet/flex/articles/fp8_features.html) working with a JSP upload page? I am getting a Processing of multipart/form-data request failed. Stream ended unexpectedly Exception. I have been trying to get this working for a while with no success. I am trying this with a page the is currently working with the! SPAN LANG=en-us old way of uploading with flex (Standard JSP upload). If anyone can help, it would be greatly appreciated J -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] setFocus is evil
Title: Loading mxml Components When is your initialize command firing, in the init event of the component? Can you try this? Will this not work in your situation? Granted what you have done should work but timing can be a pain. function initialize() { name.text = ModelLocator.field.languageDetails[0].label; } function childrenCreated() //or function show() { Selection.setFocus(formItem); } ]] /mx:Script mx:Text id=name width=100% autoSize=true styleName=fieldName / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Tuesday, August 02, 2005 8:34 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setFocus is evil p.s. tried doLater as well. No go From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Tuesday, August 02, 2005 10:01 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setFocus is evil Semi-pseudo codeIve attached two pics, before and after to highlight whats going oneven if I explicitly call setSelection using the text length to determine positionsits referencing the previous text value so calculations are wrong. function initialize() { name.text = ModelLocator.field.languageDetails[0].label; Selection.setFocus(formItem); } ]] /mx:Script mx:Text id=name width=100% autoSize=true styleName=fieldName / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Tuesday, August 02, 2005 9:49 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setFocus is evil This was first thing I triedit doesnt work properly because the text length it determines is that of the previous text. The textinput is bound to a data modelthe model changes, then setFocus is called. (as well as setSelection or any other things Ive tried) -Stace From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Tuesday, August 02, 2005 12:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] setFocus is evil Old skool way was to use the text name. You can use the built in setFocus, which originally was just a wrapper to Selection.setFocus. As for setSelection: Selection.setSelection(0, myText_txt.length); That always has to occur after setFocus, not before. - Original Message - From: Mercer, Dustin To: flexcoders@yahoogroups.com Sent: Monday, August 01, 2005 11:03 PM Subject: RE: [flexcoders] setFocus is evil Ok got it. You have to use the selection object. Here is the code (Straight from Flash MX 204 LiveDocs http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1659.html ) : this.createTextField(myText_txt, 99, 10, 10, 200, 30); myText_txt.text = this is my text; Selection.setFocus(myText_txt); Selection.setSelection(0, 3); Hope this helps J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin Sent: Monday, August 01, 2005 7:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setFocus is evil Stacy, I have had this problem as well L I am sad to say, I hate the focus manager. Ok that was a little harsh but none the less, it has its issues. There is a way to set the position of the caret though (Set the start index of the caret as well as the end, so you can choose the text you wish to be highlighted). I am going to try to find that code. In the mean time, you may want to try setFocus in the show event or childrenCreated event. That may fix your issue. If not, then the code for setting the caret position may help. I will find that code and post it. Give me a few Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Monday, August 01, 2005 7:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] setFocus is evil Tiny problem but its still driving me nuts. Ive got a viewstack thats changed based on a users selection. Each time a container within that stack is viewed an initialization script is run to populate form elements. At the end of the process Im using setFocus to, well, focus on the first textinput field. The problem is the selection on the textinput field is the length of the previous value for that field. So if the current value of the textinput is abc and the model changes to abcdefWhen the setFocus executes its only highlighting from a to c Hope that was clear, tis late Thx Stace -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing
RE: [flexcoders] setFocus is evil
Title: Loading mxml Components Stacy, I have had this problem as well L I am sad to say, I hate the focus manager. Ok that was a little harsh but none the less, it has its issues. There is a way to set the position of the caret though (Set the start index of the caret as well as the end, so you can choose the text you wish to be highlighted). I am going to try to find that code. In the mean time, you may want to try setFocus in the show event or childrenCreated event. That may fix your issue. If not, then the code for setting the caret position may help. I will find that code and post it. Give me a few Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Monday, August 01, 2005 7:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] setFocus is evil Tiny problem but its still driving me nuts. Ive got a viewstack thats changed based on a users selection. Each time a container within that stack is viewed an initialization script is run to populate form elements. At the end of the process Im using setFocus to, well, focus on the first textinput field. The problem is the selection on the textinput field is the length of the previous value for that field. So if the current value of the textinput is abc and the model changes to abcdefWhen the setFocus executes its only highlighting from a to c Hope that was clear, tis late Thx Stace -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] setFocus is evil
Title: Loading mxml Components Ok got it. You have to use the selection object. Here is the code (Straight from Flash MX 204 LiveDocs http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1659.html ) : this.createTextField(myText_txt, 99, 10, 10, 200, 30); myText_txt.text = this is my text; Selection.setFocus(myText_txt); Selection.setSelection(0, 3); Hope this helps J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin Sent: Monday, August 01, 2005 7:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setFocus is evil Stacy, I have had this problem as well L I am sad to say, I hate the focus manager. Ok that was a little harsh but none the less, it has its issues. There is a way to set the position of the caret though (Set the start index of the caret as well as the end, so you can choose the text you wish to be highlighted). I am going to try to find that code. In the mean time, you may want to try setFocus in the show event or childrenCreated event. That may fix your issue. If not, then the code for setting the caret position may help. I will find that code and post it. Give me a few Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young Sent: Monday, August 01, 2005 7:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] setFocus is evil Tiny problem but its still driving me nuts. Ive got a viewstack thats changed based on a users selection. Each time a container within that stack is viewed an initialization script is run to populate form elements. At the end of the process Im using setFocus to, well, focus on the first textinput field. The problem is the selection on the textinput field is the length of the previous value for that field. So if the current value of the textinput is abc and the model changes to abcdefWhen the setFocus executes its only highlighting from a to c Hope that was clear, tis late Thx Stace -- 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] AS Array vs. MXML Array
You may want to try this instead. I didnt test this, but I think I have used it before. mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array Hehe.. And would this work? var theLabel:String = d4; var theData:Number = 4; var theBoolean:Boolean = true; mx:Array mx:Object label={String(theLabel)} data="" flag={Boolean(theBoolean)} / /mx:Array And if it doesn't work, does that mean that Flex always recognize 'true' as a Boolean and not as a String? I can't think of a case where it would matter that your 'best-guess' is wrong but just interested.. Thijs Op 17-jun-2005, om 22:09 heeft Matt Chotin het volgende geschreven: We make a best-guess as to whether it should be a string or a number or a boolean. Sometimes people get frustrated because we guess number and they wanted string J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array What about the :Number and :String difference in his Array, aren't the label and data properties both Strings now..? Thijs Op 17-jun-2005, om 21:51 heeft Matt Chotin het volgende geschreven: mx:Array mx:Object labeld4/label data4/data /mx:Object /mx:Array Alternatively: mx:Array mx:Object label=d4 data="" boolean={Boolean(true)} / /mx:Array Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Friday, June 17, 2005 12:44 PM To: Flexcoders Subject: [flexcoders] AS Array vs. MXML Array [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS Array vs. MXML Array
Oops, that wont work at all L I am not sure if this will work either, but it doesnt throw any compiler errors (but neither did the wrong one) . There are other ways also depending on what you are trying to do. Are you trying to avoid AS altogether or just trying the different options? mx:Array mx:Object labelmx:Stringd4/mx:String/label datamx:Number4/mx:Number/data boolmx:Booleantrue/mx:Boolean/bool /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin Sent: Friday, June 17, 2005 1:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS Array vs. MXML Array You may want to try this instead. I didnt test this, but I think I have used it before. mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array Hehe.. And would this work? var theLabel:String = d4; var theData:Number = 4; var theBoolean:Boolean = true; mx:Array mx:Object label={String(theLabel)} data="" flag={Boolean(theBoolean)} / /mx:Array And if it doesn't work, does that mean that Flex always recognize 'true' as a Boolean and not as a String? I can't think of a case where it would matter that your 'best-guess' is wrong but just interested.. Thijs Op 17-jun-2005, om 22:09 heeft Matt Chotin het volgende geschreven: We make a best-guess as to whether it should be a string or a number or a boolean. Sometimes people get frustrated because we guess number and they wanted string J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array What about the :Number and :String difference in his Array, aren't the label and data properties both Strings now..? Thijs Op 17-jun-2005, om 21:51 heeft Matt Chotin het volgende geschreven: mx:Array mx:Object labeld4/label data4/data /mx:Object /mx:Array Alternatively: mx:Array mx:Object label=d4 data="" boolean={Boolean(true)} / /mx:Array Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Friday, June 17, 2005 12:44 PM To: Flexcoders Subject: [flexcoders] AS Array vs. MXML Array [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS Array vs. MXML Array
Another way is to create an AS class to encapsulate the repeating object Like so: Class YourItem { public var label : String; public var data : Number; public var bool : Boolean; public function YourItem() { //blank constructor } } Add xmlns=* mx:Array YourItem label/label data/data bool/bool /YourItem /mx:Array From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, June 17, 2005 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array You can do that, but those are unamed properties, hence my question about how to name them. For instance, what if you need to get the to boolean; how do you access it? A for in loop utilizing instanceof to determine if it's a Boolean? What if I had more than one? - Original Message - From: Mercer, Dustin To: flexcoders@yahoogroups.com Sent: Friday, June 17, 2005 4:32 PM Subject: RE: [flexcoders] AS Array vs. MXML Array You may want to try this instead. I didnt test this, but I think I have used it before. mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array Hehe.. And would this work? var theLabel:String = d4; var theData:Number = 4; var theBoolean:Boolean = true; mx:Array mx:Object label={String(theLabel)} data="" flag={Boolean(theBoolean)} / /mx:Array And if it doesn't work, does that mean that Flex always recognize 'true' as a Boolean and not as a String? I can't think of a case where it would matter that your 'best-guess' is wrong but just interested.. Thijs Op 17-jun-2005, om 22:09 heeft Matt Chotin het volgende geschreven: We make a best-guess as to whether it should be a string or a number or a boolean. Sometimes people get frustrated because we guess number and they wanted string J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array What about the :Number and :String difference in his Array, aren't the label and data properties both Strings now..? Thijs Op 17-jun-2005, om 21:51 heeft Matt Chotin het volgende geschreven: mx:Array mx:Object labeld4/label data4/data /mx:Object /mx:Array Alternatively: mx:Array mx:Object label=d4 data="" boolean={Boolean(true)} / /mx:Array Matt <hr size=2 width="100%" align=center tabIndex=-1> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Friday, June 17, 2005 12:44 PM To: Flexcoders Subject: [flexcoders] AS Array vs. MXML Array [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS Array vs. MXML Array
Because mx:String under an object makes it a property. You cannot have to properties on an object with the same name. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array So why does adding the mx:String/ node give a compiler error? Thijs Op 17-jun-2005, om 22:45 heeft Abdul Qabiz het volgende geschreven: [snip] mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean /mx:Object /mx:Array [/snip] that works, a array with an object would be created with three properties with these names: String, Boolean and Number with values d4, d4 and d4 respectively. If you add one more mx:String / node, you will see compiler error. mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean mx:Stringd5/mx:String /mx:Object /mx:Array But why would want to do this way, it doesn't look logically correct to me. -abdul From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin Sent: Saturday, June 18, 2005 2:10 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS Array vs. MXML Array Oops, that wont work at all L I am not sure if this will work either, but it doesnt throw any compiler errors (but neither did the wrong one) . There are other ways also depending on what you are trying to do. Are you trying to avoid AS altogether or just trying the different options? mx:Array mx:Object labelmx:Stringd4/mx:String/label datamx:Number4/mx:Number/data boolmx:Booleantrue/mx:Boolean/bool /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mercer, Dustin Sent: Friday, June 17, 2005 1:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS Array vs. MXML Array You may want to try this instead. I didnt test this, but I think I have used it before. mx:Array mx:Object mx:Stringd4/mx:String mx:Numberd4/mx:Number mx:Booleand4/mx:Boolean /mx:Object /mx:Array From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array Hehe.. And would this work? var theLabel:String = d4; var theData:Number = 4; var theBoolean:Boolean = true; mx:Array mx:Object label={String(theLabel)} data="" flag={Boolean(theBoolean)} / /mx:Array And if it doesn't work, does that mean that Flex always recognize 'true' as a Boolean and not as a String? I can't think of a case where it would matter that your 'best-guess' is wrong but just interested.. Thijs Op 17-jun-2005, om 22:09 heeft Matt Chotin het volgende geschreven: We make a best-guess as to whether it should be a string or a number or a boolean. Sometimes people get frustrated because we guess number and they wanted string J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab Sent: Friday, June 17, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS Array vs. MXML Array What about the :Number and :String difference in his Array, aren't the label and data properties both Strings now..? Thijs Op 17-jun-2005, om 21:51 heeft Matt Chotin het volgende geschreven: mx:Array mx:Object labeld4/label data4/data /mx:Object /mx:Array Alternatively: mx:Array mx:Object label=d4 data="" boolean={Boolean(true)} / /mx:Array Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Friday, June 17, 2005 12:44 PM To: Flexcoders Subject: [flexcoders] AS Array vs. MXML Array [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: okay, so I can't beleive that......
Ok, I think this question needs to go to someone who knows CF. I answered it with my Best Guess J. Im sorry I cant be of more help, but I am strictly a Java developer. I dont know CF at all. I dont know if you still want to see an example in Java or not, but if so, let me know. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: Thursday, June 09, 2005 6:49 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: okay, so I can't beleive that.. i have tried every combination of the Type that I can, now the cffunction has a returntype that i had set to query, so I will try array there, but am not hopeful that will work... will let you knowdo you have any examples of a RO accepting mutlitple data and returning results? If so then please send, maybe I am missing something else.. thanks, Craig Mercer, Dustin [EMAIL PROTECTED] wrote: Ok sorry, I thought he was going to Java not CFC. A method signature is just what the method is expecting and what it is returning. Basically how you typed the function. I.E. a java method signature looks like this : private static void someFunction( String param1, String param2 ). I dont know if I have enough knowledge to help you with CF, but here goes Looks like your CF code should look like this : Here is the CFC: !--- Thrust Query (Summary) --- cffunction name=Thrust_Query returntype=query output=true access=remote cfargument name=ThrustName required=no type=string cfset var MyQuery= cfquery name=MyQuery datasource=somedb !--query removed for security reasons-- /cfquery cfreturn MyQuery /cffunction Look at the cold bolded and red. This code should look like this if you want to use selectedItems: cfargument name=ThrustName required=no type=array You have to make sure your query will support an array though You may have to change the way you are doing this to include some code to parse the array. I would really have to see what you are doing to explain better. Hopefully this was enough of an explanation to help you. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i Sent: Wednesday, June 08, 2005 12:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: okay, so I can't beleive that.. I am helping him on this, what do you mean method signature? The method is Thrust_Query the argument is ThrustName the web srv works fine.. the RO does not. Here is the CFC: !--- Thrust Query (Summary) --- cffunction name=Thrust_Query returntype=query output=true access=remote cfargument name=ThrustName required=no type=string cfset var MyQuery= cfquery name=MyQuery datasource=somedb !--query removed for security reasons-- /cfquery cfreturn MyQuery /cffunction Here is the RO call in flex: mx:RemoteObject source=gvs._cfc.Copygvs_queries id=gvsQueriesRO endpoint=http://mydomains.com/flashservices/gateway mx:method name=Thrust_Query result=one(event) mx:arguments ThrustName{thrustCB.selectedItems}/ThrustName /mx:arguments /mx:method /mx:RemoteObject --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: What is your RO expecting as a parameter? An array or a single object? selectedItems is an array so you must set your RO to accept an array as a parameter. What is the Thrust_Query method signature? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Wednesday, June 08, 2005 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] okay, so I can't beleive that.. okay, so i can't beleive that I cannot pass multiple valuse into a RO tagI have a list control, it is being fed from an array, multiple selections are set to truei have tried SEVERAL different ways to pass the 'selectedItems' property to my Remote Object tag...see below the cfc call (obvious parts removed): cffunction name=Thrust_Query returntype=query output=true access=remote cfargument name=ThrustName required=no type=string (have tired every thing in the type for this piece) the function; var revResult:Object; function one(myEvent:Object):Void { revResult=myEvent.result; } //Thanks Matt Boles the list control mx:List dataProvider={link2Data} change=gvsQueriesRO.Thrust_Query.send() id=thrustCB multipleSelection=true width=250 toolTip=Select from this list to get an overview. Hold the control key down to select multiple items. alpha=0 color=#FF textRollOverColor=#33 /mx:List the RO tag: mx:RemoteObject source=gvs._cfc.Copygvs_queries id=gvsQueriesRO endpoint=http://mydomains.com/flashservices/gateway mx:method name=Thrust_Query result=one(event) mx:arguments ThrustName{thrustCB.selectedItems}/ThrustName /mx:arguments /mx:method /mx:RemoteObject no matter WHAT I do tyring to use this returns squat! if i change just
RE: [flexcoders] Wha kinds of object are in this Array?
This array contains plain objects. You can access any of the properties like this zingerManufacturingData[0].Month, zingerManufacturingData[1].Widget, etc. To change the variable names, do this, var zingerManufacturingData = [ {differentVar: January '03, anotherVar:885202, Blinkies: 184454, monthIdx:1 }, {differentVar: February '03, anotherVar:683392, Blinkies: 945385, monthIdx:2 }, {differentVar: December '03, anotherVar:800254, Blinkies: 826652, monthIdx:12 } ]; In that example Month was changed to differentVar and Widgets was changed to anotherVar. Hope that is what you were looking for J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dzafer Sent: Monday, April 18, 2005 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Wha kinds of object are in this Array? Hi All, What kinds of object are in this Array? var zingerManufacturingData = [ {Month: January '03, Widgets:885202, Blinkies: 184454, monthIdx:1 }, {Month: February '03, Widgets:683392, Blinkies: 945385, monthIdx:2 }, {Month: December '03, Widgets:800254, Blinkies: 826652, monthIdx:12 } ]; And how can I put a variable instead of Month, Widgets ? Thank you, Dzafer Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Wha kinds of object are in this Array?
I am not sure if this is what you are asking but here goes: Var myString:String; myString = FistrName; var zingerManufacturingData = [ {differentVar : myString, anotherVar:885202, Blinkies: 184454, monthIdx:1}, {differentVar : myString, anotherVar:683392, Blinkies: 945385, monthIdx:2}, {differentVar : myString, anotherVar:800254, Blinkies: 826652, monthIdx:12} ]; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dzafer Sent: Monday, April 18, 2005 7:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Wha kinds of object are in this Array? Hi there, If you put differentVar and displaying into a datagrid he will display differentVar What I want to do is this one : Var myString:String; myString = FistrName; and put myString has the first label . Tnx! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin Sent: Monday, April 18, 2005 3:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Wha kinds of object are in this Array? This array contains plain objects. You can access any of the properties like this zingerManufacturingData[0].Month, zingerManufacturingData[1].Widget, etc. To change the variable names, do this, var zingerManufacturingData = [ {differentVar: January '03, anotherVar:885202, Blinkies: 184454, monthIdx:1 }, {differentVar: February '03, anotherVar:683392, Blinkies: 945385, monthIdx:2 }, {differentVar: December '03, anotherVar:800254, Blinkies: 826652, monthIdx:12 } ]; In that example Month was changed to differentVar and Widgets was changed to anotherVar. Hope that is what you were looking for J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dzafer Sent: Monday, April 18, 2005 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Wha kinds of object are in this Array? Hi All, What kinds of object are in this Array? var zingerManufacturingData = [ {Month: January '03, Widgets:885202, Blinkies: 184454, monthIdx:1 }, {Month: February '03, Widgets:683392, Blinkies: 945385, monthIdx:2 }, {Month: December '03, Widgets:800254, Blinkies: 826652, monthIdx:12 } ]; And how can I put a variable instead of Month, Widgets ? Thank you, Dzafer Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Advantages / Disadvantages of web-inf/flex/user_classes directory
Title: Advantages / Disadvantages of web-inf/flex/user_classes directory Are there any advantages / disadvantages of putting your custom classes inside of web-inf/flex/user_classes directory? I have seen some articles stating we should put our custom AS classes there, but have not seen any reason why other than organization. Anyone have any thoughts on this? TIA Dustin Mercer Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] RemoteObjects and UI within UI problem
I had hit some of the same problems. A possible solution may be because you are referencing mx.core.Application.application from within your result handler of the remote object. When using a loader, if you reference mx.core.Application.application from within nighthawk.mxml (Child Component), it actually points to the mx.core.Application.application of phoenix.mxml (Parent Application). It is because of static variable issues between the apps. Loader is extremely cool, but IMHO unusable for what you are trying to accomplish. Macromedia has to give some sort of new component, revamp the loader, or give us guidelines on using loaders properly. I had the same issues when I tried to accomplish this. Maybe someone else has some suggestions on how to get loaders working properlyJ. P.S. there are also major sizing issues if you want to use percentage widths and heights on an application being loaded from a loader. Just FYI From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 10:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObjects and UI within UI problem Hi, Just been playing around with having one Flex UI within another and I am experiencing a little problem, and thus I was wondering if anyone has come across this problem and might have a solution. This is all under JRun 4 SP4... so we have the parent UI at http://localhost:8200/phoenix/phoenix.mxml and the child UI at http://localhost:8204/nighthawk/nighthawk.mxml Now using the loader component in phoenix.mxml I am able to load the nighthawk.mxml, no problem, it appears. However when I hit a button to perform an action which makes a remote call (via RemoteObject) nothing happens. The nighthawk.mxml works perfectly on its own however. Anyone have any insight? Jimmy Gianninas Software Developer - Optimal Payments Inc. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Background Color of Disabled Button
That is what I was afraid of. I looked into this a little bit last night and just decided to extend the button andgo a different direction with it. Thank you for the response though! Dustin Mercer From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 1:53 AM To: [EMAIL PROTECTED] Subject: Re: [flexcoders] Background Color of Disabled Button On Tue, 8 Mar 2005 17:43:07 -0800, Mercer, Dustin [EMAIL PROTECTED] wrote: I have been trying to find out a way to change the background color of a disabled button. Has anyone triedthis or does anyone have a suggestion on how to change this? It sounds like it should be simple, but the solution is eluding meJ. Thanks in advance! I think the Button's disabled background color is hard-coded to gray. You can change it by specifying a falseDisabledSkin/trueDisabledSkin, but I am not sure how exactly to do this (you'll have to explore, look up skinning, falseDisabledSkin, Button). Manish
RE: [flexcoders] Re: Cairngorm namspace bug
I think I answered your question wrong earlier. Looking over it again, it looks as though you have a problemto solve before you can even get to the problem I posted a solution for earlier J. Ok, so hereis how you fix the problem you are having currently: Go to the manage sites screen. Find the site your app is currently setup under. Change to the advanced tab. Choose the local info category on the left. You should see a textbox that is labeled Http Address, point this to your current http location for the app. (All the other setting here should be self explanatory) Select the remote info category on the left Choose none for remote access. Apply settings J Hopefully this should be enough to setup Flex Builder to see your site as a local site. Dustin Mercer From: dduuggllaa [mailto:[EMAIL PROTECTED] Sent: Sunday, March 06, 20052:28 PM To: [EMAIL PROTECTED] Subject: [flexcoders] Re: Cairngorm namspace bug Dustin, That actually raises an issue I have with the slightly brain damaged FlexBuilder 1.5 tool. I'm running Tomcat notJrun. I have not found a way to tell the FlexBuilder Wizard that I am editing directly with the files in my webapp tree on the server. If you have figured out this incantation please do share. Cheers, Douglass Turner
RE: [flexcoders] Re: Cairngorm namspace bug
Another thing you can do is: Debug the app. Check to see the architecture is raising any exceptions (you can see this in the output window in flex builder). I have had the same type of thing happen to me. It isbecause when flex raises and exception, it may stop the processing of the app (Or the current frame which is basically the loader). The architecture will raise and exception if you add a view helper with the same name, or you call a view helper that doesnt exist (Like a view helper that is in a child of a viewstack that has not been initialized yet.) Dustin Mercer From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Sunday, March 06, 20051:54 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] Re: Cairngorm namspace bug Do you have a directory in your webapp com/visualio/play/view/ containing DemoViewHelper.as and LoginViewHelper.as (you seem to be trying to instantiate both classes) playView:DemoViewHelper is going to look for com/visualio/play/view/DemoViewHelper.as while playView:LoginViewHelper in your Login.mxml file is going to try and locate com/visualio/play/view/LoginViewHelper.as check both those files are there. Steven -Original Message- From: dduuggllaa [mailto:[EMAIL PROTECTED] Sent: 06 March 2005 21:37 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm namspace bug Steven, Essentially what I did was simply replace all occurences of demoView with playView and then reference playView within Index.mxml and Login.mxml. Thats it. Should just work, but it doesn't. With this single change, logging in is impossible. When I click login I never progress to the next screen as I do with the iteration::two demo version. Strange. Is there some cache that needs to be flushed perhaps? For completeness here is the code derived from your Index.mxml: ?xml version=1.0 encoding=utf-8? cairngorm:CairngormApplication xmlns:mx=http://www.macromedia.com/2003/mxml xmlns:cairngorm=com.iterationtwo. cairngorm.application.* xmlns:cairngormBusiness=com.iterationtwo.cairngorm.business.* xmlns:playView=com.visualio.play.view.* xmlns:demoBusiness=com.visualio.play.business.* xmlns:demo=* pageTitle=Visual i|o Toy marginBottom=5 marginLeft=5 marginRight=5 marginTop=5 mx:Script ![CDATA[ public var loginDate : Date; ]] /mx:Script cairngorm:controller { com.visualio.play.control.DemoControl } /cairngorm:controller playView:DemoViewHelper name=playView view={ this } / demoBusiness:Services id=demoServices / mx:ViewStack id=appView demo:Login id=login/ mx:VBox id=mainApplication mx:Label text={ 'Logged in ' + loginDate } / /mx:VBox /mx:ViewStack /cairngorm:CairngormApplication and here is the code derived from your Login.mxml: mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml xmlns:playView=com.visualio.play.view.* title=Login playView:LoginViewHelper name=loginView view={ this } / mx:Script ![CDATA[ import com.iterationtwo.cairngorm.control.EventBroadcaster; public var statusMessage : String = Please enter your username and password; public function doLogin() { EventBroadcaster.getInstance().broadcastEvent( login ); } ]] /mx:Script mx:Form id=loginForm mx:FormItem label=Username: mx:TextInput id=username / /mx:FormItem mx:FormItem label=Password: mx:TextInput id=password / /mx:FormItem /mx:Form mx:Text text={ statusMessage } width=100% / mx:ControlBar mx:Button label=Login click=doLogin() / /mx:ControlBar /mx:Panel Just trivial changes really. -Douglass Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.853 / Virus Database: 581 - Release Date: 01/02/2005
Flex memory issues.
Title: Flex memory issues. I have avery large flex app I am running into some random crashes and heavy memory consumption. Memory consumption on Standard Flash Player (not Flash Debug Player) has been reaching 150 to 170 megs. I need to know what I can do to manage this. I have seen some methods available to the UIObject, mainly destroyObject, and I got this to remove objects that were no longer needed, but I cannot find a good way to re-instantiate them when they are needed again. This could be a really bad approach, but I am afraid I may be pushing some limits on Flex that is forcing me down this route. I am open to any suggestions. If any more information is needed, I would be happy to provide. Thanksin advance! Dustin Mercer
RE: [flexcoders] Flex memory issues.
Title: Flex memory issues. Upon more investigation, my memory usage seems to be stemming from my higher resolution. When I run the app in 1024*768 the memory consumption does not seem to exceed 110mb (high, but manageable for the size of this app). When run in 1280*1024, them memory usage is increased by 50mb or so. It looks like this is an issue with the graphics the controls are rendering. Makes sense. Maybe I can get some help with some good ideas on how to better manage this. Does anyone know how to enable the Flash quality setting in Flex. I want to try to turn the quality down to see what kind of memory results I get with that. I remember seeing an article like this, just cant seem to find it. Thanks! Dustin Mercer From: Mercer, Dustin Sent: Thursday, February 24,2005 4:11 PM To: [EMAIL PROTECTED] Subject: [flexcoders] Flex memory issues. I have a very large flex app I am running into some random crashes and heavy memory consumption. Memory consumption on Standard Flash Player (not Flash Debug Player) has been reaching 150 to 170 megs. I need to know what I can do to manage this. I have seen some methods available to the UIObject, mainly destroyObject, and I got this to remove objects that were no longer needed, but I cannot find a good way to re-instantiate them when they are needed again. This could be a really bad approach, but I am afraid I may be pushing some limits on Flex that is forcing me down this route. I am open to any suggestions. If any more information is needed, I would be happy to provide. Thanks in advance! Dustin Mercer
RE: [flexcoders] Flex memory issues.
Title: Flex memory issues. Unfortunately I havent had the opportunity to do any profiling yet. I tried it a couple of weeks ago, couldnt get it to work and I had to get back to developing the application. I will set aside some time to do this though. To the other suggestion, I havent experimented with the loader component to break up the app. Good Idea and I will explore this option though. One concern I have about this is: If I break these components down, can I still communicate easily between them and can I stop people from accessing those new apps directly? I have some needs to do this. Plus, I would like some of them to keep state. My first option seems to be some profiling though. I will try to get this working as soon as possible. Thanks for the response! From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24,2005 10:18 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] Flex memory issues. Can you break the large app into smaller apps that are loaded with Loader? Have you used the profiler to see if theres a method thats being called maybe too often and creating objects that are never let go? The profiler wont give you memory information, but you could see if something is happening more than expectedat least. Matt From: Mercer, Dustin [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24,2005 4:11 PM To: [EMAIL PROTECTED] Subject: [flexcoders] Flex memory issues. I have a very large flex app I am running into some random crashes and heavy memory consumption. Memory consumption on Standard Flash Player (not Flash Debug Player) has been reaching 150 to 170 megs. I need to know what I can do to manage this. I have seen some methods available to the UIObject, mainly destroyObject, and I got this to remove objects that were no longer needed, but I cannot find a good way to re-instantiate them when they are needed again. This could be a really bad approach, but I am afraid I may be pushing some limits on Flex that is forcing me down this route. I am open to any suggestions. If any more information is needed, I would be happy to provide. Thanks in advance! Dustin Mercer