<mx:HBox>
        <mx:Label id="trainingQuestion8" text="If equipment was involved ,
            see the" />
        <mx:Link label="Environment and Equipment"
            click="viewstackID.selectedIndex = X" />
        <mx:Label text="questions." />
        <mx:Spacer width="100%" />
    </mx:HBox>

Just tinker around to prevent the text from wrapping!

Sree


rgwilson26 wrote:
Thanks Rob for the comment...I probably haven't been clear enough. I
know how to navigate a viewstack, but my problem is that I only want
certain text in a label to be linked. For example;

<mx:Label id="myLabel" text="In this section, click here to see all
questions. "/>

I only want "here" to be linked to a designated viewstack.
I can use an onclick event but it will highlight the entire label
text. I am looking for a way to differentiate text to be linked
inside a label tag.


--- In [email protected], "Rob Davis" <[EMAIL PROTECTED]> wrote:
>
> You should have said it was in a viewstack in the first place.  I'm
not
> sure about in Flex 1.5, but in 2 you simply need
> "[viewstackID].selectedIndex = X" where X is the index # of the
layer
> you want to show.
>
> Also, AFAIK you can't just make part of a label a link, you'd have
to
> either do all or nothing, or else make those 3 words a separate
label.
>
> -----Original Message-----
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of rgwilson26
> Sent: Tuesday, December 06, 2005 7:36 AM
> To: [email protected]
> Subject: [flexcoders] Re: embeded link text in a label tag
>
> Actually, the link is currently in a viewstack, and I want the link
to
> navigate to a different page in my viewstack. That seems like a lot
of
> code for a simple link. Thanks for your help though. I will
continue my
> search.
>
> --- In [email protected], "fowleryj" <[EMAIL PROTECTED]> wrote:
> >
> > Are you looking to pop up a new window for the Environment and
> > Equipment section? If so, you could use the mouseDown attribute:
> >
> > <mx:Label id="trainingQuestion8" text="If equipment was involved,
> see
> > the Environment and Equipment questions."
> > mouseDown="mx.managers.PopUpManager.createPopUp(_root,
> > com.tjctechnology.registry.desktop.view.ExternalPartyFinder, true,
> > {deferred: true})" mouseOver="trainingQuestion8.setStyle('color',
> > '#0000FF')" mouseOut="trainingQuestion8.setStyle
> ('color', '#000000')"/>
> >
> > Or embed a method in the mouseDown attribute that would do
something
> > similar.
> >
> > --- In [email protected], "rgwilson26" <[EMAIL PROTECTED]>
> wrote:
> > >
> > > I would like to know how to set text in a label to linked text.
> > >
> > >
> > > I want the words "Environment and Equipment" linked to a section
> in my
> > > application.
> > >
> > > ***********************
> > >
> > > <mx:Label id="trainingQuestion8" text="If equipment was
involved,
> see
> > > the Environment and Equipment questions."/>
> > >
> > > ***********************
> > >
> > > thanks
> >
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~-->
> Fair play? Video games influencing politics. Click and talk back!
> http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
> --------------------------------------------------------------------
~->
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>







--
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




Reply via email to