Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




ScrollPane Issue



my scrollPane is screwing up my preloader...

i have a flash website that loads 7 smaller flash movies with a movieClipLoader object.

movieClipLoader works fine and is using 3 methods...
 - onLoadStart, attaches preloader movieclip from library
 - onLoadProgress, update progress bar
 - onLoadComplete, removes the preloader movieclip

in one of those 7 movieclips i have a scrollPane component and when i view that page and return back to the main movieclip, then go to any of those 7 movie clips, my preloader movieclip will be attached and refuse to be removed from that point on.

this ONLY happens after returning from the movieclip that has the scrollPane and when i take out the scrollPane, everything works fine.

is there something about scrollPanes or components in general that im missing thats screwing up my movieClipLoader?

--
Matt Milburn, Wave Motion Studios
matt@wavemotionstudios.com



Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 15 Jun 06 20:49


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

ScrollPane Issue
Hello all,

I'm creating an empty movie clip in a movie and dynamically adding various text fields and jpg's to it. This is all working beautifully. However, when I attach the new clip to a scroll pane, all of my jpg's disappear. Not only are they gone, but all of the text fields that I had created to the right of them are not all the way to the left. Any ideas or has anyone else fought this battle?

Thanks

Scrollpane Issue
Hi everyone,
There is a way to bring the scrollbar of a scrollpane on the left side? If so how?

I'm still using Flash MX. Components set I or II.

thanks

Scrollpane Issue
Hey everyone.

This is my first time posting here so please bare with me.

Ive encorporated a flash scrollpane into a web site i'm designing and in the scroll pane loads another swf file.

When the page is first visited the scroll bars on the scrollpane do not show, but upon refresh they apear. I have tested this on numerous pc's and it seems a concistent error.

I have upadted my version of mx using update_fmx_2004.exe from the macromedia web site which fixed some issues for various components but unfortunately hasnt helped me with my own issue.

Thanks for taking the time to read this, i hope someone can assist me.

Regards

Jay

Scrollpane Issue
i did the tutorial below and after i test the movie, everything works almost right except i still see text above and below the pane where i thought the text should only appear. any ideas on what i need to do to correct?

thanks


http://www.developingwebs.net/flash/...gtextboxes.php

Issue With Scrollpane And I.E , Anyone Help?
Hi there,

Im the designer of www.whyjag.com its basically a games clan site but thats besides the point. The issue im having is with the scrollpane. When Internet explorer first loads the swf file the contents of the first scrollpane (the long jpeg) overspills across the movie, on refreshing the image sits neatly within the scrollpane as its supposed to.

This only happens on page load and only in I.E. (its fine in firefox) wondering if anyone knows why this is? Just looks a little unprofessional to those using i.e. who first visit the site.

I followed the flash mx 2004 help tutorial to the T on using the scrollpane component so am alittle unsure as to what to do.

Many thanks,

Daz

Scrollpane Issue
Hello
I am making a website using flash. All has been going well so far, however i ran into one problem.
I made buttons that link to other pages and placed them inside the movie clip that is linked to a scrollpane. The buttons show up when i test the site,and when i hover my mouse over them they do what they are supposed to do. But when i click the buttons nothing happens. Can anyone help me with this problem, or tell me how to make a custom scrollpane that allows you to click buttons placed in it?
Thanks,
Matt

Scrollpane Issue
Hi,

I'm adding dynamic content to my scrollpane, but for some reason when Its filled so that it should scroll vertically it doesn't.....i've set the vertical scroll value to "auto" so any ideas why its not working?

boombanguk

Scrollpane Issue
Hi,

I'm adding mc's to a scrollpane, and that works fine, the only problem is when there are more then can be displayed in the scrollpane window, it doesn't automatically start to scroll, even if i turn the scroll bars on at the edge it still doesn't start to scroll when theres more content then it can display, I don't understand why its not working, any ideas?

thanks for any advice.

boombanguk

ScrollPane Issue
I finally got "something" to happen with this scrollpane, but the content (a movieclip) size enlarges about 20 times its size and overflows way beyond what should be the ScrollPane. Also, there are no scrolling handles visible.

Has anyone experienced this issue?
Any suggestions?

Here is a link to view a screenshot:
http://ewdhosts.com/Pinup-scrnsht.jpg

