How to make Scrollbar invisible!!! Problems!

Hello,

I am embarrassed to say I have spent a few hours on this already:  I have a scrollpane on my stage.  Once the user sees the scroll pane, then presses a button to continue, I would like the scrollpane to be invisible.  I have managed to make the target mc invisible but I still see the scrollbar and frame of the scrollpane.  I can't figure out what to do!!!!  (myScrollpane3 is actually an UltimateScroller, so it takes _visible as property and I believe the Flash 8 uses .visible).  I have been thinking of just drawing a box on the stage to hide it--not very efficient, but it might allow me to move forward.

Code below.

Many thanks for helping a frustrated person!
_root.mcMain._visible=false;
_root.myScrollpaneNew.visible=false;
_root.myScrollpane3._visible=false;

Open in new window

1CougarAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DreammonkeyConnect With a Mentor Commented:
Ok sorry for last post, I got a little carried away there...

I found a solution : replace line 40:
_level0.myScrollpane3._visible = false;
with:
_level0.myScrollpane3._alpha = 0;

I don't get this either....but this does the trick
0
 
SamuelRostolCommented:
Hi there,

The scrollpane can be made invisible through the code:
scrollpanename._visible = false;

Take a look at the uploaded simple sample, and you will se that it works :)

Kindly,
Samuel
InvisibleComponent.zip
0
 
1CougarAuthor Commented:
Hello and thank you.  I have been trying that, but am obviously doing something wrong.  However, I am unable to open your file, which appears to be a text file.....

Could you please upload it again?

Many thanks!


0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
SamuelRostolCommented:
Hi there,

My apologies; rename the file from InvisibleComponent.fla.txt to InvisibleComponent.fla, and you will be able to open it :)

Created in Flash CS3.

Kindly,
Samuel
0
 
1CougarAuthor Commented:
Sadly, I already tried that and it says "failed to open document...".

??

0
 
SamuelRostolCommented:
That probably means that you have Flash 8. Wait a second, I'll try to save for Flash 8 :)
0
 
SamuelRostolCommented:
Here you go - any luck with this file?

In any case - I've posted the code as well so that you can recreate the example :)

Kindly,
Samuel
/*
Have a button named btnRemove on the Stage, as well as a normal 
scrollPane named mcScrollPane. Also, attach onto the scrollpane some content from the library.
*/
 
btnRemove.onRelease = function()
{
	mcScrollPane._visible = false;
}

Open in new window

InvisibleComponent.zip
0
 
1CougarAuthor Commented:
I was finally able to open your file.  Yes, that works in a simple example, but I am loading things dynamically from XML and, for one, at the beginning of the  movie, I initialize the objects on the stage.  I have my statement as yours is above and it never makes my scrollpanes invisible, which is not great.  I am thinking about playing around with a white box to hide them---that's how desperate I am!

Any other ideas?


0
 
DreammonkeyCommented:
try to trace this:
trace(mcScrollPane)

it should output something like :

_root.someMovieClip_mc.someOtherMovieClip_mc.mcScrollPane

if it does then copy the whole lot and paste it in the code,
just an idea...

Regards,
D
0
 
1CougarAuthor Commented:
Hi,

Good idea--the trace is _level0.myScrollpane.  Have tried to make visible=false and it is still there!!!

Ugh.


0
 
DreammonkeyCommented:
did you change the code into :

_level0.myScrollPane._visible = false;

?
0
 
1CougarAuthor Commented:
Yes, I have changed the code and it is still there.  I am really baffled by this, but there are many objects on the stage, most of them invisible at the start of the movie, so maybe that is somehow the cause.  Every thing else is "invisible" but the scrollpanes.  Strange, no?



0
 
DreammonkeyCommented:
There must be an explanation for this, but I cannot see it here, the only solution I see is that you upload your fla, so can have a look...
0
 
1CougarAuthor Commented:
OK, will up load the file.  Please remember this is a work in progress and I am just learning....so, I'm afraid a lot of the code is not "optimized".  But, maybe you can see something I can't.

Thanks in advance!
TestTryJune08.fla.txt
0
 
DreammonkeyCommented:
Man, I'm sorry to say this, but this file would drive even the Dalai Lama nuts....
YOur code is full with scrollpanes, it's like scrollpane's heaven,
and scrollpane n°3 is definitely God !

Allthough, I did found out that it isn't God that's still visible, it's just one of his (fallen) Angels...

when you trace :
trace(myScrollpane3._visible);

it traces:
false

... I think you lost track of one of your sheap, 1Cougar,

sorry for the all the irony, it's getting late,...

regards,
D
0
 
1CougarAuthor Commented:
Thanks--it worked and no offense taken--I am under a deadline to get something out and was planning on making the code pretty later.  There are only 2 scrollpanes really--I am trying to use the UltimateScroller component.  So, 2 of the scrollpanes are UltimateScroller components.  Since I have had trouble getting those to work properly, each of their targets is set to the respective scrollpanes.  Maybe I will solve the myScrollpane3._visible problem later when I sort those out.  Or, I may draw the scrollpanes dynamically when I need them.  But, for now, this is the solution!

Many thanks again for your patience and help!

Cheers,

0
All Courses

From novice to tech pro — start learning today.