RE: [flexcoders] LinkBar question

2005-06-24 Thread Bikram Sahu





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

2005-06-24 Thread Philippe Maegerman





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

2005-06-24 Thread Manish Jethani
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

2005-06-24 Thread Scott Barnes
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

2005-06-24 Thread Manish Jethani
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

2005-06-24 Thread Scott Barnes
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

2005-06-23 Thread Philippe Maegerman





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

2005-06-23 Thread Philippe Maegerman





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

2005-06-23 Thread Robert Brueckmann









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

RE: [flexcoders] LinkBar question

2005-06-22 Thread Ashish Goyal





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

2005-06-22 Thread Robert Brueckmann









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

2005-06-22 Thread Ashish Goyal





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/