Scroll Bar - Scroll Pane Issue
I have a scroll pane issue that I can't seem to solve. The issue is, if I load my scroll pane with an image and then on mouseover of the scroll pane change my cursor, I can no longer use the scroll panes scroll bars with my new cursor. If I remove all of my zoom code and just change the cursor the result is the same.
this is my code:
Code: this.zoom_in.onPress = function() { var zoomin = false; pictures.onRollOver = function() { zoomin = true; Mouse.hide(); this.attachMovie("mag_in", "cursor_mc", this.getNextHighestDepth(), {_x:this._xmouse, _y:this._ymouse}); }; pictures.onMouseMove = function() { this.cursor_mc._x = this._xmouse; this.cursor_mc._y = this._ymouse; }; pictures.onRollOut = function() { zoomin = false; Mouse.show(); this.cursor_mc.removeMovieClip(); }; pictures.onMouseDown = function() { if (zoomin=true) { if (pictures.content.myLoader.scaleX>=1600) { this.zoom_in.enabled(false); bgSound.start(); } else { pictures.content.myLoader.scaleX *= 1.5; pictures.content.myLoader.scaleY *= 1.5; trace(Math.floor(pictures.content.myLoader.scaleX)); } pictures.invalidate(); } }; };
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-21-2005, 05:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Scroll Pane Issue
Hi Everyone!
Thank you all for your help! I am learning so much!
Right now I am trying to get two small things to work, but haven't had any luck for the past few days!
1.) I am making a site with a horizontal scroller that displays externally loaded jpgs. I can only get one of the images to load at a time for some reason.
2.) On this same site I want that scroller to always expand to 100% width of the broswer window. I don't want it to scale up, but to expand to show more of the images. I can't get the images inside the scroller to stay at their scale for some reason.
A link to the swf:
http://chadhoule.com/test/test-scollbars.swf
A link to the flash file, zipped:
http://chadhoule.com/test/scrollbars.zip
Code:
Stage.align = "LT";
// prevent the Flash movie from resizing when the browser window changes size.
Stage.scaleMode = "noScale";
// create a listener object
stageListener = new Object();
// add a methods for it to do certain things when the Stage is resized by our user
stageListener.onResize = function() {
expandTop();
expandBodyText();
}
Stage.addListener(stageListener);
expandTop = function() {
// expand the top banner/header/masthead - whatever you want to call it - to be as wide as the stage
myScrollPane._width = Stage.width;
// then move our nice little "contact us" button so it stays right-aligned with the page
contact._x = Stage.width - contact._width - 10;
}
expandBodyText = function() {
body_txt._height = Stage.height - body_txt._y - 10;
myScrollBar.setSize(Stage.height - myScrollBar._y - 10);
}
// Create a listener object event function. The progress bar is an object so needs an object function to work
myProgressBarListener = new Object();
// When the progress bar is complete and has preloaded the Scroll Pane component content, the listener will call and run this code below:
myProgressBarListener = function (eventObject) {
// Hide the progress bar now as we don’t need it any more
myProgressBar._visible = false;
// Closes the above function
};
// Set the location of the content to be loaded
myScrollPane.contentPath = "picture1.jpg", "picture2.jpg";
// Stop the movie at the frame until the move has been preloaded
stop();
Scroll Pane And External Jpgs Issue
Having a possible issue with my scroll pane.
I'm trying to load my external Jpgs into a scroll pane. I created a blank target MC, I made sure to tell the Scroll Pane's scroll content to look to the target MC as well.
My external .jpg will load,...but it seems to load ON TOP of the scroll pane...that or the scroll pane never shows up (I do not see any scroll bars, and the image is not "clipped" as if it was in the scroll pane.
If I create a graphic symbol, and load that into the scroll pane, it works fine. But since I'm doing everything dynamically, loading everything as a symbol is not ideal and is out of the question.
Has anyone run across this issue?
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 Pane Scroll Speed.
Can anyone tell me how to change the speed of scrolling for the scroll pane in MX? I have looked all over for it, but find nothing. When I am scroll it moves like half a line at at time...I'd like to see it faster.
Thanks
I Want The Mouse Scroll For My SCroll Pane
Hey all,
This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.
Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.
Scroll Pane Scroll Bars
I would like to know the action script that I can use to simulate pressing the up and down arrows on the scroll bars within my scroll pane. Does anyone know how to do this. This code would go inside another button I have outside the scrollpane.
And if possible how to simulate the scroll bar too.
thanks
I Want The Mouse Scroll For My SCroll Pane
Hey all,
This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.
Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.
Scroll Pane Scroll Bars
I would like to know the action script that I can use to simulate pressing the up and down arrows on the scroll bars within my scroll pane. Does anyone know how to do this. This code would go inside another button I have outside the scrollpane.
And if possible how to simulate the scroll bar too.
thanks
Scroll Pane Or Scroll Bar ?
If you want a smooth scrolling effect on text so that instead of each line of text dissapearing as it goes over the boundry it should actually look as if it is gradually moving under the boundry (hard to explain) and/or you want buttons/hyperlinks in the text is there any other way than to use a scrollpane and a movie clip with text in it?
Also how do you hide the rest of the clip so that it does not show up even after it has gone over the boundry. Why does the text/movie clip dissapear when you put a mask on the layer above to hide the edges?
Syk
EDIT:
Having tried some things I realize that my second question should have been:
Why does dynamic or input text in a movie clip in a scroll pane go out of the edgesof the scrollpane and can you stop this without changing the text to static??
Scroll Bar (or Scroll Pane) Help
I downloaded this: http://www.flashkit.com/movies/Inter...6224/index.php
Now what I'v been trying to do all day is figure out a way to make the popup windows for the buttons have a scroll bar (or pane? Im not sure which I should use). I want the text to stay in the popup window.
Also if anyone could tell me or point me to somewhere I could find relevant information on how to do this and possibly have the text in a separate text file thatd be great.
Thanks
Scroll Bar And Scroll Pane Help
Please help!
I'm trying to attach a scroll bar to a text box and it's not working. The bar is not attaching itself to the text box. Very strange. I thought it was supposed to attach itself and automatically resize to be the length of the text box.(Home layer)
Also, on the photo gallery layer, I have a lot of pictures and plan to add more. I was told that I could make the page scrollable by making the pictures and captions into a movie clip and then dragging the scroll pane from the components tool box onto the movie clip and it would automatically attach itself. That isn't happening there either.
Am I cursed when it comes to scrolling? (Maybe i'm just doing something wrong.)
Please advise!
Thanks!
Scroll Pane Vs. Scroll Bar HELP
Hi,
I'm trying to put a resume that needs to scroll. I used the dynamic text with the scroll bar, but it wont show any of the text formatting. Whatever the first line of text is (size, bold, align etc.) it forces the entire text to look the same. I can't have this.
So... I made a movie clip of the text, but I'm having trouble entering the right parameters for the content to load in the scroll pane. I also have this file online already, so if there is an easy way to load the URL that would work too. I just keep getting the empty white box!
Thanks for the help!
Lola
Scroll Pane Scroll Bar
How do you move the vertical scroll bar in a Scroll Pane from the right side of the Scroll Pane to the left side of the Scroll Pane? Is this possible Im using Flash 8 professional....Thanks
Scroll Pane
Does anyone know how to use the 'scroll pane' component? I thought it was like the scroll bar, where you can drag it to the text field and it adjusts itself to the field. I read the scroll pane was drag and drop, but nothing I drag to it works. Am I doing something wrong?
yeffer
Scroll Pane
Hi all,
Is there any way to scroll down a scroll pane with a button? Or at least to jump for example 50px down within the Scroll pane.
Thanks!
Natsurfer
Scroll Pane
has anyone got the code to duplicate a movie clip within a scroll pane please?
Scroll Pane
I am going to be creating a web site and I need a scroll pane on it. How would I go about doing an easy scroll pane that would match (so I can change colors). I just got flash and I dont understand the fancy actionscript talk, so the simplist chat would be the best for me. Thanks in advance !
Scroll Pane Help Please
i recently posted over the weekend about trying to use scroll bars for text and images and the moderator estudioworks was kind enough to point me in the right way by telling me to use scroll pane.
now the problem i have is:
a: text and images are exceeding the scroll bar boundries. by this i mean, say i have 600x600 stage and the scroll bars are defined at 300x300, the text and images start in the box but as soon as you start scrolling down, the text go beyond the scroll bar boundries (as opposed to "disappearing" and go over the background graphics.
b: i am also trying to customize the skins for the scroll pane which some pretty bad results. is there a tutorial out there someone can point me to?
c: lastly i'm also trying to get rid of the default white background the scroll pane uses, i'm thinking this is also a skin, but i can't seem to find it.
thanks in advance
lawrence
Scroll Pane
on a scrollPane.loadScrollContent where the image size is bigger than the scroll pane how do you set the scroll bars. not sure what's going on because even though it loads the jpg when i debug it the loadContent is undefined as are content hieght and witdth.
Code:
if (imagepath != "No Image Found For This Record" or undefined) {
this.attachMovie("FScrollPaneSymbol", "iBar", 10);
this.iBar._x = 575;
this.iBar._y = 0;
this.iBar.setSize(400, 250);
this.iBar.loadScrollContent(imagepath);
this.iBar.refreshPane();
}
any assistance is appreciated.
Scroll Pane Please Help
Hi,
First I create an mc that has basically a bunch of Thumbnails, which I attach from the library. Every Thumbnails has a text field associated to it. All of it get's created properly, but as soon as I set it to to scrollPane using setscrollcontent, The Text is there but the Thumbnail(attached .gif from the library is not visible.
Any Idea why? Is this not possible?
Thanks
MX Scroll Pane
Hi all,
Ever have one of those days where your head is just numb? Today is such a day.
For the life of me I can't do this-
dynamically load a jpg into a movie clip
dynamically Load this movie clip into the scrollpane
the idea is to create a slideshow with a scrollpane down the bottom with thumbnails that have been dynamically loaded from a folder into the scrollpane, then once you click on a thumbnail a large jpg will dynamically load into a movieclip on the stage.
I just can't seem to get my head around it today.
thanks in advance....
SWF In Scroll Pane
Hello All,
Hope somebody has an idea of how to fix this. I have the scroll pane component that has a SWF loaded into it when it loads. The SWF in the scroll pane has multiple frame labels on it's timeline.
I am trying to tell the SWF in the scroll pane to gotoAndStop() on a frame label that is pulled from an array.
Code sample:
PHP Code:
level0.content_sp.loadTemp.gotoAndStop(curPage_array[0]);
For some reason it will not reference it in any way.
Any ideas?
Any help is greatly appreciated.
Thanks,
Brian
Scroll Pane
i cant figure out how to get good text in a text pane, how can i do that with the scroll pane component?
Joe
Scroll Pane Help
hey all, i have still been trying btu am not sure how to get the scroll pane to work on flash mx 2004. how do i do that?
Joe
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane
Hi there, im trying to use the Scroll Pane UI component in flash MX to make a movie clip scrollable. Thing its the first time i have ttried this and the tutorials in flash were useless. I drag a pane onto the frame but dont know how to get it to display my movie clip inside. Can anyone help?
Thanks, ste.
Scroll Pane
ok this might sounds really stupid but how the hell do you use the scroll pane component?????? ive tried scripting it to control a movie clip, a graphic symbol you name it ive tried it it just displays as a white box in flash mx and doesnt scroll anything!
thanks for any help!
Scroll Pane
i have a scrollpane sitting inside a movie.
I have another movie with a paragraph of text and have exported it for actionscript
In the Scroll Content Properties of my scrollpane, i have given the linked name of my text movie. But but but..Why won't it work?
Is it the fact that the scrollpane is nested in a movieclip cos i've done it before without nesting it and it has worked?
Scroll Pane
I am using Flash MX and i am wanting to use a scrolling pane to handle the site that i am developing. I purchase a template, but i am having an issue of figuring out how i put the site into the pane, so that the viewer will have to scroll to the bottom and scroll left or right.
Is there a tutorial for this that anyone knows of, or if someone has time to briefly explain it to me, i would appreciate it.
Thanks everybody...
Ren
Scroll Pane
I'm wanting to create a portfolio page that includes thumbnails that you can click on and then up pops a large image similar to the way they do on www.greyscale.net I don't care about the moving circles just the pictures
Scroll Pane Help Please
I would appreciate any help that can be given on the following problem
I would like to create a scrollbar for content which contains both images and text. I have found this tutorial on the tutorial section of this site.
http://www.flashkit.com/tutorials/In...-683/more2.php
I can easily create this but it isn't what I am looking for totally
I would like to have buttons which allow me to scroll when they are pressed (up and down arrow buttons)
I have and example of this at the following link
http://www.pixelranger.com/
The example is the news content section on this site. It has a nice working scroll bar and it can use both images and text in the scroll content (most likley a movie clip being scrolled)
Does anyone have an idea as to how i can acheieve this ? As I have said before all help is much appreciated.
Scroll Pane
Help please,
What is the code to define the scroll content of a scroll pane in action script?
Cheers....
Scroll Pane Help
how can I make the scroll pane background transparent? And how do I get ride of the border around it.
Scroll Pane
Does anyone know how to get rid of that annoying border around the scroll pane. I thought by me changing the opacity in the existing box it would do it. Everytime I preview the movie the border appears. Please Help
Scroll Pane
Hi, I have used the scroll pane before and know that to use it you must check the export for actionscript under the linkage box. Well i have done this for a movie clip, but it will not show up. Do all the symbols in the movieclip have to be checked as well? I wanted to ask before I went to this long task. (there are a LOT of symbols)
Thanks!
Scroll Pane
Hi,
Can anyone help me take the halo off of the scroll pane component?
I can make the border "none", but when I press down on the scroll bar I get a green halo around the entire scrollpane.
Here is some of what I have tried:
myscrollpane.setStyle("borderStyle", "none");
myscrollpane.setStyle("themeColor", "0");
myscrollpane.setStyle("highlightColor", "none");
myscrollpane.boundingBox_mc._height=0;
myscrollpane.boundingBox_mc._width=0;
still no effect.
Scroll Pane
Hi again,
I was wondering if you could help me with this:
http://img458.imageshack.us/img458/9...preview3fh.jpg
I would like the bar on the left with the buttons and the image on the top to always be there, but I want the area in pink to move, like when you click members I want that page to come up with the little scroll things in the pink area.
I think I need a scroll pane, but im not sure how to use that. Also how would I link my buttons to the page that should come up in the scroll pane?
Thanks again,
Ben
[F8] Scroll Pane - What Is Really Possible?
You can edit scroll panes easily by using simple AS to change the colour of the bar etc, you can also change the look on scroll panes completely by going into the components menu and editing the individual parts.
However, can you change the positioning of the actual scrolls etc.
I think the answer, if possible, involves editing the 'actions' layer in the scrollpane, so i created this thread in the actionscript section.
Below is a rough example of what i would like to do.
(Mad PS skillz)
Here is a unanswered thread of another user asking the same kind of question.
http://board.flashkit.com/board/show...pane+customize
or maybe it is possible, just alot easier to use a mask instead..?
Scroll Pane
How do you change the length of an existing scroll pane and after changing it's length how do you get it to fit onto the stage if it is longer then the screen after closing everything (timeline, help, properties, etc.)?
Scroll Pane From AS2 To AS3
Hey guys, I am trying to make the most simple scrollpane. However I am not good at AS, so I am running into some trouble. I am trying to keep it as simple as possible. No fancy dynamic XML loading and tweenings. Just a few buttons horizontally that scroll to the left and right when u mouse over them, and the speed is determined by the distance the mouse is from the center of the scrollpane. I finished a tutorial for it, but however it was in AS2. So now I tried to rewrite it to AS3. I turned it from this AS2 file:
Quote:
panel.onRollOver = panelOver;
function panelOver () {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = border.getBounds(_root);
function scrollPanel () {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollover = panelOver;
delete this.onEnterFrame;
}
if (panel._x >= 250 ){
panel._x = 250;
}
if (panel._x <= -110) {
panel._x = -110;
}
var xdist = _xmouse - 250;
panel._x += -xdist / 7;
}
To this AS3 file:
Quote:
panel.addEventListener(MouseEvent.MOUSE_OVER, panelOver);
function panelOver(event:MouseEvent):void{
this.addEventListener(Event.ENTER_FRAME,scrollPane l);
delete this.onRollOver;
}
var b = border.getBounds(root);
function scrollPanel(event:MouseEvent) :void{
if (mouseX<b.xMin || mouseX>b.xMax || mouseY<b.yMin || mouseY>b.yMax) {
this.onRollover = panelOver;
delete this.onEnterFrame;
}
if (panel.x >= 250 ){
panel.x = 250;
}
if (panel.x <= -110) {
panel.x = -110;
}
var xdist = mouseX - 250;
panel.x += -xdist / 7;
}
However as soon as I mouseover the project a small outbox appears and gives me the error "
Quote:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@2e2ae21 to flash.events.MouseEvent.
"
Does anyone know what I am doing wrong, or how I can get this thing to work? If anyone could help me out I would appreciate it a lot. Thanks in advance fellas. I uploaded my fla here if anyone wants to see it.
https://www.yousendit.com/download/Q01I ... OFN4dnc9PQ
How To Use Scroll Pane
Can anyone tell me where a good tutorial might be on flash components and how to use them.....specifically the scroll pane component? Ive scanned some flash tutorial sites but havent really found any that explain how to use the components flash comes with.
Thank you.
Scroll Pane CS3
Searched all sorts of forums & tutorials, but am (thus far) only finding info on MX 2004 uses...
Have a wide image (or movie clip) that I want to scroll horizontally - how does one use either the Scrollpane or UIScrollBar to do this?
Using Flash CS3.
Scroll Pane
How does the Scroll Pane in flash work? I insert the scroll pane from components, then what would i do next.?
Scroll Pane
Can someone please fix this scrollpane for me so that I can see one set up and working.
Then I can figure out how to set it up for myself.
Its a 80kb file....
Scrollpane ("info")
movie ("text")
I can not figure out how to set up the movie ("text") inside the Scrollpane ("info").
Thanks
Scroll Pane
Hi, im using the scroll pane from the scroll panel.
Im trying to adjust its looks, but i cant. And im reading myself silly in the help.
U used to be abel to go in and edit them before.
Any one know how i can do this with ease?
Scroll Pane
HI everyone! Here is my question, I put in a scroll pane with my graphic for content. The scroll pane was a simple one from the components menu in flash. But my information inside of my scroll pane has piled to the left so there is no margin from my text and the edge. I want at lest 2 space margin from the edge. I need to keep in in static text so how should I aproach it? Any info would be greatly appreciated.
Marc
Scroll Pane
Can anyone tell me how I load an external swf into the scroll pane component?
|