You can also use this to alter the scrollbar visibility for an input text
area so if after the scrollbar is displayed then the user removes some text,
it is removed again

  myInput_txt.onChanged = function(){
 if(this.maxscroll > 1){
     myScrollbar._visible = true;
   }else{
     myScrollbar._visible = false;
   }
}

Can't take any credit for that as it was generously given to me by someone
on this list (sorry I have lost the name)

Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 12 December 2005 16:13
To: [email protected]
Subject: Re: [Flashcoders] Turning off flash mx UIScrollBar when nothing
to


found the fix via this site :

http://www.kirupa.com/developer/mx2004/hide_scrollbar.htm

had to do

scrollBar._visible = (contentTextField.maxscroll >1)

so the scroll bar is only visible of the maxscroll of the field to be
scrolled is greater than 1, simple fix, wish the damn scroll bar did that
automatically :)

Grant

----- Original Message -----
From: [EMAIL PROTECTED]
To: [email protected]
Cc: Flashcodersmailinglist [email protected]
Sent: 12/12/05 9:46 AM
Subject: Re: [Flashcoders] Turning off flash mx UIScrollBar when nothing to

> doh, sorry thomas, thanks for the catch, weird I didn't see it come
through the first time :)
>
> correct URL :
>
> http://bluetubecom.web123.discountasp.net/clients/amvescap/container.html
>
> See jan has a "phantom" scrollbar even though there is nothing to scroll.
>
> Grant.
>
>
>
> ----- Original Message -----
> From: Ian Thomas [EMAIL PROTECTED]
> To: Flashcoders mailing list [email protected]
> Sent: 12/12/05 9:38 AM
> Subject: Re: [Flashcoders] Turning off flash mx UIScrollBar when nothing
to
>
> > Grant,
> >   That's the second time it's come through.
> >
> > You've posted a local URL that links to a file on your machine's D
drive. So
> > people can't actually look at your content.
> >
> > Cheers,
> >   Ian
> >
> > On 12 Dec 2005 14:32:32 -0000, [EMAIL PROTECTED]
> > wrote:
> > >
> > > Resent as it never got to the list
> > >
> > > I'm building this site :
> > >
> > >
> > >
file:///D:/projects/bluetube/clients/amvescap/calendar2005/dist/container.ht
ml
> > >
> > > I'm using a textField for the content and the MM UIScrollbar for the
> > > scroll bar.
> > >
> > > After loading the text into the text field I tried this with the
scroll
> > > bar :
> > >
> > >
> > > contentTextField.htmlText = contentLoader.text;
> > > scrollBar._visible = scrollBar.enabled;
> > >
> > > TRACE("scrollbar enabled state " + scrollBar.enabled);
> > > TRACE("scrollbar is " + scrollBar);
> > >
> > >
> > > I did a google search and one suggested I use the enabled property to
> > > determine if I should display the scrollbar but the scrollbar is
always
> > > enabled even when there is nothing to scroll.  I want the scrollbar to
be
> > > invisible when there is nothing to scroll.
> > >
> > > click on the December month to see one that should scroll and January
to
> > > see one where there should be no scroll (but I still get a phantom
scroll
> > > bar)
> > >
> > > Can someone help ?
> > >
> > > Thanks
> > > Grant
> > >
> > > _______________________________________________
> > > Flashcoders mailing list
> > > [email protected]
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to