[flexcoders] Text component sizing issue
Who would have thought that the humble Text component could be so full of bugs?! Here's one that giving me trouble at the moment: http://www.adobe.com/2006/mxml";> To see the bug execute this app and scroll to the bottom of the text. You should notice that the last two lines are missing. If you begin to select the bottom part of the text and drag downwards past the bottom of the box the text will shift revealing the missing lines. Doing this will have hidden the top lines of text. Has anyone come accross this bug and found a reliable way to get round it? Thanks, Nick -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Example: Creating and using custom tooltips
Come to think of it, if you always want to display a tooltip in the same position, using the ToolTipManager may not be the best option. it way be better to simply place the tooltip absolutely and then show and hide it in response to mouseOver and mouseOut events from the relevant component. --- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote: > > Lack-of-progress report. Your event handler suggestion works, if I use > ToolTipManager to get the x and y of the currentTarget. The problem is > that the tooltip's x and y seem to be calculated relative to the > application, rather than relative to the target. > > Hmm. > > - Tom > > n51red wrote: > > > > Interesting. > > > > One option is to set the x and y attribes of the tooltips in the > > toolTipShown event handler of the relevant component. The event handler > > might look like: > > > > event.toolTip.x = xPos; > > event.toolTip.y = yPos; > > > > Could you let me know what you come up with? > > > > Thanks, > > Nick > > > > --- In flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com>, Tom Fitzpatrick wrote: > > > > > > Thanks, Nick. I think that would work. > > > > > > I realized, though, that a better way would be to always anchor the > > > custom tooltip in the same x and y position relative to the tooltip > > > target. That way it will stay out of the way of the pie chart. > > > > > > I'm trying to figure that out now. > > > > > > - Tom > > > > > > > > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Example: Creating and using custom tooltips
Interesting. One option is to set the x and y attribes of the tooltips in the toolTipShown event handler of the relevant component. The event handler might look like: event.toolTip.x = xPos; event.toolTip.y = yPos; Could you let me know what you come up with? Thanks, Nick --- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote: > > Thanks, Nick. I think that would work. > > I realized, though, that a better way would be to always anchor the > custom tooltip in the same x and y position relative to the tooltip > target. That way it will stay out of the way of the pie chart. > > I'm trying to figure that out now. > > - Tom > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Example: Creating and using custom tooltips
Hi Tom, I'm not sure exactly what effect you're referring to as "battle of the tooltips", but if you do need to disable a tooltip for a short time you can do so by setting the components toolTip attribute to the empty string (""). UIComponents throw a number of events as tooltips are shown and hidden, but I think toolTipStart and toolTipEnd are the most relevant here. So, in the toolTipStart event handler of the pie chart you would set the parent components toolTip attribute to "" (empty string), and in the toolTipEnd event handler you'd change it back to " " (single space) or whatever value you're using. Does that help at all? Nick --- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote: > > Nick - > > Great example! > > One question. I've used your example to implement a custom tooltip on a > component that also contains a pie chart. The pie chart has a tooltip as > well. > > Is there any way to temporarily disable to component's overall tooltip > while the pie chart tooltip is displaying - thereby avoiding the dreaded > "battle of the tooltips". > > - Tom > > > n51red wrote: > > > > Hello, > > > > Somebody asked me to provide an example of how to use arbirary > > components as tool tips. So here goes: > > > > Notes > > - > > > > For a component to be used as a tooltip it must implement the IToolTip > > interface. I've used a base class ("CustomToolTip") for the custom > > tooltips in this example that takes care of implementing the interface, > > and a few other things as documented within the code. > > > > Just like when using standard tooltips, you need to set the toolTip > > property of a component for a tooltip to be displayed for it. This is > > true even if you don't actually use the value in your tooltip > > component. That's why I set the toolTip variables to " " in the example. > > > > When a tooltip is to be displayed for a component, that component fires > > a toolTipCreate event. To use your custom tooltip component you need to > > intercept this event and set its toolTip property to an instance of > > your custom tooltip component. > > > > The main application code > > - > > > > > > http://www.adobe.com/2006/mxml > > <http://www.adobe.com/2006/mxml>" > > verticalGap="20"> > > > > > > > > > toolTipCreate="event.toolTip=new Component1ToolTip();"/> > > > toolTipCreate="event.toolTip=new Component2ToolTip();"/> > > > > > > A base class for components to be used as tooltips > > -- > > > > package CustomToolTips > > { > > import mx.core.*; > > import mx.containers.*; > > > > public class CustomToolTip extends VBox implements IToolTip > > { > > public function CustomToolTip() > > { > > // Make the ToolTip invisible to the mouse so > > that it doesn't > > // interfere with the ToolTipManager's mouse- > > tracking. > > mouseEnabled = false; > > mouseChildren=false; > > > > //Add padding to prevent the component from > > //touching the sides of the application, which > > //looks untidy > > setStyle("paddingBottom", 10); > > setStyle("paddingRight", 10); > > } > > > > //IToolTip functions - unused in this case > > public function get text():String { return null; } > > public function set text(value:String):void {} > > } > > } > > > > A couple of custom tooltips extending the above class > > - > > > > > > http://www.adobe.com/2006/mxml > > <http://www.adobe.com/2006/mxml>" > > xmlns:ctt="CustomToolTips.*" > > width="150" > > backgroundColor="#FF" dropShadowEnabled="true" > > borderColor="black" borderThickness="1" borderStyle="solid"> > > > fontWeight="bold"/> > > > width="100%"/> > > > > > > > > http://www.adobe.com/2006/mxml > > <http://www.adobe.com/2006/mxml>" > > xmlns:ctt="CustomToolTips.*" > > width="225" > > backgroundColor="white" dropShadowEnabled="true" > > borderColor="black" borderThickness="1" borderStyle="solid"> > > > fontWeight="bold" color="blue"/> > > > width="100%"/> > > > > > > Regards, > > Nick > > > > > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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] Example: Creating and using custom tooltips
Hello, Somebody asked me to provide an example of how to use arbirary components as tool tips. So here goes: Notes - For a component to be used as a tooltip it must implement the IToolTip interface. I've used a base class ("CustomToolTip") for the custom tooltips in this example that takes care of implementing the interface, and a few other things as documented within the code. Just like when using standard tooltips, you need to set the toolTip property of a component for a tooltip to be displayed for it. This is true even if you don't actually use the value in your tooltip component. That's why I set the toolTip variables to " " in the example. When a tooltip is to be displayed for a component, that component fires a toolTipCreate event. To use your custom tooltip component you need to intercept this event and set its toolTip property to an instance of your custom tooltip component. The main application code - http://www.adobe.com/2006/mxml"; verticalGap="20"> A base class for components to be used as tooltips -- package CustomToolTips { import mx.core.*; import mx.containers.*; public class CustomToolTip extends VBox implements IToolTip { public function CustomToolTip() { // Make the ToolTip invisible to the mouse so that it doesn't // interfere with the ToolTipManager's mouse- tracking. mouseEnabled = false; mouseChildren=false; //Add padding to prevent the component from //touching the sides of the application, which //looks untidy setStyle("paddingBottom", 10); setStyle("paddingRight", 10); } //IToolTip functions - unused in this case public function get text():String { return null; } public function set text(value:String):void {} } } A couple of custom tooltips extending the above class - http://www.adobe.com/2006/mxml"; xmlns:ctt="CustomToolTips.*" width="150" backgroundColor="#FF" dropShadowEnabled="true" borderColor="black" borderThickness="1" borderStyle="solid"> http://www.adobe.com/2006/mxml"; xmlns:ctt="CustomToolTips.*" width="225" backgroundColor="white" dropShadowEnabled="true" borderColor="black" borderThickness="1" borderStyle="solid"> Regards, Nick -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Different borderstyles for HBox
I wouldn't say that. The issue is that containers carry with them a substantial processing burden. So it you've got a lot of components visible (say, 20 or 30) with borders added to them in this way, you may start to notice a lag as the components are rendered. N51 --- In flexcoders@yahoogroups.com, "Jonas Windey" <[EMAIL PROTECTED]> wrote: > > So HBoxes shouldn't be used to place a > border around components? > Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/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] Re: FocusManager problem
Turns out this error was occuring because name of the focusManager variable in the focusOnInput() function was clashing with the mx.core.UIComponent.focusManager property. So the problem was resolved by renaming the variable. --- In flexcoders@yahoogroups.com, "n51red" <[EMAIL PROTECTED]> wrote: > > Hello, > > After migrating an application from f2b3 to the final release of Flex > 2 a new problem has emerged involving the FocusManager. > > I use a FocusManager to focus on a TextInput when its parent becomes > visible. The text input does indeed take the focus and the component > responds to the keyboard without any problems. After this, however, > all mouse clicks in the application give the following error: > > ArgumentError: Error #2025: The supplied DisplayObject must be a > child of the caller. > at flash.display::DisplayObjectContainer/getChildIndex() > at mx.managers::SystemManager/getChildIndex() > at mx.managers::SystemManager/::mouseDownHandler() > > If I click "continue" in the error dialogue the same thing happens > when I next click the mouse. > However, if I click "dismiss all" the problem goes away altogether > and the application responds to clicks as it should. > > After experimenting it appears to be the instantiation of the > FocusManager instance rather than calling its setFocus method that > causes the problem. > > His is the function I call in response to show events on my component: > > private function focusOnInput():void > { > var focusManager:FocusManager=new FocusManager(this); > focusManager.setFocus(searchTextInput); > } > > Does any one know what's going on here or what I might be able to do > about it? > > Thanks, > N51 > 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/
[flexcoders] Re: Different borderstyles for HBox
> I remember read a few days ago that these > invisible components can't be styled. I seems you've been mislead Carlos. Components like HBox and VBox are invisible by default, but styles like backgroundColor do work. Hank's suggestion about using nesting works well (see example), but has implications for performance if it is used on a large number of components. Example code: http://www.adobe.com/2006/mxml"; layout="vertical" horizontalAlign="center" verticalAlign="middle"> Application{ backgroundColor:white; color:black; } .boxStyle1{ borderStyle:"solid"; borderThickness:5; borderColor:blue; borderSides:bottom, left; } .boxStyle2{ borderStyle:"solid"; borderThickness:10; borderColor:green; borderSides:top, right; } --- In flexcoders@yahoogroups.com, "Carlos Rovira" <[EMAIL PROTECTED]> wrote: > > Hank, > > In general visual containers can be styled, but we are talking about Layout > Containers (HBox, VBox,...), and I remember read a few days ago that these > invisible components can't be styled. > > On 7/4/06, hank williams <[EMAIL PROTECTED]> wrote: > > > > Containers can definitely be styled, but I am not sure that you can > > assign a different color to different sides. That might require skinning. > > You could use scale9 to do it. I know its not as easy as styles, but I > > *think* that may be your only option. You can turn off certain sides and > > turn on other sides, so perhaps you could do something with layering, but > > thats all I can think of. > > > > Hank > > > > On 7/4/06, Carlos Rovira <[EMAIL PROTECTED]> wrote: > > > > > AFAIK, containers for laying out other content can't be styled > > > > > > > > > > > > > > > On 7/4/06, Jonas Windey < [EMAIL PROTECTED]> wrote: > > > > > > > >Hi, is it possible to give a HBox different border colors for each > > > > side? Like border-right: solid 1px #ccc in css? > > > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > > > > -- > > > ::| Carlos Rovira > > > ::| http://www.carlosrovira.com > > > > > > > > > > > > > -- > ::| Carlos Rovira > ::| http://www.carlosrovira.com > Yahoo! Groups Sponsor ~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Re: New text component problem (flex 2 final release)
This bug is with Adobe now. A workaround it to set the minHeight property of the text components. --- In flexcoders@yahoogroups.com, "n51red" <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm in the process of migrating an appliation from flex 2 beta 3 to the > flex 2 final release and I have come accross a new problem with > adjacent text components inside VBoxes. It appears that when the > positions of the text components are recalculated they momentarily > appear on top of each other before being displayed in the correct > place. This appears not to be a problem with HBoxes. Does anyone know > why this might be occuring and what I can do to get around it? > > Thanks, > Nick > Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/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] Re: FocusManager problem
Hello, Sorry to bump, but there seems to be a something lack of information around on the usage of the FocusManger. Does anyone have any advice on this issue? Thank you, N51 --- In flexcoders@yahoogroups.com, "n51red" <[EMAIL PROTECTED]> wrote: > > Hello, > > After migrating an application from f2b3 to the final release of Flex > 2 a new problem has emerged involving the FocusManager. > > I use a FocusManager to focus on a TextInput when its parent becomes > visible. The text input does indeed take the focus and the component > responds to the keyboard without any problems. After this, however, > all mouse clicks in the application give the following error: > > ArgumentError: Error #2025: The supplied DisplayObject must be a > child of the caller. > at flash.display::DisplayObjectContainer/getChildIndex() > at mx.managers::SystemManager/getChildIndex() > at mx.managers::SystemManager/::mouseDownHandler() > > If I click "continue" in the error dialogue the same thing happens > when I next click the mouse. > However, if I click "dismiss all" the problem goes away altogether > and the application responds to clicks as it should. > > After experimenting it appears to be the instantiation of the > FocusManager instance rather than calling its setFocus method that > causes the problem. > > His is the function I call in response to show events on my component: > > private function focusOnInput():void > { > var focusManager:FocusManager=new FocusManager(this); > focusManager.setFocus(searchTextInput); > } > > Does any one know what's going on here or what I might be able to do > about it? > > Thanks, > N51 > Yahoo! Groups Sponsor ~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Re: New text component problem (flex 2 final release)
I think so too. Thanks for looking into it. N51 --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Friday 30 June 2006 14:56, n51red wrote: > > think > I think that's a bug, replicates here easily. > Send it to Adobe :-) > -- > Tom Chiverton 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] Re: New text component problem (flex 2 final release)
> Do you have a simple test case ? The following code demonstrates the problem: http://www.adobe.com/2006/mxml"; layout="absolute"> Application{ backgroundColor:white; color:black; } .boxStyle1{ borderStyle:"solid"; borderThickness:2; borderColor:blue; } .boxStyle2{ paddingTop:2; paddingRight:2; paddingBottom:2; paddingLeft:2; } If you launch this app and repeatedly move the mouse pointer up and down through the box quickly you should see the behaviour I am talking about. This only occurs when the width of the text components' width properties are set to percentage values. What do you think? N51 Yahoo! Groups Sponsor ~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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] FocusManager problem
Hello, After migrating an application from f2b3 to the final release of Flex 2 a new problem has emerged involving the FocusManager. I use a FocusManager to focus on a TextInput when its parent becomes visible. The text input does indeed take the focus and the component responds to the keyboard without any problems. After this, however, all mouse clicks in the application give the following error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.managers::SystemManager/getChildIndex() at mx.managers::SystemManager/::mouseDownHandler() If I click "continue" in the error dialogue the same thing happens when I next click the mouse. However, if I click "dismiss all" the problem goes away altogether and the application responds to clicks as it should. After experimenting it appears to be the instantiation of the FocusManager instance rather than calling its setFocus method that causes the problem. His is the function I call in response to show events on my component: private function focusOnInput():void { var focusManager:FocusManager=new FocusManager(this); focusManager.setFocus(searchTextInput); } Does any one know what's going on here or what I might be able to do about it? Thanks, N51 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/
[flexcoders] New text component problem (flex 2 final release)
Hello, I'm in the process of migrating an appliation from flex 2 beta 3 to the flex 2 final release and I have come accross a new problem with adjacent text components inside VBoxes. It appears that when the positions of the text components are recalculated they momentarily appear on top of each other before being displayed in the correct place. This appears not to be a problem with HBoxes. Does anyone know why this might be occuring and what I can do to get around it? Thanks, Nick 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/
[flexcoders] Re: htmlText formating destroyed by binding execution
That's great, thanks for letting me know. --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > I believe this has been fixed since Beta 3. > > > > - Gordon > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of n51red > Sent: Thursday, June 22, 2006 3:22 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: htmlText formating destroyed by binding > execution > > > > Forgive my rudeness in bumping this post but this problem is a > persistent nusance I like would like to find out what's going on. > > ...And should have mentioned that I'm referring to f2b3. > > --- In flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > , "n51red" wrote: > > > > I've come across some odd behaviour with Text components that have > the > > htmlText attribute in use. If a binding execution causes the text to > > change while some of that text is selected, the text styles revert to > > their defaults, ignoring values set either inline or in CSS. I assume > > this is a problem with the Text component class. > > > > I've got round the problem with the use of font tags in the html, but > > that's left me feeling unclean. Has anyone else come across this > > problem? > > > > N51 > > > 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] Re: htmlText formating destroyed by binding execution
Forgive my rudeness in bumping this post but this problem is a persistent nusance I like would like to find out what's going on. ...And should have mentioned that I'm referring to f2b3. --- In flexcoders@yahoogroups.com, "n51red" <[EMAIL PROTECTED]> wrote: > > I've come across some odd behaviour with Text components that have the > htmlText attribute in use. If a binding execution causes the text to > change while some of that text is selected, the text styles revert to > their defaults, ignoring values set either inline or in CSS. I assume > this is a problem with the Text component class. > > I've got round the problem with the use of font tags in the html, but > that's left me feeling unclean. Has anyone else come across this > problem? > > N51 > 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] htmlText formating destroyed by binding execution
I've come across some odd behaviour with Text components that have the htmlText attribute in use. If a binding execution causes the text to change while some of that text is selected, the text styles revert to their defaults, ignoring values set either inline or in CSS. I assume this is a problem with the Text component class. I've got round the problem with the use of font tags in the html, but that's left me feeling unclean. Has anyone else come across this problem? N51 Yahoo! Groups Sponsor ~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Multithreading?
Is there any mechanism for multithreading in Flex(2.0), such that client side processing can continue without freezing the user interface? Thanks, N51 Yahoo! Groups Sponsor ~--> Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/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] Re: f2b3 custom ToolTip troubles
Thank you, I see now. Note for other people doing the same thing: If you want the mouse to be disabled for all the children of your component, you also need to set the mouseChildren property to false. Thanks again, N --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > In Flex 2, set the mouseEnabled property of your tooltip instance to false. The standard ToolTip component does this in its constructor: > > // Make the ToolTip invisible to the mouse so that it doesn't > // interfere with the ToolTipManager's mouse-tracking. > mouseEnabled = false; > > - Gordon > > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of n51red > Sent: Friday, June 02, 2006 9:20 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] f2b3 custom ToolTip troubles > > I've been replacing tool tips with arbitrary IUComonents by > intersepting the toolTipCreate method and changing the toolTip property > to my component. This works quite well except for when the tooltip is > does not have room to appear to the bottom left of the cursor. In this > situation the the tooltip appears under the cursor causing an > oscillation of mouseOut, mouseOver events, with the tooltip flashing on > and off. > > Does anyone have any tips on getting this functionallity without > breaking the tooltip mechanism? > > Thanks, > N > > > > > > > -- > 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] f2b3 custom ToolTip troubles
I've been replacing tool tips with arbitrary IUComonents by intersepting the toolTipCreate method and changing the toolTip property to my component. This works quite well except for when the tooltip is does not have room to appear to the bottom left of the cursor. In this situation the the tooltip appears under the cursor causing an oscillation of mouseOut, mouseOver events, with the tooltip flashing on and off. Does anyone have any tips on getting this functionallity without breaking the tooltip mechanism? Thanks, N -- 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] Re: Apparent bug with static variable access in bindings (f2b3)
I was aware that changes to static variables no longer trigger binding to execute, but including static variables in a binding shouldn't cause compilation errors. Considering the fact that the compiler fails to identify the line that contains the error, and the fact that the error messages make no sense in that context, lead me to the conclusion this must be a compiler bug. --- In flexcoders@yahoogroups.com, "jeremy lu" <[EMAIL PROTECTED]> wrote: > > ran into this problem last month, turned out f2b3 doesn't support bindings > to static variables or methods. > > I have double checked this with adobe engineer and the answer is : this > feature won't be supported. > > the work around here is using getter/setter. > > On 5/30/06, n51red <[EMAIL PROTECTED]> wrote: > > > > I have come accross a problem in which certain data bindings invoving > > static varaibles produce bizarre compilation errors. > > All the bindings that have caused problems have taken a form similar > > to this: > > > > booleanVariable="{myInstance.variable==MyClass.staticVariable}" > > > > Each instance of the problem arising produces a pair of errors as > > follows: > > > > Expecting semicolon before colon. > > Expecting rightparen before colon. > > > > Furthermore, Flex Builder fails to pin point the file in which the > > errors occur and gives none sensical line numbers. > > > > I have got around the problem by including this: > > > > > > ... > > [Bindable]private var localVariable:String=MyClass.staticVariable; > > ... > > > > > > and binding as follows: > > > > booleanVariable="{myInstance.variable==localVariable}" > > > > Is this a known problem, or has anyone else encountered it? > > > > N > > > > > > > > > > > > > > -- > > 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] Apparent bug with static variable access in bindings (f2b3)
I have come accross a problem in which certain data bindings invoving static varaibles produce bizarre compilation errors. All the bindings that have caused problems have taken a form similar to this: booleanVariable="{myInstance.variable==MyClass.staticVariable}" Each instance of the problem arising produces a pair of errors as follows: Expecting semicolon before colon. Expecting rightparen before colon. Furthermore, Flex Builder fails to pin point the file in which the errors occur and gives none sensical line numbers. I have got around the problem by including this: ... [Bindable]private var localVariable:String=MyClass.staticVariable; ... and binding as follows: booleanVariable="{myInstance.variable==localVariable}" Is this a known problem, or has anyone else encountered it? N -- 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] Get new component dimensions without rendering it
I have a component the contents of which changes each time it is made visible. Each time it is to be displayed I need to change its position depending on its height. I've acheived this by basically binding the component's Y property to its height. The problem is that as the component is rendered and then moved I get an undesirable flashing effect. Is there a way to get the new height of the component and change the Y property before it is rendered? Thanks, N51 -- 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] Re: MenuBar - change events for branch items
Thanks for the suggestion, I investigated that approach and it seems that MouseEvents thrown by Menus don't make it up to the MenuBar that owns them. Any further thoughts would be a great help. --- In flexcoders@yahoogroups.com, "Anant Gilra" <[EMAIL PROTECTED]> wrote: > > I guess you could listen to the mouseUp handler and dispatch your own change > event, and also call the public funtion hide(). I haven't tried it, but it > should work. You could refer the mouseUpHandler code in Menu for some help. > > Thanks, > Anant. > > On 5/11/06, n51red <[EMAIL PROTECTED]> wrote: > > > > Is it possible to make branch nodes behave the same as leaf nodes in > > response to a mouse click, that is, close the menu and fire a change > > event? > > > > I assume such events a fired 'behind the scenes' and are canceled some > > where along the hierarchy. > > I'm thinking of trying expand the MenuBar class to achive this > > behaviour, but is there a simpler way that I'm missing? > > > > Any suggestions would be greatly appreciated, > > > > N51 > > > > > > > > > > > > > > > > > > > > -- > > 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] MenuBar - change events for branch items
Is it possible to make branch nodes behave the same as leaf nodes in response to a mouse click, that is, close the menu and fire a change event? I assume such events a fired 'behind the scenes' and are canceled some where along the hierarchy. I'm thinking of trying expand the MenuBar class to achive this behaviour, but is there a simpler way that I'm missing? Any suggestions would be greatly appreciated, N51 -- 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] RE: Implementing IMenuDataDescriber - still no joy
Hello again, I waited patiently for beta 3 and tried again, but the problem persists. Now the only methods that are executed are setSelected and isEnabled. Any clues?? Thank you, N51 --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > At first glance I don't see anything wrong. Wait a few more days for B3 where I believe we've fixed a lot of menu problems. > > Matt > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of n51red > Sent: Thursday, May 04, 2006 5:59 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Implementing IMenuDataDescriber (Flex 2.0 beta) > > Hello, > > I'm new to flex but haev an object orientated background. > > I'm trying to populate a MenuBar with data from a data structure I've > implemented. > This data structure revolves round a class I've called Category that > contains an ArrayCollection of child Categories. I've been attmpting > to bind the root category to the dataProvider of the MenuBar, while > providing an implementation of IMenuDataDescriber to provide access > to my Category class. As the online documentation on the > IMenuDataDescriber interface is currently incomplete I've done a > certain amount of guess work on what the functions are supposed to do. > > When I run this the label for the root Category is displayed > correctly but when I click on it, no menu appears, although the label > becomes highlighted to indicate it is selected. > > I placed breakpoints in each of the functions in my > IMenuDataDescriber implementation to see what was happening, and the > only function that is ever executed is isEnabled (node:Object):Boolean. > > Any help with this would be greatly appreciated. Here's the code for > my IMenuDataDescriber implementation and the Category class it is > relavent to: > > package components { > import mx.controls.menuClasses.IMenuDataDescriptor; > import mx.collections.*; > import model.*; > import events.*; > > public class CategoryMenuDataDescriptor implements > IMenuDataDescriptor > { > public function isSelected(node:Object):Boolean > { > return node==ModelLocator.getInstance > ().selectedCategory; > } > > public function CategoryMenuDataDescriptor() { > } > > public function setEnabled(node:Object, > value:Boolean):void { > } > > public function isBranch(node:Object, > model:Object=null):Boolean > { > return !(node is Category); > } > > public function getData(node:Object, > model:Object=null):Object { > return node as Category; > } > > public function getGroupName(node:Object):String { > return (node as Category).label; > } > > public function getChildren(node:Object, > model:Object=null):ICollectionView { > return (node as Category).getChildren(); > } > > public function getType(node:Object):String { > return null; > } > > public function setSelected(node:Object, > value:Boolean):void { > } > > public function isEnabled(node:Object):Boolean { > return true; > } > } > } > > package model { > import mx.collections.ArrayCollection; > > [Bindable] > public class Category { > private var name:String; > private var childCategories:ArrayCollection; > > public function get label():String{ return name; } > > public function Category(n:String) > { > name=n; > childCategories=new ArrayCollection(); > } > > public function addChildCategory(c:Category):void > { > childCategories.addItem(c); > } > public function getChildren():ArrayCollection > { > return childCategories; > } > } > } > > N51 > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com >
[flexcoders] Implementing IMenuDataDescriber (Flex 2.0 beta)
Hello, I'm new to flex but haev an object orientated background. I'm trying to populate a MenuBar with data from a data structure I've implemented. This data structure revolves round a class I've called Category that contains an ArrayCollection of child Categories. I've been attmpting to bind the root category to the dataProvider of the MenuBar, while providing an implementation of IMenuDataDescriber to provide access to my Category class. As the online documentation on the IMenuDataDescriber interface is currently incomplete I've done a certain amount of guess work on what the functions are supposed to do. When I run this the label for the root Category is displayed correctly but when I click on it, no menu appears, although the label becomes highlighted to indicate it is selected. I placed breakpoints in each of the functions in my IMenuDataDescriber implementation to see what was happening, and the only function that is ever executed is isEnabled(node:Object):Boolean. Any help with this would be greatly appreciated. Here's the code for my IMenuDataDescriber implementation and the Category class it is relavent to: package components { import mx.controls.menuClasses.IMenuDataDescriptor; import mx.collections.*; import model.*; import events.*; public class CategoryMenuDataDescriptor implements IMenuDataDescriptor { public function isSelected(node:Object):Boolean { return node==ModelLocator.getInstance ().selectedCategory; } public function CategoryMenuDataDescriptor() { } public function setEnabled(node:Object, value:Boolean):void { } public function isBranch(node:Object, model:Object=null):Boolean { return !(node is Category); } public function getData(node:Object, model:Object=null):Object { return node as Category; } public function getGroupName(node:Object):String { return (node as Category).label; } public function getChildren(node:Object, model:Object=null):ICollectionView { return (node as Category).getChildren(); } public function getType(node:Object):String { return null; } public function setSelected(node:Object, value:Boolean):void { } public function isEnabled(node:Object):Boolean { return true; } } } package model { import mx.collections.ArrayCollection; [Bindable] public class Category { private var name:String; private var childCategories:ArrayCollection; public function get label():String{ return name; } public function Category(n:String) { name=n; childCategories=new ArrayCollection(); } public function addChildCategory(c:Category):void { childCategories.addItem(c); } public function getChildren():ArrayCollection { return childCategories; } } } N51 -- 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.