Please Help Me Place The Arrows Of My ScrollPane Scroll Bar Together On One End Of The Scroll Track
I have a scrollpane component with a movie clip of some thumbnail images.I just want to have its scrollbar arrows together on one end of the track (or together ANYwhere) instead of having them at opposite ends of the scroll track.I have been able to customize the appearance of the scrollpane and its scrollbar using the HaloTheme library, but that approach has so far been of no use in getting the arrows together.I cannot tell you how deeply any help will be appreciated. I will probably sob and mewl with gratitude, the way I imagine someone lost in a vast rain forest for many weeks mewls when rescued. I am desperate. I am going insane. Please, please help me.
Adobe > Flash General Discussion
Posted on: 12/10/2007 03:18:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Move Arrows Of Scrollpane Scroll Bar-- Help
I have a movie clip of some thumbnail images in a scrollpane.
I just want to have the arrows of the scrollpane's scrollbar together on the same end of the scroll track, instead of at opposite ends.
I have customized the appearance of the pane using the HaloTheme library, but it seems to be of no use in getting the arrows closer to each other.
ANY clues gratefully received.
Modifying Position Of Scroll Arrows In Scroll Pane
Does anyone out there know how to modify the code of the standard Flash component scroll pane to allow you to place the arrows anywhere you want on the page? I was able to go in and assign x and y coordinates for them, but they seem to be linked to the bounding box somehow and whenever I raise or lower them the box follows suit, which ends up cutting of the content inside the box...
I didn't post any code because there is so **** much of it and I can't figure out where it is that the position of the arrows is linked to the position of that ****ed box (this is what I suspect the problem is, but please tell me if you know different!)!!!
HELP!!!!
Modifying Position Of Scroll Arrows In Scroll Pane
Does anyone out there know how to modify the code of the standard Flash component scroll pane to allow you to place the arrows anywhere you want on the page? I was able to go in and assign x and y coordinates for them, but they seem to be linked to the bounding box somehow and whenever I raise or lower them the box follows suit, which ends up cutting of the content inside the box...
I didn't post any code because there is so **** much of it and I can't figure out where it is that the position of the arrows is linked to the position of that ****ed box (this is what I suspect the problem is, but please tell me if you know different!)!!!
HELP!!!!
Scroll Arrows
How can I make scroll arrows only appear if there's additional text to scroll to? My site has a couple sections that are only 1 page, so I'd rather not have the arrows show. I'm brand new to flash but this is the only change I need to make (a friend of mine made the site for me). Here's the link:
www.lightstormstudios.com
Thanks everyone!
-Marc
Scroll Bar Arrows
I've got a document with multiple scenes, and in the 2nd scene I have a dynamic text, multi-line field with a scroll bar that works just fine. However, when I try the same thing in other scenes the roller bar doesn't have arrows and the text is no longer dynamic. Has anyone else has this problem or the solution?
Scroll Arrows?
scroll
--------------------------------------------------------------------------------
hi!
i wont to do a scroll that only show the arrow thet is possible to use. SO if the text is newly loaded the only scroll arrow i wont to see is the one that scrolls down and directly after you klick thet one the scrol up gets visible.And when you come to the end of the text the down arrow disapers. Bad eng i know !
/m
Can't See Scroll Arrows
Ok, I've made many scrollable text boxes. But now, I've made one that isn't acting right and I don't know why. It actually works, but you can't see the arrows on the scroll bar.
I don't know action script, so i do everything visually.
I made a dynamic text box the size I wanted it and gave it an instance name. Then, I made sure the text box was multiline and scrollable. I dragged a UIScrollBar component onto the right side of the text box. It automatically added the instance name of the text box to the target path. Finally, I added all my text. What am i missing? When testing it, you can actually use the arrow keys to scroll, but I kinda need the scroll bar to be functional. Thanks for your help!
Scroll Arrows
Is there an easy way to make custom scroll arrows and applying action script to the arrows?
i have found this code
Code:
on(press){
scroller.scroll++;
}
but it scrolls one line per mouse click. I would like to have on press scroll and then on release stop scroll, something like that. any sugestions
Scroll Arrows?
scroll
--------------------------------------------------------------------------------
hi!
i wont to do a scroll that only show the arrow thet is possible to use. SO if the text is newly loaded the only scroll arrow i wont to see is the one that scrolls down and directly after you klick thet one the scrol up gets visible.And when you come to the end of the text the down arrow disapers. Bad eng i know !
/m
Can't See Scroll Arrows
Ok, I've made many scrollable text boxes. But now, I've made one that isn't acting right and I don't know why. It actually works, but you can't see the arrows on the scroll bar.
I don't know action script, so i do everything visually.
I made a dynamic text box the size I wanted it and gave it an instance name. Then, I made sure the text box was multiline and scrollable. I dragged a UIScrollBar component onto the right side of the text box. It automatically added the instance name of the text box to the target path. Finally, I added all my text. What am i missing? When testing it, you can actually use the arrow keys to scroll, but I kinda need the scroll bar to be functional. Thanks for your help!
Changing Scroll Bar To Just Two Arrows Help
hello,
first of all i am using flash mx 2004 version 7.2
and I have created a scrolling text box:
http://www.cherieseleveneleven.com.au/Aboutus1.htm
but would like to remove the scroll bar and make two arrows appear to perform the same function. Im sure it is harder than it sounds!
but how do i do this?
Rollover Arrows In Scroll Panel
i've figured out how to make the up and down arrows in a scroll panel act on rollover. but theres a slight delay before the field begins its scroll.. the action script on the scroll pane is pretty complex for me so im not exactly sure what i need to change to get it to start the scroll as soon as i rollover the arrow. any help would be appreciated.
thanks
Adding Scroll Bar To Scrolling Arrows
Hi,
I've got this scrolling image. That use's arrows and
For scrolling up:
Code:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}
For scrolling down:
Code:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}
Then on my main stage I have a MC called "text" and inside text there's another movieClip called "content".
Is there a simple way to add a ScrollBar on the side? Without using a component?
Many Thanks
Bmcc
[CS3] AS2 - Changing A Scroll Bar To Simple Arrows?
I have some xml content being loaded into a movie clip. Currently, I've got it working with a scroll bar. I'd like to change the scroll bar to simple up & down arrows. It seems like this should be pretty straight forward but I think there must be some trick to it with the code or I'm having a very bad week with flash! I thought i could just modifiy the dragger code but no such luck. Here's my code with the scrollbar.
Actionscript
Code:
/////////////////////////////////////////////////////////////////////
Stage.scaleMode = "noscale";
/////////////////
// Loading XML //
/////////////////
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("portfolio.xml");
myXML.onLoad = function(_status) {
if (_status) {
tempxml = myXML.firstChild.childNodes;
var path1 = myXML.firstChild.attributes.path1;
var path2 = myXML.firstChild.attributes.path2;
var space = 25; // Space between items you can increase this to whatever
for (var i = 0; i<tempxml.length; i++) {
var item = list_mc.attachMovie("clip", "clip"+i, i); // In the library, rightclick on item and choose linkage. You'll see that our items are represented in the code the "clip" name
item._y = (item._height+space)*i; // This places our items on y axis
item.title_txt.text = tempxml[i].attributes.title; // For i<total, attaches a title i to our item
//item.date_txt.text = tempxml[i].attributes.date; // For i<total, attaches a title i to our item
item.descr_txt.text = tempxml[i].attributes.description; // This attaches a description i to our item
//item.url_txt.text = tempxml[i].attributes.url; // And this one a url i to our item
//item.thumbHolder.loadMovie(tempxml[i].firstChild); // Attaches thumbnails to each item
item.thumbHolder.loadMovie(path1 + tempxml[i].firstChild); // Attaches bw thumbnails to each item
item.thumbHolderC.loadMovie(path2 + tempxml[i].firstChild); // Attaches color thumbnails to each item
item.onRollOver = function() {
this.alphaTo(100, 2.0, "easeOutExpo");
this.thumbHolder._visible = false;
};
item.onRollOut = function() {
this.alphaTo(100, 2.0, "easeOutExpo");
this.thumbHolder._visible = true;
};
//item.btn.id = i;
//item._alpha=75; // Sets an alpha = 50 to our items. This can be increased or decreased. It serves for the fade in/fade out effect
//item.onRollOver = function() {
//this.alphaTo(100, 1, "easeOutExpo"); // When I rollOver each item, alpha goes smoothly to 100
//};
//item.onRollOut = function() {
//this.alphaTo(75, 1, "easeOutExpo"); // When I rollOut alpha goes back to 50 as it was. This value should be the same with the one above
//};
//item.onRelease = function() {
//item.btn.getURL(this.url_txt.text,"_blank"); // When I click on an item, it opens an url (wich I set in the xml for each button) in a blank window of my browser
//};
}
delete myXML;
}
};
////////////////////////////
// Setting our scroll bar //
// We'll call it dragger ///
////////////////////////////
targY = 50;
abstandDragger = -195; // If you resize the items, or whatever you'll have to modify this value in order to have your dragger in the right x position
dragger._x = mask_mc._width+abstandDragger;
dragger.onRollOver = function (){
this.colorTo("0xFFFFFF", 1, "easeOutExpo"); // The color code from here makes our dragger white. Change this to modify color
};
dragger.onRollOut = function (){
this.colorTo("0x999999", 1, "easeOutExpo"); // The color code makes our dragger grey as it is in fact. This should be the same as dragger's color as shape ;)
};
dragger.onPress = function() {
startDrag(this, false, this._x, 0, this._x, mask_mc._height-this._height); // Doesn't allow our dragger to get out of some coordinates
};
dragger.onRelease = dragger.onReleaseOutside=function () {
stopDrag(); // Stops the mouse drag action
};
list_mc.setMask(mask_mc);
list_mc.onEnterFrame = function() {
scrollAmount = (this._height-mask_mc._height)/(mask_mc._height-dragger._height);
targY = -dragger._y*scrollAmount;
this._y -= (this._y-targY)/10; // Scroll delay - Ease. Change this value to experiment
};
/////////////////////////////////////
// Setting the mouse wheel support //
/////////////////////////////////////
var dragger:Object = new Object();
dragger.onMouseWheel = function(delta) {
if(this._y >= 3)
{
this._y -= delta;
}else{
this._y = 3;
}
if(this._y <= mask_mc._height-this._height)
{
this._y -= delta;
}else{
this._y = (mask_mc._height-this._height);
}
}
Mouse.addListener(dragger);
/////////
// End //
/////////
Custom Scroll Bars - AS Coding For The Up & Down Arrows
As the topic says, I am basically looking for the coding to add to these 2 movieclip arrows Ive made. Any suggestions ? And also also links to a tutorial or another thread on this subject would be great, thnx for helping
Move Scroll Pane Arrows Right/Left
Hey, does anyone out there know how to change the position of the arrows (left/right) in this case when using the flash scroll pane component? All that I want is to move the scrollbar and arrows from right to left. thanks...
Move Scroll Pane Arrows Right/Left
Hey, does anyone out there know how to change the position of the arrows (left/right) in this case when using the flash scroll pane component? All that I want is to move the scrollbar and arrows from right to left. thanks...
[CS3] AS2 - Confused Getting Simple Arrows To Scroll Xml Content
I found a tutorial online for an xml/flash gallery. I've got it working with a scrollbar but i want to be able to scroll through the images with an up arrow & down arrow instead. I've taken a stab at the code but can't get it working. I've left the original script in just for reference purposes but am stumped as to how to get this function with just arrows. I've tried removing the dragger but nothing happens??? I've attached the files for reference. If anyone can help me out I'd really appreciate it.
P.S - I can't post the image folder as it's too large.
Code:
/////////////////////////////////////////////////////////////////////
Stage.scaleMode = "noscale";
/////////////////
// Loading XML //
/////////////////
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("portfolio.xml");
myXML.onLoad = function(_status) {
if (_status) {
tempxml = myXML.firstChild.childNodes;
var path1 = myXML.firstChild.attributes.path1;
var path2 = myXML.firstChild.attributes.path2;
var space = 25; // Space between items you can increase this to whatever
for (var i = 0; i<tempxml.length; i++) {
var item = list_mc.attachMovie("clip", "clip"+i, i); // In the library, rightclick on item and choose linkage. You'll see that our items are represented in the code the "clip" name
item._y = (item._height+space)*i; // This places our items on y axis
item.title_txt.text = tempxml[i].attributes.title; // For i<total, attaches a title i to our item
//item.date_txt.text = tempxml[i].attributes.date; // For i<total, attaches a title i to our item
item.descr_txt.text = tempxml[i].attributes.description; // This attaches a description i to our item
//item.url_txt.text = tempxml[i].attributes.url; // And this one a url i to our item
//item.thumbHolder.loadMovie(tempxml[i].firstChild); // Attaches thumbnails to each item
item.thumbHolder.loadMovie(path1 + tempxml[i].firstChild); // Attaches bw thumbnails to each item
item.thumbHolderC.loadMovie(path2 + tempxml[i].firstChild); // Attaches color thumbnails to each item
item.onRollOver = function() {
this.alphaTo(100, 2.0, "easeOutExpo");
this.thumbHolder._visible = false;
};
item.onRollOut = function() {
this.alphaTo(100, 2.0, "easeOutExpo");
this.thumbHolder._visible = true;
};
//item.btn.id = i;
//item._alpha=75; // Sets an alpha = 50 to our items. This can be increased or decreased. It serves for the fade in/fade out effect
//item.onRollOver = function() {
//this.alphaTo(100, 1, "easeOutExpo"); // When I rollOver each item, alpha goes smoothly to 100
//};
//item.onRollOut = function() {
//this.alphaTo(75, 1, "easeOutExpo"); // When I rollOut alpha goes back to 50 as it was. This value should be the same with the one above
//};
//item.onRelease = function() {
//item.btn.getURL(this.url_txt.text,"_blank"); // When I click on an item, it opens an url (wich I set in the xml for each button) in a blank window of my browser
//};
}
delete myXML;
}
};
////////////////////////////
// Setting the Arrows //
////////////////////////////
_root.uparrow_mc.onRollOver = function (){
this.alphaTo(100, 1, "easeInExpo"); // The color code from here makes our dragger white. Change this to modify color
}
_root.downarrow_mc.onRollOver = function (){
this.alphaTo(100, 1, "easeInExpo"); // The color code from here makes our dragger white. Change this to modify color
}
_root.downarrow_mc.onRollOut = function (){
this.alphaTo(10, 1, "easeOutExpo"); // The color code makes our dragger grey as it is in fact. This should be the same as dragger's color as shape ;)
}
_root.uparrow_mc.onRollOut = function (){
this.alphaTo(10, 1, "easeOutExpo"); // The color code makes our dragger grey as it is in fact. This should be the same as dragger's color as shape ;)
}
_root.uparrow_mc.onPress = function(){
this.onEnterFrame = function(){
target_mc._y -= 1;
}
}
_root.uparrow_mc.onRelease = function(){
delete this.onEnterFrame;
}
_root.uparrow_mc.onPress = function(){
this.onEnterFrame = function(){
target_mc._y += 1;
}
}
_root.uparrow_mc.onRelease = function(){
delete this.onEnterFrame;
}
////////////////////////////
// Setting our scroll bar //
// We'll call it dragger ///
////////////////////////////
targY = 50;
abstandDragger = -195; // If you resize the items, or whatever you'll have to modify this value in order to have your dragger in the right x position
dragger._x = mask_mc._width+abstandDragger;
dragger.onPress = function() {
startDrag(this, false, this._x, 0, this._x, mask_mc._height-this._height); // Doesn't allow our dragger to get out of some coordinates
};
dragger.onRelease = dragger.onReleaseOutside=function () {
stopDrag(); // Stops the mouse drag action
};
list_mc.setMask(mask_mc);
list_mc.onEnterFrame = function() {
scrollAmount = (this._height-mask_mc._height)/(mask_mc._height-dragger._height);
targY = -dragger._y*scrollAmount;
this._y -= (this._y-targY)/10; // Scroll delay - Ease. Change this value to experiment
};
/////////////////////////////////////
// Setting the mouse wheel support //
/////////////////////////////////////
var dragger:Object = new Object();
dragger.onMouseWheel = function(delta) {
if(this._y >= 3)
{
this._y -= delta;
}else{
this._y = 3;
}
if(this._y <= mask_mc._height-this._height)
{
this._y -= delta;
}else{
this._y = (mask_mc._height-this._height);
}
}
Mouse.addListener(dragger);
/////////
// End //
/////////
Modifying Position Of Arrows In Scroll Pane
does anyone out there know how to change the position of the arrows (left/right) in this case when using the flash scroll pane component? I was able to modify the look, but I want to be able to decide where the arrows are on the page and right now they are stuck to the scroll area... thanks...
Text Box Scroll Bars - Replace With Arrows
Hi
I have made a scrolling text box on my website which contains various information, and due to the lenght of the information users have to scroll the box to read everything inside. This works fine, am happy with how it works. However to scroll down or indeed back up as present their the default scroll bar from flash 8 at the side of the text box, whilst it does the job it doesnt look overally attractive.
My question therefore is, is it possible to replace this scroll bar easily for an arrow at the top and the bottom of the text area. I have seen this done on numerous other sites but cant work out how to, if someone could point me to a tutorial somewhere on the web for this it would be great
with thanks
carl
Modifying Position Of Arrows In Scroll Pane
does anyone out there know how to change the position of the arrows (left/right) in this case when using the flash scroll pane component? I was able to modify the look, but I want to be able to decide where the arrows are on the page and right now they are stuck to the scroll area... thanks...
Help On Scroll Track Please
Hi, I've seen a lot of text scrollers but usualy all of them have a scroll track with arrows, I need only a vertical text scroll track but I'm not so good on scripting, someone can help me with a simple script ?
Thanks !
Retain Grey Out Scroll Track At The Right Side Of Browser
Hi all,
By default when you create a HMTL page, there will be a grey out scroll track at the right side of browser. But if I use swfObject and set the parameter value to 100% like below
Code:
var so = new SWFObject("stage.swf", "website", "100%", "100%", "8", "#000000");
The grey out scroll bar will be missing.
Is there anyway to still retain the grey out bar while still having the flash in 100%
Thanks!
Return To Same Place In Scroll
I have a horizontally scrolling picture that has many hotspots in it. The user scrolls the picture and selects a hotspot...he then jumps to a new screen (frame label) within the same time line. After viewing this new screen, I'd like him to be able to return back to the EXACT place ("_x") they were at on the scrolling picture screen.
Right now, the user returns to the original scrolling picture fine, but the scrolling picture always 'resets' itself to the beginning.
I've tried setting a variable to capture the x location of the scroller but I think, being the actionscript newbie, I am - I'm doing it wrong.
Any help much appreciated!
Sue
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
For "custom Scroll Bar" Make Arrows ._visible = False?
I followed Kirupa's custom scroll bar tutorial and I'm trying to tweak a few things. Where would I put the code to make the arrows invisible when the content can't be scrolled any higher or lower? This is different from the scrollFace being invisible. I don't mean when there is no scrolling at all. Also, where would the "return to visible" (else) code go? The code I plan on using is:
btnDown._visible = false;
else btnDown._visible = true;
btnUp._visible = false;
else btnUp._visible = true;
Scroll Text Using XML (side Bars, Arrows And Text Links)
Hey,
Can anyone point me in the right direction of any tutorials that can help with creating a body of text that is from XML, that is scrollable (scroll bars and arrows), and will alllow for HTML links in the text?
I'm aware of the Kirupa tutorial that covers scrolling text, but I don't believe it covers XML.
Oh yeah, in ActionScript 2.0, too. (sorry, forgot to add that on the subject line.)
Thanks!
Scrollpane Don't Scroll
Sorry for my bad english...
I have use the scroll pane component for view an external movie (pulsanti.swf) in a movie standalone (projector)
In the external movie I have building a list of botton that linked to file exe.
But in the movie projector don't scroll in any way.
the file is this:
file projector
file of the botton
Please... help me
Scrollpane Don't Scroll
Sorry for my bad english...
I have use the scroll pane component for view an external movie (pulsanti.swf) in a movie standalone (projector)
In the external movie I have building a list of botton that linked to file exe.
But in the movie projector don't scroll in any way.
the file is this:
file projector
file of the botton
Please... help me
Scrollpane Don't Scroll
Sorry for my bad english...
I have use the scroll pane component for view an external movie (pulsanti.swf) in a movie standalone (projector)
In the external movie I have building a list of botton that linked to file exe.
But in the movie projector don't scroll in any way.
the file is this:
file projector
file of the botton
Please... help me
Scrollpane Don't Scroll
Sorry for my bad english...
I have use the scroll pane component for view an external movie (pulsanti.swf) in a movie standalone (projector)
In the external movie I have building a list of botton that linked to file exe.
But in the movie projector don't scroll in any way.
the file is this:
file projector
file of the botton
Please... help me
Scrollpane - Is It Possible To Set Scroll Value?
I am trying to set and retrieve the scrollposition of a movie clip loaded inside a scrollpane
The scrollpane has an instance name "myscrollpane"
I am trying this:
trace ("_root.myscrollpane.scroll = " + _root.myscrollpane.scroll);
but the result is undefined.
Any ideas how to use action script to scroll a scrollpane?
Thanks
Paul
Scrollpane Will Not Scroll Down All The Way
im working on my new portfolio section on my site, and i had my scrollpanes working just fine. Then at some point when i was working on other areas the scrollpanes stopped going down all the way. im stumped and getting very frustrated. any suggestions?
Scrollpane Does Not Scroll All The Way Down.
Hi there, i have a movieclip which loads external images, i then attach this to the scrollpane, then listen for when the last image has loaded, then i refresh the scrollpane like this
function panecompleteHandler(event:Event):void {
pane.update();
pane.refreshPane();
//trace("scroll pane refreshed")
}
For some reason, it doesnt let me scroll ALL the way down. it leaves sort of 3/4 of an image unviewable. Is there a way i can tell the scrollpane to scroll down a bit further than it does?
My ScrollPane Won't Scroll
Hello All,
I have a ScrollPane in my main movie.
I can get an outside movie(swf) to load into the ScrollPane and my buttons in the loaded movie even work, but it won't scroll.
I've tried setting the componant properties for scrolling to "auto" or "true" and it still doesn't seem to work.
What am I doing wrong?
Added (since initial Post)
My deadline was moved up, and I am now in urgent need of help on this issue if anyone can provide assistence, It would be greatly appreciated.
Thank you in advance
Oh No Scrollpane Won't Scroll
Hi,
I have this little problem where my scroll pane (cmpThumbs), which is inside another movieClip (nav) isn't scrolling. The arrow buttons on the scroll bar work, and even the grey area. When you click on it, the scroller will jump to that place. The only problem is, is that the scroller won't drag anymore.
Attached to that movieClip, nav, is the following code:
Quote:
onClipEvent (enterFrame) {
this.cmpThumbs.refreshPane();
this._y = (_parent.canvas._y+_parent.canvas._height)+0;
//_parent.nav.cmpThumbs.hScrollPolicy = "on";
}
I have found that //_parent.nav.cmpThumbs.hScrollPolicy = "on"; doesn't help, but by commenting out
this.cmpThumbs.refreshPane();
it works fine. However, I need the scrollPane to refresh as you can tell by the other line of code, I need the whole MC to move to position accordingly to accomidate "canvas".
Any help would be most appreciated.
I am using a v1 scrollPane in Mx2004.
--iMat
Scrollpane Won't Scroll
I have a scroll pane, and its content path is 'text_mc'
text_mc is a movie clip with a bunch of dynamic textboxes in it, all of which load text from an external source.
Each dynamic textbox is coded so that it will resize to fit the text it is loading into it without needing to scroll that particular textbox, and each textbox is also coded to be moved into place with all the other text boxes when they are all resized (to avoid gaps)
The problem I am having is that the scroll pane will not have a scrollbar even though the movieclip (text_mc) is much larger than the pane. Is this because I am loading the text after the pane is made, and is there any way for me to get around this?
Scrolling is enabled on the pane.
Scrollpane Does Not Scroll All The Way Down.
Hi there, i have a movieclip which loads external images, i then attach this to the scrollpane, then listen for when the last image has loaded, then i refresh the scrollpane like this
function panecompleteHandler(event:Event):void {
pane.update();
pane.refreshPane();
//trace("scroll pane refreshed")
}
For some reason, it doesnt let me scroll ALL the way down. it leaves sort of 3/4 of an image unviewable. Is there a way i can tell the scrollpane to scroll down a bit further than it does?
My ScrollPane Won't Scroll
Hello All,
I have a ScrollPane in my main movie.
I can get an outside movie(swf) to load into the ScrollPane and my buttons in the loaded movie even work, but it won't scroll.
I've tried setting the componant properties for scrolling to "auto" or "true" and it still doesn't seem to work.
What am I doing wrong?
Added (since initial Post)
My deadline was moved up, and I am now in urgent need of help on this issue if anyone can provide assistence, It would be greatly appreciated.
Thank you in advance
Oh No Scrollpane Won't Scroll
Hi,
I have this little problem where my scroll pane (cmpThumbs), which is inside another movieClip (nav) isn't scrolling. The arrow buttons on the scroll bar work, and even the grey area. When you click on it, the scroller will jump to that place. The only problem is, is that the scroller won't drag anymore.
Attached to that movieClip, nav, is the following code:
Quote:
onClipEvent (enterFrame) {
this.cmpThumbs.refreshPane();
this._y = (_parent.canvas._y+_parent.canvas._height)+0;
//_parent.nav.cmpThumbs.hScrollPolicy = "on";
}
I have found that //_parent.nav.cmpThumbs.hScrollPolicy = "on"; doesn't help, but by commenting out
this.cmpThumbs.refreshPane();
it works fine. However, I need the scrollPane to refresh as you can tell by the other line of code, I need the whole MC to move to position accordingly to accomidate "canvas".
Any help would be most appreciated.
I am using a v1 scrollPane in Mx2004.
--iMat
Scrollpane Won't Scroll
I have a scroll pane, and its content path is 'text_mc'
text_mc is a movie clip with a bunch of dynamic textboxes in it, all of which load text from an external source.
Each dynamic textbox is coded so that it will resize to fit the text it is loading into it without needing to scroll that particular textbox, and each textbox is also coded to be moved into place with all the other text boxes when they are all resized (to avoid gaps)
The problem I am having is that the scroll pane will not have a scrollbar even though the movieclip (text_mc) is much larger than the pane. Is this because I am loading the text after the pane is made, and is there any way for me to get around this?
Scrolling is enabled on the pane.
Scrollpane Doesnt Scroll
hi,
so ive got my empty scrollpane there and i am attaching movies to it with
_root.mainscrollpane.content_mc.attachMovie("item" ,"item_"+i,i+1);
_root.mainscrollpane.content_mc["item_"+i]._y=60*i;
(the number of the attached movies is dynamically from an xml.)
but the scrollpane doesnt become scrollable when there is more content than the height of the pane. it just stays like it used to be in the beginning.
is this normal? am i missing something?
Help With ScrollPane On(scroll) Please Advanced?
ok I have a scroll pane with a 'spreadsheet' in it. The spreadsheet has to have 3 columns which scroll vertically and not horizaontally, and it has a bunch of other which scroll both ways. Ok I created a scrollpane and put the rows that scroll both ways in it. Then I have a layer on top of the scrollPane layer with the columns in each row that need to 'stick' and not move horizontally. Ok I created a global variable (origY) to hold the original stick columns ._y. Here is my code for the scrollPane:
on(scroll)
{
_parent.stickies._y = _global.origY + this.vPosition;
}
Now this works, but its slightly out of sync. The on(scroll) reports the vPosition prior to the scroll move. So like if I just start the swf and scroll down one click, it reports the vposition as 0 (it is really 10) and then on the next click it is 10 (actually 20). Now I could just add a set number to the vPosition and sync it up, but if they drag the scrolltrack it messes it all up (scrolltrack has no set increments) GAHHHHHHHHHHH. Can anyone help? Is there scroll component other then flashes included ones which will work better for this??? Ideas on a better way to do this?
Scrollpane No Scroll Bars.
for some reason my scroll pane for some random reason has no vertical scroll bars, the horizontal works, the VScrollPolicy is Auto so is HscrollPolicy, any ideas whats going on?
Getting Scrollpane To Scroll 'with' TabIndex
Ok, lets try again
Cyanblue ive been working on the useability of the form and i just managed figure out how to get the tabIndex working properly, but how would i get the scrollpane component to scroll with the tabIndex? And also scroll to the first field detected to have invalid data? Could you please help/ give me a hint?
Here's a snippet of my script..
ActionScript Code:
//instantiate tab index's
this._parent.tabEnabled=false;
this._parent.tabChildren=true;
firstName_txt.tabIndex=1;
lastName_txt.tabIndex=2;
street_txt.tabIndex=3;
suburb_txt.tabIndex=4;
postcode_txt.tabIndex=5;
state_txt.tabIndex=6;
contry_txt.tabIndex=7;
businessAreacode_txt.tabIndex=8;
businessPh_txt.tabIndex=9;
mobilePh_txt.tabIndex=10;
faxAreacode_txt.tabIndex=11;
faxPh_txt.tabIndex=12;
website_txt.tabIndex=13;
title_txt.tabIndex=14;
company_txt.tabIndex=15;
emailAddress_txt.tabIndex=16;
confirmEmailAddress_txt.tabIndex=17;
username_txt.tabIndex=18;
pass_txt.tabIndex=19;
confirmPass_txt.tabIndex=20;
question_txt.tabIndex=21;
answer_txt.tabIndex=22;
disagree_cmp.tabIndex=23;
agree_cmp.tabIndex=24;
submit_cmp.tabIndex=25;
reset_cmp.tabIndex=26;
Selection.setFocus("$firstName");
....
....
....
function processForm(component){
component.enabled=false;//disable submission button to stop accidental multiple submissions
required1_mc._visible = required2_mc._visible = required3_mc._visible = required4_mc._visible = required5_mc._visible = required6_mc._visible = required7_mc._visible = required8_mc._visible = required9_mc._visible = required10_mc._visible = required11_mc._visible = required12_mc._visible = required13_mc._visible = required14_mc._visible = required15_mc._visible = required16_mc._visible = required17_mc._visible = required18_mc._visible =false;
trace("processing form");
if((!$firstName.trim().length>0)
|| (!$lastName.trim().length>0)
|| (!$street.trim().length>0)
|| (!$suburb.trim().length>0)
|| (!$postcode.trim().length>0)
|| (!$state.trim().length>0)
|| (!$country.trim().length>0)
|| (!$businessAreacode.trim().length>0)
|| (!$businessPh.trim().length>0)
|| (!$title.trim().length>0)
|| (!$company.trim().length>0)
|| (($emailAddress.trim().isEmail() && confirmEmailAddress.trim().isEmail() && !($emailAddress.trim()==confirmEmailAddress.trim())) || !$emailAddress.trim().isEmail() || !confirmEmailAddress.trim().isEmail())
|| (!$username.trim().length>0)
|| (($pass.trim().length>0 && confirmPass.trim().length>0 && !($pass.trim()==confirmPass.trim())) || !$pass.trim().length>0 || !confirmPass.trim().length>0)
|| (!$question.trim().length>0)
|| (!$answer.trim().length>0)){
if (!$firstName.trim().length>0){
trace("no first name");
required1_mc._visible=true;
}
if (!$lastName.trim().length>0){
trace("no last name");
required2_mc._visible=true;
}
if(!$street.trim().length>0){
trace("no street");
required3_mc._visible=true;
}
if(!$suburb.trim().length>0){
trace("no suburb");
required4_mc._visible=true;
}
if(!$postcode.trim().length>0){
trace("no postcode");
required5_mc._visible=true;
}
if(!$state.trim().length>0){
trace("no state");
required6_mc._visible=true;
}
if (!$country.trim().length>0){
trace("no country");
required7_mc._visible=true;
}
if (!$businessAreacode.trim().length>0) {
trace("no business areacode");
required8_mc._visible=true;
}
if (!$businessPh.trim().length>0) {
trace("no business ph");
required8_mc._visible=true;
}
if(!$title.trim().length>0) {
trace("no title");
required9_mc._visible=true;
}
if(!$company.trim().length>0) {
trace("no company");
required10_mc._visible=true;
}
if(($emailAddress.trim().isEmail() && confirmEmailAddress.trim().isEmail() && !($emailAddress.trim()==confirmEmailAddress.trim())) || !$emailAddress.trim().isEmail() || !confirmEmailAddress.trim().isEmail()){
trace("no email");
required11_mc._visible=true;
required12_mc._visible=true;
}
if(!$username.trim().length>0){
trace("no username");
required13_mc._visible=true;
}
if(($pass.trim().length>0 && confirmPass.trim().length>0 && !($pass.trim()==confirmPass.trim())) || !$pass.trim().length>0 || !confirmPass.trim().length>0){
trace("bad pass");
required14_mc._visible=true;
required15_mc._visible=true;
}
if(!$question.trim().length>0){
trace("no question");
required16_mc._visible=true;
}
if(!$answer.trim().length>0){
trace("no answer");
required17_mc._visible=true;
}
this._parent._parent.openError("Please enter data correctly. Check fields denoted with arrows")
component.enabled=true;
}else if(agreementGroup.getValue()=="disagree"){
trace("user hasn't opt-in");
required18_mc._visible=true;
this._parent._parent.openError("You must accept on our terms and conditions as outlined at the bottom of this form to proceed");
component.enabled=true;
}else{
this._parent._parent.openStatus("submitting form please wait...", 2);
trace("All is Ok");
$recieveData = new LoadVars();
$sendData = new LoadVars();
$sendData.action="register";
$sendData.firstName=$firstName.trim();
$sendData.lastName=$lastName.trim();
$sendData.street=$street.trim();
$sendData.suburb=$suburb.trim();
$sendData.postcode=$postcode.trim();
$sendData.state=$state.trim();
$sendData.country=$country.trim();
$sendData.businessAreacode=$businessAreacode.trim();
$sendData.businessPh=$businessPh.trim();
$sendData.mobilePh=$mobilePh.trim();
$sendData.title=$title.trim();
$sendData.faxAreacode=$faxAreacode.trim();
$sendData.faxPh=$faxPh.trim();
$sendData.company=$company.trim();
$sendData.website=$website.trim();
$sendData.emailAddress=$emailAddress1.trim();
$sendData.username=$username.trim();
$sendData.pass=$pass.trim();
$sendData.question=$question.trim();
$sendData.answer=$answer.trim();
$sendData.sendAndLoad("php/user.php",$recieveData,"POST");
$recieveData.onLoad = loadRegisterData;
}
};
Thanyou in advance
Question About ScrollPane Scroll Bar
Hello Everyone,
Currently I am working in Flash Professional 8. I need to customize the scroll bar in the ScrollPane. I figured out how to customize the graphics.
Instead of the lil grey scroll bar that you can drag I want it to be an arrow. I made it into an arrow but there appears to be some sort of size restriction on it and the arrow I created appears distorted. Is there some way I can change this size restriction and have the scroll bar be 100 pixels high if I wanted it to be?
Thanks in advance for any help!
Edited: 09/13/2007 at 01:11:28 PM by Rine
Reskinning ScrollPane Scroll Bar
Hey. I'm trying to resking the scroll bars of the scrollPane component
in Flash 8 and haven't quite figure it out using the standard / limited
Flash Help provided. I've been able to use the Help to reskin a
standard UIScrollBar component by duplicating / altering the desired
states. This is the simple code placed on the scrollBar instance on
the timeline that can redirect it to use a new instance:
onClipEvent(initialize){
downArrowDownName = "ScrollDownArrowDown2";
}
ScrollDownArrowDown2 obviously being the new movie clip. However, even
though Flash Help tells me that the scrollPane component utilizes the
UIScollBar elements and to refer to that section to alter the
ScrollPane, I cannot simply use the code above on the scrollPane
component. It sounds like this should be fairrly easy to figure out,
but I'm out of options. Thoughts?
Scroll Scrollpane Using The Mouse
...how to make the scrollpane component scroll using the mouse. I am loading a movie clip inside the scrollpane and i need the mouse to be able to scroll it instead of just using the scrollbar.
|