UIScroll Bar, Remove when not needed

Hello,
I just finished the 3D carousel tutorial on gotoandlearn. My
questions is, I added a scroll bar to the rigt of the text field
because on some of the content for the icons there is too much
information to show up on one page. Problem is, the scroll bar
shows up while the Carousel is spinning around as well as in pages
(movies) that only have a couple lines of text. I'd like to know
how to get rid if this.
I looked up this issue on the web but most "finds" I found
were only about removing the toolbar when there is not enough text
to warrant a scroll bar. Keep in mind that I m less than a novice
when it comes to script.
Thanks all.
SMC

Thanks again for looking at this....
SMC
// bottomScrollV checks how many lines of text there are
// So,...if you have a textfield with 10 lines of visible
text and to show more, you need a scrollbar:
if(sb.bottomScrollV>5){
sb.visible = true; // show scrollbar
}else{
sb.visible = false; // hide scrollbar
down_btn.onPress = function() {
theText.scroll += 1;
up_btn.onPress = function() {
theText.scroll -= 1;
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 400;
var radiusY:Number = 100;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.005;
var perspective:Number = 100;
var home:MovieClip = this;
theText._alpha = 0;
var tooltip:MovieClip =
this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes
.attributes.tooltip;
t.content = nodes.attributes.content;
t.icon.inner.loadMovie(nodes
.attributes.image);
t.r.inner.loadMovie(nodes.attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
function over()
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sover");
sou.start();
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
function out()
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
function released()
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();
home.tooltip._alpha = 0;
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
var tw:Tween = new
Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new
Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new
Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
else
var tw:Tween = new
Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new
Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new
Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
var tw4:Tween = new
Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
var tw5:Tween = new
Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
var s:Object = this;
tw.onMotionStopped = function()
s.onRelease = unReleased;
function unReleased()
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();
delete this.onRelease;
var tw:Tween = new
Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
if(t != this._parent)
var tw:Tween = new
Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new
Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new
Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
else
var tw:Tween = new
Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new
Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new
Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new
Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
function moveTip()
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
xml.load("icons.xml");
function mover()
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective)
/(centerY+radiusY-perspective);
this._xscale = this._yscale = s*75;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
this.onMouseMove = function()
speed = (this._xmouse-centerX)/20500;
}

Similar Messages

  • Setting scroll bar to inbisible when not needed

    Here is the post again, some quotation marks came out as
    letters before. This is correct version
    I'm using AS 2.0, and have added a
    scroll bar with instance name: ...................sb1
    a dynamic text field with instance name:.... tb1_txt
    an external text file named as:....................home.txt
    I want to make the scroll bar invisible or transparent, when
    its is not needed. I'm thinking that I may have to use the _visible
    property, but not sure of the correct code to integrate this.
    Any suggestions anyone?

    // Note:
    Create a movie clip to put the code into
    Use only 2 frames
    Use 2 layers
    Layer 1 put the action script
    Layer 2 put the textarea and the scrollbar
    Put a keyframe on each frame in only the Action Script layer.
    The 2nd layer should only have a keyfram on the first frame
    and span both frames 1 and 2.
    On the first frame (do not put a stop() method here)
    - set the visibility of the scrollbar to false
    - set the text content / value of the textarea
    On the second frame
    - Put the action script
    stop();
    if(textDisplay.maxscroll &gt; 1){
    textscroll._visible = true;
    } // if

  • Itunes install wizard launching when not needed.

    Hello,
    I have the latest version of Itunes successfully loaded on my windows XP laptop. I recently needed to use the USB port that I keep my IPOD plugged into for a USB thumb drive. Now when I connect my IPOD to my laptop the install wizard pops up. When I click cancel ITunes successfully launches. How can I get this wizard to stop poping up as I do not need it?
    Thanks.
    Burke D.

    I am a PC Tech and had a customer with this issue. Ran across this post in my search and ended up finding the solution on my own. The problem isn't with the iTunes software but the installer for the GEARAspi drivers. Really the issues is with the file type asssociations in the windows registry. On the system I was working on the HKCR key for .exe should point to the exefile key but pointed to nothing. To fix it create a new txt document and paste the following in (only paste what is in between the [code][/code] tags):
    [code]
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.exe]
    @="exefile"
    "Content Type"="application/x-msdownload"
    [HKEY_CLASSES_ROOT\.exe\PersistentHandler]
    @="{098f2470-bae0-11cd-b579-08002b30bfeb}"
    [/code]
    Now change the extension from .txt to .reg. Then right click and select merge. iTunes should now install properly.

  • Static background image will tile when not needed

    So i made my background static with some code, but now i can see it tile a little on some screens when it should not. I don't know if it's a size issue or not, i need to know how i can have this centered and even on all display screen. Can you guys help me please?
    Using iWeb. Everything looks great on my screen and evenly aligned on both side. 21.5" display using Safari and SL.
    Code i used:
    <script language="JavaScript" type="text/javascript">
    <!--
    parent.document.body.style.backgroundImage='url(<a class="jive-link-external-small" href="http://schneidersstudios.com/2010background1.png">http://schneidersstudio s.com/2010background1.png</a>)';
    parent.document.body.style.backgroundRepeat='no-repeat';
    parent.document.body.style.backgroundAttachment='fixed';
    parent.document.body.style.backgroundColor='#555555';
    // -->
    </script>
    What my background should look like http://img229.imageshack.us/img229/7271/screenshot20100223at611.png
    Thanks

    That's what I get if I widen by browser window a lot. But it has to be a lot before the right hand part of the graphic comes into view. I added your code to a test page. If I keep my browser window at it's normal width I don't see any of the text on either size of the page body.
    OT

  • Red eye removal when not red in Elements 7

    I have numerous human face photos in which the eye is not truly red, but, in fact are light pink, white or some yellow.  Also, in some cases there is red eye and light pink in the same eye; the red eye tool will only change that portion that is red and does not change the other color.  None of the red eye tools seem to pick those colors up.  How do I solve this problem?

    Try selecting the eye and applying a Hue/Saturation adjustment. This can be done via Enhance > Adjust Color > Hue/Saturation or by adding a Hue/Saturation adjustment layer. In the H/S dialog box select in the pull-down list the appropriate color you want to remove, and move the Saturation slider left.

  • [VS2013 Update4] HTML Client loading child and grandchild entities in separate OData requests even when not needed?

    Repro steps:
    create new LightSwitch HTML C# app
    Attach to Northwind OData service - http://services.odata.org/V3/Northwind/Northwind.svc/
    include Order_Details, Orders, and Customers
    add screen -> browse data, choose Order_Details
    in the tile list that comes up, add other screen data, Order.Customer.ContactName
    delete the 3 columns it added by default (deleting them isn't necessary to cause the issue, just makes the issue more obvious)
    F5 and F12 in the resulting browser and make sure to check the Network tab
    The resulting tile list shows just the contact names of the customers for the orders, as you'd expect, but they fill in slowly instead of all at once.
    In the Network tab, you'll notice the first data request is what's expected in terms of including the associated child and grandchild entities
    http://localhost:54553/NorthwindEntitiesData.svc/Order_Details?$expand=Order/Customer,Order&$top=45
    Now, I'm a little confused at this point why it's not using $select to only fetch the particular properties needed, instead of it including all the Order and Customer properties as well, but that's secondary to this particular issue.
    If you check the response, you'll see that the JSON returned definitely includes (as you'd expect) the Order and Customer, and the Order.Customer.ContactName in particular is definitely included - here's the first few lines of the response (reformatted to
    be readable)
    "odata.metadata": "http://localhost:54553/NorthwindEntitiesData.svc/$metadata#Order_Details",
    "value": [{
    "Order": {
    "Customer": {
    "CustomerID": "VINET",
    "CompanyName": "Vins et alcools Chevalier",
    "ContactName": "Paul Henriot",
    After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
    ...etc...
    As you'd imagine, these requests have a pretty big negative effect on performance, especially if you have multiple columns exhibiting this effect.
    Is this By Design?  Am I doing something wrong?  Is there a workaround for this?
    Thanks!

    After that is a bunch of further requests for Customers and Orders based on id, even though the first request already included all the data we need to display them.
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27VINET%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27TOMSP%27
    http://localhost:54553/NorthwindEntitiesData.svc/Customers?$filter=CustomerID%20eq%20%27HUNGO%27
    ...etc...
    This really has bad impact on lightswitch performance, you can submit it to Visual Studio Connect Site, https://connect.microsoft.com/VisualStudio

  • S430 trackpad and now mouse dragging when not needed

    My S430 is generally up to date with all drivers and software. Runs Windows 7 64.
    Some weeks ago the trackpad starting being a real problem - perhaps after an update. When I use it to move the cursor instead it acts to select text or to pick up and drag items. This became a real problem. I was in an area of high humidity and this was mentioned as an issue so I just used the trackpoint or external mouse instead. 
    Now today for a short time the external mouse was also doing the same thing. Without touching the mouse keys, *even just moving the mouse around* was picking up and dragging elements around the screen or selecting text. You can imagine this is very frustrating when unwanted.
    I have changed the mouse settings with no luck. Any suggestions very welcome. I am starting to think the solution might be to go back to older versions of drivers perhaps. 
    Solved!
    Go to Solution.

    Hi Nickb99,
    I am sorry for the situation and I understand your concern, however we will check with this last option on the Synaptic driver.
    Please download the Synaptic driver from the below link and install it. After installing restart the system and check if the issue still persists or not, if the issue reoccurs then uninstall it an use the Windows generic driver.
    Synaptic touchpad driver
    Hope this helps!
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I Photo opens when not needed

    Hi
    Anytime I plug in a windows formatted USB gismo like a Data Key or any other one, even though I'm in Parallel Desktop/Windows XP, Photo shop opens!
    This is really annoying. How can that be stopped
    Thx
    laurent

    Laurent Imbault wrote:
    Anytime I plug in a windows formatted USB gismo like a Data Key or any other one, even though I'm in Parallel Desktop/Windows XP, Photo shop opens!
    This is really annoying. How can that be stopped
    To make iPhoto stop opening when you insert a USB drive, try this:
    - Launch Image Capture (in Applications).
    - Open its preferences.
    - Change the preference for "When a camera is connected, open:" to "No application".
    Doing this will also mean that you'll have to launch iPhoto by hand whenever you insert a photo card.

  • What are the "bookmarkTools.dupBm160" (many entries) in about:config and how can they be removed if not needed?

    In about:config I noted MANY entries that start with: bookmarkTools.dupBm
    What are they? What purpose do they serve? How to get rid of them if they serve no purpose?

    Probably added by an extension.
    Help > Troubleshooting Information...
    Copy and paste that info into the reply box.

  • My scroll bar dissapears when my firefox screen isn't maximized - how do I make it show up when not full screen?

    This just happened spontaneously yesterday - did I press some strange shortcut to make this happen? How do I get my scroll bar back when not in full screen?
    Please help!

    It is possible that the screen is too high and that the status bar and scroll bar fall off at the bottom.<br />
    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox to save that setting.<br />
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How do I keep an application window hidden when not accessed?

    I have an application running constantly to control my FW audio interface outputs etc. I use system events applescripts to control it's UI with a USB controller (PowerMate) - and that by necessity brings the application window to the front every time accessed. That's fine.
    But I want to have a script that hides this application window when it's not used after 2 seconds. Maybe there is an "on idle" script that could run to check if that window is visible. I imagine something including lines like this:
    -- a routine that checks if the window is visible every 2 seconds or so.
    -- the window reference
    window "Studio Monitor Express" of application process "Studio Monitor Express"
    -- if it is, then hide it
    -- for hiding the window/app
    keystroke "h" using command down
    -- if it's not, then ignore
    I'm not sure whether to use system events or finder events etc. I have a bunch of other apps running obviously, but I just want this particular window to disappear when not needed.

    I solved it. I know. Easy:
    on idle
    tell application "System Events"
    set visible of process "Studio Monitor Express" to false
    end tell
    return 2
    end idle

  • When customizing the Add-on Bar, separators ("|") are not visible. How can I remove them?

    Not only are they not visible, they're not selectable either. They /do/ appear normally (i.e., when not customizing toolbars). Running Firefox 22.0 on Linux Mint 15 (Olivia: x86-64).

    Your toolbar customizations are stored in the localstore.rdf data file in your currently active Firefox profile folder. This XML-based file makes difficult reading and I don't recall seeing any good documentation on how to edit it. If you want to give it a try, please make a backup first.
    If the file becomes corrupted (or more corrupted, as the case may be), you can rename or move it and Firefox will generate a new one with default settings, and you can start customizing from scratch.
    With that out of the way, it actually looks as though you should be able to find and remove the separators.
    <RDF:Description RDF:about="chrome://browser/content/browser.xul#'''addon-bar'''"
    mode="icons"
    collapsed="false"
    currentset="addonbar-closebutton,stylish-toolbar-button,spring,downloads-button,'''separator''',fireshot-Capture-Button,greasemonkey-tbb,noscript-tbb,fiddlerhook-toolbar-button,status-bar" />
    To give this a try:
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Open Directory" button
    Switch back to Firefox and Exit
    Pause while Firefox finishes its cleanup, then make a backup copy of '''localstore.rdf''' (e.g., localstore.0808) and open the rdf file in a text editor to find and edit the separators out of the addon bar.
    When you restart Firefox, your changes should be evident.
    Any luck?

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • HT6114 My Mac Book Pro had a split drive with Windows Microsoft Access on it and it was removed when Mavericks installed.  I need this so how can I go back to the old system?

    My Mac Book Pro had a split drive with Windows Microsoft Access on it and it was removed when Mavericks installed.  I need this so how can I go back to the old system?

    Restore from the backup you had prior to installing Mavericks.
    However, the upgrade should not have altered your partition scheme. Did your erase and format the drive prior to upgrading?

  • Is there any way to turn off airport without removing the electrical plug and should I unplug it when not using it??

    I just got the 5G Airport Extreme base station. Set-up was a snap! Maybe 10-15 minutes compared to a friend who got another name brand for his pc and took a couple hours, even having to call customer support! Been working great so far, but am concerned about never turning it off, not only about the possibe harm that could be done to the unit, but also about having an active, open Internet connection 24/7. Before I got my Airport Extreme I was using Ethernet cable with a cable modem that could be placed on "standby" whenever I was not using my Mac for Internet, but since AE5G doesn't have a power switch on the unit, have left it turned on rather than unplugging it by the electrical cord. I did turn AirPort "off" in the menu bar when not using it wth my Mac, but AE is still apparently constantly active, showing a steady green light. Would there be any harm done by plugging it in only when I want to use Wi-Fi, then unplugging it?
    Thanks for the help!

    Would there be any harm done by plugging it in only when I want to use Wi-Fi, then unplugging it?
    That is a matter of debate, since there are two schools of thought regarding power status on a router.
    One school maintains that you can turn the device on and off as needed. Makes sense for some folks. The advantage of this is that it might save a bit of electricity, although the Extreme draws very little power most of the time.
    Another school believes that there is a reason why Apple did not even place an "Off" switch on the device. It's designed to run 24/7.
    Leaving the Extreme on will place far less stress on the electrical components in the device since they stay in an "idle" state most of the time, drawing very little current. Powering any electrical device up sends a sudden rush of current through the device, which places far more stress on a device than if it is simply left on.
    It depends on your priorities. If you want to save electricity, your decision is already made. If you intend to prolong the life of the router, then consider leaving it on, as Apple intended.
    A compromise position might be to leave the Extreme on most of the time and power if off for long weekends or vacation periods when you will be away. Remember that the Extreme must establish all new network connections every time that it powers back up....perhaps another reason to simply leave it on.

Maybe you are looking for

  • Contour Plug In For Illustrator

    Hello everyone... Thank you in advance for any help you may be able to provide. Perhaps there is a thread for this already. I apologize if that is the case. I work for a manufacturing organization creating technical illustrations, instruction sheets,

  • Warning out of gamut for printing

    Hi I am not sure whether I have unintentionally changed some setting but I am unable to match the color of my image to the color of my webpage. I thought it might have something to do with the image, so I made a new image of solid color and put that

  • How to use JNI in an Applet?

    Can a native method can be invoken in an Applet?If it can,which knowledge of Java should be used and how to use it?

  • IPad Numbers help

    Hello, I am having trouble with a time calculations in iNumbers on my iPad 2. I need to divide 82:00 hours by the number 31 and get the resultant answer in hours and minutes   IOW -  if a 31 day month is worth 82:00 hours, how much is each day worth

  • Point PSE10 to two plug in folders?

    I have installed two sets of plug ins into their default locations (highly recommended by the manufacturers.)  Currently they are in different folders so in order to get PSE10 to "see" them I have it "pointed" at the metafolder which holds both of th