Solved

How to make Scrollbar invisible!!!  Problems!

Posted on 2008-06-24
16
934 Views
Last Modified: 2013-11-11
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

0
Comment
Question by:1Cougar
  • 7
  • 5
  • 4
16 Comments
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21854536
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
 

Author Comment

by:1Cougar
ID: 21854650
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
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21854800
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
 

Author Comment

by:1Cougar
ID: 21854825
Sadly, I already tried that and it says "failed to open document...".

??

0
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21854872
That probably means that you have Flash 8. Wait a second, I'll try to save for Flash 8 :)
0
 
LVL 12

Expert Comment

by:SamuelRostol
ID: 21854897
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
 

Author Comment

by:1Cougar
ID: 21859093
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
 
LVL 8

Expert Comment

by:Dreammonkey
ID: 21860417
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:1Cougar
ID: 21860543
Hi,

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

Ugh.


0
 
LVL 8

Expert Comment

by:Dreammonkey
ID: 21860587
did you change the code into :

_level0.myScrollPane._visible = false;

?
0
 

Author Comment

by:1Cougar
ID: 21860690
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
 
LVL 8

Expert Comment

by:Dreammonkey
ID: 21860721
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
 

Author Comment

by:1Cougar
ID: 21860799
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
 
LVL 8

Expert Comment

by:Dreammonkey
ID: 21861132
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
 
LVL 8

Accepted Solution

by:
Dreammonkey earned 500 total points
ID: 21861410
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
 

Author Comment

by:1Cougar
ID: 21862925
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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now