ActionScript 2.0 :: Loading XML Content - Custom Scrollbar?

Feb 4, 2009

I am new to xml content in flash. I have been through the kirupa tut for loading xml content and have been successful in implementing it, but I now want to implement it into a scrollbar so I can use css and img tags. I can get it to work using the UI scroll component, but I want to use a custom scroll bar. I get the XML to load fine but I have no clue where to stick in the firstChild.childNodes[0] so I can call to certain attributes within the XML document. Below is the AS for the custom scroll bar.

Code:
stop();
holder_mc.setMask(mask_mc);
var LV:LoadVars = new LoadVars();
LV.onData = function(info:String):Void {
holder_mc._txt.text = info;
[Code] .....

View 1 Replies


Similar Posts:


IDE :: Simple Custom Scrollbar - Content Disappears

Mar 30, 2010

I've successfully implemented the scrollbar from this great tutorial for some banners, but when I get to my 300x250 banner, the content gets cut off and disappears at a certain point while scrolling. This is the tutorial: [URL]. I altered the pieces for two different sizes without needing to alter any code, but this size is suddenly giving me problems. My FLA is attached.

View 3 Replies

ActionScript 2.0 :: Change The Content In One Simple Custom Scrollbar With/without Changing It In All?

Sep 20, 2010

I worked through Kirupa's "Simple Custom Scrollbar" tutorial and successfully adjusted it to fit some of my content. Then I put it in a movieclip. I was hoping I could just go into each new instance of that movie clip, put in new content and be good to go. Unfortunately, when I edit the content inside my movie clip it edits the content of all the scrollbars in my timeline.

I tried renaming the instance "contentMain" to "contentMain2" in a second movie clip, that I also gave a unique instance name to, and adjusting the actions to match, but that still ended up renaming it in the other the scrollbars in my timeline as well as adjusting it in the actions of all the scrollbars.

View 2 Replies

Scrollbar Not Working For XML Content MC

Aug 19, 2009

I have a movie clip that loads thumbnails from images folder by reading the location of image from xml file...The problem is I have put up a scroll bar but its not working i.e its not scrolling the thumbnails' movie clip contents. I am uploading the fla...any line of code I need to change I think its the scrolling function. The scrolling script I used is from kirupa. I don't want to use classes in this...and want the up n down buttons to remain.

View 6 Replies

IDE :: Scrollbar Content Too Long?

Sep 15, 2009

I have a scrollbar in which a very long list which I can't make any shorter / smaller.roblem is, the script for the scroller demands that I place the text at 0,0 on the Flash axis, and the lenght of the text makes it run way down to the lower edge of the Flash workingfield.Somehow this makes the text run 'beyond reach' of the scrollbar; the scroller only shows about 2/3 of the list, and does not show the text beyond that point.How can I extent the reach of the scrollbar??? Can I shift the 0,0 point of the Flash axis (maybe place it higher, so the text falls into the more 'reasonable' regions of the workingfield of Flash?)

View 1 Replies

ActionScript 3.0 :: Scrollbar With Generated Content?

Nov 27, 2009

I want to use the built in Scrollbar component to scroll within a movie clip or sprite whose content is generated by a for loop within my code. I can't seem to get it working when I set the scrollbar at authortime to target the movieclip into which i place the for loop at runtime.

View 9 Replies

Flash 8 :: Scrollbar - How To Scroll Content?

Dec 22, 2011

I have several scenes in a Flash app; for some of them the Movie height is right while for others the content is very long so i would need to have scrollbars to let the user scroll down.Which is the correct way to handle it in this old version of Flash?

View 1 Replies

ActionScript 2.0 :: Scrollbar Won't Show All Content

Aug 6, 2009

I've used Bill T's scrollbar code and loaded text from an XML file. When I drag, the text content is not completely shown.

I'm suspecting it has to do with the value "1.3" in this particular line:

Code:
scrollAmount=(this._height-(mask_mc._height)/1.3)/(mask_mc._height-scrollbar_mc.dragger_mc._height);

how I could use this code, to show up complete text content dynamically?

Here's the complete AS:

Code:
//set a variable
targY=0;
//set the drag action of the dragger

[Code].....

View 1 Replies

ActionScript 2.0 :: Scrollbar Visible Only If Content?

Feb 5, 2008

I have a scrollbar which works great however I want it to only be visible if the content in the dynamic text box is over a certain amount/height can anyone help I thought maxScroll would be the answer but cant seem to get that to work.

View 3 Replies

IDE :: Custom Scrollbar With Easing?

Feb 27, 2009

I have a dynamic textfield that loads an xml file and I'm looking for a good tutorial on how to create a custom scrollbar component to scroll the textfield with easing.

View 4 Replies

ActionScript 3.0 :: Scrollbar And Loaded Content Of Various Sizes?

Jun 5, 2009

I'm working on a project that uses a loader to load up a swf, then display the loader in an area using a mask and a scrollbar to scroll through the content. The content in this project will change regularly, including the dimensions of the swf file (vertical dimension only, I'm not worried about horizontal scrollbars with this question).The problem I'm running into is I can't figure out a proper formula to get the scrollbar to position the content at it's bottom when the scrollbar is at the bottom  What I have now is close, but not exact. If you scoll to the bottom, the bottom of the content would scroll up too high, leaving an empty 'blank' space where the content should be. I have an if statement checking for this currently, but this creates a 'dead zone' at the bottom of the scroll bar where the content is already at the bottom, and the scroll bar can continue to scroll down a bit.oes anyone know what I'm doing wrong here in the math to get a good scrolling going, regardless of the size of the content loaded by the loader?Here is what I have so far:

package {  import flash.display.MovieClip; import flash.net.URLRequest;  import flash.events.*; import flash.display.Loader;  import fl.controls.UIScrollBar; import fl.controls.ScrollBar; import

[code].....

View 1 Replies

ActionScript 2.0 :: Scroll Box (w/scrollbar) Content Defined By XML?

Jan 23, 2010

I'm wanting to make a vertical scrollbox (say, 150 px wide by 500 px high with a scrollbar) and where the content is defined by an XML file. The catch... I'd like each name in the list to become a button (or otherwise clickable) that opens a swf (also specified in the XML file). I have succeeded in making a static list where each "name button" was created manually... but I'm realizing my list is going to be hundreds of names and I'm thinking there must be a way to achieve this with XML. Here is the current version:

[Code]...

View 0 Replies

ActionScript 2.0 :: MichaelxxOA And Kirupa Content Scrollbar?

Aug 26, 2007

I have been reading through the Source/Experiments threads and trying to implement suggestions in the Content Scrollbar (Revised) [URL].. thread. I'm using Flash MX 2004, Actionscript 2.0 and throughout the course of this great thread the suggestions seem to shift and become geared for Flash 8. There are a few hints that MichaelxxOA kindly left for MX 2004 people loading content dynamically but I haven't been able to get to work. It's been a long work in progress but I feel like I am getting closer. At the moment I have been able to get the xml content to load into flash but I had to create a kind of dummy cell in the contentMain that is approximately the length of the combined images in the xml document. Is there a way to change the code so that it can read and load the content of the xml document so that when it varies flash loads into contentMain what ever combined height the xml includes? Here is the zip including .xml, .fla, .swf, .as and image with progress so far.

View 2 Replies

IDE :: Scrollbar That Eases Content Into Place OnRelease

Mar 11, 2009

On my site I want to scroll image boxes vertically. On releasing the scrollbar is there anyway to make the content being scrolled ease into a specified position so that it aligns with other elements on the site instead of stopping at a random coordinate?

View 1 Replies

ActionScript 3.0 :: Using Custom Scrollbar Script?

Feb 3, 2010

I'm using this custom scrollbar script I got somewhere. Works OK on page that needs it but when going to the other pages I get a "TypeError: Error #1009: Cannot access a property or method of a null object reference.at the_fla::MainTimeline/stopScroll()"

Code:
/* script to control scroll text */
var bounds:Rectangle = new Rectangle(scrollMc.x, scrollMc.y, 0, 200);

[code]......

View 2 Replies

ActionScript 2.0 :: Custom Scrollbar For A Textfield

Nov 18, 2005

I made a custom scrollbar for a textfield that works like a charm... but in it's "alpha-state", it was only showing where the text was scrolled to (and how long the text is, by it's own height)- you couldn't actually click the scrollbar and drag it. So I added a little AS to the actual scrolling block MC that *should* work... and kind of does- but not like I think it logically should..?

