ActionScript 3.0 :: Flash Automatic Vertical Text Scroller?

Aug 10, 2010

got stuck trying to design an automatic vertical text scroller. Here is what I set out to do:

- Have a news ticker like box through which text will be vertically scrolling.

- The textual content will come from an external text file.

- The text in the external file will also have click-able html links.

- When the mouse enters the content area, the scrolling would stop.

- If any link is visible in the content area at that time, the user will be able to click on it.

- When the mouse leaves the content area, the scrolling would continue.

Basically, it's an html marquee which you see in so many pages these days.

The following was my approach to solving the problem. Got very close and then got stuck

- I created a Dynamic Textbox and have it load from the external file. The dynamic textbox has multiline and autoSize set to true. So the size of it grows depending on the content from the external file.

- Next, converted the "textbox with external loading" into a movie clip and named it content_mc.

- Created a rounded rectangle (my viewing area) and converted that to a movie clip called mask_mc.

- On the stage, the content_mc is in one layer (content) and the mask_mc is in another layer (mask).

- Added another layer (action) and on the first frame of the main timeline, I entered the Action Script to set the mask_mc as the mask for content_mc.

- Also in this AS, I align the content_mc top with the mask_mc top so that the content is visible at the start.Then in the content layer, I inserted a movie clip "controller". This clip has two frames and all it does is it moves the _root.content_mc up by a fixed unit until the bottom of content_mc is over the mask_mc top. At that point, it sets the top of the content_mc back to the top of mask_mc.

Since I have little to no flash training, you can understand my excitement when the above steps worked and I got a fairly smooth scrolling text fitted in my viwing window. I could also click on all the links in my text. Yayyy!Then I took on the task of making the scroll stop and resume on mouse enter and leave event. What I did was:

- In the action script on the action layer, I simply defined two content_mc.onRollOver and content_mc.onRollOut functions. In the first I stop the controller movie clip and in the second, I play the controller movie clip.

The above strategy also worked as I wanted but it created a new problem! Whenever the mouse enters the mask area, the mouse pointer turns into a clicking hand cursor (the one you use to click on links); and it doesn't allow me to click on any of the html links anymore! It's almost as if the content_mc movie clip has turned into a button!

Regardless to say, this is unacceptable in my case if I cannot click on the html links in the original text content. I have googled quite a bit and must admit that I haven't had much luck (why else would I be posting here and other places?). I desperately need someone's assistance with solving this. Some of the approaches I have seen on google wouldn't work for me. For example, having invisible buttons for the html links. Of course that wouldn't work since my text is coming from an external text file over which I have no control.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Make Vertical Text Content Scroller Working In A Flash

Jul 26, 2009

I've tried for hours and days to make my vertical text content scroller working in a flash fake 3d environment with rotationX / Y. But because of vector>bitmap conversion when 3d roationing, the scroller fails to works. I know the stratDrag method fails to work in a 3d environment. other than using PV3D or so ? cause I don't know how to work with PV3D, it's just tooooo complicated to get it for me.

View 1 Replies

ActionScript 3.0 :: Vertical News Scroller - Fade Out When Text Reaches At End

Jul 13, 2009

I'm creating a vertical news scroller, that will eventually load in from an external text file and then just scroll the text in a movie clip vertically. I have this working but I have a couple of questions.

1. As the text reaches the end of the scroll I want it to start to fade out, I've added a IF statement to do this but it doesn't seem to fire. Why is this?
2. Even though I don't have any easing the scroll seems to slow down as its nearing the end of the animation, do you know why this is happening?

Code:
import gs.TweenLite;
import gs.easing.*;
var myTimer:Timer = new Timer(0,1);
myTimer.addEventListener(TimerEvent.TIMER, scrollNow);
myTimer.start();
[Code] .....

View 5 Replies

ActionScript 2.0 :: Vertical Sliding Scroller Based On A Tutorial For A Horizontal Slide Scroller

Feb 21, 2004

I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart [code]

View 3 Replies

ActionScript 2.0 :: Convert Vertical Scroller To Horizontal Scroller?

Aug 17, 2007

have a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.

//code by Billy T
//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;

[code]....

View 4 Replies

ActionScript 2.0 :: Change Vertical Scroller To Horizontal Scroller?

Jan 10, 2011

change vertical scroller to horizontal scroller?

View 2 Replies

ActionScript 2.0 :: Vertical Scroller To Horizontal Scroller?

Oct 24, 2009

