Automatic Scrolling For Dynamic Textbox Is Too Fast ?
heloo to alli'm creating a dynamic textbox that load from external data.I 'm using this code to make it automatic scrolling Quote:
articleData.load("data.txt");article.text=articleData.externalvariable_root.createEmptyMovieClip("empty", 1)empty.onEnterFrame=function(){article.scroll==article.maxscroll ?article.scroll=1 :article.scroll++;}
but the scrolling is moving too fast !!! How i'm going to put a delay on it
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 12-07-2007, 11:43 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Automatic Scrolling Textbox
What I want to do is create a textbox where I can scroll text in it horiziontaly. Does anyboy know the actionscript to do that? Any help is greatly appreciated!
I am using MX
Thanks,
Jason
Automatic Scrolling If Textbox Past Height
Hello,
I am looking for a way to have my content scroll vertically automatically if it is past a certain height. Can someone please point me in the right direction?
Thanks,
Saveth
Code:
var my_format1:TextFormat = new TextFormat();
my_format1.font = "EventFont";
my_format1.size = 50;
my_format1.color = 0xFFFFFF;
var my_text2:TextField = this.createTextField("my_text2", this.getNextHighestDepth(), 50, 200, 900, 30);
my_text2.variable = "sLine_02";
my_text2.antiAliasType = "normal";
my_text2.wordWrap = true;
my_text2.autoSize = true;
my_text2.embedFonts = true;
my_text2.setTextFormat(my_format1);
my_text2._x = (Stage.width/2)-(my_text2._width/2);
my_text2._y = (my_text3._y + my_text3._height)+20;
Automatic Scrolling Dynamic Text Box
I'm not sure if this is possible but I have a text file (news.txt). Now I have a dynamic text box in Flash that loads the variables from the text file. Is it possible to have the dynamic text box automatically scroll down? Also, I would like to have the arrows on the side so the user may override the automatic scroll and move it up or down.
Automatic Scrolling Dynamic Text
Hi
I have a menu system that I want to display scrolling text under, to form a scrolling news banner about my site.
I am currently loading text in from a txt file using loadvars, I have the text animating using a dynamic text field inside a movie clip that I am just tweening accross the screen.
This all works fine but the animation looks really jerky no matter what frame rate I use or amount of frames I stretch the animation by.
Is there a way of doing this with action script that would provide a smoother result?
I would really appreciate any help here, thanks.
Ricky55
Dynamic Text Field + Automatic Scrolling?
How can i get a scrollbar to detect if the dynamic text field needs scrolling? not sure if that makes sense.
heres my situation: im designing a website for a local rock/punk band and they want to be able to update the news section themselves by using a separate *.txt file, okay i know how to do that and ive done that. BUT one of there updates is pretty long and wont fit in the text field it exceeds the size ive allowed, so how can i script this so that if the text file will exceed the field a scrollbar will be activated and let the user view all the content.
Please help asap as im on holiday as of thurs
Dynamic Scrolling Textbox
Hello,
Since you guys were so helpful last time, I'm hoping you can help me again. I have a scrolling text box that pulls up different text in every frame. The scrolling buttons and the up and down buttons work fine. Let's say I have frame 1 and some text. I scroll to the end to read all the text. I then click next to go to frame 2 which has different text. The different text shows up fine but the scroll handle does not go back up to the top. The handle stays at the bottom. How do I force it to go back to the top in every frame?
Thanks
[Edited by riazuddin on 09-10-2001 at 02:51 PM]
Dynamic Textbox Not Scrolling Xml
I'm getting the text for my textbox via an XML document (XML.load), and then I have a loop setup where I pull out all the HTML text.
I cannot get the scrollbar component to work with this.
I've even put the parsed XML into a string var and tried to get it to display that way, but to no avail.
I've seen the link on how to create scrolling dynamic textboxes via the LoadVariables, but that will not work because i have to parse the XML before displaying it.
Any ideas?
Dynamic Scrolling Textbox
OK, I asked this question a long time ago, like at least a year ago, and didn't get a good answer. I need a scrolling dynamic text box that pulls text from a database via PHP. That isn't the problem; the problem is getting the scroller to work according to the amount of text. My only solution was to use the unactractive scroll component. Has anyone any code for a text box that scrolls only as far as the the amount of dynamic text?
thanks
-
Dynamic Smooth Scrolling Textbox
I'm making a Flash Guestbook that retreives entries from a MySQL database, and I want them to be displayed in a dynamic text box...Which I can do that...I can also make scroll bars based on textbox.scroll-- and stuff, but that scrolls one text line at a time...I've also made static scroll bars that moved the whole textbox up and down based on its _x values so its a smooth scroll...But how can i make it scroll smooth if its dynamic text? How can I tell what the max _x position will be based on the length of the text? Any tutorials or examples would be appreciated, thanks!
On Mouseover Dynamic Textbox Scrolling
I know there are a lot of threads about dynamic text boxes and vertical scrollbars, but I have not been able to find one specific to my problem.
On MouseOver, I want to scroll continuously down a dynamic text box. I saw one thread that had a good example of static text, but I cannot figure out how to with dynamic text. A major setback is that I don't know how long my dynamic textbox is going to be. Any suggestions?
let me know if i am being overly vague
Scrolling Dynamic Textbox Launches On Same Page
Hi All,
First time poster, long time dweller. I am in need of some assistance, and I was hoping some of you may be able to help me out. I am a rookie when it comes to Flash so please bear with me. What I am looking to do is have a scrolling dynamic text box launch on the same page next to the flash button that activates it. http://www.backbayvideo.com/ That website is the best example I can find. I like the way you are able to navigate the site and I would like to have my site similar. I have read a bazillion tutorials and downloaded lots of sample files, but none of them indicate how I can get this effect. If anyone knows of a location I might be able to read about this, or might be able to offer me some pointers/tips, I would be much appreciative.
Thanks All,
Dig
Problems With Dynamic Textbox - Scrolling And Visibility Under A Mask Layer
I am trying to view and scroll a dynamic text box in a movieclip within a movieclip
MC2 which is in MC1 has a mask layer within it for a seperate purpose, but this mask layer seems to block out the dynamic text field.
I have an MC called "textfield", instance name "text", that contains a graphic of text(words), within another MC called "panel" instance name "pan1". Also within "pan1" i have a modular movieclip that allows me to scroll "text" up and down. "text" itself is masked by a layer in the "panel" movieclip. So i have the effect of text being scrollable within pan1.
The scrolling works fine
My problem comes when i change the graphic text within the textfield movie, to a dynamic textbox that is to be populated by loadVariables command at the start of the movie with an "onClipEvent (load)" command.
i have 2 problems
1.It appears that the dynamic textbox is not visible behind the mask layer within the "panel" movieclip. Is this a problem to any other flash users?
2. The modular movieclip to control the scrolling of "text", instance of MC "textfield" within the panel MC does not work smoothly. It should move 3 pixels either up or down depending on scroll direction, and the modular movieclip performs a loop to keep moving that pixel distance in the required direction as the up or down button is pressed.
With the dynamic textbox instead of the text graphic, the loop seems to be performed once every 2 seconds
I hope i have explained this clearly
Could anyone please advise me on scrolling dynamic textboxes and weather or why they are not visible underneath a mask layer
Scrolling A Non-dynamic-dynamic Textbox ;P
Hi!!
I want to scroll really crisp looking text. Static text is automatically anti-aliased by Flash.
Initially I thought I could convert the textbox from static to dynamic but the typical scroller I'm using uses a mask. It seems one cannot mask a dynamic textbox.
I know one can scroll a dynamic textbox if you populate the text dynamically but I dont want to do that.
Any other suggestions?
Thanks
Automatic Select Textbox / Textfield ?
Hello,
Is it possible to get an automatically focus on a textbox (or textfield) in Flash?
I tried this:
Selection.setFocus(input_txt);
Selection.setSelection();
where input_txt is the instance name of the textfield.
It does not work?
Does anyone know how to do this?
Regards,
Micheal.
Automatic Scrolling On Mouse Over For Text Scrolling
hi all, ive made a scrolling text box with an up and down button as listed in the tutorials. i know how to make it move 1,2,3,etc lines at a time when the mouse is over but what code/variable do i need to replace the number with to make the text scroll continously as long as the mouse is over it?
thanks
bast
Automatic Scrolling
I have a dynamic text in flash and i use ASP to get value written to it.My probelm is to make the content of the text field to be scrolling automatically when the page gets loaded and if i keep the mouse over it .it should stop.
its for a news flash in my project which comes in the first page.i dont want to make the text field entirely to be a movie..i want tonly the content to be scrolled..Please help me..its bit urgernt.
Automatic Scrolling
Hi everyone,
I got a bit of a problem, here's the situation. I want to make a news section in my web page and it has to be flash 4 compatible. What i'm looking to do is a scrolling text box with the up and down arrows. That was quite easy, but i would like it if the text would go up automaticaly and i could have a pause button to make it stop and then use the up/down arrows to view my text. I've tried many ways to play with variables and i'm yet to succeed. If anyone has and idea how to do it or know that it's not possible with flash 4 then please let me know. Thanks a lot, and have a great day...
Lise
Automatic Scrolling?
I would like to know how I can get a homepage to continually move across the screen. To the right or left. Im designing a site which showcases at least four pictures, but since Im designing for a screen size of 720x424 the images will be too small if I wanna put them all on one page. I figure if they scroll along slowly, filling almost all of the screen at once, have buttons in them, the feel would make this home page accessible and interesting.
[CS3] Automatic Scrolling Help
Hi Guys,
Long time since I used to hang out here...been over 4 years, but now I have new flashproblems which I hope someone can help me with.
Trying to load XML data into a swf using below code:
//load in XML
top_txt.txt_ani.myText.wordWrap = true;
top_txt.txt_ani.myText.multiline = true;
top_txt.txt_ani.myText.label.condenseWhite = true;
//load css
racinginfo = new TextField.StyleSheet();
racinginfo.load("kungfu.css");
myText.styleSheet = racinginfo;
racinginfo = new XML();
racinginfo.ignoreWhite = true;
racinginfo.load("16-10 Greenside Park.xml");
racinginfo.onLoad = function(success) {
if (success) {
top_txt.txt_ani.myText.text = racinginfo;
trace("working");
}
};
This gives me the xml data when I use local file: "16-10 Greenside Park.xml", but when I try to load it externally, using this link: http://www3.adsfac.eu/ads/whi001/16-...ide%20Park.xml , it doesnt work.
Any ides on why?
Also, the above script gives me a stationary xml feed, I want this to scroll automatically, I have gotten it to work using this script:
top_txt.txt_ani.myText.scroll==top_txt.txt_ani.myT ext.maxscroll ?
top_txt.txt_ani.myText.scroll -= 1:
top_txt.txt_ani.myText.scroll++;
However, this scrolls the feed 3 times, then stops...any ideas on why?
PLS HELP!
How Do U Make A Dynamic Textbox With A Variable Textbox
well im really noob at this like i got flash mx 2004 professional a couple of days ago and well u know im still not getting how to use actionscript i sorta understand most of the drawing i know how to use motion tween real well lol anyways if someone could help me it would be great.
Automatic Image Scrolling
hello...
i got hired to a little job designing a virtual tour of a library, the problem being that upon hiring i have absolutely zero knowledge of webdesign, with the understanding that i will teach myself. well, i'm doing a pretty good job of teaching myself, i understand dreamweaver and am getting a grip on flash...
here's my problem. in flash mx, i can't figure out how to scroll images automatically in response to the position of the mouse pointer. an example of this that i've seen elsewhere would be the websites www.requiemforadream.com and www.center-of-the-world.com where the image starts scrolling on rollover in one direction, and when the mouse is moved in the other direction it starts scrolling back the other way. if anyone can help me at all with this please... i'm a bit stuck. thanks chris.
Automatic Scrolling Text
I've gone through some of the tutorials on creating scrollboxes, and I have one up and working that pulls its content from an external text file. The user clicks up and down buttons to scroll. In looking through the posts already on the site I haven't seen anything on how to make the box scroll its text automatically and continuously upon loading. Does anyone have any ideas.
Thanks,
Bill
Automatic Scrolling Text?
Hello out there! I was wondering if anybody could help me find a tutorial or a sample flash movie of a scroll pane with automatic scrolling text. (I'm assuming this would be made in a sperate .swf movie and imported in the actual movie? )This would be used for something like News Flash on a website where the text scrolls continually without the user sliding the usal scroll bar.
Hope to hear from soneone soon! Thank you
Automatic Scrolling Text?
Hello out there! I was wondering if anybody could help me find a tutorial or a sample flash movie of a scroll pane with automatic scrolling text. (I'm assuming this would be made in a sperate .swf movie and imported in the actual movie? )This would be used for something like News Flash on a website where the text scrolls continually without the user sliding the usal scroll bar.
Hope to hear from soneone soon! Thank you
Automatic Scrolling News
Anyone know where I can find a tutorial for an automatically (vertically) scrolling News Box?
Basically just a dynamic textbox that scrolls slowly from bottom to top
Automatic Scrolling For Datagrid
i have create a datagrid that will load data from xml external file.what i need to do is... to make the datagrid to scroll automatically by itself without using any navigation bar. i have search through internet but don't find any tutorial can help me .It is possible to that using action script
Automatic Scrolling Text
Hello all,
I want to create a movie which scrolls predetermined text vertically, but cannot remember how to do this. What Im looking for is to make this its own fla, and then load it into another mc which I already have setup?
Any help would be appreciated.
thanks
Automatic Scrolling For Datagrid
i have create a datagrid that will load data from xml external file.what i need to do is... to make the datagrid to scroll automatically by itself without using any navigation bar. i have search through internet but don't find any tutorial can help me .It is possible to that using action script
Automatic Scrolling Of The Text
On ours flash maps we use small popup windows, with the text.
Whether probably to make, that the text was automatically scrolled up and then down if its volume exceeds that amount of lines which is stipulated in a small window?
Automatic Scrolling Of The Text
On ours flash maps we use small popup windows, with the text.
Whether probably to make, that the text was automatically scrolled up and then down if its volume exceeds that amount of lines which is stipulated in a small window?
Automatic Horizontal Scrolling Text
Im trying to create an automatic horizontal scrollbar that will eventually be used for video output. (Like the "info"-scrollbars you see frequently on tv)
Creating the scrollbar is one thing, getting it to play fluently, without any hesitations is another. Whatever I do, it never seems to run fluently on the screen.
Can someone tell me why it does that and if it can be fixed?
Automatic Scrolling Text-file ?
Hallo,
Is somebody able to help me.
I try to build a news-flash which is easy to update.
For this I want to make a from bottom to top automatic scrolling text (loop). The text has to come from an external text-file.
So the news can be updated without changing the flash-file.
Can you give me more info ?
mail me : info@fns.be
Automatic Scrolling Text-file ?
Hallo,
Is somebody able to help me.
I try to build a news-flash which is easy to update.
For this I want to make a from bottom to top automatic scrolling text (loop). The text has to come from an external text-file.
So the news can be updated without changing the flash-file.
Can you give me more info ?
mail me : info@fns.be
Visit our website
[CS3] Automatic Scrolling Banner - Help Needed
Hello all,
Hope you are well.
Basically I am looking for something similar to the OUR BRANDS part:
http://unilever.co.uk/ourbrands/
Where I will have a number of images (around 30) that will scroll across the x axis from the right to the left. When the image scrolls to the end I want it to loop back to the first image and continue from there. Now I understand that this could be done with a simply animation over frames, however, I want to be able to rollover the banner and for it to slow down, then when an individual image is rolled over it becomes clear (this._alpha = 50, for example, then on rollover goes to 100) and can be clicked on to go to a URL.
Please contact if any more information is needed and I can show you what I have so far. Thanks.
Creating Automatic Scrolling Text
I'm working on creating an animated presentation that I plan on running as a published Windows Projector file.
Does anyone know of a way that I can have one of my scenes run a vertically scrolling text list (like credits)? I would like for this to automatically scroll, without the need for a scroll bar function. It will be running and looping for quite a while.
Also- I have tried just adding a motion tween on the timeline, but the text is jittery and my list is so long that it cuts off after a certain point.
Any help is apreciated. Thanks!!!
How Do I Create An Automatic Scrolling List?
I am trying to display an automatic scrolling list of 15 items in a masked area on my stage. As the list automatically scrolls up and reaches item no 15, I would like item no 1 to reappear directly under item no 15 and continue scrolling. (I will not have any buttons or scrollbars to activate scrolling.)
I am still at the beginning stages of actionscript and am having a lot of trouble trying to figure this out so I would be very grateful for any help you might have.
Scrolling Way Too Fast
I bought a template a while ago and I was able to customize all of it with no problems. But I can't figure out which variable to change to slow down the scrolling.
The website is www.therapeuticanimalmassage.com The about page has text at the top of the the page. The more text I add the faster it goes. Also, unfortunately the actionscript is copied for the benefits page too, so that page also scrolls very fast.
Any suggestions would be appreciated.
Thank you,
Karen
Action: Frame 1
ActionScript Code:
step = 2;
speed = 20;
scroll111,<scroll>
ActionScript Code:
onClipEvent (load) {
buttonSize = 0;
viewHeight = _parent.scroll_bg._height;
viewWidth = _parent.scroll_bg._x;
scrollContent = _parent.for_text;
heightCorect = false;
mouseWheelHitTest = true;
wheelStep = 3;
pageStep = 30;
pageStep2 = 10;
pageDelay = 200;
arroyStep = 10;
arroyStep2 = 0.5;
arroyDelay = 3;
speedDec = 0.650000;
scrollStep = 20;
_x = scrollContent._x+viewWidth;
_y = scrollContent._y;
dragButtonIsDraging = false;
scrollPos = 0;
upButton._y = 0;
pageUpButton._x = 0;
pageDownButton._x = 0;
contentHeight = heightCorect ? (scrollContent.height) : (scrollContent._height);
scrollHeight = viewHeight-buttonSize*2;
dragButtonHeight = viewHeight<contentHeight ? (viewHeight*scrollHeight/contentHeight) : (scrollHeight);
dragButton._yscale = dragButtonHeight;
dragButton._y = buttonSize;
downButton._y = buttonSize+scrollHeight;
blanckDown._y = downButton._y;
blanckUp._x = 0;
blanckUp._y = 0;
blanck._x = 0;
blanck._y = buttonSize;
blanckDown._x = 0;
pageUpButton._y = buttonSize;
blanck._height = scrollHeight;
blanckUp._visible = viewHeight<contentHeight ? (false) : (true);
blanck._visible = viewHeight<contentHeight ? (false) : (true);
blanckDown._visible = viewHeight<contentHeight ? (false) : (true);
upButton._visible = viewHeight<contentHeight ? (true) : (false);
dragButton._visible = viewHeight<contentHeight ? (true) : (false);
downButton._visible = viewHeight<contentHeight ? (true) : (false);
_parent.drag._visible = viewHeight<contentHeight ? (true) : (false);
_parent.down._visible = viewHeight<contentHeight ? (true) : (false);
mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
if (!mouseWheelHitTest || scrollContent.hitTest(_root._xmouse, _root._ymouse, false) || hitTest(_root._xmouse, _root._ymouse, false)) {
dragButton._y = dragButton._y-delta*wheelStep;
if (dragButton._y<buttonSize) {
dragButton._y = buttonSize;
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
}
};
//Mouse.addListener(mouseListener);
curY = -scrollContent._y;
vY = 0;
mask = scrollContent._parent.createEmptyMovieClip("mask", scrollContent._parent.getNextHighestDepth());
with (mask) {
beginFill(255, 50);
lineStyle(0, 16711935, 100);
moveTo(scrollContent._x-100, scrollContent._y);
lineTo(scrollContent._x+viewWidth, scrollContent._y);
lineTo(scrollContent._x+viewWidth, scrollContent._y+viewHeight);
lineTo(scrollContent._x-100, scrollContent._y+viewHeight);
endFill();
}
scrollContent.setMask(mask);
}
onClipEvent (enterFrame) {
blanckUp._visible = viewHeight<contentHeight ? (false) : (true);
blanck._visible = viewHeight<contentHeight ? (false) : (true);
blanckDown._visible = viewHeight<contentHeight ? (false) : (true);
upButton._visible = viewHeight<contentHeight ? (true) : (false);
dragButton._visible = viewHeight<contentHeight ? (true) : (false);
downButton._visible = viewHeight<contentHeight ? (true) : (false);
_parent.drag._visible = viewHeight<contentHeight ? (true) : (false);
_parent.down._visible = viewHeight<contentHeight ? (true) : (false);
_parent.scroll_bg._visible = viewHeight<contentHeight ? (true) : (false);
if (incDelay<0) {
dragButton._y = dragButton._y-inc;
if (dragButton._y<buttonSize) {
dragButton._y = buttonSize;
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
}
incDelay--;
contentHeight = heightCorect ? (scrollContent.height) : (scrollContent._height);
scrollHeight = viewHeight-buttonSize*2;
dragButtonHeight = viewHeight<contentHeight ? (viewHeight*scrollHeight/contentHeight) : (scrollHeight);
dragButton._yscale = dragButtonHeight;
downButton._y = buttonSize+scrollHeight;
pageDownButton._y = dragButton._y+dragButtonHeight;
pageDownButton._yscale = scrollHeight-dragButtonHeight-dragButton._y+buttonSize-scrollPos;
pageUpButton._yscale = dragButton._y-buttonSize;
if (dragButtonIsDraging) {
stopDrag();
startDrag(dragButton, false, 0, buttonSize, 0, buttonSize+scrollHeight-dragButtonHeight+1);
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
newY = (dragButton._y-buttonSize)/dragButtonHeight*viewHeight;
vY = vY+(curY-newY)/scrollStep;
vY = vY*speedDec;
curY = curY-vY;
scrollContent._y = Math.floor(-curY+_y);
}
onClipEvent (enterFrame) {
if (_parent.down_but == true) {
with (_parent.scroll) {
if (dragButton._y<buttonSize+scrollHeight-dragButtonHeight-_parent.step) {
dragButton._y = dragButton._y+_parent.step;
} else {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
}
}
if (_parent.drag_but == true) {
if (_parent.scroll.dragButton._y>_parent.step) {
_parent.scroll.dragButton._y = _parent.scroll.dragButton._y-_parent.step;
} else {
_parent.scroll.dragButton._y = 0;
}
}
}
Automatic Vertical Picture Scrolling In A Loop
Hi everyone,
Can someone of you please help with creating a movie clip which scrolls automatically (without mouseover) a large number of pictures (more than 50) vertically and in a loop?
I think that I'll need help with the 2 following things:
1. When I wanted to position the 50+ pictures in my Movie Clip object I encountered the first problem, which is that THERE IS NOT ENOUGH PLACE!!!
->Within an or the Actionscript is it possible to call all my pictures? or how can I make it with such a large number of pictures?
2. I'm new to Actionscripting and don't have knowledge in an other OO-Programming language, so I really don't know how to write that code or to adapt a similar code example? I really wanted to do it by myself, but unfortunately I'm lacking the needed time as the guy I promised to do his site does need his site online asap!!
If you could help in this or any of this, I would be very grateful.
Thanks in advance.
Cheers
[MX04] Automatic Scrolling Text - Help Needed
I am building a training module in MX04. I have multiple scenes in the project, with each one of them having voice-over. What I would like to do is create an automatic scrolling text box which would contain the text version of the audio and have the text scroll at the pace of the audio. I would prefer to not load the text from an external text file, if at all possible. If anyone knows where I might be able to find a tutorial or something to help me accomplish this, I would greatly appreciate the help!!
Automatic Scrolling Text - News Ticker
I want to create vertical scrolling text that has 3 different screens. For example, like the one that's here: http://www.scriptocean.com/flashscroll/index.html
I know how I can do this in HTML/Javascript, but how do I do this in Flash Professional 8? Any ideas would be extremely helpful! Also, I need to be able to hyperlink to external pages too.
Thanks!
Looking For Automatic 'clickable' Image Scrolling Tutorial
Hi everybody,
I'm looking for one or more tutorials to help me with the following... I've designed a website for an art club. It's OK, but I think it's needs something dynamic. At the moment, it shows a random image on the homepage everytime the site gets loaded. But, what I would like is a banner running horiziontally along the bottom of the website, with thumbnails (all of which will be the same size) running slowly in a loop - they should be moving automatically as soon as the site loads, and each image should be clickable so that I can run some javascript to load whichever image is clicked into a specific region on the web site (I want to keep the image and the scrolling thumbnails separate on the page). I'd also like left/right arrows so that people can change the direction of the scroll...
The thumbnails are stored in a specific directory, and the flash file should either load every thumbnail and show them, or they could be loaded from a config file... Either way, I need to be able to add thumbnails without the need to recompile any flash files.
If anyone can recommend some tutorials on this, I'd be very grateful.
Thanks
Text Scrolling Too Fast
I am using the following as to scroll the text in my dynamic text box. I want to use setInterval to slow it down a bit but am not sure how to implement it. Anyone?
down_btn.onRollOver = function() {
_root.onEnterFrame = function(){
textField_txt.scroll += 1;
}
};
up_btn.onRollOver = function() {
_root.onEnterFrame = function(){
textField_txt.scroll -= 1;
}
}
down_btn.onRollOut = function(){
delete _root.onEnterFrame;
}
up_btn.onRollOut = function(){
delete _root.onEnterFrame;
}
Scrolling Nav Versus Scrolling Textbox...who Will Win?
'ello boardsters...
problem: i have a movie, we'll call it Movie1.
Movie1 contains a scrolling navigation bar.
Movie1 also contains a blank movieclip- Holder- into which are loaded other, content, movies.
One of which- we'll call it Content1- contains a textScroller movieclip for updateable news- the text is loaded in from a .txt file.
the PROBLEM is... when Content1 is loaded into Movie1 and you use the scrollbar on Content1's textScroller, the scrolling navigation bar back in Movie1 gets stuck on one speed- too fast to make it useable.
why's it doing this? are the two in conflict somehow? i'm no programmer, i get my code on..well, flashkit actually! so i'd appreciate some help.
love ya all (particularly the helpful ones)
delilah
Scrolling Thumbnail Panel Won't Stop If Mouse Moves Too Fast
hi everyone
I am new here although I've checked these forums quite a bit.
I have a (working) piece of code that is basically lee brimelows' scrolling thumbnail panel tutorial. This one also scrolls up and down (!). What happens though, is that when I move the mouse off the .swf quickly, it keeps scrolling. I have read around quite a bit and I need a border of 25px to stop this, although it does sometimes still fail to detect the cursor moving outside the 'getBounds' defined area.
Code:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = hitframe.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 >= 784.4) {
panel._x = 784.4;
}
if(panel._x <= -296.6) {
panel._x = -296.6;
}
if(panel._y >= 647.7) {
panel._y = 647.7;
;
}
if(panel._y <= -159.8) {
panel._y = -159.8;
}
var xdist = _xmouse - 245;
var ydist = _ymouse - 245;
panel._x += -xdist / 50;
panel._y += -ydist / 50;
}
I want to know if there is a sure-fire way to stop it scrolling when the cursor is outside of the scrolling panel area/getBounds area defined by 'hitframe' (I've called this hitframe rather than 'stroke').
any suggestions/advice most appreciated
Daniel
ps I am a complete newbie and not very good at flash at all
pps I have literally spent days and days trying to figure out how to solve this so believe me I will be eternally grateful to whoever can figure out how to fix it.
Scrolling Textbox....please Help
I don't know what to do, and desparately need someone to help me solve this!!
I have a website w/scrolling textbox in a MC (see link below). There is one problem: if a user were to scoll down to the bottom, and then click on a new link to load the next "page," then the scoll would be stuck where they left it (the text does not start at the top).
How would I make it load to the top of the page, regardless of where the user left off??
Thanks for the help!!
Here is the link: http://www.blackhillsvcf.com
Here is the script for the scroll:
onClipEvent (load) {
txtbox = "loading data....";
this.loadVariables("http://www.blackhillsvcf.com/txtbox.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
needInit = false;
}
onClipEvent (enterFrame) {
if (needInit) {
if (txtbox.maxscroll>1) {
needInit = false;
}
}
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && txtbox.scroll>1) {
txtbox.scroll--;
} else if (scrolling == "down" && txtbox.scroll<txtbox.maxscroll) {
txtbox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
onClipEvent (data) {
needInit = true;
}
Scrolling Textbox?
In the tutorial for loading variables Here
would someone be able to tell me what he means by scrolling textbox? i havent worked much with this side of flash, i work more with games and im not sure what to do..
Scrolling Textbox
I have a Dynamic text box that gets its info from a txt file,
It works, but when I added a scroll bar, it wont scroll...??
I have put loads of text in the txt file, but it stops to the size of the textbox, I have it set to multiline and the scrollbar is locked tothe box???
Thanks
|