Thanks for any help.
Ray

ScrollPane Issue
I created a scrollPane that is linked to a SWF. The contentPath is "

ScrollPane Issue
Hello,
My ScrollPane will not display its scrollBar if my export frame for classes is anything but 1. However, I have to use a frame other than frame 1 so my preloader will function correctly. Am I up a creek without a paddle here? Or is there something I haven't thought of? Any help would be greatly appreciated - thanks!!!

Another ScrollPane Issue...
Hey guys thanks for checking my post.

I have scanned the net all over looking for a solution to this but everything seems to be a bit fragmented with out any firm solution being suggested that i can make sense of.

I am trying to load some thumbnails into a ScrollPane via XML. I have all the thumbnails loaded but like so many other people they just sit on the top of the ScrollPane in the top left corner of the Stage.

Any suggestions please, im supposed to have this done today, cant see it happpening, doh.

Thanks.


Code:
var thumb_spacingY = 140;
var thumb_spacingX = 40;

menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
var menuItem = this.firstChild.childNodes;
_root.createEmptyMovieClip("thumbContainer",0);
for (var i=0; i<menuItem.length; i++) {


var currentThumb_mc = _root.createEmptyMovieClip("thumbnail_mc"+i,i);
currentThumb_mc._y = i * thumb_spacingY;
currentThumb_mc._x = thumb_spacingX;

currentThumb_mc.createEmptyMovieClip("thumbClip",0);
currentThumb_mc.thumbClip.loadMovie(menuItem[i].attributes.thumb);

}
_root.myScroller.setScrollContent("thumbContainer");

}


}
menuXml.load("myContent.xml");

Scrollpane Issue
hey all,

i've a problem with the scrollpane component, i've got it to load an swf file which contains an flv playback component BUT when i change the source of the scrollpane (via a button) the flv playback component continues to play the video. plus when i click back that particular section again the video plays again with original playing in the background but isn't visible.

i need to some how unload the swf and flv player.

can any help please?

thanks

Scrollpane Issue
I'm having problems when I load a swf into a scrollpane in which what appears in the scrollpane is different than what appears when I view the file outside of the scrollpane.  The swf i'm loading consists primarly of dynamically created textboxes, checkboxes, etc, to create a form, and in the scrollpane its having issues where it won't recognize the x and y coordinates of the dynmaic components and stuffs everything up in the upper left hand corner.  Anyone else ever have this issue?

Thanks!

Beth

Scrollpane Issue
I have 'n' number of MC"s dynamically getting created as per an XML file.

I load all these MC's created to another Movieclip(container).

I want to load this Container Movieclip to the scroll Pane.

Since there is no identifier to this Container MC, i cant figure out how to give the path to the scrollPane.

Here is a part of the code

ActionScript Code:
_root.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
Mc_H = 100;
Mc_y = 30;
function Extract(i, lead, body, link, pic, path) {
    _root.container_mc.attachMovie("row", "row"+i, i);
    _root.container_mc["row"+i].lead.htmlText = String(lead);
    _root.container_mc["row"+i].body.htmlText = String(body);
    _root.container_mc["row"+i].id = i;
    loadMovie(path+"/"+pic, _root.container_mc["row"+i].ico_mc);
    _root.container_mc["row"+i]._y = (i*Mc_H)+Mc_y;
    _root.container_mc._x = -80;
    link_array.push(link);
    _root.container_mc["row"+i]._x = 100;
    [b]pane.contentPath="_root.container_mc"---Heres the trouble[/b]/
}


Thanx

