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.
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.
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] .....
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]
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;
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.
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;
this post references the files listed at:i've implemented a dynamic text box that calls a txt file into it. it uses a scroller that i found a tutorial on:i've got everything working splendidly - everything EXCEPT the scrolling bar... as you can see, it scrolls up and down just fine, but doesn't control the text.i've pretty much exhausted my search through the actionscript to locate the problem and i can't find it.
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
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?!
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.
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...
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.
I am having a little difficulty properly sizing a Scroller component in Adobe Flex/Flash 4. As soon as I add an element to the 'widgetsGroup' VGroup, the scroller's height property resizes to match that of its parent border container, even though the content height of the vGroup may be significantly less than this value. This is a problem because the scroller then 'covers' other elements in the border container. I guess what I am looking for is the scroller height to match the widgetGroup content height until this height exceeds the bordercontainer height, at which point the scroll bar would become visible.
The zoom just works fine by changing the value from 1 up to 3 with a slider. Midpoint of the zoom is the center of the container (map).My problem: when i zoom, the scroller cuts a part of the groups. it zooms out of the window?!
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.
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.
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).
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) {
I'm trying to make a scroller for a movieClip, with a static text inside does any one Know how can i do it. (I don't need the arrowfor this case but only the code for the scrolling bar)
Is it possible to make text content for a site in Flash be changed/updated by someone without having to take the route of Flash? Like I have a text file in notepad, or Word and the text will automatically appear in the swf file?
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?
I'm trying to load an XML file and place the content into a dynamic text field. The XML nodes contain content within CDATA sections that have basic <b> and <i> tags. Once I have the content loaded into a variable and trace it, I can see all my tags within.
I then place the content into a dynamic text field with html set to true but for some reason it doesn't show any formatting, the tags appear to have been rendered because they don't show up inline. I thought maybe this was due to embedded fonts but i have all of my bold, bold italic, italic and regular font's within a text field embedded so I wouldn't think thats an issue. Is there something I'm overlooking?
I'm trying to make vertical sliding content on my flash site and I have it working so that when I click on the second button, it slides up to the second content, but when I click back on the 1st, it doesn't slide back down to display the 1st content.
var currentPosition:Number = contentholder.richginfo._y; var startFlag:Boolean = false; menuSlide = function (input:MovieClip) {
i have downloaded this flash file [URL] and i'm trying to make my own tsunami menu based on that one. but i have an issue. in the file there is a movie clip called "menuitem". i can only see it in the library and not on the satge. so i don't know where to place it.