| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Apr 2001
Posts: 22
|
I am very appreciative for the explanation on continuous scrolling text. I have one problem though. With the current setup that i have i am scrolling around my text mc nicely but i need to set a limit of how far i am going to scroll the mc. I don't want the text to disappear. I tried to implement an if statement but i am not sure where to put it or how to do it with out getting a whole lot of bugs. Thanks for the insight.
|
|
|
|
|
|
#2 |
|
Registered User
Join Date: Apr 2001
Posts: 52
|
Use the Maxscroll action, it's under the functions menu.
|
|
|
|
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Since I wrote that tutorial I've come to think it's not the best way to do it unfortunately. I will put an alternatve version of the same tutorial online soon which will not have this problem.
That tutorial is great for scrolling objects but text can be scrolle dmore appropriately with the .scroll method, for which there are a few examples on these forums. Here's a good example by FlashGuru: http://www.actionscripts.org/forums/...p3?threadid=90 If you still want to use the method outlined in the tutorial see this post in which I have a work around for the problem: http://www.actionscripts.org/forums/...3?threadid=651 Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Apr 2001
Posts: 22
|
In regards to the http://www.actionscripts.org/forums/...3?threadid=651 thread I can't get it to work right. I am trying to figure ot out this way because I want to use this technique instead of just scrolling the text for scrolling navigation and so on.
As of now I have the down button working and it stops nicely at the bottom of the text. Unfortunatly i am not having as good a time with the up button. My AS skillz are very shaky as i am just a beginer. In the code you gave me for the down button,: if (_root.yMax > 5){ _level0.masker.contentText._y =_level0.masker.contentText._y + (_level0;direction*5); } I have a question that may help me figure out how to get the text to stop at the top as good as it stops at the bottom. What coordinates do yMax refer to because if i am reading the script right it is saying "If the object stated below (masker.contentText) is less than 5 then play the statement below. If not, do nothing. |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
See that's the problem with that code. Once you scroll all the way to the bottom you can't scroll up any more.
I've made a new example which works well with a stop for top and bottom... but it will only work on my example... see the values you have to stop at are going to be different for every implimentation. Here's the example if you want to see it, with the source: http://www.actionscripts.org/help/theG/ This exmaple uses 2 controllers, 1 for up and one for down, to overcome the no scorlling up once scrolled all the way down problem. You can adapt it to work for you by doing this: Adapt it to include you text and layout, then use CTrl Enter to test it. In test mode BEFORE you scroll up or down, hit Ctrl Alt V. This will show all your variables. One of these variables will be an array with the xMin/xMax/yMin/yMax. You need to set the _root.topCap variable (frame 1, main stage) to the listed yMax value. (In my example, the value listed is like 256 so I made it 360 by rounding). Then scroll all the way to the 'bottom' (last line showing) of the text using your down button and use Ctrl Alt V again to view variables. Remember the yMax value here and set _root.bottomCap to that value. This is a crap work around, sorry, but a work around is better than nothing until we get the new tutorial up. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Apr 2001
Posts: 22
|
Jesse:
That was huge! I got it to work great for what i am doing. The work around is not as nice as clean code but untill i figure out another way, this is going to work fine. As I mentioned earlier in the thread, i am new to flash and writing code. Do you have any tips for a begining/intermediate flasher? I started out with the book "Flash from Scratch" and moved on to the "Flash 5 Bible." Is there a great way to get from where I am now, fighting my way through AS code, to being a fluid flasher? Thanks again for your help. |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Experience. It's the only way to learn programming in my opinion. Set yourself little tasks and see if you can accomplish them. Then as you get better, make the tasks harder and demand more of yourself.
Keep trying no matter what. What's Flash 5 Bible like? as good as it's predecessor? Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Apr 2001
Posts: 22
|
I don't really know how it compares seeing that I just started in flash about three weeks ago and with version 5. From what I can tell it has just been tweaked a bit from flash 4 to accomidate the changes.
|
|
|
|
|
|
#9 |
|
member
|
All:
I am trying to download the .fla to the link above and it tells me that the file can not be opened. Please help. If anyone has the source file already downloaded - may I give you my e-mail and request that you send it to me directly?? I have a graphic navigation mc that I am using the scroll feature for and I can not get the top and bottom stops to work and was hoping to view the source file to see where I might be going wrong. I reviewed all of the other related tutorials but they apply more to text, and I need graphics to scroll. Thanks for your help. |
|
|
|
|
|
#10 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
I had this file in my archives and I've updated it at the above link. Should work now.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling a PDF file in Flash | AudryLucy | Projectors and CDs | 20 | 12-30-2006 02:43 PM |
| scrolling dynamically loaded text from a txt file? | Mutty | Other Flash General Questions | 2 | 12-11-2004 12:29 PM |
| Scrolling Text Issues | commanderx23 | ActionScript 1.0 (and below) | 6 | 11-16-2004 08:38 AM |
| Scrolling Text w/ On(rollover) command | eksyme | Other Flash General Questions | 2 | 05-11-2003 01:39 PM |
| question re:continuously scrolling text field tutorial | holdaway | ActionScript 1.0 (and below) | 0 | 08-09-2001 09:16 AM |