ActionScript 3.0 :: Unable To Auto-scroll Text?
Feb 27, 2009var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE,onLoa ded);
function onLoaded(e:Event):void {
[code].....
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE,onLoa ded);
function onLoaded(e:Event):void {
[code].....
I like to know an easy way to create a text autoscroll (vertical) that worked when the text was loaded from another text file. it can use for news/site update. see the attachment.
View 14 RepliesHow can I auto scroll dynamic text (text picked up from xml file) vertically.
View 1 RepliesI have a dynamic text box called logtxt. I add text to this whenever i click on my box object.(this works fine) I have a UIScrollBar attached to the text box(still works). But I need it to automatically scroll to the bottom whenever I add text.
View 1 RepliesI want to get my text to auto scroll vertically it is for a news section for one of my customers... I am loading the text from an external txt file. I have got everything to work but can figure out how to make it auto scroll itself.
View 6 RepliesI'm trying to do a smooth automatic text scroll from right to left.Heres the code I made up but it's not as smooth as I'd like it to be:
Code:
myTxt_mc.onEnterFrame = function() {
this._x -= 3.5;
[code].....
I have a text document which is several pages long and will use scrolling capabilities. This text document will be contained in an external swf. There will be 6 buttons on the main timeline which will all load the external swf with the text document but I would like the text to autoscroll to a specific postion/part of document that relates to that topic/button. Also, i would like the scrollbar to move in relation to position/part of document in case the user stays in the external swf and reads and scrolls through the document. Is this possible? I have searched for a tutorial on this but have found nothing. I have tried different things but nothing has worked.
View 0 Repliesto make a single-line text box auto-scroll a text string horizontally with a way to detect new words on the x-axis.I'm trying to make a rhythm practice game for ESL students at my college, but I'm a linguistics major, not a programmer.I want something that is similar to the vocal part in Rock Band (minus the pitch, for now)So for a simplified, proof-of-concept version I just need it to detect when a new word has collided with a defined region of say "100 < x < 50".I know how to implement the microphone using activityLevel to detect when the user is speaking into the mic, but just not how to use activityLevel alongside the region detect of the new word in the text box.
View 4 RepliesI'm having trouble figuring out how I should go about making an auto scroll functionality for a text area in Flex.
What I have is a text area that loads text from an XML file at startup, and displays it in a text area. There is also an audio track that is plays along with the text. As the words from the audio file is read out, the corresponding word in the text area is highlighted red. What I want to happen is that if the highlighted word is below the visible range of the text area I want to scroll the scroll bar to adjust accordingly to the selection.
[Code]...
i have the above code wherein i load data from external text file i want the text to be vertcically auto scrolling on load without any scroll bar
I know something about this was posted on the forums but I don't find the specific post.I need to have the scroll panel to auto-scroll until you roll over and I need to have this panel to scroll continuously to right or left.[code]
View 14 RepliesWhen I click the check mark, message 'The script contains no errors'When I click the Auto format button, message 'This script contains syntax errors, so it cannot be Auto Formatted.ix the errors and try again.'I've never had these two buttons disagree.Code compiles normally and everything works.
View 2 RepliesI have five buttons in my site which means five pages. I want to put auto scroll down effect in one of the page. So that, when one of the button is clicked on, it automatically scroll down to a place in the page, without the user scrolling down by himself. I'm using flash and actionscript 2.0
View 1 RepliesI am currently working on a slideshow that loads it's images from xml. I want the slideshow to scroll automatic left and right. Now the problem is that i can't figure out how to tell flash that if the last image is in frame how to scroll backward till it reaches the first image.It can scroll automatic forward until it reaches the last image.I can tell flash when the last image has reached te stop sliding.
Here the Code:
ActionScript Code:
slideshow();
[code]......
I have a client that is looking for a autoscrolling loop of thumbnail images as seen at this site [URL]. I have the CS3 Flash, Photoshop Dreamweaver etc and am a very persistent (read stupid) self taught entry level website builder.
View 1 RepliesI am trying to get a menu that has videos that I will scroll through at a certain speed.Right now I have 30FPS which I have tried to lower which doesn't' control the speed of the auto scroll? Below is the code.
package zoom
{
import flash.display.*;
[code]....
I'm trying to create a vertical auto scroll. The idea is to move up or down the image gallery when the user passes the mouse over a mask movie clip. Problem is I'm not sure how to determine the right coordenates form this movie clip. Let me explain, I can imaginary divide this movie clip in half. Top half let me move the gallery to the bottom and bottom half let me move the gallery to the top. It will be great if some easing could be added in the process.
View 5 RepliesI tried to make auto scroll for contents. It works but someting is wrong
[AS]
function core() {
buttons_height = 566.3; //this is the height of the contents (buttons)
mask_height = 319; //this is the height of the mask (mask)
the_speed = 6;
if (mask.hitTest(_root._xmouse, _root._ymouse, false)) {
mousepos = _ymouse;
[Code] .....
how to make the output window auto scroll? i.e. If I have an enter frame event that increments a number and I trace that number, when the traces fill the output window, I cannot see the current traces. I have to go grab the scroll bar and drag it down and since it is constantly changing it is tough to keep up.
View 4 Repliesautoscroll functionality in Flex2's DataGrid while dragging an element row in it. Is there such a functionality or not?
I mean, I have a DataGrid which contains a collection of rows. The collection is longer that the DataGrid could fit, hence there is a vertical scrollbar that allows to get to the rest of rows. I have enabled the functionality of moving-by-draging to be able to change the order of rows in the DataGrid (see the simple code below).
Now, let's say I want to move the first (topmost) row to the last (bottom) position of the collection. When the top row is displayed, the bottom one is not visible (not without moving the scrollbar). So when I drag the top row, I cannot drop it beyond the few currently visible rows. Surely I could drag a bit and then scroll to bottom and then drag a bit more, but that's not the point. The point is - is there a functionality of autoscroll implemented in Flex2 DataGrid, where the collection would scroll itself automatically to allow one to drag beyond the few visible rows?
In Adobe's official PDF document "Flex2 Developer's Guide", section "Using drag-and-drop with list-based controls" I've found this sentence:
Quote:
If the control has active scroll bars, hovering the mouse pointer over the controls top or bottom scrolls the contents.
Well, it suggests that there should be this functionality I ask about. But it doesn't work for me.
Here's the simple code that builds the DataGrid in Flex2, that fails to autoscroll, if you care to check it:
[Code]...
I'm building a website made up of different swf pages. After some initial troubles, I have now managed to connect each one and they now all link to each other, however I have a couple of strange problems that I cannot work out.I have one page that contains a non-editable text scroll box, which when previewed in the seperate file works fine, but when it appears in the test for the linked files the scroll box turns into a blank editable text box. I don't understand why this is happening?
My second problem is with my photos page. The page has image thumbnails for the user to click on which displays a larger version of the photo using fade in animation. Again, this works fine when I preview the individual page, however when I test it through the linked files the animation automatically plays and cycles through all the photos. It doesn't do it when previewed individually.
Does anyone have any ideas? I'd be so grateful as I need to have this sorted by the end of the day. I'm using CS4.
[Code]...
I Have a question regarding a dynamic XML driven image slide show.
I want the movie to slide continuessly from the left side automatically when it is loaded. Now it only loads when a mouse movement enters the screen.
The link is: [URL]
Here is the code from the main time line, Frame 2 (Frame 1 loads the XML file:
stop();
// Number of items
itemNum = 15;
// Stage Dimentions
[Code]....
Ok what I have is a site I am building for school.I have some textfields loaded from a outside file Some of the fields have more text then will show in the size of the box, and you can sroll it down to read it all but unless you try to scroll there is really now way to tell you can do it just buy looking at the text box.So I want to add a scroll bar and we have not covered that in class.Note everything has to be added using AS3 we can have no content on the timelineI have look to try to find something so show me how to dod this but all I can find are videos on doing it using the stage and adding items to it.
View 7 RepliesI am using a horizontal thumb scroller which i ahd acuired from the internet. the scroller works fine but the issue is, the scroll speed is directly related to teh thumbnails present.When i am having 10-20 thumbs the auto scroll is smooth. but when the thumbs increase to say 50+ even the slightest mouse movement cause the the thumb to scroll at rapid pace rendering the thumbnail scroller useless. Can anyone help me to modify the script so that i can reduces or control teh scroll speed. Or if tahts not possible how do i add a next prev button so taht i can take away the auto scroll and fwd/rewind the thumbs one by one or a batch at each click. I am attching the fla file for reference
Code:
// Developed by www.flashmo.com
var photo_filename:Array = new Array();
[code].....
I know ZERO about flash/actionscript and have been tasked with creating a vertical text/html scroller. This would act like a news ticker but would scroll several paragraphs of text with images vertically continuously.
Here is a sample of the data that i would like to scroll vertically:
<image>
some text here
some more text
<image>
more text
more text
This pattern would repeat and the script would continuously scroll the information. I will be pulling that data from XML as HTML but i think i have that part under control. Just cant seem to get a sample of scrolling html/text.
I have 50 to 70 scenes in my flash files. Becasue of purpose i used these much scenes. my problem is am not able to do scroll in the scene panel. if i click the last scene the slider always goes up... not scrolling exact place where i clicked.
View 2 RepliesI would like to produce a fitting room system, and the users can adjust doll's size.In terms of shoulder, hip, and the length of both legs and arms by a horizontal scroll bar in this system.How could I control Action Script by Flash?
View 0 RepliesI made the customized scroll bar with static text , the text part have a lot of information while on scrolling 75% text only coming remaining texts are not coming it is coming like a blank.
View 1 RepliesI know you can use the mouse wheel to scroll through text in the flash componenet scroll pane, but is there a way to set it up to work with the code I have posted below?
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 5;[code].....
I have one more script in that only mouse drag works i want also scroll works on mouse over event.
onClipEvent(load)
{
buttonSize = 0;[code]..........