[flexcoders] LinkBar Link Width
Is there a way to set a default link width for all links in a LinkBar? I tried this guy's approach - http://tdotblog.info/?q=node/25. Doesn't seem to be working. Thanks~
[flexcoders] LinkBar without viewstack
Does anyone have a good solution to the problems alluded to in the comments here: http://blog.flexexamples.com/2008/01/20/setting-the-selected-index-of-a-flex-linkbar-control/ and in some threads on FlexCoders. Namely that the visuals of a LinkBar do not work with a data provider that's not a viewstack. Thanks.
[flexcoders] linkBar labelFunction
I have a linkBar that uses an arrayCollection as a dataProvider. How would I use the lableFunction if there is no viewStack containers.
RE: [flexcoders] linkBar labelFunction
labelFunction will not care about the dataType of the dataProvider. It will still get a reference to each item in the dataProvider and needs to build and return a string. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of kpjj31 Sent: Thursday, March 26, 2009 5:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] linkBar labelFunction I have a linkBar that uses an arrayCollection as a dataProvider. How would I use the lableFunction if there is no viewStack containers.
[flexcoders] LinkBar Always On Top?
I am trying to use a linkbar but in the middle of the page. I want the viewstack to change behind it but it seems that the viewstack images always get layered on top. I tried to use the DisplayObejectContainer to setChildIndex but it doesn't seem to be working. Anybody have a way to do it? I tried to bring the linkbar to the front and the image to the back but i am going nowhere fast. Thanks, Sonny
[flexcoders] LinkBar | mx:dataProvider | does not work
Hi I have below sample code(Code1) which is working fine and i have taken from livedocs. Now i have made modification to code1 and changed to code2. In code2 i am declaring the dataprovider property of the linkbar in a different way.I am using the mx:dataProvider tag.In this case linkbar does not show viewstack contents. I have been putting my head into this but could not find any solution. Any pointers are highly appreciated. Thanks Rajan Code1: ?xml version=1.0? !-- Simple example to demonstrate the LinkBar control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=LinkBar Control Example height=75% width=75% horizontalAlign=center paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:LinkBar color=#FF fontWeight=bold dataProvider={myViewStack}/ !-- Define the ViewStack and the two child containers. -- mx:ViewStack id=myViewStack borderStyle=solid width=100% height=80% mx:Canvas id=search backgroundColor=#CC label=Search width=100% height=100% mx:Label text=Search Screen color=#00/ /mx:Canvas mx:Canvas id=custInfo backgroundColor=#CC label=Customer Info width=100% height=100% mx:Label text=Customer Info color=#00/ /mx:Canvas mx:Canvas id=accountInfo backgroundColor=#FFCCFF label=Account Info width=100% height=100% mx:Label text=Account Info color=#00/ /mx:Canvas /mx:ViewStack /mx:Panel /mx:Application Code2: ?xml version=1.0? !-- Simple example to demonstrate the LinkBar control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=LinkBar Control Example height=75% width=75% horizontalAlign=center paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:LinkBar color=#FF fontWeight=bold mx:dataProvider !-- Define the ViewStack and the two child containers. -- mx:ViewStack id=myViewStack borderStyle=solid width=100% height=80% mx:Canvas id=search backgroundColor=#CC label=Search width=100% height=100% mx:Label text=Search Screen color=#00/ /mx:Canvas mx:Canvas id=custInfo backgroundColor=#CC label=Customer Info width=100% height=100% mx:Label text=Customer Info color=#00/ /mx:Canvas mx:Canvas id=accountInfo backgroundColor=#FFCCFF label=Account Info width=100% height=100% mx:Label text=Account Info color=#00/ /mx:Canvas /mx:ViewStack /mx:dataProvider /mx:LinkBar /mx:Panel /mx:Application
[flexcoders] linkbar removeAllChildren error in safari.... ???
I have a strange error... I have a linkbar that is being dynamically populated. I need to be able to refresh the link bar. So I have this code: http://pastebin.com/m78e78eb0 When I click the clear button which calls removeAllChildren() for the linkbar, I get this error: TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::rawChildren_getChildI ndex()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:3879] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::rawChildren_removeC hild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:3813] at mx.core::ContainerRawChildrenList/removeChild()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\ContainerRawChildrenList.as:157] at mx.controls::LinkBar/childRemoveHandler()[E:\dev\3.1.0\frameworks\projects\framework \src\mx\controls\LinkBar.as:560] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() etc, etc... What's really weird is that I only get this error when using safari. If I look at the same code using firefox, I get no error. Does anyone have any clue what I'm doing wrong? I really need to be able to do this, and I can't seem to find a solution. Thanks!! Adam
[flexcoders] LinkBar + ViewStack + Adding and removing children = wierdness
Here's the simple use case: I have a viewstack with a few components. Each of these is based on a panel. The linkbar controls the viewstack When the user logs in I remove a child and add two children to the viewstack When the user logs out I remove the two children I previously added and readd the child I removed previously. On login and logout I set the selectedIndex of the viewstack to 0. Everything seems to work perfectly fine except when the last child of the viewstack is selected. The child at index 0 is selected but the view is not updated to reflect the selection. here's some sample code: private function handleSuccessfulLogin(evt:CustomEvent):void { views.removeChildAt(1); var eventManagerScreen:EventManager = new EventManager(); eventManagerScreen.label = Event Manager; eventManagerScreen.title = Event Manager; eventManagerScreen.percentHeight = 100; eventManagerScreen.percentWidth = 100; var profileScreen:Profile = new Profile(); profileScreen.label = Profile; profileScreen.title = Profile; profileScreen.percentHeight = 100; profileScreen.percentWidth = 100; views.addChildAt(eventManagerScreen, 1); views.addChildAt(profileScreen, 2); views.selectedIndex = 0; } private function doLogout():void { views.removeChildAt(2); views.removeChildAt(1); var registrationScreen:RegistrationScreen = new RegistrationScreen(); registrationScreen.label = Register; registrationScreen.title = Register; registrationScreen.percentHeight = 100; registrationScreen.percentWidth = 100; views.addChildAt(registrationScreen,1); views.selectedIndex = 0; } mx:ViewStack id=views width=100% height=100% selectedIndex=0 ui:EventDisplay id=eventDisplay label=Events width=100% height=100%/ ui:FAQ id=faq label=FAQ title=FAQ width=100% height=100%/ /mx:ViewStack
RE: [flexcoders] LinkBar + ViewStack + Adding and removing children = wierdness
That sounds like a crazy amount of work. Are you manipulating the ViewStack just to control what is visible on the link bar? Just leave the viewstack alone, use a separate dataProvider for the link bar, and manipulate that directly to control access the the ViewStack. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of TJ Downes Sent: Tuesday, September 23, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar + ViewStack + Adding and removing children = wierdness Here's the simple use case: I have a viewstack with a few components. Each of these is based on a panel. The linkbar controls the viewstack When the user logs in I remove a child and add two children to the viewstack When the user logs out I remove the two children I previously added and readd the child I removed previously. On login and logout I set the selectedIndex of the viewstack to 0. Everything seems to work perfectly fine except when the last child of the viewstack is selected. The child at index 0 is selected but the view is not updated to reflect the selection. here's some sample code: private function handleSuccessfulLogin(evt:CustomEvent):void { views.removeChildAt(1); var eventManagerScreen:EventManager = new EventManager(); eventManagerScreen.label = Event Manager; eventManagerScreen.title = Event Manager; eventManagerScreen.percentHeight = 100; eventManagerScreen.percentWidth = 100; var profileScreen:Profile = new Profile(); profileScreen.label = Profile; profileScreen.title = Profile; profileScreen.percentHeight = 100; profileScreen.percentWidth = 100; views.addChildAt(eventManagerScreen, 1); views.addChildAt(profileScreen, 2); views.selectedIndex = 0; } private function doLogout():void { views.removeChildAt(2); views.removeChildAt(1); var registrationScreen:RegistrationScreen = new RegistrationScreen(); registrationScreen.label = Register; registrationScreen.title = Register; registrationScreen.percentHeight = 100; registrationScreen.percentWidth = 100; views.addChildAt(registrationScreen,1); views.selectedIndex = 0; } mx:ViewStack id=views width=100% height=100% selectedIndex=0 ui:EventDisplay id=eventDisplay label=Events width=100% height=100%/ ui:FAQ id=faq label=FAQ title=FAQ width=100% height=100%/ /mx:ViewStack
[flexcoders] LinkBar - Image instead of text?
Hi, can I put an image, instead of a string, as an item in a linkbar? Thanks, -c.
[flexcoders] LinkBar Font Color
Hi, In my linkBar, I need to change the 'font color' yellow when I rollOver the mouse over the item and 'red' when I click on the item I am using selectionColor and rollOverColor but they are unable to change the font color or the item but changing the background of that link. How can I change the font color without changing the background color of the link bar item. Here is my code lt;?xml version=1.0 encoding=utf-8?gt; lt;mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=#ff backgroundGradientAlphas=[1.0, 1.0] backgroundGradientColors=[#00, #00]gt; lt;mx:LinkBar styleName=LBar dataProvider={myViewStack} x=359 color=#ff rollOverColor=#f1c90e selectionColor=#f11e0e/gt; lt;mx:ViewStack id=myViewStack top=30 width=100% height=100% horizontalCenter=150gt; lt;mx:Canvas id=homepage label=HOME PAGE verticalScrollPolicy=off horizontalScrollPolicy=off height=100% width=100%gt; lt;/mx:Canvasgt; lt;mx:Canvas id=aboutus backgroundColor=#cc55cc height=100% width=100% label=ABOUT USgt; lt;/mx:Canvasgt; lt;mx:Canvas id=solutions backgroundColor=#cc height=100% width=100% label=SOLUTIONSgt; lt;/mx:Canvasgt; lt;mx:Canvas id=services backgroundColor=#ff height=100% width=100% label=SERVICESgt; lt;/mx:Canvasgt; lt;mx:Canvas id=contacts backgroundColor=#cc00ff height=100% width=100% label=CONTACTSgt; lt;/mx:Canvasgt; lt;/mx:ViewStackgt; lt;/mx:Applicationgt;
[flexcoders] LinkBar Question, How to get LinkBar item details programmatically?
Hi All, How to get the data behind a LinkBar item (e.g URL) on right mouse click? I have a LinkBar with 4 different items and a ContextMenu attached to the LinkBar. When user right click on each link the contextmenu give the option to open the link in a Tab or an external Browser window. I want to pass the URL behind each link item programmatically to my contextmenu. Thanks VN
[flexcoders] Linkbar Selectedindex without index. Bug is acknowledged, but any workaround?
I've hit a bug in the Linkbar control which seems to be known already (https://bugs.adobe.com/jira/browse/SDK-9773). To keep it short, the bug is that you cannot bind the selectedIndex of the linkbar to something (returning an int) because the enabled state will not be updated. I was wondering if anybody has a working workaround for it (the code example in the bugviewer did nothing for me, broke the whole linkbar which didn't even show itself anymore). Any help appreciated. Cheers, Ben P.S. I am not using the linkbar in combination with a viewstack...
[flexcoders] LinkBar and embedded fonts
Hi - Anyone else getting funky style changes when they use an embedded font in a LinkBar? I have a design heavy site that uses embedded fonts and I originally rolled my own navigation using states and rollover events for the color changes. The code was pretty ugly and I realized that this is exactly what LinkBar is supposed to do. But once I started using LinkBar is does funny things when I use the embedded font instead of a system font. The main problem is that it seems to automatically make the verticalAlign = top instead of middle which is what you want in a link bar, i.e. when I use the embedded font all of a sudden the text is much higher than the dividers. Tried some workarounds with padding and such but shouldn't this work correctly? Or should I just roll my own so I have more control? thanks...
[flexcoders] LinkBar problem:using linkbar with array
I got a problem when trying to use LinkBar with array. I use a String Array as the dataprovider of a linkbar. But the problem is that the selected linkbutton is still use the same style with others. But when the LinkBar 's dataprovider is set to a viewstack. The selected linkBar always use a diffent style with others. Is there anyway to use LinkBar with Array, but still archive the same results? That means when you select a linkButton of the linkBar, it will use a different style with others reference code mx:Array id = tabData mx:Stringa/mx:String mx:Stringb/mx:String mx:Stringc/mx:String mx:Stringd/mx:String mx:Stringe/mx:String /mx:Array mx:LinkBar id=tab dataProvider={tabData} /mx:LinkBar
[flexcoders] linkbar selectedItem = -1 bounds error
I have the code below. It is 2 LinkBars, each directed at a view stack, and the view stacks are in a view stack themselves. As you can see, in the item click events for the link bars, i am telling the outer view stack to display the correct child view stack that corresponds to the link bar that was clicked. One problem: if I click a link in link bar 2, the last item clicked in link bar 1 will still be grayed out. I want to add this code in the itemClicks: other-link-bar-id.selectedIndex = -1; Unfortunately this throws this error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.skins.halo::[EMAIL PROTECTED] to mx.controls.Button. at this line in LinkBar.as: child = Button(getChildAt(selectedIndex)); Anyone understand this? CODE: -- mx:HBox mx:Label text=Links: width=100 textAlign=right fontWeight=bold fontSize=13 paddingTop=2/ mx:LinkBar id=detailLinks dataProvider={detailStack} itemClick=globalStack.selectedIndex = 0; / /mx:HBox mx:HBox mx:Label text=Links: width=100 textAlign=right fontWeight=bold fontSize=13 paddingTop=2/ mx:LinkBar id=organizerLinks dataProvider={organizerStack} itemClick=globalStack.selectedIndex = 1; / /mx:HBox mx:HRule width=100%/ mx:ViewStack id=globalStack width=100% height=100% mx:ViewStack id=detailStack width=100% height=100% / mx:ViewStack id=organizerStack width=100% height=100% / /mx:ViewStack
Re: [flexcoders] linkbar selectedItem = -1 bounds error
On 5/7/07, arieljake [EMAIL PROTECTED] wrote: I want to add this code in the itemClicks: other-link-bar-id.selectedIndex = -1; Unfortunately this throws this error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.skins.halo::[EMAIL PROTECTED] to mx.controls.Button. The selectedIndex can't be -1 for a LinkBar connected to a view stack. -1 is the default value *only* if there's no view stack (the link bar is uninitialised).
[flexcoders] LinkBar - Programmatically selection
Hi All, Is there any way to select LinkBar index programmatically like it is there in TabNavigator.selectedIndex ?? Regards, Satish
[flexcoders] LinkBar and CSS Style
I am hoping to change the color of my text in a link bar, this is what I have so far. Not so sure where or what to do next. mx:Style LinkBar { color: #00; text-selected-color: #ff; } /mx:Style
[flexcoders] LinkBar ViewStack Problem
Hello all! I've been having this particular problem, I have 2 canvas inside a viewStack, lest say something like: mx:ViewStack id=viewStack width=100% height=100% mx:Canvas id=list label=List mx:DataGrid doubleClickEnabled=true doubleClick=viewStack.selectedIndex = 1; input.text=list.selectedItem.someValue /mx:DataGrid /mx:Canvas mx:Canvas id=form label=Form mx:TextInput id=input/ /mx:Canvas /mx:ViewStack Its simple, but whenever I double-click on the DataGrid, Flex gives an error saying that it can't access a null object (referring to the textinput input that is defined inside the second Canvas and is hidden). I've noticed that when one uses viewstacks or accordions and wants to access to an object inside a container that is hidden to initialize it, there is no way to access it. I've tried selecting the canvas first and then assinging the data, like I did in the code above, but doesn't work either. I really need help with this, otherwise Im gonna have to change the layout of the hall application. Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
Re: [flexcoders] LinkBar ViewStack Problem
This is a creation issue. Basically, the input text field is not 'created' yet. You have a couple of options. The simplest, is just bind the text of the input to the value you want to store there.mx:TextInput text={ list.selectedItem.somevalue}/There are other options, but that should get you going.On 10/17/06, Daniel [EMAIL PROTECTED] wrote: Hello all! I've been having this particular problem, I have 2 canvas inside a viewStack, lest say something like: mx:ViewStack id=viewStack width=100% height=100% mx:Canvas id=list label=List mx:DataGrid doubleClickEnabled=true doubleClick=viewStack.selectedIndex = 1; input.text=list.selectedItem.someValue /mx:DataGrid /mx:Canvas mx:Canvas id=form label=Form mx:TextInput id=input/ /mx:Canvas /mx:ViewStack Its simple, but whenever I double-click on the DataGrid, Flex gives an error saying that it can't access a null object (referring to the textinput input that is defined inside the second Canvas and is hidden). I've noticed that when one uses viewstacks or accordions and wants to access to an object inside a container that is hidden to initialize it, there is no way to access it. I've tried selecting the canvas first and then assinging the data, like I did in the code above, but doesn't work either. I really need help with this, otherwise Im gonna have to change the layout of the hall application. Thanks in advance! -- diabetic? http://www.diabetesforums.comAlbert Einstein - It's not that I'm so smart, it's just that I stay with problems longer. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] LinkBar ViewStack Problem
Try setting creationPolicy=all on your viewstack. This will ensure that the child components have been created. FYI You do not want to use this approach too often, especially on deeply nested components. It can drastically increase the initialization time of your applications. It might be a better approach to bind the textinput text value to the datagrids selected item mx:TextInput id=input text={list.selectedItem.someValue} / _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sent: Tuesday, October 17, 2006 11:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar ViewStack Problem Hello all! I've been having this particular problem, I have 2 canvas inside a viewStack, lest say something like: mx:ViewStack id=viewStack width=100% height=100% mx:Canvas id=list label=List mx:DataGrid doubleClickEnabled=true doubleClick=viewStack.selectedIndex = 1; input.text=list.selectedItem.someValue /mx:DataGrid /mx:Canvas mx:Canvas id=form label=Form mx:TextInput id=input/ /mx:Canvas /mx:ViewStack Its simple, but whenever I double-click on the DataGrid, Flex gives an error saying that it can't access a null object (referring to the textinput input that is defined inside the second Canvas and is hidden). I've noticed that when one uses viewstacks or accordions and wants to access to an object inside a container that is hidden to initialize it, there is no way to access it. I've tried selecting the canvas first and then assinging the data, like I did in the code above, but doesn't work either. I really need help with this, otherwise Im gonna have to change the layout of the hall application. Thanks in advance! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] LinkBar for viewStack
Is this 1.5 or 2.0? I don't remember, it's possible the selected property will keep the link highlighted? So you could then do linkBar.getChildAt(event.index).selected = true. There isn't a direct way to get that id that you're looking for. But you can take the event's index to find the right item in the dataProvider and then pull a property off that way. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Friday, February 24, 2006 7:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar for viewStack I would like to know if there is a way to allow a link that has been clicked to stay highlighted with relation to what viewstack item is displayed? I have all forms under one viewstack (on the right), with multiple navigation menus/linkbars (in another viewstack on the left...vertical alignment). At the moment I am using vs.selectedChild for each link to specify which viewStack component to navigate to, but links will not stay highlighted with regards to their given component. Is there a propery that will allow this? Also, is there a way to pass an ID instead of the string for a reference in a click event as shown below? Thanks, event.id does not work...I want to pass the id of the string and not the label. mx:LinkBar click={'vs.selectedChild=' + String(event.id)} direction=vertical mx:dataProvider mx:Array mx:String id=link1Link 1/mx:String mx:String id=link2Link 2/mx:String /mx:Array /mx:dataProvider /mx:LinkBar -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] LinkBar for viewStack
I would like to know if there is a way to allow a link that has been clicked to stay highlighted with relation to what viewstack item is displayed? I have all forms under one viewstack (on the right), with multiple navigation menus/linkbars (in another viewstack on the left...vertical alignment). At the moment I am using vs.selectedChild for each link to specify which viewStack component to navigate to, but links will not stay highlighted with regards to their given component. Is there a propery that will allow this? Also, is there a way to pass an ID instead of the string for a reference in a click event as shown below? Thanks, event.id does not work...I want to pass the id of the string and not the label. mx:LinkBar click={'vs.selectedChild=' + String(event.id)} direction=vertical mx:dataProvider mx:Array mx:String id=link1Link 1/mx:String mx:String id=link2Link 2/mx:String /mx:Array /mx:dataProvider /mx:LinkBar -- 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] LinkBar for viewStack
I think this is what you are looking for: mx:LinkBar dataProvider=myViewStack / On 2/24/06, rgwilson26 [EMAIL PROTECTED] wrote: I would like to know if there is a way to allow a link that has been clicked to stay highlighted with relation to what viewstack item is displayed? I have all forms under one viewstack (on the right), with multiple navigation menus/linkbars (in another viewstack on the left...vertical alignment). At the moment I am using vs.selectedChild for each link to specify which viewStack component to navigate to, but links will not stay highlighted with regards to their given component. Is there a propery that will allow this? Also, is there a way to pass an ID instead of the string for a reference in a click event as shown below? Thanks, event.id does not work...I want to pass the id of the string and not the label. mx:LinkBar click={'vs.selectedChild=' + String(event.id)} direction=vertical mx:dataProvider mx:Array mx:String id=link1Link 1/mx:String mx:String id=link2Link 2/mx:String /mx:Array /mx:dataProvider /mx:LinkBar -- 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 -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 -- 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] LinkBar questions - Flex 1.5
The problem is the 100% specifications on everything. Something has to limit the HBox's width to the ViewStack's width, otherwise the whole Application will grow to a size that contains everything without scrolling. Try this: mx:HBox width={vs.width} hScrollPolicy=auto ... . .. .j Graham, Jason wrote: Heres basically what I did, the LinkBar still forces the application to resize to the length of the link bar. TabBar has the same behavior. I tried hScrollPolicy=”auto” also, tried putting the hScrollPolicy on the linkbar as well. Still no work, the HBox doesn’t seem to have any affect. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:HBox width=100% hScrollPolicy=on mx:LinkBar dataProvider=vs/mx:LinkBar /mx:HBox mx:ViewStack id=vs width=100% height=100% mx:Panel title=1 label=TESTING LINK BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=2 label=TESTING LINK 1BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=3 label=TESTING LINK 2 width=100% height=100%/mx:Panel mx:Panel title=4 label=TESTING LINK 3BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=5 label=TESTING LINK 4BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=6 label=TESTING LINK 5BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=7 label=TESTING LINK 6BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=8 label=TESTING LINK 7BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=9 label=TESTING LINK 8BAR LENGTH width=100% height=100%/mx:Panel /mx:ViewStack /mx:Application *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *JesterXL *Sent:* Wednesday, February 15, 2006 8:01 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] LinkBar questions - Flex 1.5 Bug? :: shugs :: Fix? Throw it in an HBox with hScrollPolicy = auto - Original Message - *From:* Graham, Jason mailto:[EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Sent:* Wednesday, February 15, 2006 8:40 PM *Subject:* [flexcoders] LinkBar questions - Flex 1.5 The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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+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+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=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=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+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+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=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+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 an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms
[flexcoders] LinkBar questions - Flex 1.5
The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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] LinkBar questions - Flex 1.5
Bug? :: shugs :: Fix? Throw it in an HBox with hScrollPolicy = "auto" - Original Message - From: Graham, Jason To: flexcoders@yahoogroups.com Sent: Wednesday, February 15, 2006 8:40 PM Subject: [flexcoders] LinkBar questions - Flex 1.5 The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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] LinkBar questions - Flex 1.5
Heres basically what I did, the LinkBar still forces the application to resize to the length of the link bar. TabBar has the same behavior. I tried hScrollPolicy=auto also, tried putting the hScrollPolicy on the linkbar as well. Still no work, the HBox doesnt seem to have any affect. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:HBox width=100% hScrollPolicy=on mx:LinkBar dataProvider=vs/mx:LinkBar /mx:HBox mx:ViewStack id=vs width=100% height=100% mx:Panel title=1 label=TESTING LINK BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=2 label=TESTING LINK 1BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=3 label=TESTING LINK 2 width=100% height=100%/mx:Panel mx:Panel title=4 label=TESTING LINK 3BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=5 label=TESTING LINK 4BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=6 label=TESTING LINK 5BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=7 label=TESTING LINK 6BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=8 label=TESTING LINK 7BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=9 label=TESTING LINK 8BAR LENGTH width=100% height=100%/mx:Panel /mx:ViewStack /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, February 15, 2006 8:01 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] LinkBar questions - Flex 1.5 Bug? :: shugs :: Fix? Throw it in an HBox with hScrollPolicy = auto - Original Message - From: Graham, Jason To: flexcoders@yahoogroups.com Sent: Wednesday, February 15, 2006 8:40 PM Subject: [flexcoders] LinkBar questions - Flex 1.5 The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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] LinkBar
Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] LinkBar
Hi, You can achieve this by using disabledColor style: mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:LinkBar borderStyle="solid" dataProvider="vs" disabledColor="0xFF" / mx:ViewStack id="vs" mx:HBox label="View 1" mx:Label text="HBox 1" / /mx:HBox mx:HBox label="View 2" mx:Label text="HBox 2" / /mx:HBox /mx:ViewStack/mx:Application FYI! Similar topic has been discussed recently, you can search archives to learn more about this. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim ReddingtonSent: Saturday, July 02, 2005 12:43 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] LinkBar Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] LinkBar
Kim, for all style issues you can use this as a good resource http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Kim Reddington Sent: 01 July 2005 20:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] LinkBar
Title: Re: [flexcoders] LinkBar disabledColor See http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html -peter On 7/1/05 3:13 PM, Kim Reddington [EMAIL PROTECTED] wrote: Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] mailto:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS 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] LinkBar
What I guess from above your code is, you don't need a ViewStack. You want a LinkBar with two buttons, where only one button can be selected. But that behavior is only possible if LinkBar is associated with a ViewStack. But the similar thing has been discussed recently and some suggestions were made. You can look at following link, the similar question was discussed last week. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09444.html This paragraph explains the behavior of LinkBar in two scenarios (with ViewStack or without ViewStack): [The LinkBar disables the selected link only when it is connected to a ViewStack. For the non-ViewStack case, there's no selected link (you can keep clicking on the same one -- the idea is to invoke a function like Add or Remove or Visit google.com or something).] See this code, taken from that thread itself. I am sure, this would solve ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:LinkBar disabledColor=#FF dataProvider={['Inside Right', 'Back']} click=enableDisableLink(event.target, event.index) creationComplete=enableDisableLink(event.target, 0) / mx:Script import mx.containers.LinkBar; private var lastSelectedIndex:Number; public function enableDisableLink(linkBar:LinkBar, index:Number):Void { linkBar.getChildAt(lastSelectedIndex).enabled = true; linkBar.getChildAt(index).enabled = false; lastSelectedIndex = index; } /mx:Script /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 2:45 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar This suggestion works great in changing the color when the link is selected, but now the function that is supposed to run when the link is clicked does not seem to get called. Here are the pieces of the code for the sample. function changeCardSide(side:String ) { mx.controls.Alert.show(yes, entered function); } mx:LinkBar click=changeCardSide( event.target ); disabledColor=#99 dataProvider=LinkBarStack2/ mx:ViewStack id=LinkBarStack2 mx:HBox label=Inside Right / mx:HBox label=Back / /mx:ViewStack Thanks, Kim --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, You can achieve this by using disabledColor style: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:LinkBar borderStyle=solid dataProvider=vs disabledColor=0xFF / mx:ViewStack id=vs mx:HBox label=View 1 mx:Label text=HBox 1 / /mx:HBox mx:HBox label=View 2 mx:Label text=HBox 2 / /mx:HBox /mx:ViewStack /mx:Application FYI! Similar topic has been discussed recently, you can search archives to learn more about this. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington Sent: Saturday, July 02, 2005 12:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . --- End forwarded message --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] LinkBar
First of all, I want to thank everyone for their suggestions. They are all great suggestions, but I am still stuck. I have looked at past threads and they don't seem to be answering my question. What I did was take the code from Abdul and modify it to mimic what I would like my code to do. The problem is I cannot get the click to work. It is not entering the function test when I click on the link. The disabled color is working fine and the way i need it to work. I now just need to get the click to work. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function test() { mx.controls.Alert.show(entered test); ]] /mx:Script mx:LinkBar click=test() borderStyle=solid dataProvider=vs disabledColor=0xFF / mx:ViewStack id=vs mx:HBox label=View 1 mx:Label text=HBox 1 / /mx:HBox mx:HBox label=View 2 mx:Label text=HBox 2 / /mx:HBox /mx:ViewStack /mx:Application Thank you! Kim --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi Kim, disabled-color would apply on disabled link buttons. In your case, button might not be getting disabled because LinkBar is not associated with ViewStack. The LinkBar you see in FlexStyleExplorer might be associated with ViewStack internally. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 3:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] LinkBar I tried using the LinkBar { disabled-color: #CC; } that this link recommends, but it doesn't seem to keep the color. I notice that it works in the FlexExplorer example, but I can't seem to get it working in my code. What am I doing wrong? Thanks, Kim --- In flexcoders@yahoogroups.com, Peter Baird [EMAIL PROTECTED] wrote: disabledColor See http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html -peter On 7/1/05 3:13 PM, Kim Reddington [EMAIL PROTECTED] wrote: Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] mailto:[EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . --- End forwarded message --- -- 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 --- End forwarded message --- -- 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] LinkBar
Hi, What exactly you want to do? Kindly give us some more information about. I think, if you are not using ViewStack, then don't keep in your code. There are better way to mimic... Look at this code again, I think it is what you are looking for: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script import mx.containers.LinkBar; private var lastSelectedIndex:Number; public function enableDisableLink(linkBar:LinkBar,index:Number):Void { linkBar.getChildAt(lastSelectedIndex).enabled = true; linkBar.getChildAt(index).enabled = false; lastSelectedIndex = index; //invoke the click code. onLinkClick(linkBar, index) } function onLinkClick(linkBar, index) { alert(index + Link clicked); } /mx:Script mx:LinkBar disabledColor=#FF dataProvider={['Inside Right', 'Back']} click=enableDisableLink(event.target, event.index) creationComplete=enableDisableLink(event.target, 0)/ /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 4:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar First of all, I want to thank everyone for their suggestions. They are all great suggestions, but I am still stuck. I have looked at past threads and they don't seem to be answering my question. What I did was take the code from Abdul and modify it to mimic what I would like my code to do. The problem is I cannot get the click to work. It is not entering the function test when I click on the link. The disabled color is working fine and the way i need it to work. I now just need to get the click to work. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function test() { mx.controls.Alert.show(entered test); ]] /mx:Script mx:LinkBar click=test() borderStyle=solid dataProvider=vs disabledColor=0xFF / mx:ViewStack id=vs mx:HBox label=View 1 mx:Label text=HBox 1 / /mx:HBox mx:HBox label=View 2 mx:Label text=HBox 2 / /mx:HBox /mx:ViewStack /mx:Application Thank you! Kim --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi Kim, disabled-color would apply on disabled link buttons. In your case, button might not be getting disabled because LinkBar is not associated with ViewStack. The LinkBar you see in FlexStyleExplorer might be associated with ViewStack internally. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 3:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] LinkBar I tried using the LinkBar { disabled-color: #CC; } that this link recommends, but it doesn't seem to keep the color. I notice that it works in the FlexExplorer example, but I can't seem to get it working in my code. What am I doing wrong? Thanks, Kim --- In flexcoders@yahoogroups.com, Peter Baird [EMAIL PROTECTED] wrote: disabledColor See http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html -peter On 7/1/05 3:13 PM, Kim Reddington [EMAIL PROTECTED] wrote: Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] mailto:[EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . --- End forwarded message --- -- 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 --- End forwarded message --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go
RE: [flexcoders] LinkBar
I was using the ViewStack, but that seemed to be my problem. I implemented similar code to what you offered below. Everything works great now. Thank you for your patience and your help. Kim --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, What exactly you want to do? Kindly give us some more information about. I think, if you are not using ViewStack, then don't keep in your code. There are better way to mimic... Look at this code again, I think it is what you are looking for: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script import mx.containers.LinkBar; private var lastSelectedIndex:Number; public function enableDisableLink (linkBar:LinkBar,index:Number):Void { linkBar.getChildAt(lastSelectedIndex).enabled = true; linkBar.getChildAt(index).enabled = false; lastSelectedIndex = index; //invoke the click code. onLinkClick(linkBar, index) } function onLinkClick(linkBar, index) { alert(index + Link clicked); } /mx:Script mx:LinkBar disabledColor=#FF dataProvider={['Inside Right', 'Back']} click=enableDisableLink(event.target, event.index) creationComplete=enableDisableLink(event.target, 0)/ /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 4:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar First of all, I want to thank everyone for their suggestions. They are all great suggestions, but I am still stuck. I have looked at past threads and they don't seem to be answering my question. What I did was take the code from Abdul and modify it to mimic what I would like my code to do. The problem is I cannot get the click to work. It is not entering the function test when I click on the link. The disabled color is working fine and the way i need it to work. I now just need to get the click to work. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function test() { mx.controls.Alert.show(entered test); ]] /mx:Script mx:LinkBar click=test() borderStyle=solid dataProvider=vs disabledColor=0xFF / mx:ViewStack id=vs mx:HBox label=View 1 mx:Label text=HBox 1 / /mx:HBox mx:HBox label=View 2 mx:Label text=HBox 2 / /mx:HBox /mx:ViewStack /mx:Application Thank you! Kim --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi Kim, disabled-color would apply on disabled link buttons. In your case, button might not be getting disabled because LinkBar is not associated with ViewStack. The LinkBar you see in FlexStyleExplorer might be associated with ViewStack internally. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kreddington1 Sent: Saturday, July 02, 2005 3:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] LinkBar I tried using the LinkBar { disabled-color: #CC; } that this link recommends, but it doesn't seem to keep the color. I notice that it works in the FlexExplorer example, but I can't seem to get it working in my code. What am I doing wrong? Thanks, Kim --- In flexcoders@yahoogroups.com, Peter Baird [EMAIL PROTECTED] wrote: disabledColor See http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html -peter On 7/1/05 3:13 PM, Kim Reddington [EMAIL PROTECTED] wrote: Is there anyway that I can have the text of the selected link label be a different color? I know that there is textSelectedColor, but this only changes the color when you actually press down the mouse button. I would like the link to stay that color until another link is selected. Thanks, Kim -- 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] mailto:[EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . --- End forwarded message --- -- 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 --- End forwarded message --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders
RE: [flexcoders] LinkBar question
hi now i am able to all things in flex but some problem is how to embed html tag in the line example click here to login i want when user click on the click here text the login page opens i want this by href tag of html how can i do it please help me . thanks Bikram -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Robert BrueckmannSent: Thursday, June 23, 2005 9:55 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Coolthanks Phillipe for the helpkind of funny how you can only set certain attributes like that. Thanks again. robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe MaegermanSent: Thursday, June 23, 2005 11:15 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Maybe this, I couldn't change the backgroundColor or backgroundDisabledColor even if it says those styles are inherited fromUIComponent :( http://livedocs.macromedia.com/flex/15/asdocs_en/mx/containers/LinkBar.html#styles ?xml version="1.0"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#DEDEDE" mx:Script![CDATA[function doLinkBar(event){for(var i=0; ievent.target.numChildren; i++){var curItem = event.target.getChildAt(i);i==event.index ? curItem.setStyle("color", 0xFF) : curItem.setStyle("color", 0x00);}}]]/mx:Scriptmx:LinkBar disabledColor="#FF" dataProvider="{['Flash','Director']}" click="doLinkBar(event)"/mx:LinkBar/mx:Application Philippe Maegerman Webdeveloper +32 2 400 40 39 +32 472 35 28 10 http://pimz.blogspot.com http://cfpim.blogspot.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: jeudi 23 juin 2005 15:05To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Yeah, definitely doesnt work the way I have it set upI have all the levels of the viewstack statically listed in my MXML file but based on a users security they only have access to maybe 3 of the levels of the view stack, hence the link bar links are generated dynamically based on a database callso I have a doLink method being called on the click listener of the link bar component that handles which link is clicked and which level of the view stack to showsince theyre not coupled like in your example Ashish, the disabled link color doesnt seem to work at all. Is there a work around for this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe MaegermanSent: Thursday, June 23, 2005 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question It seems to work when the ViewStack is the dataProvider, but not when using the LinkBar alone, bug or wish ? :) ?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel title="Link Bar Panel" mx:LinkBar disabledColor="#FF" dataProvider="{['Flash','Director']}" //mx:Panel/mx:Application Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish GoyalSent: jeudi 23 juin 2005 1:09To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question I have just emulatedyour scenario. In this case the active link color will change to red. Let me know if that doesn't work for you. ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600" mx:ViewStack height="300" width="400" id="ViewStack1"mx:VBox width="100%" height="100%" label="View1" mx:Button label="Button1"//mx:VBoxmx:VBox width="100%" height="100%" label="View2" mx:Button label="Button2"//mx:VBoxmx:VBox width="100%" height="100%" label="View3" mx:Button label="Button3"//mx:VBoxmx:VBox width="100%" height="100%" label="View4" mx:Button label="Button4"//mx:VBox/mx:ViewStack mx:LinkBar dataProvider="ViewStack1" di
RE: [flexcoders] LinkBar question
Thanks for the distinction. Here below a revised version of what I proposed. As I was only changing the color property, the link was not really disabled ;) However, it would have been nice to have the 'lastSelectedIndex' property in the component (I guess inViewStack) ?xml version="1.0"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#DEDEDE" mx:Script![CDATA[function doLinkBar(event){for(var i=0; ievent.target.numChildren; i++){event.target.getChildAt(i).enabled = i==event.index ? false : true;}}]]/mx:Scriptmx:LinkBar dataProvider="{['Flex','Flash','Director']}" click="doLinkBar(event)" disabledColor="#FF"//mx:Application Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: vendredi 24 juin 2005 13:56To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] LinkBar question On 6/23/05, Philippe Maegerman [EMAIL PROTECTED] wrote: It seems to work when the ViewStack is the dataProvider, but not when using the LinkBar alone, bug or wish ? :) The LinkBar disables the "selected link" only when it is connected toa ViewStack. For the non-ViewStack case, there's no "selected link"(you can keep clicking on the same one -- the idea is to invoke afunction like Add or Remove or Visit google.com or something).If however you want to make it behave like there's only one selectedlink at a time, see this example (yeah, so you have to write somecode):?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" mx:LinkBar disabledColor="#FF" dataProvider="{['1', '2', '3']}" click="enableDisableLink(event.target, event.index)" creationComplete="enableDisableLink(event.target, 0)" / mx:Script import mx.containers.LinkBar; private var lastSelectedIndex:Number; public function enableDisableLink(linkBar:LinkBar, index:Number):Void { linkBar.getChildAt(lastSelectedIndex).enabled = true; linkBar.getChildAt(index).enabled = false; lastSelectedIndex = index; } /mx:Script/mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
Re: [flexcoders] LinkBar question
On 6/24/05, Philippe Maegerman [EMAIL PROTECTED] wrote: However, it would have been nice to have the 'lastSelectedIndex' property in the component (I guess in ViewStack) Sounds like a feature request. Can you log it, please? http://www.macromedia.com/support/email/wishform/ Personally, I don't like the idea of having this property because we don't have enough use cases (most of the time the property would go unused and add to the code size unnecessarily, and for the 1% cases the developer can always do the book-keeping themselves). -- 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] LinkBar question
Agreed not to mentioned it could be a Garbage Collection hazard if not treated with care? On 6/24/05, Manish Jethani [EMAIL PROTECTED] wrote: On 6/24/05, Philippe Maegerman [EMAIL PROTECTED] wrote: However, it would have been nice to have the 'lastSelectedIndex' property in the component (I guess in ViewStack) Sounds like a feature request. Can you log it, please? http://www.macromedia.com/support/email/wishform/ Personally, I don't like the idea of having this property because we don't have enough use cases (most of the time the property would go unused and add to the code size unnecessarily, and for the 1% cases the developer can always do the book-keeping themselves). -- 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 -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Waiting for FLEX NCL to arrive) -- 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] LinkBar question
On 6/24/05, Scott Barnes [EMAIL PROTECTED] wrote: Agreed not to mentioned it could be a Garbage Collection hazard if not treated with care? I think it'd just add to the memory usage and SWF file size, but I can't think of a reason it would affect garbage collection. -- 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] LinkBar question
o0oop sorry, i was thinking along the lines of lastChildSelected vs lastIndex (ie not a number but the actual ref to an object..ie i get nervous when byRef instead of byId is implemented in automatic gc). my bad, moment of clarity hit me this morning heh. On 6/25/05, Manish Jethani [EMAIL PROTECTED] wrote: On 6/24/05, Scott Barnes [EMAIL PROTECTED] wrote: Agreed not to mentioned it could be a Garbage Collection hazard if not treated with care? I think it'd just add to the memory usage and SWF file size, but I can't think of a reason it would affect garbage collection. -- 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 -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Waiting for FLEX NCL to arrive) -- 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] LinkBar question
It seems to work when the ViewStack is the dataProvider, but not when using the LinkBar alone, bug or wish ? :) ?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel title="Link Bar Panel" mx:LinkBar disabledColor="#FF" dataProvider="{['Flash','Director']}" //mx:Panel/mx:Application Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ashish GoyalSent: jeudi 23 juin 2005 1:09To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question I have just emulatedyour scenario. In this case the active link color will change to red. Let me know if that doesn't work for you. ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600" mx:ViewStack height="300" width="400" id="ViewStack1"mx:VBox width="100%" height="100%" label="View1" mx:Button label="Button1"//mx:VBoxmx:VBox width="100%" height="100%" label="View2" mx:Button label="Button2"//mx:VBoxmx:VBox width="100%" height="100%" label="View3" mx:Button label="Button3"//mx:VBoxmx:VBox width="100%" height="100%" label="View4" mx:Button label="Button4"//mx:VBox/mx:ViewStack mx:LinkBar dataProvider="ViewStack1" disabledColor="#FF"/ /mx:Application Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 11:57 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Not sure what you mean. Using the disabledCOlor attribute does nothing. I have a linkbar at the bottom of my page that navigates a viewstack which takes up the upper portion of the page. I want to be able to indicate to the user when they click on the link in the link bar which location theyve clicked on by either changing the color of the link they clicked on or leaving the background color that appears when you mouse over the link to indicate thats the last link they clicked on. How can I do this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish GoyalSent: Wednesday, June 22, 2005 1:33 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question You can have the selected link to show in a different color though instead of the default grey color for better visibility. Just set 'disabledColor' property on the link bar to the desired color. Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 8:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] LinkBar question Is there a way to leave the selection background behind the currentlyselected link in a LinkBar to indicate to the user which link iscurrently selected? None of the attributes seem to indicate anything ofthe sort, so I was curious if anyone is doing anything like this outthere?Thanks!robert l. brueckmannsenior web developermerlin securities595 madison avenuenew york, ny 10022p: 212.822.4821f: 212.822.4820This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are proh
RE: [flexcoders] LinkBar question
Maybe this, I couldn't change the backgroundColor or backgroundDisabledColor even if it says those styles are inherited fromUIComponent :( http://livedocs.macromedia.com/flex/15/asdocs_en/mx/containers/LinkBar.html#styles ?xml version="1.0"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#DEDEDE" mx:Script![CDATA[function doLinkBar(event){for(var i=0; ievent.target.numChildren; i++){var curItem = event.target.getChildAt(i);i==event.index ? curItem.setStyle("color", 0xFF) : curItem.setStyle("color", 0x00);}}]]/mx:Scriptmx:LinkBar disabledColor="#FF" dataProvider="{['Flash','Director']}" click="doLinkBar(event)"/mx:LinkBar/mx:Application Philippe Maegerman Webdeveloper +32 2 400 40 39 +32 472 35 28 10 http://pimz.blogspot.com http://cfpim.blogspot.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert BrueckmannSent: jeudi 23 juin 2005 15:05To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Yeah, definitely doesnt work the way I have it set upI have all the levels of the viewstack statically listed in my MXML file but based on a users security they only have access to maybe 3 of the levels of the view stack, hence the link bar links are generated dynamically based on a database callso I have a doLink method being called on the click listener of the link bar component that handles which link is clicked and which level of the view stack to showsince theyre not coupled like in your example Ashish, the disabled link color doesnt seem to work at all. Is there a work around for this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe MaegermanSent: Thursday, June 23, 2005 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question It seems to work when the ViewStack is the dataProvider, but not when using the LinkBar alone, bug or wish ? :) ?xml version="1.0"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel title="Link Bar Panel" mx:LinkBar disabledColor="#FF" dataProvider="{['Flash','Director']}" //mx:Panel/mx:Application Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish GoyalSent: jeudi 23 juin 2005 1:09To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question I have just emulatedyour scenario. In this case the active link color will change to red. Let me know if that doesn't work for you. ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600" mx:ViewStack height="300" width="400" id="ViewStack1"mx:VBox width="100%" height="100%" label="View1" mx:Button label="Button1"//mx:VBoxmx:VBox width="100%" height="100%" label="View2" mx:Button label="Button2"//mx:VBoxmx:VBox width="100%" height="100%" label="View3" mx:Button label="Button3"//mx:VBoxmx:VBox width="100%" height="100%" label="View4" mx:Button label="Button4"//mx:VBox/mx:ViewStack mx:LinkBar dataProvider="ViewStack1" disabledColor="#FF"/ /mx:Application Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 11:57 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Not sure what you mean. Using the disabledCOlor attribute does nothing. I have a linkbar at the bottom of my page that navigates a viewstack which takes up the upper portion of the page. I want to be able to indicate to the user when they click on the link in the link bar which location theyve clicked on by either changing the color of the link they clicked on or leaving the background color that appears when you mouse over the link to indicate thats the last link they clicked on. How can I do this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish GoyalSent: Wednesday, June 22, 2005 1:33 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question You can have the selected link to show in a different color though instead of t
RE: [flexcoders] LinkBar question
Coolthanks Phillipe for the helpkind of funny how you can only set certain attributes like that. Thanks again. robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821 f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: Thursday, June 23, 2005 11:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question Maybe this, I couldn't change the backgroundColor or backgroundDisabledColor even if it says those styles are inherited fromUIComponent :( http://livedocs.macromedia.com/flex/15/asdocs_en/mx/containers/LinkBar.html#styles ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml backgroundColor=#DEDEDE mx:Script ![CDATA[ function doLinkBar(event){ for(var i=0; ievent.target.numChildren; i++){ var curItem = event.target.getChildAt(i); i==event.index ? curItem.setStyle(color, 0xFF) : curItem.setStyle(color, 0x00); } } ]] /mx:Script mx:LinkBar disabledColor=#FF dataProvider={['Flash','Director']} click=doLinkBar(event)/mx:LinkBar /mx:Application Philippe Maegerman Webdeveloper +32 2 400 40 39 +32 472 35 28 10 http://pimz.blogspot.com http://cfpim.blogspot.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann Sent: jeudi 23 juin 2005 15:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question Yeah, definitely doesnt work the way I have it set upI have all the levels of the viewstack statically listed in my MXML file but based on a users security they only have access to maybe 3 of the levels of the view stack, hence the link bar links are generated dynamically based on a database callso I have a doLink method being called on the click listener of the link bar component that handles which link is clicked and which level of the view stack to showsince theyre not coupled like in your example Ashish, the disabled link color doesnt seem to work at all. Is there a work around for this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821 f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: Thursday, June 23, 2005 4:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question It seems to work when the ViewStack is the dataProvider, but not when using the LinkBar alone, bug or wish ? :) ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Panel title=Link Bar Panel mx:LinkBar disabledColor=#FF dataProvider={['Flash','Director']} / /mx:Panel /mx:Application Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish Goyal Sent: jeudi 23 juin 2005 1:09 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question I have just emulatedyour scenario. In this case the active link color will change to red. Let me know if that doesn't work for you. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=600 height=600 mx:ViewStack height=300 width=400 id=ViewStack1 mx:VBox width=100% height=100% label=View1 mx:Button label=Button1/ /mx:VBox mx:VBox width=100% height=100% label=View2 mx:Button label=Button2/ /mx:VBox mx:VBox width=100% height=100% label=View3 mx:Button label=Button3/ /mx:VBox mx:VBox width=100% height=100% label=View4 mx:Button label=Button4/ /mx:VBox /mx:ViewStack mx:LinkBar dataProvider=ViewStack1 disabledColor=#FF/ /mx:Application Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann Sent: Wednesday, June 22, 2005 11:57 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question Not sure what you mean. Using the disabledCOlor attribute does nothing. I have a linkbar at the bottom of my page that navigates a viewstack which takes up the upper portion of the page. I want to be able to indicate to the user when they click on the link in the link bar which location theyve clicked on by either changing the color of the link they clicked on or leaving the background color that appears when you mouse over the link to indicate thats the last link they clicked on. How can I do this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821 f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish Goyal Sent: Wednesday, June 22, 2005 1:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question You can have the selected link to show in a different color though instead of the default grey
[flexcoders] LinkBar question
Is there a way to leave the selection background behind the currently selected link in a LinkBar to indicate to the user which link is currently selected? None of the attributes seem to indicate anything of the sort, so I was curious if anyone is doing anything like this out there? Thanks! robert l. brueckmann senior web developer merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. 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] LinkBar question
You can have the selected link to show in a different color though instead of the default grey color for better visibility. Just set 'disabledColor' property on the link bar to the desired color. Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 8:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] LinkBar question Is there a way to leave the selection background behind the currentlyselected link in a LinkBar to indicate to the user which link iscurrently selected? None of the attributes seem to indicate anything ofthe sort, so I was curious if anyone is doing anything like this outthere?Thanks!robert l. brueckmannsenior web developermerlin securities595 madison avenuenew york, ny 10022p: 212.822.4821f: 212.822.4820This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. 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] LinkBar question
Not sure what you mean. Using the disabledCOlor attribute does nothing. I have a linkbar at the bottom of my page that navigates a viewstack which takes up the upper portion of the page. I want to be able to indicate to the user when they click on the link in the link bar which location theyve clicked on by either changing the color of the link they clicked on or leaving the background color that appears when you mouse over the link to indicate thats the last link they clicked on. How can I do this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821 f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish Goyal Sent: Wednesday, June 22, 2005 1:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LinkBar question You can have the selected link to show in a different color though instead of the default grey color for better visibility. Just set 'disabledColor' property on the link bar to the desired color. Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann Sent: Wednesday, June 22, 2005 8:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar question Is there a way to leave the selection background behind the currently selected link in a LinkBar to indicate to the user which link is currently selected? None of the attributes seem to indicate anything of the sort, so I was curious if anyone is doing anything like this out there? Thanks! robert l. brueckmann senior web developer merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. 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] LinkBar question
I have just emulatedyour scenario. In this case the active link color will change to red. Let me know if that doesn't work for you. ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="600" height="600" mx:ViewStack height="300" width="400" id="ViewStack1"mx:VBox width="100%" height="100%" label="View1" mx:Button label="Button1"//mx:VBoxmx:VBox width="100%" height="100%" label="View2" mx:Button label="Button2"//mx:VBoxmx:VBox width="100%" height="100%" label="View3" mx:Button label="Button3"//mx:VBoxmx:VBox width="100%" height="100%" label="View4" mx:Button label="Button4"//mx:VBox/mx:ViewStack mx:LinkBar dataProvider="ViewStack1" disabledColor="#FF"/ /mx:Application Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 11:57 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question Not sure what you mean. Using the disabledCOlor attribute does nothing. I have a linkbar at the bottom of my page that navigates a viewstack which takes up the upper portion of the page. I want to be able to indicate to the user when they click on the link in the link bar which location theyve clicked on by either changing the color of the link they clicked on or leaving the background color that appears when you mouse over the link to indicate thats the last link they clicked on. How can I do this? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821f: 212.822.4820 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish GoyalSent: Wednesday, June 22, 2005 1:33 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] LinkBar question You can have the selected link to show in a different color though instead of the default grey color for better visibility. Just set 'disabledColor' property on the link bar to the desired color. Thanks -Ashish From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert BrueckmannSent: Wednesday, June 22, 2005 8:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] LinkBar question Is there a way to leave the selection background behind the currentlyselected link in a LinkBar to indicate to the user which link iscurrently selected? None of the attributes seem to indicate anything ofthe sort, so I was curious if anyone is doing anything like this outthere?Thanks!robert l. brueckmannsenior web developermerlin securities595 madison avenuenew york, ny 10022p: 212.822.4821f: 212.822.4820This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/
[flexcoders] linkbar selected color
I'm trying to have the links in a linkbar change color when they're selected and remain that color until another link is selected. Setting selectedFillColors doesn't seem to work. Any suggestions? - Tom 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] linkbar selected color
Tinkering around I came up with LinkBar { disabled-color: #99ff66; } on... http://www.markme.com/mc/archives/FlexStyleExplorer.html On 6/6/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote: I'm trying to have the links in a linkbar change color when they'reselected and remain that color until another link is selected.Setting selectedFillColors doesn't seem to work.Any suggestions? - TomYahoo! 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/ 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] LinkBar Navigation
I have a LinkBar with a ViewStack for the dataProvider. I want it so when I click on the linkbar that it does not go to the next view in the viewstack yet but runs a method first to check and see if some values on the form are dirty. I feel like I need to be able to stop the linkbar from showing the next view in the stack and run some logic to decide if we show the next view in the stack or not. Does anyone know how I can do this? Thanks, COREY 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] LinkBar Navigation
Maybe try overriding the selectedIndex getter/setter on the ViewStack. Verify if the child at current selectedIndex is OK and if so call super.selectedIndex = whatever. Otherwise bail out. Make sure you override the getter to return super.selectedIndex as you must override both getter and setter even if youre only changing one. Good luck, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Corey Sent: Monday, May 02, 2005 1:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LinkBar Navigation I have a LinkBar with a ViewStack for the dataProvider. I want it so when I click on the linkbar that it does not go to the next view in the viewstack yet but runs a method first to check and see if some values on the form are dirty. I feel like I need to be able to stop the linkbar from showing the next view in the stack and run some logic to decide if we show the next view in the stack or not. Does anyone know how I can do this? Thanks, COREY 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.