[Code]...

View 5 Replies

ActionScript 2.0 :: [F8] Custom Scrollbar With Contentstarting ABOVE Above Y=0?

Sep 20, 2006

My problem is with scrolling vertical content with a custom scrollbar, where the dynamic content often starts at a y value ABOVE the viewer (or mask). I can get the scrollbar to reflect the correct % of available content on the scrolltrack, but for the life of me am stuck allowing scrolling for the full height of the content.The attached FLA (v8) shows where I'm stuck and how far I got. It's a much simplified version of the final movie, with static content for now, but demonstrates a case in point. I can't use the built-in scrollbar component/s because the content MC will be dynamically populated with further MCs and the content._y value will change constantly, usually ABOVE the 0 y coord of the movie.

View 5 Replies

IDE :: Simple Custom Scrollbar For EBrochure

Apr 13, 2010

I followed the tutorial [URL] and it is not working for me. It may be that I am attempting to use this nested within another movieclip. When I test it and click on the dragger on the scroll bar all that happens is that the dragger relocates to center of screen... and that's it. No scrolling, or whatever. To give more info, I am creating an ebrochure, where each frame on the main timeline is a movieclip "page" and in each "page" are several other movieclips. I am trying to use the scroller on "page" 11 (basically frame 11 on main timeline) and in that "page" are several movieclips on their own layers that build the page, including the layer that has the movieclip of the scroller content as per the tut. But I can't seem to make it work. Is this scroller functionable on the main timeline only?

View 1 Replies

Flex :: Horizontal Scrollbar Hides Content Of ApplicationControlBar?

Oct 9, 2009

I have an application control bar at the bottom of my Flex application (with attributes width="100%", dock="false", left="0", bottom="0", height="50"). It contains a lot of elements (like buttons and labels). The width of the SWF is the width of the browser.When the user makes the width of the browser window smaller, after a certain point, thecomponents on the application control bar gets "squished": they are forced on top of each other. And so, it becomes confusing and ugly. To ensure that that doesn't happen, I've set the minWidth attribute to a value so that it'll always display the components without them overlapping each other.

But then, a horizontal scrollbar appears and hides the bottom half of the application control bar.I've googled and I found this article: flex verticalscrollpolicy bug (referenced by this SO question: Flex: Prevent scrollbar from covering content when automatically displayed).But that seems to apply only to a fixed size component. My component's width is a percentage. how to have the horizontal scrollbar appear and have it not cover up the application control bar?

View 3 Replies

ActionScript 3.0 :: ScrollBar Formula - Add Extra Space After Content?

Feb 11, 2011

so i have some scrollbar(track and button) and some content.the formula i am using to calculate to calculate y of content is the following:

//contentStarting.y and scrollbarButtonStarting.y are positions of sprites at the moment they are created
content.y = -((contentStarting.y -scrollbarButtonStarting.y) +scrollbarButton.y) * ((content.height- content.mask.height) / (scrollbarTrack.height - scrollbarButton.height));

the only problem i have is that i need to add extra space after content, so basically i want forumla to act as if content. height = content.height + extraSpace , but unfortunatelly setting the height scalesY, which is what i don't want.

View 1 Replies

ActionScript 2.0 :: Creating A Custom Horizontal Scrollbar ?

Jul 19, 2011

I would like to know how can I make a horizontal scroll bar in AS2?I have make a vertical one already and using the below script, what should I change then let the scrollbar become left to right?

var scrollUpper:Number = 9;
var scrollLower:Number = 158;
var textLower:Number = 0[code].....

View 4 Replies

ActionScript 3.0 :: Dynamic Text With Custom Scrollbar

