Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

ScrollPane problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jvalerie_1 - 22 Jul 2008 17:47 GMT
I have one movie which has a scroll pane component on it. The contentPath of
the scroll pane is benches.swf.  When benches.swf is loaded, there is then a
button which loads another movie (monolith.swf).  The problem is that
benches.swf is being loaded onto level 0, so I can't unload it when I load the
other movie, and this results in the buttons for benches.swf showing "through"
monolith.swf.  I guess what I need to be able to do is load the benches.swf
into level 2, so that when I load monolith.swf into that same level, it
replaces it?.  But the default with the scroll pane seems to load benches.swf
onto level 0.  How do I get it to load onto a different level?
rritchey - 22 Jul 2008 21:07 GMT
why not simply replace the contentPath of the scrollpane with monolith.swf?
jvalerie_1 - 23 Jul 2008 18:49 GMT
I tried doing it with the following script, but that is not working for some
reason... any suggestions?

stop();

monolith.onPress = function() {
_root.benchScrollPane.contentPath('monolith.swf');
}
ggshow - 23 Jul 2008 19:05 GMT
loading your swf to different level will NOT solve your problem.

try this:

in your monolith fla, create a layer at bottom, create an invisible button in
this layer cover the whole stage. now user will not be able to click thru your
monolith.swf...

but there will be a hand cursor right? to solve this, give an instance name to
the invisible button in bottom layer, e.g. we call it inv_btn.
attach script below to the keyframe which contains the inv_btn.

inv_btn.useHandCursor = false;

good luck.
jvalerie_1 - 23 Jul 2008 19:16 GMT
thank you!!!!  this worked beautifully :smile;
ggshow - 23 Jul 2008 19:45 GMT
you are welcome
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.