[flexcoders] Memory Leak with removePopup
Hi list, I got a nasty memory leak in my Flex app. I got a Menu Class that creates TitleWindows like this ... window = NewWindow(PopUpManager.createPopUp(main, NewWindow, false)); On the currents Window's close event all EventListeners of it are removed and then I call removePopup(this) in the Window instance. I also use weak references but the window objects seems never to get removed after closing them. Everytime I open a new window instance Flash Player's task in the task manager takes up a couple more MB and they don't decrease after closing window instances. Is it necessary to dereference the windows object in the Menu object with window = null? The problem about that is that I'm not quite sure how and when to let the Menu know to dereference it. Thanks for any hint on this! Sascha -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How to set EventListeners to undrawn components on a ViewStack?
Hi list, I'm using a LinkBar with a ViewStack and on any of the ViwStack contents I have a button that needs to get a MouseEvent listener. When I start the app, I get an exception : Cannot access a property or method of a null object reference. Because all the buttons on the VieStacks that have not yet been drawn are not defined for the AddEventListener. Is there an easy workaround for this situation? Thanks, Sascha -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] How to set EventListeners to undrawn components on a ViewStack?
Thanks Gordon! Sometimes I dont see the easiest solution by myself! However Im trying to keep MXML code and functionality code separate so Im wondering if there is another workaround for this? Though I can live with your suggestion in this situation. Sascha From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Saturday, 19. August, 2006 08:39 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to set EventListeners to undrawn components on a ViewStack? Why call addEventListener() yourself? If you simply put an mouseDown or whatever event atttribute on your content item in MXML, it should work fine; addEventListener() will get called for you when the content item gets created. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sascha Balkau Sent: Friday, August 18, 2006 5:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set EventListeners to undrawn components on a ViewStack? Hi list, I'm using a LinkBar with a ViewStack and on any of the ViwStack contents I have a button that needs to get a MouseEvent listener. When I start the app, I get an exception : Cannot access a property or method of a null object reference. Because all the buttons on the VieStacks that have not yet been drawn are not defined for the AddEventListener. Is there an easy workaround for this situation? Thanks, Sascha ___ __._,_.___ -- 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] Custom Window Component - Is this possible?
Thanks a lot Jester, I'm trying to follow your suggestions but I haven't delved much yet in creating components with AS. Is there a way to set the border metrics of a container inside the custom component? I'd like to set a VBox to always have a 10 pixel padding. Not sure how do to that in AS and the borderMetrics property is read-only! Thanks, Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Tuesday, 11. July, 2006 04:55 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Custom Window Component - Is this possible? 2 things. First, you cannot put stuff in a Container based component that already has stuff in it via MXML. You can via ActionScript. So, write your EditorWindow in ActionScript, and you'll be fine. Second, make the default width and height of it 400 width, and 300 height, not 100%. Percentage widths can do unexpected things. As a component developer, you should give it a reasonable size, and let the peeps using it dictate the size. So... package { import mx.containers.TitleWindow; public class EditorWindow extends TitleWindow { // you're goodness here } } Then, you can use the code you were doing, like: ?xml version=1.0 encoding=utf-8? EditorWindow xmlns=gui.parts.* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:ns1=gui.parts.* /EditorWindow If she doesn't work out for you, post back here and we'll help you out. - Original Message - From: Sascha Balkau [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 1:40 PM Subject: [flexcoders] Custom Window Component - Is this possible? I'm trying to create a custom component in Flex2 based on TitleWindow that should be the base for a couple of windows that all have more or less different controls but also have several parts in common like an 'Ok' and a 'Cancel' Button that are at the bottom of every window. I've created a component named EditorWindow which is the base for all the other windows. Here's a simple mxml of it ... ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=100% height=100% showCloseButton=true mx:VBox left=10 right=10 top=10 bottom=10 mx:HBox width=100% height=100% /mx:HBox mx:HRule width=100%/ mx:HBox width=100% mx:Button label=OK width=60/ mx:Button label=Cancel width=60/ /mx:HBox /mx:VBox /mx:TitleWindow And a window class that is based on this component would naturally look like this ... ?xml version=1.0 encoding=utf-8? EditorWindow xmlns=gui.parts.* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:ns1=gui.parts.* /EditorWindow Ideally the varying controls of every inheriting Window should go into the empty HBox above the HRule and the two buttons at the bottom but if I create a window based on this and try to drag a component into the place it will not insert any component code. If I manually write the component code between the EditorWindow tags it will fill out the whole window and ignores the boundaries of the HRule and the two buttons. Does somebody know if it possible to get this working differently? Thanks for any advice! Sascha -- 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 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using custom StyleSheet with TextArea?
Hi, I'm trying to use a Flex2 TextArea component to display dynamic text that can have different color and fontWeight for every line of text. If I'm setting up a StyleSheet object and use it for the TextArea, it uses the colors etc. from the StyleSheet object but the text is totally messing up, it seems to remove line breaks and the style formatting only always remains on the last line of text. The text that was already added to the TextArea becomes raw (as if no stylesheet was added). My question: Is it possible to use a StyleSheet object on a TextArea and maintain line-breaks or is it possible to create a new Style Definition (using the StyleManager) for the TextArea that can have custom styles? Sascha Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Custom Window Component - Is this possible?
I'm trying to create a custom component in Flex2 based on TitleWindow that should be the base for a couple of windows that all have more or less different controls but also have several parts in common like an 'Ok' and a 'Cancel' Button that are at the bottom of every window. I've created a component named EditorWindow which is the base for all the other windows. Here's a simple mxml of it ... ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=100% height=100% showCloseButton=true mx:VBox left=10 right=10 top=10 bottom=10 mx:HBox width=100% height=100% /mx:HBox mx:HRule width=100%/ mx:HBox width=100% mx:Button label=OK width=60/ mx:Button label=Cancel width=60/ /mx:HBox /mx:VBox /mx:TitleWindow And a window class that is based on this component would naturally look like this ... ?xml version=1.0 encoding=utf-8? EditorWindow xmlns=gui.parts.* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:ns1=gui.parts.* /EditorWindow Ideally the varying controls of every inheriting Window should go into the empty HBox above the HRule and the two buttons at the bottom but if I create a window based on this and try to drag a component into the place it will not insert any component code. If I manually write the component code between the EditorWindow tags it will fill out the whole window and ignores the boundaries of the HRule and the two buttons. Does somebody know if it possible to get this working differently? Thanks for any advice! Sascha Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex2 Beta3: Mystic installation
It kept telling me that I'm not admin when I tried to install Beta3 (though I was logged in as admin). I finally managed to install it in SAFE MODE (gah)! Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Rühl -akitogo- Sent: Tuesday, 09. May, 2006 23:17 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Beta3: Mystic installation so, here i am, trying to install mystic on my multiserver configuration and guess what? it doesn't work. setup as follows: * winxp sp2 * jrun4 updater 6 with jre 1.4.2_11 in c:\JRun * flex-stuff deployed in a servier instance 'flex' * cf deployed in a server instance 'cfusion' * all the server instances were stoppen during the mystic installation attempt i ran the mystic b3 installer, the error message is like it was for beta2 '...not a valid jrun server root'. of course, i uninstalled everything before and even performed a reboot, which shouldn't have been neccessary... any ideas, pls? greetings, thomas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Two Flex 2 Components Questions
Hi list, Could somebody give me a hint how to disable the roll-out delay for Menu- and Tree List Flex 2 Components? I'd like to get the menu/list contents appearing immediately without any tween/easing effect. The second question I got is how to decrease the vertical size for Menu items? I can set the font size to 9 (smallest size without getting blur Font) but the size that one menu item takes stays the same. Is there any property to change that? I haven't found any info on these things in the Flex docs so far. Thanks for any help! Sascha -- 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] Two Flex 2 Components Questions
Thanks a lot Manish! I've created a style object like this mx:Style .testStyle { openDuration: 0; rowHeight: 5; } /mx:Style And use it on the mx:MenuBar and mx:Tree with styleName=testStyle. The opendelay is gone but the rowHeight hasn't changed. Is there anything else I need to take into account to make this work? Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Tuesday, 02. May, 2006 21:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Two Flex 2 Components Questions On 5/2/06, Sascha Balkau [EMAIL PROTECTED] wrote: Could somebody give me a hint how to disable the roll-out delay for Menu- and Tree List Flex 2 Components? I'd like to get the menu/list contents appearing immediately without any tween/easing effect. Set openDuration to 0. The second question I got is how to decrease the vertical size for Menu items? I can set the font size to 9 (smallest size without getting blur Font) but the size that one menu item takes stays the same. Is there any property to change that? I haven't found any info on these things in the Flex docs so far. Set the Menu object's 'rowHeight' property. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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] Two Flex 2 Components Questions
The opendelay is gone but the rowHeight hasn't changed. Is there anything else I need to take into account to make this work? I think rowHeight is a property (not a style). Manish It seems not! If I try to use it as a property on the MenuBar tag I get an error. Sascha -- 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] New to Flex, couple of questions
I just had the chance to read the replies to my questions now! Thanks a lot Dirk and Tracy! Though this is overdue since about a week! Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Monday, 24. April, 2006 22:44 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions Importance: High Hi - and welcome to Flex :) MXML files get turned into AS prior compilation and you can do pretty anything either in MXML or AS. A typical usecase is to setup a Controller inside your main Application file. This can be done either in a Script block or by tag syntax as Tracy suggested. Below are two examples - email code, but you should get the idea :) 1) Script style mx:Application creationComplete=initApp() mx:Script import foo.bar.Controller; private var controller:Controller; private function initApp():void { controller = new Controller(); controller.init(this); } /mx:Script /mx:Application 2) Tag style mx:Application creationComplete=controller.init(this) Controller id=controller xmlns=foo.bar.* / /mx:Application // Controller.as package foo.bar { import mx.core.Application; public class Controller { public function init(application:Application) { // whatever... } } } -- 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] New to Flex, couple of questions
Ive checked through the block and found 3 Ant build files, but none of them mention the Flex compiler anywhere (compc.exe), not sure if this is helpful. Thanks anyway for the link! Sascha From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JB Sent: Friday, 21. April, 2006 23:04 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New to Flex, couple of questions Importance: High Hi, Check out Simeon Bateman site http://www.simb.net/blog/ -- 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] New to Flex, couple of questions
Hi Tracy, An example would be great if you got any. Even if it's in 1.5 I think it will be helpful to understand how AS and Flex works together. Thanks, Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Saturday, 22. April, 2006 02:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class file, and then either instantiate it in a tag, or make the class methods static, import it and then use the static methods. I have a simple example in 1.5 if you want to see it. Tracy -- 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] New to Flex, couple of questions
Hi list, I'm familiar with ActionScript 2.0 but new to Flex and just started learning Flex 2.0 and AS3.0. I'm amazed how easy and flexible components can be used with Flex but I got a few questions about it... So far I have only seen MXML code with embedded ActionScript. But I prefer to write the ActionScript in a class structure. Is it possible to keep both ActionScript Classes and MXML code in their own files and somehow link these? If so, how do I do that? I'd like use an Ant build file to compile the Flex apps but I'm not very familiar with the compiler syntax yet. Does somebody know of any examples on the web on how to use the compiler in a command line or an example Ant build file for it? Thanks for any help! Sascha -- 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.