Dec 18, 2008

I am trying to adopt Lee Bremelow's OOP Scrollbar 2 to load external text. So far without luck. This tutorial uses three classes. In fla file there are movieclip scrollbox, inside of which are dynamic text field (txtField) and custom scrollbar ( consisting of two clips: thumb and track). If I copy some text into text field, everything works. If load external text into text field, text is loaded but it doesn't scroll. Below are codes from all classes:

View 3 Replies

ActionScript 3.0 :: Custom Scrollbar And External Text?

Dec 27, 2008

when I test my movie my external text loads. if I scroll downany length with out retuning it to the top, and then click a buttonwich loads another external text file, you are not able to see thefirst few lines of the text file untill you click on the slider.the slider did not return to the untill I reset the sliderscordanites apon button click. is there a way I can reset the textfield.my code can be found in the sixth reply of this post [URL]

View 17 Replies

ActionScript 1/2 :: Create A Custom Scrollbar For A Website

Aug 5, 2009

I am trying to create a custom scrollbar for a website... I watched the tutorial>[URL].asp on how to create one. I have the scrollbar working but it won't attach to the text! Here is the actionscript:

[Code]...

View 5 Replies

ActionScript 3.0 :: Custom ScrollBar: Dynamic MovieClips

Mar 15, 2011

I intend to make a Custom ScrollBar that would work with Loading dynamic MovieClips upon runtime. I want the ScrollBar to scroll through those MovieClips.

What i am trying to do exactly: I want to create a "who's online" Something, add a Movieclip with information of the client to that 'Something' and use a Custom ScrollBar to scroll the content(dynamic-added MovieClips) of that Something.

View 5 Replies

ActionScript 2.0 :: Making A Custom Scrollbar With Easing?

Jun 3, 2005

just wondering if anyone could give me a kickstart with any tutorials or anything? i was hoping to make one like the flashloaded one etc..

aiming to make it work with dynamic text though

View 4 Replies

ActionScript 2.0 :: Create A Custom Scrollbar For Text Only?

Oct 18, 2005

in flash8/mx04 is it possible to create a custom scrollbar for text only? i would like to make a dynamic text field with a scrollbar that doesnt need to be contained in a masked mc like most of the scrollers i have seen on this forum so far. i dont want to use the UIscrollBar component because it doesnt quite (well, doesnt at all) fit in with the theme of the project i am working on.

how to make a scrollbar?

View 1 Replies

ActionScript 2.0 :: Custom Text Scrollbar With Dragger

Feb 6, 2007

I am trying to make my own text scrollbar with dragger. I don't want up or down buttons just the dragger. I've done this so far...
Code:
var scrollHeight:Number = scrollTrack._height;
var ms:Number = newsText.maxscroll;
var left = scrollTrack._x;
var right = scrollTrack._x;
var top = scrollTrack._y;
[Code] .....
It scrolls till the end of text but not to the beginning....

View 1 Replies

ActionScript 2.0 :: Custom Scrollbar Doesn't Scroll As Far As It Should

Aug 11, 2003

I am making a scroll bar but it doesn't scroll as far as it should. I triple checked all my math but I can't find anything wrong. Probably the code of interest is on the movie clip content0 within the instance whole. This is what actually controlls the scrolling. Most of the other script dictates how the sliders work so you can ignore that, they work fine. Scroll index is a number between 0 and 1 indicating how far down the bar the slider is, 0 it hasnt moved, 1 it is at the bottom. That works as well. So i am not sure why this doesnt work.

View 5 Replies

ActionScript 2.0 :: Custom Scrollbar - Where To Plug In Numbers

Jul 1, 2011

This is probably a really dumb question, but I recently created a custom scrollbar using this tutorial. [URL]. Have managed to get it working (well sort of...) It scrolls down- but it won't scroll to the bottom of the content. I'm guessing I have to plug in numbers in the script, problem is I'm very new to this.. where to i plug it in.

These are my numbers:
measurements (pixels)
H_C= 1024
H_T= 382
H_F= 25.4
H_V= 450

View 1 Replies







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