ScrollPane/PushButton Issue (#*$@#$%*)
I am having a heck of a time with the Scroll Pane.

I have a scroll pane called "ScrollPane" and a movie clip in my Library called "subcontracts_mov"

Now i can get "subcontracts_mov" to load into the ScrollPane just fine but I am having trouble controlling the movie that gets loaded inside the ScrollPane.

I have tried all kinds of things and for some reason am having a difficult time comminucating with that movie clip (I believe because it just sits in the Library and is not physically loaded to the stage)

What I want to do is use the Push Button component to control which frame is showing inside the "subcontracts_mov"

So I created a few functions:


Code:
function NextFrame() {
tellTarget ("_root.info.ScrollPane.subcontracts_mov") {
nextFrame();
}
}
function PrevFrame() {
tellTarget ("_root.info.ScrollPane.subcontracts_mov") {
prevFrame();
}
}



To get to the point my Next Page and Previous Page buttons don't work.. Could someone please help.

NOTE: I attached the .fla file so you can see exactly what i am doing...

Thanks in advance!

Robe

Scrollpane Resize Issue
I have a scroll pane that I added text to and reworked the arrows on the scrollbar so they look the way I want. It looks great except now I need to make the scroll pane narrower in order to fit something else on the page. Here's the problem: When I resize the scroll pane, the text resizes with it, so now my test is all squashed together and wretched looking. I even tried cutting and pasting the text into the newly resized pane, but it didn't make a difference. Any suggestions?

Component : ScrollPane Issue
ok, im loading one mc into the scrollpane and it doesn't require scroling.. but upon the first time i load the 2nd mc, that requires scrolling, a scrollbar dosn't showup.

Is there any know way to fix this?

you can load new mc's into scrollpanes
by
scrollPane.contentPath = "";
scrollPane.refreshPane();

Scrollpane And Linkage Issue.
I am using the scrollpane component and in the parameters place the content path at "allcovers". So now my movie called allcovers I link with the id "allcovers"

The problem:
"all covers" is a very heavy file and when I link it without the
EXPORT IN FIRST FRAME checked the scrollpane will not link to my movie.

The Question?
1. How do I build a preloader for this "all covers" if it has to be exported in the first frame?

or

2. How can I get scrollpane to link to a file that is not exported in the first frame. I think this option would be better but would be happy with any solution.

THANKS

Scrollpane Component Issue
ive been wrestling with this for a couple of days, I cant get a scrollpane to scroll the full length of the movie clips that I am adding dynamically. Any body got any ideas??

Loading MC Into ScrollPane Issue
Can someone have a look at this please and explain why the text is loading into the dynamic text field inside the MC but is not loading into the scroll pane. I am using Flash 8.

Thanks,
Mike.

Issue With ScrollPane Component
I'm trying to use a ScrollPane component and I'm using it's addChild method to add items to my ScrollPane instance and I've set the ScrollPolicy to ON and I see the scroll bar but it's not active like there's no content outside of the visible area??? there is content outside of the visible area and I can partially see it. How do I force the ScrollPane instance to be scrollable?

The ScrollPane instance seemed to be the logical choice for this, but since it seems to be fighting me, are there better choices for doing this? If ScrollPane is what I should be using, is there a certain property or method of the ScrollPane I should be focusing on changing?

thx in advance!

Scrollpane Content Issue
I am using flash pro 8.

The scrollpane is on the stage and the content path is set to songButtons_mc, the name of the movie clip that loads into it.

In the first frame of the songButtons movie clip, I have placed the following code in an actions layer:

function playSong (mc:String,sLabel) {
eval(mc+'_btn').onRelease = function() {
_root.gotoAndStop(sLabel);
}
}

the scrollpane component with this code works perfectly until the movie is loaded into another .swf movie, then nothing works.

How do I get this to work? I am new to using components.

Thanks in advance for your help.
Mark

Pleaseeeee Help Me - ScrollPane Issue
Hi there! I want to attach several small movie clips to a big container movie clip, which i then want to put in a scroll pane. I would really appreciate it if someone could help me out.

I can generate the small clips and attach them to the container clip, but I can't get the container clip to be displayed in the scroll pane. I get the following error:

Error opening URL "file:///C|/Documents%20and%20Settings/Roger/My%20Documents/My%20Flash/MyClip"

First of all I created a "Face" movie clip (which was a smiley face) and stored it in the library (giving linkage/export name "Face"). Then I added a scroll pane to the stage (giving it an instance name "sp"). I then put "MyClip" in the 'contentPath' parameter of 'sp'.

I generated the movie clips using the following actionscript:

var objects:Number = 10; //number of small movie clips to attach
var ypos:Number = 0; //start y position of movieclip

//create a big movie clip to contain the smaller ones
var mc:MovieClip = createEmptyMovieClip("mc", 0);

var clips:Array = new Array(); //array to store small movie clip references

//generate small movie clips and attach to big container clip
for (i=0; i<objects; i++) {
var clipName:String = "clips" + i;
clips[i] = mc.createEmptyMovieClip(clipName, i);
clips[i].attachMovie("Face", "face" + i, i);
clips[i]._y = ypos; //allocate new position for small clip
ypos += 250;
}

//Register "MyClip" movie clip class for the scroll pane to use
function MyClip () {
this = mc;
}
MyClip.prototype = new MovieClip ();
Object.registerClass("MyClip", MyClip);


Pleaseeeee can some Flash genius help me?

Scrollpane's Scrollbar Issue
Hello, I'm doing this:

my_sp.contentPath = "loader"; // loaded from the library (is this really necessary?)
var content_mc:MovieClip = my_sp.content;

...then I am looping through some arrays and attaching textfields and radio buttons to "content_mc".

It all works except the vertical scrollbar isn't appearing when it needs to. How do i update the visiblity of the scrollbar after ive dynamically attached my stuff? I only want it visible when it is necessary.

Thanks

edit: I've tried just manually setting the vScrollPolicy to "on" after the scripts that do the attaching run, but the scrollbar doesn't scroll far enough?

edit edit: I traced the _height of "content_mc" and it was only slightly higher than the scrollpanes height, which is not what I expected because there are several textfields/button off the bottom of the scrollpane... what in the world is going on?!?!

edit edit Edit: I found that i could work around this by adding a movieclip to "loader" in the library, setting it's alpha to 0, and then scaling it taller using the _y position of the last attached button+its height and plus about 50 pixels because it still wasn't scrolling all the way down. This works, but is a sloppy, pathetic, embarrassing, hack...SHAME... I must be missing something.

HELP - Dead Scrollpane Issue...
Hi there all

I wonder is anyone can help?

I'm building a full flash website using a combination of both normal and nested "slides" swf's

http://www.ifdezine.com/dg/flash

The main navigation page is done in normal flash - then the subdivisions are made with slides.

My problem is that in the one section I'm working on I have scrollpanes a few levels in.

Main window -> printers -> Mutoh -> ValueJET Series -> [Click here for more detail]

This is one example.

When I do test movie it all works perfectly b ut when I upload it to my server and access it live through Internet Explorer, the scrollbars become inactive and I lose the functionality of this component.

When I access it through Firefox then all works perfectly as well.

I'm pulling my hair out cause I need to present to my client tomorrow and cant find a way out.

Can someone PLEASE PLEASE PLEASE help me?

Cheers - Christopher

Dynamic Scrollpane Issue
I have a scrollpane that i'm building dynamically
and i need to be able to have each seperate image that is loaded be a seperate button.

this does not work scrollpane.mc.mc.onPress=function()
what does? thanks!!

function getThumbs(){

_level0.attachMovie("FScrollPaneSymbol", "contentSP", 100, {_x:350, _y:100});
_level0.createEmptyMovieClip("holder", 201);
for(i=1;i<41;i++){
_level0.holder.createEmptyMovieClip("indImage"+i, 200+i);
theImageHolder=eval("_level0.holder.indImage"+i);
theImageHolder._x = 350+(i*100);
theImageHolder.loadMovie("thumbs/"+i+".jpg");

}
_level0.holder._x = 350;
_level0.holder._y = 50;


_level0.onEnterFrame = function ()
{
if (this.holder._width > 0)
{
delete this.onEnterFrame;
_level0.contentSP._x = 430;

_level0.contentSP._y = 20;

_level0.contentSP.setSize(400,100);
_level0.contentSP.setScrollContent(_level0.holder);

_level0.contentSP.setHScroll(true);

}



}

}

Font Issue With Scrollpane Component
Has anyone run into this situation (need Mac users if possible):

I'm just starting a Flash project, on a Mac, and using the scrollplane component.

I want my fonts in this scrollpane to be crisp, but not necessarily pixel fonts (they actually seem to blur in most scrollpanes, even when on a "1.0" px coordinate). So I'm using the "use device fonts option."

On a PC, the fonts scroll fine when using this option. However, on most Macs, the 'mask' for the scrollpane becomes useless. The fonts stick out over the edges.

I want crisp fonts-pixel or otherwise, for the scrollpane component. Any suggestions out there?

URL for mac users:
http://csg4.lrdc.pitt.edu/lw

Help Past The Deadline, Scrollpane Issue
I'm working on a project that's way past the deadline, and this is the last thing I need to fix before finally delivering it...
I've posted this on two other forums, but nobody could help. It's a component issue, so I hope I'm not off-topic here...

I've got a scrollpane that loads an external content.swf, which in turn loads multiple mc containers, each of them loading an external jpg. the jpg names are gathered from an xml file.

Each of these containers have a getURL('www.somepage.com') link on them, which show up fine if I load content.swf by itself.
Thing is, once content.swf is loaded into the scrollpane, the links disappear, though I made sure these containers are at the top of the z-index.

I can't find anything that could be causing this, I had loaded linked mcs inside a scrollpane successfully before, with much of the same code.

Has anyone ever experienced this? I have a stiff neck from going over everything a dozen times without finding anything that could be causing this.
What could I be doing wrong? I'm a php coder learning flash and actionscript, and I definetly have a few blind spots in my knowledge of components...

any help would be immensely appreciated, it would save my day, really.

3rdw0rld3r

V2 ScrollPane Component Border Issue
I'm having trouble turning off the border on an MX 2004 ScrollPane Component.

I want no visible border.

I've tried applying custom themes, but can't seem to locate what is controlling the bounding box. Yes, I tried messing with the Bounding Box clip in the theme. Evidently, this is controlling something else.

Any suggestions?

Flash Mx -ScrollPane - Scroll Bar Issue
If we create some dynamic content and display it using scrollPane and if the width and height of the clip( the clip displayed in ScrollPane) changes dynamically by clicking on a button then refreshPane method does not work properly. We have to set original position of the clip to (0, 0) when scroll bar (vertical/ horizontal) disappears. I think this is not a good idea to work around with scrollPane.

Let me know if there are any efficient methods with which we can handle dynamic data in scrollPane to display it properly.

Thanks in advance,
Shreeram

ComboBox Inside ScrollPane Issue
Hi all
I have attached some movieClips which is having ComboBox in to the ScrollPane.
But it is not working properly

MovieClip which is inside the library is having a comboBox with three build in items [labels : One, Two, Three], [Data : defaultValue, defaultValue, defaultValue]

When i attach this movie inside the ScrollPane it worked good.
But when i change the Data provider after attaching, DropDown shows the correct label. But The selected one is not showing the Correct Label

Path to download the sample source



expecting your help on thisClick Here to Download Source File

Datagrid Inside A Scrollpane Issue
Normally, when the enter key is pressed inside a datagrid, the focus moves to the same column in the next record (down one cell). When the datagrid is embedded inside a scrollpane, this behavior ceases to function. In fact, I can't even get a keyboard event to fire when I hit the enter key. Any ideas on how I can restore the default functionality?

Here's an example: http://schooldynamics.net/jbjorgen/problem.zip

Urgent Help: Scrollpane Issue Getting Close To Deadline
Hello All,

I'm in urgent need of some help with ScrollPane in Flash MX.

I have a ScrollPane in the main movie. I am loading a movie(swf), from external source, into the ScrollPane. Loading the movie is not an issue and the buttons in the loaded movie even work, but the movie doesn't scroll.

What might I be doing wrong?
I don't even see the ScrollPane border line or scroll bars.

Thank you in advance for any assistance.

John

ScrollPane Issue With Dynamically Added Components
Hi All,

I'm trying to add a series of 10 ComboBoxes in a ScrollPane one below the other. Though the height of the each ComboBox is reported as 22 the content mc shows a height of 298 (9*22 + 100). After populating the ScrollPane with 10 ComboBoxes, the ScrollPane shows empty space below the last ComboBox. I guess somehow these components are retaining their default height (100) when added dynamically.

Sample code at the end.

The result is the same when adding components like Button, CheckBox, RadioButton.

Any ideas what could be possible wrong? How do I ensure the ScrollPane's content MovieClip's height is reported as 220 (10*22) with exact fitting ComboBoxes in the ScrollPane?

And yes, the required components are added in the library. The problem is not that they are not displaying.. They are all displaying fine... just that the hight of the ScrollPane's content is more than the actual content.








Attach Code

import fl.controls.*;
import flash.display.MovieClip;
//
function addComponents() {
var mc:MovieClip = new MovieClip();
my_sp.source = mc;
for (var i=0; i<10; i++) {
var cb = new ComboBox();
mc.addChild(cb);
cb.y=i*cb.height;
}
my_sp.refreshPane();
trace(mc.height);
}
addComponents();

Can You Add The Whole Stage To A ScrollPane Instance & Global Coordinate Issue
title says it all...I want to add the whole stage to a ScrollPane instance and I want to know if it's possible, because the browser doesn't enable scrolling for content off-screen...so what's the easiest fix for this?

Also, in a related matter...I have my HTML set to fill the screen with my Flash movie at 100% width & height...but when I add something to stage w/ coordinates of 0, 0, it doesn't appear in the top-left corner of the browser window like I would expect? it's offset several hundred pixels. When I do add it to stage, I add it at the top-level, so it's not nested in any other MC's and it should have global coordinate positioning. What's the story on that?

Buttons Inside Scrollpane And Root Movie Issue
Caio rigazzi,

I have a scrollpane with a movie that contains a movie clip in it. That movieclip contains buttons which are capable of bringing up a pop-up menu and should display a sample image when "rolled over". The problem is when I use :

on (rollOver) {
_root.rollover.gotoAndPlay ("1FLUX");

}
on (rollOut) {
_root.rollover.gotoAndPlay ("1BACK");
}

The "roll over" function does not work in the main movie this scroll pane is loaded into.

Basically, the scroll bar in a swf named VIDEO, is loaded into a DESIGNWORK1.fla, which is loaded into a main video: INDEX12
(courtesy of the Transitions between External SWFs( 1, 2)

How can I get this scroll bar to work?


aswg

Buttons Inside Scrollpane And Root Movie Issue
Caio rigazzi,

I have a scrollpane with a movie that contains a movie clip in it. That movieclip contains buttons which are capable of bringing up a pop-up menu and should display a sample image when "rolled over". The problem is when I use :

on (rollOver) {
_root.rollover.gotoAndPlay ("1FLUX");

}
on (rollOut) {
_root.rollover.gotoAndPlay ("1BACK");
}

The "roll over" function does not work in the main movie this scroll pane is loaded into.

Basically, the scroll bar in a swf named VIDEO, is loaded into a DESIGNWORK1.fla, which is loaded into a main video: INDEX12
(courtesy of the Transitions between External SWFs( 1, 2)

How can I get this scroll bar to work?


aswg

[F8] Button Inside Scrollpane, Cannot Control MC Outside Of Scrollpane?+emptymc
Hi, first look at the example of how it should work :

http://www.surfacingmedia.com/VIDEOPLAYER2.html
notice the Buttons in the scroller on the right tell the MC on the left to GOTO MC frame i want it too (each frame then holds Player for specific video.)
works great right?

Now when I load this into my main site into an empty movieclip i use for all section content it Does not work at all! sure it loads the first video but the buttons are disabled?
(use link below navigate to photo/video and selet video.)
http://www.surfacingmedia.com/

the code is the same just calls to the videoplayer MC and tells it to goto a certain frame.
it doesnt work when loaded into my empty MC. ?
any suggestions?
If kill the scrollpane altogether, buttons work fine then even loaded into emptyMC. seems once buried in scrollpane its too deep for buttons to work? which for me defeats the purpose kinda.
Note-Flash 8 (i am a code lightweight i used the BEHAVIORS commands gotoand stop on frame select the MC.)

Thanks in advance i will answer some posts while i am here that i can now.

ScrollPane Auto Scroll On Frames Within ScrollPane
Hi Guys,

I am using an instance of the scrollPane component to load in scrollable content, some of the items of content are .swfs that have separate navigation within them. I am wondering how I can get the scrollPane to adjust the amount it can scroll based on the content on each frame of the movie that has been loaded into the scrollPane. Ideally the scrollbar would also turn off when the content is small enough for there to be no need for the scrollbar.

Thanks,

-Jim

Swapping Scrollpane Content With Button Outside Scrollpane
Hi,

I'm terribly new to flash which is probably why I couldn't solve this with any tutorial out there.

I've got a scrollpane, and outside that I have a few buttons working as a nav bar. I want these buttons to load a different movieclip (which isn't in the stage, it's in the library) to the scrollpane.

Using the tutorial on this site (the one where you add or remove a blue movieclip to the scrollpane) I got as far as adding the movieclip to the scrollpane. Problem is, I need the buttons to unload the current movieclip before loading the new one.

(So for example, if the movieclip called "home" is loaded in the scrollpane and I click on the button "Patterns & Textures" I want that button to unload "home" from the scrollpane and load the movieclip "patterns")

My code so far looks like this:



Code:
scrollPane.setStyle("borderStyle", "none");

var i:Number=0;
var mcMain:MovieClip;
function init() {

scrollPane.contentPath = "home";
mcMain = scrollPane.content;
trace(mcMain);

}
init();

brushes_btn.onRelease = function() {

mcMain.attachMovie("brushes", "brushes"+i, mcMain.getNextHighestDepth(), {_y:50*i+5, _x:5});
i++;
scrollPane.invalidate();

};
Taken from the tutorial.

I'm pretty sure I don't need the + i part because I won't have more than one mc in the scrollpane at once, but I don't know how to remove it without screwing it up.

I'd greatly appreciate any help!

Scrollpane Content Not Limited To Scrollpane
I am using the scrollpane component in flash mx. I have content loaded into the scrollpane via actionscript. The content loads up, but the scrollbars scroll it past the edges of the scrollpane. The content then overlaps the rest of my movie(outside the scrollpane. How can I fix this? shouldn't there be a mask there? thanks for your help, garrett

Loading Mc In One Scrollpane From Mc Clip In Another Scrollpane
I'm still stuck.

I have one movie clip with a whole bunch of buttons 'loaded' into scrollpane and I want each button to load a different mc into a different scrollpane when clicked.

I tried using "attachMovie" but I'm still very confused.

Is this what I use?

If so, do I go

on(release){
attachMovie("mc name", "frame label of loaded mc", "level not in use");

}


Any help is greatly appreciated.
Thanks in advance.

Scale Scrollpane Content Not Scrollpane
Friday arvo, fantastic.

Any way I can scale a externally loaded clip sitting in a scrollpane.

I can scale the scrollpane no probs using a slider but I want the scrollpane to be static and the swf inside the scrollpane to scale.

cheers in advance.

H

Postioning Content In Scrollpane Without Using Scrollpane
Hi guys.
Not sure if this is possible. i had a look through the help files but had no luck I have 2 questions so here goes.
i am using V2 components in particular the scrollbar component.
I am attaching an mc to the scrollbar the mc contains several lines of text.
Is it possible to use a button elsewhere in the movie to set the postion of the mc in the scrollpane. Essentially moving the content up or done without using the scroll pane buttons or track bar?
How on earth do i change the colour of the scrollbar track button?

thanks
Paul

Scale Scrollpane Content Not Scrollpane
Friday arvo, fantastic.

Any way I can scale a externally loaded clip sitting in a scrollpane.

I can scale the scrollpane no probs using a slider but I want the scrollpane to be static and the swf inside the scrollpane to scale.

cheers in advance.

H

ScrollPane To ScrollPane Communication
I have a scene with two ScrollPanes. One ScrollPane contains a movieclip of thumbnails (used as buttons), the other ScrollPane contains larger pictures. Similar to a photo album. When each thumbnail is clicked, it is supposed to go to a specific frame label of another movie clip within the second ScrollPane.

This is the code I am using for the thumbnail buttons:

on (release) {
_level0.Ads-Scroll-Large.tmp_mc.gotoAndPlay("AD2");
}

I know it has to be something stupid...

Any help would be greatly appreciated!

Many Thanks,
Todd

Loading Mc In One Scrollpane From Mc In Another Scrollpane
I'm still stuck.

I have one movie clip with a whole bunch of pictures as buttons 'loaded' into a scrollpane and I want each button to load a different mc into a different scrollpane when clicked.

I tried using "attachMovie" but I'm still very confused.

Is this what I use?

If so, do I go

on(release){
attachMovie("mc name", "frame label of loaded mc", "level not in use");

}


Any help is greatly appreciated.
Thanks in advance.

One ScrollPane Scrolls Another ScrollPane?
Hi. I have 2 scrollPanes in 1 .swf. The left one loads in an mc with text and links. The right one is the main text content. I want users to be able to click on links in the left pane to vertically scroll the right pane.

Oh. And I need to publish this in Flash 6.

Thanks for any advice.

Copyright © 2005-08 www.BigResource.com, All rights reserved