I would like to use it as a horizontal scroller for an image gallery. Just to clarify a horizontal dragger and a horizontal stage motion for image viewing.

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;

[code]....

View 0 Replies

ActionScript 2.0 :: Build A Vertical Slide Scroller Based On A Tutorial For A Horizontal Slide Scroller?

Feb 21, 2004

I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart and there is additonal functionality attached to it to affect it's movement which I'm not too worried about although it would be nice)

Code:
// set up content_mc info
contentRight = _root.content_mc._x;

[code].....

View 3 Replies

ActionScript 2.0 :: Vertical Thumbnail Scroller?

Aug 11, 2007

Alright, I've done the XML Photo Gallery Tut and am attempting to make the thumbnails scroll up and down instead of left and right. Apparently it's not as easy as switching X and Y. The tutorial is located a

View 3 Replies

ActionScript 2.0 :: Add Vertical Scroller For Site?

Jul 6, 2010

I'm making a flash site with width 1024 and heidht 768px. But on some monitors it doesn't show all the flash. It's cut from the bottom. how do i show all of the content. I'm using this template: [URL]

I want to add vertical scroll for those who can't see all the flash. How do i do that?!

View 2 Replies

ActionScript 1/2 :: Switching From A Vertical To Horizontal Scroller

Aug 3, 2009

I am attempting to modify an example file that I found from a vertical to horizontal scroller. I changed the movie clip to horizontal, what I need to change to get the arrows to scroll the movie clip horizontally.

[Code]...

View 7 Replies

ActionScript 2.0 :: Switching From A Vertical To Horizontal Scroller?

Aug 3, 2009

I'm attempting to switch the scroller I found on here from vertical to horizontal.

I got the movie clip to movie from left to right, but it doesn't seem to recognize how long the movie clip is now, because it stops before the whole movie clip is scrolled....see attached...

View 1 Replies

ActionScript 2.0 :: Vertical Scroller For XML Gallery / Slideshow

Aug 20, 2009

I want to make the scroller vertical for this very impressive XML: [URL]. I've been trying and have been getting somewhat close to accomplishing this but I feel like I'm hacking up the code to get there.

View 3 Replies

ActionScript 2.0 :: CS3 : Vertical Scroller Controlled By Mouse Position?

Aug 15, 2010

Using this code made by Genesis F5:

Code:
// EXAMPLE CREATED BY GENESIS F5 (www.flashkit.com)
stageheight = Stage.height / 2;
overhangy = ((stageheight * 2) - image._height) / 2;

[code]...

Basically, my problem is that i've got 15 buttons labeled Channel 1 to Channel 15, but when the page first loads up, it skips down showing the very last button at the bottom, rather than the very first button at the top. The top button is off the screen.

View 9 Replies

Web Development :: Increase The Vertical Step Size On The Scroller?

Jan 17, 2011

I have a <s:Scroller> surrounding a <s:Group>. The scroller works, but I want to increase the vertical step size on the scroller. I've tried everything, but am having no success. Modifying the scroller.verticalScrollBar.stepSize value in the init function seems logical; however, this approach fails.

View 2 Replies

ActionScript 2.0 :: Vertical And Horizontal Parallax Type Scroller [renamed]

Mar 22, 2007

I know that this has almost certainly been asked before, I know because every quarter at least one of my students brings in this site.[URL] My question is how I would go about making a parallax type scroller like this that works vertically and horizontally from the mouse position, and works with many more levels than this (like 20+ levels).

View 2 Replies

ActionScript 2.0 :: Getting A Vertical And Horizontal Thumbnail Scroller To Work At The Same Time?

Sep 6, 2007

getting a vertical and horizontal thumbnail scroller to work at the same time, based off of the xml photo gallery tutorial here on kirupa. I'm using FMX04 and I can get one or the other to work but not at the same time. Once I can get them both to work at the same time I would like to make the vertical set load a different set up thumbnails,I know it will involve editting the xml and hence adding to the xml loading into flash but I'm unclear on that also... on another note, is there an easy way to make the image holder resize to the image, so as to accommodate both vertical and horizontal images without skewing them?

Here's my code (as) so far...

