ActionScript 2.0 :: Create A Dynamic Scroll Bar?
Apr 8, 2008
I'm trying to create a dynamic scroll bar and I bought a template and am trying to get this to work. Here is the code for the dynamic scroll bar:
ActionScript Code:
onClipEvent (load) {
oldY = 1;
Y = 1;
[code]....
My problem is that this scroll bar works great for static text. However when I have dynamic text and I intentionally put a lot of it in, the scroll bar stops based on the height of the text box and not necessarily the size of how much dynamic text I have. I think that it deals with one of these:
ActionScript Code:
contentHeight = _parent.scrolledMC._height;
scrollHeight = _parent.scrolledMC._height;
scrollContent = _parent.scrolledMC._y;
scrollContent1 = _parent.scrolledMC;
newY = _parent.scrolledMC._height;
Within this movie clip, they also embed another layer which the content is actually loaded into. So the flow is the following:
pages_all -> action sc -> action content
So the content is in the last movie clip, but the code listed above is in the action sc movie clip. I'm just not sure how to edit this to get the dynamic content instead of a standard one.
View 3 Replies
Similar Posts:
Nov 6, 2010
I'm trying to create a dynamic scroll bar and I bought a template and am trying to get this to work. Here is the code for the dynamic scroll bar:
[Code]
View 9 Replies
Jan 27, 2004
how to use the mouse scroll to scroll up and down in a dynamic text field.
View 2 Replies
Sep 15, 2009
I have a library MovieClip the I am putting into the Scroll Pane. Inside this MovieClip is a Dynamic Text field that I fill with data. I have the ScrollPane on my stage and have used the source, refreshPain and update to try and get the new information from the dynamic text field into the Scroll Pain. To no avail all I get is the orginal text that was in the box when it started.
View 2 Replies
Apr 7, 2011
I want to create an image scroll bar that when I click on takes me to different scenes.
View 1 Replies
Oct 7, 2009
i want 2 create scroll menu with up and down button... like this image i made using ps but i dont no how to do -> [URL]
Attachments:
menu.JPG
(85.3 K)
View 3 Replies
Feb 23, 2011
I am working on a flash game based on an AS3 project using FlashDevelop. I need a textbox with scroll bar. I was able to create an editable TextField, but I can't find a way to add a vertical scroll bar.
View 3 Replies
Jan 31, 2010
how to create a scroll bar with images that allow you to drag and drop from it.
View 0 Replies
Oct 7, 2009
i want 2 create scroll menu with up and down button... like this image i made using ps but i dont no how to do -> [URL]
View 5 Replies
Aug 25, 2004
I'm trying to create a slider/scroll bar similar to the one at this site: kurtnoble.com. If you'll notice, the scroll bar can "bounce" of its perimeters. I'm not very experienced with actionscript at all. so any guidance, help, etc.
View 2 Replies
Nov 11, 2008
I am creating a horizontal scrollbar for my website. The bar is to scroll through a selection of images. I initially created the vertical bar through Kirupas tutorial which was great but I want to create a horizontal one.
Here is the code:
scrolling = function () {
var scrollWidth:Number = scrollTrack._width;
var contentWidth:Number = contentMain._width;
var scrollFaceWidth:Number = scrollFace._width;
var maskWidth:Number = maskedView._width;
[Code] .....
View 4 Replies
Jan 5, 2011
create flash scroll bar using as3
View 2 Replies
Aug 25, 2004
I'm trying to create a slider/scroll bar similar to the one at this site: kurtnoble.com. If you'll notice, the scroll bar can "bounce" of its perimeters. I'm not very experienced with actionscript at all.
View 2 Replies
May 22, 2011
I have a file uploader that uses a file reference list (FRL) to upload files. However what I want to do is use the FRL to display all the images/files that were selected and then display them in either a list, or photo gallery. I would lean more towards the photo gallery approach but I don't know how to dynamically lay out the thumbnails properly. What's the best way to display the thumbnails in rows 3 pictures wide and then skip down a line etc.
Now ofcourse I don't know how many files will be selected so my next question would be can I draw the thumbnail gallery in a seperate container (or frame sort of like in VB) and then have that container have it's own scroll bars? In most other programming languages I would have no problem doing this but I am a bit new to flash and I am a bit stumped.
View 1 Replies
Jun 29, 2009
I'm using CS3 and i wrote a in actionscript 3 an .as file that sends a request to a server and gets as a response an xml file. After loading the xml i create dynamically i big number of questions each one of them with some possible choices for the user to select(Radio buttons). The problem is that i have about 40 questions with about 120 radio buttons to show the user but only 5 fit the screen and the others are not visible. Can anyone give me a help using scrollpane or something else so i can give the user a way to see all of the questions and radio buttons available?
View 0 Replies
Mar 14, 2011
There's a scroll bar that controls the dynamic text, but the bar somehow blocks before it reaches the end (bottom). I don't want to make the bar bigger because that way scrolls very very fast. So I want to figure out the issue so I can make the bar as long as I want, according to the quantity of text, to scroll correctly.
View 8 Replies
Mar 17, 2011
i am retrieving data from a xml file dynamically, but I want text to scroll vertically. I cant sortout how to do this .
View 0 Replies
Feb 14, 2008
I got a problem with the following code:
Code:
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
XmlItems.content_txt._y += delta;
} Mouse.addListener(mouseListener);
It works great although it doesn't stop when the text finishes, it just keep scrolling.
View 10 Replies
Jan 24, 2009
I have a list component and I wanted to make a dynamic scroll for the list. Or change the default scroll that the as2 components have. How can I make a dynamic scroll, the ones that it moves with the mouse position?
View 1 Replies
May 18, 2009
I have created a dynamic text box, made itscrollable and added a scroll bar. I have entered my text and now want to set off a quote from the person making the statement so I want to make the person's name italics. However, when I highlight the text (it is on a separate line) and click italics - all of the text turn to italics. Is there a way just to have one line in a different font?
View 1 Replies
Feb 5, 2010
I have a long column of text set Roman and Bold originally in InDesign CS2. I intend to use the type as a dynamic vertical scroll within Flash. But I cannot retain the type styles! I have:
1. saved the original ID text files as .jpg, .png and find the reproduction inferior to Flash set type. (importing.pdf files into flash looses characters!). Flash cannot read .eps or ID files. So I tried copy and pasting original ID text into Flash. It looked good but the bold style was converted to roman.
2. There is no way in Flash I can find to convert selected single lines to bold!
I have tried highlighting a line and selecting Text>Font the bold font; - all text becomes bold! I have highlighted a line and used the Properties Style Bold button; - All text becomes bold! Apparently I cannot select a line of text without the whole text block becoming live.
3. My choice appears to be A. re-type all text in Flash or B. Place text in xml file linked to the scroller.
View 5 Replies
Apr 5, 2010
How can I auto scroll dynamic text (text picked up from xml file) vertically.
View 1 Replies
Aug 10, 2009
I am looking for information on how to create an image which lags somewhat behind the scroll on a webpage, very simliar to the candle at the bottom of this page: [URL].. If I only knew the name of this effect, I could search out a tutorial for it myself.
View 3 Replies
Dec 5, 2006
I am trying, this time, to create a scroll area text. Where after pressing a button, a text will be added to the textarea below the previous text. Although, dont know why, its not working.
i am using this code to add the text to the textarea and then trying to scroll down and add more text bellow the previous one. where m_text is the name of my text area.
I have also attached the file.
Code:
on(release)
{
m_text.scroll = m_text.scroll +1;
m_text.text ="hello ";
}
View 2 Replies
Feb 19, 2009
I'm looking to create a horizontal version of the scroll bar shown here: [URL]The actionscript given on page 3 (click) of the tutorial is for vertical scrolling only. Could someone please post a horizontal version or explain how to adjust the code for horizontal scrolling?
View 3 Replies
Feb 16, 2011
I have been trying to create a animation with horizontal scroll to begin on mouseOver. There are a set of 8-10 swfs movie, which I am calling though a xml file into the main scroll movie clip. I would like to animate and call the swfs in such a way that they drop into the screen and stay on a 800px width movie screen, on mouseOver the horizontal scroll should begin.I have seen a lot of threads for the sroll, in all the threads the movie is scrolling and on MouseOver it stops.
View 1 Replies
Jan 25, 2012
I want to create a Custom Scroll bar in my FLEX 3.0 application. Which should enable to use Text instead of |||| that shows in ScrollThumb... I have used mx_internal for changing the style of that but still facing the problem that text is not displayed. here is the code that i have created.
[Code]...
View 1 Replies
Nov 24, 2011
create a side scroll game in flash..and i dont know whats the easiest and best to do it,, if i can i wish my game can access to a database to save and load it.
View 5 Replies
Jun 29, 2009
I have an XML file that loads into flash and is dynamically displayed on the stage. What I cannot figure out is how to add a scroller to the movieclip so that when the data from the XML file is larger (overlaps the stage) then the content would be scrollable. I have checked and searched for about 1-2 hours and have came up with nothing.
View 5 Replies
Apr 13, 2011
How do I make the scroll bar work for a movieclip with dynamic content.
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
senderLoad.sendAndLoad("http://www.web.com/my_php.php",receiveLoad,"POST");
receiveLoad.onData = function(src) {
var messageA:Array = src.split(",,,");
[Code]...
View 5 Replies