Needs this import too: import mx.events.ItemClickEvent;
-TH --- In [email protected], "Tim Hoff" <timh...@...> wrote: > > > Hi Paul, > > Well, you're really trying to mix apples and oranges. If you have a > LinkBar that contols a ViewStack, the expected behavior is that when one > of the LinkButtons in the LinkBar is clicked, the ViewStack's > selectedIndex changes to the index of the clicked LinkButton on the > LinkBar. If you want to add a urlRequest to this behavior, you can > listen for the LinkBar's itemClick event: > > <mx:LinkBar itemClick="onItemClick(event)"/> > > import flash.net.URLRequest; > import flash.net.navigateToURL; > > private function onItemClick( event:ItemClickEvent ):void > { > if (event.label == "forum") > { > var request:URLRequest = new > URLRequest(http://www.MyForum.com/ <http://www.MyForum.com/> ); > navigateToURL(request); > } > } > > -TH > > --- In [email protected], "Paul Tretter" ptretter@ wrote: > > > > Thanks for the info Tracy. I will look into that. I'm still new to > Flex so I'm learning fast. What I have is a linkbar that is attached to > a viewstack. I have three items on the linkbar (Home, Forum, Contacts). > It seems that linkbar in this manner creates a canvas component to be > shown for each respective linkbar item. I tried to take the one for the > "forum" and use it to navigateToUrl with no luck. I added an id to the > canvas and attempted to use the click attribute to make it function but > it seems as if "click" is not acceptable or functional on a canvas > component? I seen mention of onClick, so I am going to look into that. > > > > Thanks for your help. > > > > Paul > > >

