# Scrollpane trouble

**URL:** <https://forum.kirupa.com/t/scrollpane-trouble/34964>\
**Category:** flash\
**Created:** [November 8, 2003, 3:20pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964 "2003-11-08T15:20:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![theThirdPie](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@theThirdPie](https://forum.kirupa.com/u/theThirdPie)\
**Post date:** [November 8, 2003, 3:20pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/1 "2003-11-08T15:20:17Z")

</div>

Any ideas how i can get rid of scrollpane border or at least match it to the background colour so appears invisible. Also when loading external swf’s i can’t get the preloader on them to work, i’ve set each seperate swf with a preloader in scenes which work fine on there own, but when loaded into the scrollpane the preloader does’nt appear, just a blank till the main swf loads.

i’m pretty new at flash so would appreciate any help, i’ve spent ages getting my new site this far and just need to get past these obstacles,

thanks for any help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 4:49pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/2 "2003-11-08T16:49:06Z")

</div>

Welcome to kirupa forum, theThirdPie. 😛

You could set its [font=courier new]\_visible[/font] property to [font=courier new]false[/font]:

```auto
ScrollPane.border_mc._visible = false;

```

And what’s the code you’re using for the preloader?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 8, 2003, 10:54pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/3 "2003-11-08T22:54:53Z")

</div>

thanks for that, i’ll give it a go.

i’m loadinf sepearet swf’s into the scrollpane for news, images etc. i set up the seperate pages to have a preloader scene with the following code on a 2 frame movie (this is on frame 1):

if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay(“images2”,1);  
} else {  
gotoAndPlay(“images”,1);  
}

and then on frame 2:

gotoAndPlay(1);

were images is the preloader and images2 is the main movie. when i play it by itslef its fine, loader works great, but when i’ve set it up to load into the scrollpane from a button its just blank until the actual main images2 loads, no loader to be seen at all.

thanks for your help, i’ve been struggling for weeks to make my \*\*\*\* site work, think i’ll get my trusty zx81 out and start coding on that :run:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 5:49am UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/4 "2003-11-09T05:49:11Z")

</div>

Uhmm… try using a frame label instead of the scene name and frame number. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 5:40pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/5 "2003-11-09T17:40:12Z")

</div>

I’m trying a different approach with this site now. I’ve setup a progressbar component on the page linked to the scrollpane. The progressbar is set to polled and the source is the instance name of the scrollpane. this works fine when i load the first swf into the scrollpane but i need to know how to reset the progressbar after its completed loading. Also i’ve managed to make the progressbar only become visible when the button is pressed so i also need to knowhow to get it invisible again once the swf has loaded.

thanks for all your help on this, its most appreciated

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 7:28pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/6 "2003-11-09T19:28:12Z")

</div>

well with a bit of “frankenstein” style code i’ve got the progressbar to appear and dissapear when the movies loads, now all i need to do is work out how to reset the progressbar to 0% once the movies loaded, any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2003, 7:28pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/7 "2003-11-10T19:28:30Z")

</div>

```auto
var my_listener = new Object();
my_listener.progress = function(event_obj) {
	var completed = event_obj.target.getBytesLoaded();
	var total = event_obj.target.getBytesTotal();
	my_bar.setProgress(completed, total);
	my_bar._visible = true;
};
my_listener.complete = function() {
	my_bar._visible = false;
};
my_pane.addEventListener("progress", my_listener);
my_pane.addEventListener("complete", my_listener);
my_bar.mode = "manual";

```

Where _my\_pane_ is the instance name of the ScrollPane component, and _my\_bar_ is the instance name of the ProgressBar component. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2003, 8:16pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/8 "2003-11-10T20:16:11Z")

</div>

You are a great, great, great person, thanks so much for that, i’ve spent the last two days trying to get it to work and your piece of code did the trick,

can’t thank you enough for that, you’ve saved me many hours of swearing at flash 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2003, 8:31pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/9 "2003-11-10T20:31:00Z")

</div>

… Wasn’t it easy? 😛

You’re welcome. :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2003, 11:38pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/10 "2003-11-10T23:38:54Z")

</div>

kode is koding AS2…where’s the world going, great ONE?  
lol, good job.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2003, 11:01pm UTC](https://forum.kirupa.com/t/scrollpane-trouble/34964/11 "2003-11-11T23:01:17Z")

</div>

Hehe - Thanks, eyez. 😉
