Scrollpane Problem
i am having difficulty targeting a mc in scrollpane, i tried to use attachmovie but it didn't work, maybe iam using attachmovie wrong.here is more details
in 'scene 1' i have a scroll pane which is scrolling a mc called 'test'
now, i want to create a button in 'scene1' which controls the 'test' mc, so how do i target this mc, as it is only in the library
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-10-2003, 11:52 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[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.
Calling From ScrollPane To ScrollPane
I am still pretty new to actionscripting...so please bare with me.
Here is what I have...
I have 2 scroll panes
Both of the following scroll panes are on the main stage (frame 1).
One scroll pane has an instance name of "scrollComponent". It is loading the movie "componentList_MC".
In the "componentList_MC" movie is a battery button with an instance name of "batteryBut_btn".
The second scroll pane has an instance name of "viewsScroll". It is loading the movie "viewsPanel_MC".
In the "viewsPanel_MC" I have a frame label of "full" and another label of "230-6368_Battery".
The inital state of the "viewsPanel_MC" is set so that it is on the frame label "full".
I am trying to get it to where when you click on "batteryBut_btn" that it will go to "viewsPanel_MC" and go to the frame label "230-6368_Battery".
Here is the code I have on frame 1 on the actions layer. This is what I have described above and is not working. Any thoughts or suggestions that someone could help me out with?
//12V Battery (230-6368_Battery)
batteryBut_btn.onRelease = function() {
_root.viewsScroll.viewsPanel_MC.gotoAndStop("230-6368_Battery");
};
Loading Dynamic Info Into Scrollpane -- Then Loading The Scrollpane Please?
hi,
i've been tearing my hair out trying to get this to work:
1:
dynamically load certain images and info by calling an xml file from within flash. this will create a timeline, which you can see works perfectly (i hope) in timeline.fla
2:
load that timeline.swf into a scrollpane (in this case, located in timeline_test.fla) by clicking on the chapter numbers on the bottom.
for the second part, i have gotten as far as loading timeline.swf into the scrollpane, but for some reason it only shows the last image in the timeline. there should be at least 3 more images that come before the one displayed. it also will not show the date and title of the image, which *does* show in timeline.swf. why is everything getting excluded? and how do i fix it?
also, i've tried to figure out how to get the chapter numbers to update the scrollpane, but with no luck. the best i can do is the ripped buttons from cyanBlue's code, which obviously i don't want in the final version.
i would be willing to take the code from timeline.fla and put it right into timeline_test.fla, although as to how i would do this, i have no idea.
i think i've read just about every tutorial and message post on scrollpane and loadMovie, but it's turning out to be a huge headache and nothing works the way i want it to.
please, if you can help me, i would IMMENSELY GRATEFUL.
thank you thank you,
chi_grl
Scrollpane
I'm trying to load a swf file in to a flash mx srollpane component I have been using the LoadMovie("filename.swf", level"). The movie loads but it dosen't load in to the scrollpane it loads over my other movie. what am I doing wrong. and I don't exactly understand what is needed in the level part of the code. I would appreciate any help some one could give.
Scrollpane
Problems with scrollpane...
Here's what happens :
I have a MC with text in and some rectangles to make some text more important. Nothing else in. The text is static cause I need to be able to make some centered, and some bold etc.
This MC is "in" a scrollpane.
When I play the movie, I can scroll the MC but it shows outside the scrollpane as if there wasn't a mask. What can I do ?
Also, I want the scrollpane to slide sidewards when the movie starts playing like it's entering the screen from the right. I applied a motion tween to it and stuff but when I play the movie the scrollpane doesn't move. Any idea ?
Cheers
Scrollpane
I have been trying to get the scrollpane working for a week now and I finally gave up and decided to ask you guys here if you can give me some hints.
I've tried using the setScrollContent funcion but I've failed. Can you please let me know how it works?
Thanks in advance
ScrollPane
I know this is a rookie question but. How do you get
your MC inside the ScrollPane component? I can not figure
this out. Any one know? Thanx.
ScrollPane
Hi
I want to scroll a combination of pictures and text. So I used the ScrollPane component and it works fine. But it looks bad.
Is there anyway that I can make the ScrollPane background invisible and remove the border so that you only see the scrollbar and bottens? Or is there another way to scroll a combination of pictures and text and maintain the (gradient) background?
I'm not all that good at actionscript code, so if the answer contains code please try to explain it in a simple way. Thanks.
ScrollPane In The *&%
I have dynamically created a columns and rows and want to have that in a scroll pane component.
When I bring in the movie clip with a linkage of mc_list,
and do a trace, it brings up temp_mc and my data is not scrollable.
Why is this.
Scrollpane Looks
Hello!
I'm currently working on a school flash project and still new at using flash mx. Right, question is how do we change how the scrollpane scrollbar and background looks?. I've tried changing the scrollpane's properties for its background (tried change colour to tint and advanced) but doesn't seem to be working cuz' when tried out i can't see the stuff i put in the scroll pane in the first place.
Oh yeah, how do we change the appearance of the scroll bars in the scroll pane?
Thanks!
Scrollpane
hey all,
i am using the scrollpane component in flash mx, i have costumized the skin, and i wan to know how to use a external file to be placed in the scrollpane. whether it be a .txt file or .hmtl explanation would be much appreciated. thanks
ScrollPane
Hello,
I have a ScrollPane that allows the user to scroll some text and pictures. I have two small problems with this ScrollPane.
#1... when the swf that contains this ScrollPane is loaded into my main movie, everything in my main movie freezes for about 3-5 seconds. Any ideas?
#2... the ScrollPane does not scroll my information very smoothly. It does not move the same as say a regular scroll bar in Internet Explorer. Can this be adjusted?
Thanks in advance for any advice.
ScrollPane
I have a movieClip in a ScrollPane. When the swf that contains this ScrollPane is loaded into my main movie, the main movie freezes for a few seconds. How do I avoid this. Each swf that is loaded into my main movie continues to loop through frames 1 and 2 until the entire movie is loaded. If the movie has been loaded then why still the pause from my main movie, as if it is waiting for the movieClip to load into the ScrollPane.
Hope someone can help.
Thank you very much for any help.
ScrollPane - HELP
Hi!
(first, sorry for my english! =) )
i have a problem with this component, someone could help me?
i load a .swf file in a scrollpane, but the scripts of this movie loaded don't work (but when i test it separately, it works correctly).
(maybe the error are in the paths, but i dont know what to use!!!)
here's the movie:
www.91fm.com.br/teste/Untitled-1.htm
* here's the code inside the main movie, in the first frame:
barra.loadScrollContent("RepLago2_deitado2.swf");
* here's the code inside the movie clip of the movie loaded
on (release) {
var i=1;
posposterior=this._X+10;
maxposterior=this._X+200;
while(i<=_root.n){
if(_root["MC"+i]._X>=posposterior and _root["MC"+i]._X<=maxposterior and _root["MC"+i]._visible==true and _root["MC"+i]._y==this._y){
this._X+=160;
_root["MC"+i]._X-=164;
break;
}
i++
}
TNX!!
Scrollpane Help
i want to remove the border from the scroll pane, is it a configurable option or do i have to edit the object itself. kinda new to the flash mx
Scrollpane
I've a combo box in a scrollpane. everything displays well untill I start scrolling the scrollpane. My combo box will disappear/_alpha = 0 on its own. I have to click on the combo box position to make it visible again. How do I solve this? I did not do any coding to it.
ScrollPane
Hi. I am using the Flash MX scrollPane in combination with a third party componenent called ZoomPane to make a scrollable zoomable movie. My code calls a Movie Symbol called "Floor". Both the ZoomPane and the ScrollPane call it as follows:
myZoom.snapTo(myScroll);
myScroll.setScrollContent("Floor");
myZoom.setScrollContent("Floor");
myScroll.setContentScale();
My problem is that I would like to alter a variable inside of the Movie "Floor" in the ZoomPane and not in the ScrollPane. This way the movie can be different but still use the same movie symbol.
Can anyone offer advice?
Thanks.
Scrollpane Help
I'm using the scrollpane component for the first time, and I have a question.
You can see what I'm doing by going here:
http://www.tcurranmusic.com/work/38.swf
and clicking on the slingshot icon to go to the studio page.
I have the scrollpane working properly, but I'd like to control the scroll using the little black buttons, not the gigantic windows-like scrolling bar that it comes with. I know how to turn it off, but I don't know how to configure my exisiting buttons to control the scroll.
Any help is much appreciated!
ScrollPane
THANK YOU so much. I can now see what I was doing wrong....amd I the complete or what!
Thanks again!
Scrollpane Mod
Hi all!
I am working on a menu system that uses the scrollpane component to scroll the various link objects inside. The text for these links are pixel fonts, and must be kept on whole integer x,y values to stay crisp.
The problem is that the very smooth scrolling of the scrollpane movement is making my text inside fuzzy.
Does anyone know how I could modify the scrollpane component so that it only scrolls in whole pixel increments? Thanks to anyone who could help!
Sincerely,
Derek
www.derekprospero.com
ScrollPane And TAB
I've got a scrollPane that is balls-ing up my tabIndex. Does anyone have an idea how to get round it?
Cheers
Mat
ScrollPane
Can you change the back ground color of a ScrollPane and if so how. I am fallowing this example . i have done it one way by making the base layer the color i want but is their another way?
Thanks
JOptionPane
ScrollPane Again
Hi there,
I'm using the ScrollPane component of FlashMX. I would like to set the background of the scrollpane to transparent? Is this possible? Thanks
Regards,
Omer
Help With Scrollpane
How do I change, if possible, the bakground of a scrollpane in flash mx?
The background (and the arrows) is white, and i would like it to be transparent.
Please help me.
Thank you.
Scrollpane
Hi
I have two scrollpane windows on the stage, one of the movies of the first scrollpane window has 4 buttons, "Yellow", "Green", "Red", "Blue"; the second scrollpane movie has 4 frameslabels, "Yellow", "Green", "Red", "Blue".
I want to click on the on the movie with the four buttoms and be able to control the movie in the other scrollpane, example if I click on the bottom "Green" from one scrollpane I want the the movie on the other scrollpane to go to the label "green".
This is how I'm doing it but is not working:
I created this fuction on the first frame of the main movie.
stop();
_global.window_Function = function(Movie, frame) {
play(Movie);
gotoAndPlay(frame);
};
On each button I have this script.
on (release) {
_global.window_Function(window2, green);
}
In Each button the label name changed, "window2" is the name of the scrollpane movie with the framelabels.
Can some one please tell me why this is not working?
Here are the files
ftp://65.49.66.147/
Thanks
Alex
Scrollpane Help
First I have to thank you guys for helping me with answers over the last two years. i've finally graduated to MX and I hope these two questions aren't too easy that I should know it but first.
I'm trying to change the colors of the scrolltrak inside the scrollpane, I tried dragging the individual parts from the library and I can't get it to change colors.
second, I need to change the background of the scroll pane and or scrollbar itself. I gotta get used to MX
rdee
Scrollpane
Hey guys,
(here I'm "again")
does anyone know how to make a scroll pane (horizontally) that moves quicker if you move further to the right or the left
thanx again
greetigns
ScrollPane
Hello,
I have 2 scenes on my website, the first one is a preloader. The second scene includes 4 scrollpanes and other materials. When I test the movie, all the scrollpanes are exported in the first frame of the preloader. After I cleared the check mark in the symbol properties next to "Export in first frame", the scrollpanes were not loaded at all, not in the preloader and not in the main scene. Would you be so kind and tell me how I can export the scrollpanes in the second scene only.
Thank you,
Guy
Scrollpane
Can a dynamic text block be scrolled in a scrollpane?
ScrollPane?
i have a movie clip that is large and need to add a scrollpane to it in order for the user to scroll up and down on it. i can cahnge it to a graphic if need be too. does anyone know how to do this?
Scrollpane
i made a scrollpane and a new symbol for its content. however the scrollpane does not scroll instead i have to click and drag to see the text from the symbol i created, as it appears quite far down the movie not where it should appear.
please someone help me
ScrollPane
Is there any way to set the length of how much is scrolled. I have a movie clip that I am scrolling with the component scrollpane, but the length of it will change based on the size of the text file being loaded in. How would I set the length of the scroll bar dynamically?
Scrollpane
I have figured out how to insert a scrollpane and how to get it to work, but I am having trouble getting all the text in. Is there a way to copy and paste a bunch of text from a Word document? It is only letting me paste a few lines.
Thanks in Advance,
Jamie
ScrollPane
Can anyone tell me how you use a UI component like a scrollPane.
How does it work?
Thank you.
Scrollpane
How can I set scroll content? content should be movie called clipA.
Something Better Than ScrollPane ?
Is there a more reliable and lighter scroller than MX2004 ScrollPane?
The one in the UI components dosn't seem to work that well, and crashes on certain ocasions. Is there a better scroller script for no textual content ? (swf's)
ScrollPane Help
setScrollContent help
ok so i've been banging my head looking for the simple answer to this for hours- to no avail.
goal is:
setting up a movie clip to be used as a button via aS and then pressing it to load another movie clip into scrollpane.
problem is in:
on (press) { scroller.setScrollContent("news")
}
where Flash won't recognize 'scroller'. I'm fairly sure it just comes down to the fact that I've improperly labelled 'scroller' aka my scroll pane. Where can I change it's name so that the code line will recognize it as scroller? Or at least, what's the default name, since that should work too.
any help would be appreciated. o.o
pleeasse..
-j.
|