Code:
// start of horizontal code
function loadXMLh(loaded) {
if (loaded) {

[code]....

View 1 Replies

ActionScript 2.0 :: Change The Claudio Scroller So That It Will Scroll Ease Depending On The Vertical Mouse Position?

Jun 9, 2005

Does anyone know what I can do to change the claudio scroller so that it will scroll ease depending on the vertical mouse position?

View 4 Replies

ActionScript 2.0 :: Menu Text Above Scroller It Controls The Scroller?

Jul 29, 2005

my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?

View 1 Replies

ActionScript 2.0 :: Flash 8 / CS3 - Make The Scroller Refresh To Allow For New Text In The Dynamic Text Area

May 29, 2007

I'm using the dynamic text scroller from [URL] found at [URL] Here's a link to my zipped files too... [URL]

1) I can't figure out how to have URL links in the text that loads.

2) How can I make the scroller refresh to allow for new text in the dynamic text area. The content changes alright, but the scroller stays in the same position and if it wasn't needed initially, the scroller disappears and doesn't return on new text.

View 2 Replies

Flex :: Scaling An Image In A Scroller Resizes The Scroller When Relative Dimension Are Set To The Scroller?

Mar 9, 2010

I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...

<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image

[code].....

View 2 Replies

Actionscript 2.0 :: Get Vertical Dynamic Text Block By Setting To Vertical And Then To Dynamic

Jun 17, 2009

i found i can get vertical dynamic text block by setting to vertical and then to dynamic. But, then it ends up being horizontal, and if inside a clip, only the letters over another item in clip show. Like veritcal text on a vertical bar gives only the 1 or 2 letters that fit across bar, rest truncated. i've tried embedding text to get this far, but still doesn't work 'all the way' i see online they talk about all scripting for dynamic, vertical text; is that necessary, or am i missing something??

View 1 Replies

Flash :: Special Characters In Vertical Text?

Jul 18, 2011

I have a flash-application (done with CS4) in which a particular Textbox, which is vertical fails to display characters with a hacek (ˇ) on top. If such a character appears with in a string that is to be shown, it is simply dropped, leaving the string crippled.

This baffles me since characters with hacek work on other (horizontal) textfields in the same .swf with the same Font (Arial) work just fine. I also tried manually telling flash to embed these characters for this textfield, but to no avail. Even entering characters with hacek in the flash IDE works without problems.

I am not very familiar with flash, this application has been developed by a co-worker who is no longer employed here.

View 2 Replies

Professional :: Vertical Text Disappears In The Flash Video?

May 8, 2010

I have faced a problem in Adobe Flash CS4. I have created a simple text box and set it to a vertical direction, I've rotated it to 90 degrees. It looks good in the FLA file but when I convert to SWF, the text box simply disappears. Other components of my animation remain as I have designed them.

View 1 Replies

Professional :: Flash - Text On The Vertical Menu Doesnt All Show?

Jan 10, 2011

I am learning flash and recently bought a flash template so I could see how it was structured etc. The vertical menu on the flash template plays fine when ran locally but when I upload it to the web the text on the vertical menu doesnt all show (i.e. the text is half cut off).

View 5 Replies

ActionScript 3.0 :: Flash Curve Shape Text In Vertical Direction?

Aug 22, 2011

Is there a way we can apply curve to an dynamic text which is in vertical direction?

View 1 Replies

ActionScript 2.0 :: Do A Smooth Automatic Text Scroll From Right To Left

Apr 30, 2004

I'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;
if (this._x <= -3360) {

[Code]....

View 1 Replies

ActionScript 3.0 :: Automatic Scrolling Text - Pick The Scroll Speed

Jan 2, 2011

coding some automatic scrolling text? i've had a look around the internet, but all i can find is text that is scrolled using buttons. what i'm after is a way of coding text so it loads up into a text box (which i will call tf) (to start off with i don't mind putting it into the code as static text), scrolls on its own, and when it get to the end, it repeats the scroll, and is neverending. i would like it to go vertical (that ups the page in case i've picked the wrong one!), and be able to pick the scroll speed so i can slow it down or make it go faster. if someone can give me some sample code to get me going that would be great, and i'll try to sort out the rest myself.

View 1 Replies

ActionScript 2.0 :: Tell The Cursor(vertical Text Flasher) To Jump To The End Of The Text In A Input Textfield?

Aug 19, 2006

how to tell the cursor(vertical text flasher) to jump to the end of the text in a input textfield - so that you can continue typing from the end of existing text?

View 5 Replies

ActionScript 2.0 :: EmbedFonts Makes Text Disappear - Dynamic Text Vertical Position?

Aug 7, 2003

I have the following code:

Code:
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;[code].....

The problem:If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved