Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




External TXT-files And Scrollbar-component



Hi,

I got a problem.
Is is possible to use a dynamic textfield (the text in this field is loaded out of a txt-file) with a scrollbar?

It's no problem for me to set the text of the txt-file in the textfield, it also no problem to use a normal textfield with the scrollbar-component, but when I combine this 2 methods the scrollbar doesn't work anymore.

Another question: is it possible when I have a movie (insert -> convert to symbol) in my flash-movie with a textfield in it, to read in this textfield of this movie a external txt-file? When I try this, or I convert the dynamic textfield to a movie, I can't load anymore external txt-files.

Anybody a solution?

Thanx!

Ps Sorry for the bad english :-)



FlashKit > Flash Help > Flash MX
Posted on: 08-04-2002, 09:46 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Scrollbar For External SWF Files
Last edited by chen_ping : 2003-07-19 at 22:25.
























hi all,

I have tried this many times and i still dont understand it. I'm lost pls help.

I need to load an external SWF onto a main flash and allow it to be scrolled up and down with a scrollbar (not scroll buttons pls, i understand how to do tht already). Exmaple of a scrollbar is like what u see on your right on this window, for those who do not understand what i'm saying.

Pls do not refer me to tutorials on Flashkit.com i have checked the whole site and either do not understand what they are teaching, or find that what they are teaching is not what i need.

Of cos i do not mind refering to online tutorials, but i would really appericate it if some one could provide me with a simple to understand FLA file, to make it all simple and easy to understand.

THANK YOU, i really need help here.

P.S: i have tried using scrollpane too, but i do not know how to edit the scrollbar into my own design.

Help With External Content And The Scrollbar Component
Hey peoples,

I am designing a site for a client: http://www.colsmusichouse.com.au and I am having trouble with the Scrollbar component with my external text. (from text files)

Heres the problem:
If you click on another section other than the main, eg. the contact section. Move the scrollbar down to the bottom, then click the title writing (Col's Music House) to go back to the main section.
The scrollbar is at the bottom.
This however does not happen if the text has not already been loaded.

What I've Tried:
I've tried next to everything to get this to work, setting Scrollposition and all that. I've tried asking at ego7.net but no one there seems to be able to help.

A Solution?
I am thinking that if there is a way to ensure that the text files are loaded everytime a button is clicked then it should work. The problem is that I have no idea how to accomplish this. I've tried using identifiers but with this method my text files won't load.
This is the code I'm using to load the data into the textbox:
TextData = new LoadVars();
TextData.onLoad = function(){
TextBox.htmlText = this.content;
};

Is there a way to ensure that the content loaded will always be from the server rather than from the cache.
If it's necessary then I'm happy to use a different approach to load the content into flash.

Help With External Content And The Scrollbar Component
Hey peoples,

I am designing a site for a client: http://www.colsmusichouse.com.au and I am having trouble with the Scrollbar component with my external text. (from text files)

Heres the problem:
If you click on another section other than the main, eg. the contact section. Move the scrollbar down to the bottom, then click the title writing (Col's Music House) to go back to the main section.
The scrollbar is at the bottom.
This however does not happen if the text has not already been loaded.

What I've Tried:
I've tried next to everything to get this to work, setting Scrollposition and all that. I've tried asking at ego7.net but no one there seems to be able to help.

A Solution?
I am thinking that if there is a way to ensure that the text files are loaded everytime a button is clicked then it should work. The problem is that I have no idea how to accomplish this. I've tried using identifiers but with this method my text files won't load.
This is the code I'm using to load the data into the textbox:
TextData = new LoadVars();
TextData.onLoad = function(){
TextBox.htmlText = this.content;
};

Is there a way to ensure that the content loaded will always be from the server rather than from the cache.
If it's necessary then I'm happy to use a different approach to load the content into flash.

Scrollbar Components And External Txt Files (MX)
Hiya folks,
the problem is as follows.

I'm loading a .txt file dynamically at runtime using loadVaribles (); So I can see the text and its all fine and dandy. Now I add a component scrollbar and nothing nada text is there, scrollbar (without scroll is there), but I've got no scrolling text.

Any help much appreciated

How To Load External TXT File In Scrollbar Component
hey guys please help me. How do i load an external txt file into my scrollbar component?
Thank you very much

Scrollbar Component With External Text File?
I'm not really a newbie to Flash...more like a novice. I need to create (from scratch) a text scrollbar similar to the scrollbar component within MX. I would just use the component but my text is coming from an external text file.

Right now I just have simple up and down arrows with text.scroll+1 type actionscripts (www.rainbow25.org) but I need to add the scrollbar in between the arrows.

Does anyone know where I can find a really good tutorial that can explain how to create a scrollbar for a dynamic text box that loads text from an external text file? I'm also in search for a scrollbar that can scroll a movieclip which consists of text and images. Any help would be GREATLY appreciated...

Thank you so much in advanced....

External Text Files And Scrollbar In Flash
Hi all,

I have a problem that I just can't seem to conquer. I am loading external text files into an html page that is totally flash. It needs to be exported through Flash Player 5 (can't use 6) using Netscape as its browser. All text files are different in length and I need to use a "scroll bar" so that the user knows how much text is needed to be scrolled. This is what I've done thus far:

Topic is clicked on (object is a button)= (e.g. on (press, release) {
gotoAndPlay(2);
}

Next, the external files is loaded into position. The dynamic text has a variable name of my_text.

The Upper scroll arrow which is a MC with a button inside has the following AS:

onClipEvent (enterFrame) {
if (scrolling == true) {
--_root.my_text.scroll;
}
}


The bottom scroll arrow MC instance has the following AS:

onClipEvent (enterFrame) {
if (scrolling == true) {
++_root.my_text.scroll;
}
}

Once inside the MC the top arrow button has this AS:

on (press) {
scrolling = true;
}
on (release, releaseOutside) {
scrolling = false;
}


and, the instance of the MC's bottom arrow button has this AS:


on (press) {
scrolling = true;
}
on (release, releaseOutside) {
scrolling = false;
}


I need to figure out how I can place another MC on the timeline (I guess) and have the scroll bar move in increments according to the length of the text file.

Is there a so-called easy way around this? Any suggestions would be greatly appreciated!

Thanks,
Brian EW McNulty

Problems With External Text File HTML And Scrollbar Component
I'm using CS3 and outputing Player 8 with AS2.0. I've got an external txt loading into a dynamic text box with html enabled using this AS:
myData = new LoadVars();

myData.onLoad = function() {
//the value of the "content" property is assigned to the text field
news_txt.htmlText = this.content;
};

myData.load("news.txt");

stop();Everything comes out great except my bold and italics tags wont close. </b> and </i> are being totally ignored but </u> is just fine. Anyone know what the problem may be?

Also, anyone know how to make a scrollbar component shorter than the text box its attached to? Thanks!

Component External Files.
I made a component that has an external User Interface .swf. I am able to have a user fill out a complete path to an xml file that is going to be loaded into the component, but when I try to embed this UI into my component it want's to only search for the file starting from the component directory. Has anyone experienced this or does anyone know how to fix this issue?

External Files And The Scroll Component
Why cant/wont the scroll component scroll dynamic text from an external file? What do i need to do to get it working?

Component Parameters And External Files
Is there a way to keep the Flash authoring tool from populating the parameter list in the component definition window? Everytime I make a change to my class file I have go back into Flash and delete all the parameters so that it will reload the file. There must be a better way.

Please Help (about The Loader Component And External Img/txt Files)
Hello, my name is Lill.
Im stuck on a problem here.
Im useing the loader component to import images, but is it a way to make the loader go to and read an external txt file which then points to a external img file?
This is because of a dynamic system the programmer here uses. He wants to change the images through a dynamic web and from there he can upload images makeing changes to the external txt files, which then would change the image in the swf whithout changing the fla file.

But do you know something that would make this work?

Component Parameters And External Files
Is there a way to keep the Flash authoring tool from populating the parameter list in the component definition window? Everytime I make a change to my class file I have go back into Flash and delete all the parameters so that it will reload the file. There must be a better way.

TextArea Component Problems (loading External HTML Files)?
I'm having a lot of trouble loading my HTML files into a textArea component that I have. The main difference is that when I try to do it on the ._root stage, it works, but if the component is nested inside a movie clip, it can't seem to load the html file at all.

Okay, so here's the situation a little more in detail (forgive me, I don't have the files open in front of me at the moment, so I'm going strictly by memory):

The textArea is a part of a graphic symbol that I made as a popup window, so for or purposes, I'll call it 'window'. This symbol, containing the aforementioned textArea component, is inside a movie clip that I used to make transitions for the window. We'll call this movie clip "popup" as that's pretty much what it does. So in my main stage, I have a button that loads the movieclip "popup". Say the code looks like:

on(release) {
this._parent.attachMovie("popup", "instance1", 1);
window._x = 0;
window._y = 187;
}

This loads the "popup"movie clip just fine. It plays and all, but inside the movie clip, on frame 1, I'm trying to load the external html file into the textArea component that's inside the "window" symbol with a script like:

var loadtextContent = new LoadVars();
loadtextContent.load("content.html");
loadtextContent.onLoad = function(success) {
if (success) {
textArea.text = loadtextContent.mytext;
}

};

That's not verbatim, but I know that it does work on the main stage, I just can't seem to get it to work on a textArea that's anywhere else.

Want I want to do is just have a swf and when you click on a button, it loads the popup to simulate a GUI, with the html loaded on the fly, as there would ideally be several buttons for different html files.

Now, I'm rather stuck. I don't really know where I went wrong. Am I placing the script in the wrong places and using incorrect target paths ? (I do that sometimes) Am I just approching this the wrong way? In theory, it shold work, but I can't get my html loaded, so any ideas at all would be appreciated. A workaround or another way about this would be as well. Thanks all.

-J

[F8] Help - Scrollbar Appear On The Scene Which Do Not Contain Scrollbar Component
1. I have successfully created multiple scenes with dynamic html text fields and UIscrollbar component.

2. Each scene is a webpage, so I can click on each button to go to corresponding scene.

3. The main page contains no scrollbar component. When I publish on the web, it run perfectly for the first time loading it. However, after I visit other pages (different scene created in F8) and click on "Home" button going back to the main page, the scrollbar component exists on the page which should not contain any scrollbar.

4. I try to give each scrollbar on different scene a unique instance name, and disable it using

Code:
scrollbar0._visible=false;
but it doesn't work. I think maybe I include the actionscript to the wrong place or under the wrong event/action.

5. Any idea of how this happened?

Thanks,
little_poem

Mx.data.components - Unable To Declare Data Component Types In External Class Files
Hi all,

FlashMX 2004, v7.2:

I am trying to declare instances of data-components (DataSet and DataHolder) in external classfiles, but Flash can't find the sourcefiles for any of the data component classes in the classpath.

According to the help-files, the classname for the DataHolder component is:

Code:
mx.data.components.DataHolder


Similarly, the classname for the ComboBox component is:
mx.controls.ComboBox

Code:
mx.data.components.DataHolder


In the following, the ComboBox gets declared, and the DataHolder generates a "Class can't be loaded" error:


Code:
class my_class extends MovieClip {

var my_cbox:mx.controls.ComboBox;
var my_data:mx.data.components.DataHolder;

function my_class() {
// constructor function
}

}


Sure, it fails because there is no "components" folder in the mx.data folder (at least on my system), and I have been unable to find any DataHolder.as file anywhere either, even though the documentation gives examples that reference the mx.data.components-folder for various data components. I even tried re-installing to make sure I had not accidentally deleted any classfiles, but still no luck.

Am I missing something really obvious here? Does anyone know how to successfully import, declare or otherwise make use of data-components in external class files? Any help greatly appreciated.

Scrollbar UI Component
There is a textfield (which can only show a few lines of text) with instance name "tar" and var "a" on the stage. There is also a scrollbar on the stage and the target is set to the textfield (i.e. "tar").

The action of the 1st frame is:

for(i=1;i<30;i++){
a += Math.random() + newline
}

When I run the swf, the textfield do show a list of 30 random numbers, but the scrollbar doesn't work though the field show only a few lines out of 30.

So how can I actiative the scrollbar?

MX Scrollbar UI Component
This is probably easy but I can't seem to figure out what I missed.

I'm loading dynamic text from XML into a dynamic text box in Flash MX. I've set the box to be multiline, have html enabled and to show the border. The text variable is name textboxtext and the dynamic text box itself is named textbox.

I know the XML is loading fine because I used the trace() function to know that it is loading up all 67 nodes. However only about 20 of them appear in the box at one time. And the scroller I added using the UI Component doesn't seem to do anything.

I added the scroller to the stage in a different layer from textbox and it is vertically aligned. The parameters window says that its "Target text field" is textbox.

Anyone know what I'm missing to make the scroll bar actually scroll the text within textbox?

Thanks,
-- Dave Goldfeder

Scrollbar Component
Can anybody tell me how a can get rid of the arrows in the scrollbar from the window comopents?
Thanks in advance
greetings

Scrollbar Component
Hi again:

Thanks so much for all the other help from you guys. Here is another one. I have used the scrollbar component with a dynamic text box. They are in the same timeline. It works when I test the scene, but when I publish the text box does not stay the same size it enlarges lenghwise to include all the text which is off the page and the scrollbar is enabled. Are there any fixes for this? I do not have text importing into the text box, I just copied and pasted the info from a text file into the box.

Patti

Scrollbar Component
how can i change the color of the scroll bar component that comes wid FLASH MX.....????

Scrollbar Component
i am having some trouble using the scrollbar component.
check out http://www.perkinsphotography.net and go to the families section. The text in the center left is supposed to scroll. The text field is dynamic. It has an instance name and a variable name of sectionText. I have the scroller's target text field is set to sectionText.

Note: the dynamic text field and the scrollbar are both inside of a movieclip named familyPlaceholder. My text is loaded like this:

onClipEvent(load){
section = "";
sectionText = "";
loadVariables("http://www.perkinsphotography.net/SWF files/about.txt", this);
loadMovie("../images/about/jperkins.jpg",photoPeg);
}
onClipEvent(enterFrame) {
if (sectionText != "") {
loading._alpha = 0;
}
}

any help is appreciated..
thanks,
-myk

...::: Mx Scrollbar Component :::...
I am using the mx scrollbar component on one of my text fields. it works great, you just snap it on and it scrolls whatevers in the field. however, i can't seem to get it to work on text being pulled in from a .txt file! The only way i can get it to scroll the field is if i make the field an inpuit box and click inside it, only then does it display the scroll buttons

has anyone else noticed this???

thanks

Scrollbar Component
I have been tinkering about with the Scrollbar component in Flash mx. Could someone tell me if the size of the scrollbar can be adjusted to match the hieght of the text field. I am sure i was able to do this but for some reason it won't do it now

ScrollBar Component Won't
Ok, I really need a smoke.

Anyway, I've used the scrollBar Component in the past with no problems. Now I'm trying to add one to an older file that's been saved as an MX file. When I drag the ScrollBar component from the library it won't snap to the edge of the text field and won't register the instance name of the the text field. No matter what I do I can't get the two to sync up. If I open a new file and try the EXACT same thing it works fine. Is there some problem with adding components to a Flash 5 file even if I've resaved the thing as an MX file? Even setting the Target TextField Parameter to the instance name of the the text field manually doesn't work. I be stumped. If anyone has any clue why this is happening.....you'll forever be my hero. Thanks.

Scrollbar Component Help
I am trying to customize the scrollbar component and am having some issues....

I see the individual objects/skins, but where is the clip that holds them all together?

For Example:
I am trying to move the arrow on the right, to the left, but don't know where to adjust this? Trying to change the actual component doesn't seem right (not sure whats happening there)

Looked at system docs, guess I didn't get it.....any help is appreciated.

Thanks!

ScrollBar Component
I am trying to use the ScrollBar component within a MovieClip.

It is attached to a dynamic text box that is using a TXT file for it's content.

Everything works except the scrollbar. It works fine oustide the MC but not inside.

Anyone know how to fix this problem

Thanks

Scrollbar Component ?
I recently bought flash MX I saw the components ,

but I don't know how to use the scrollbar component macromedia doesn't explain it well enough or well they don't explain it.
I know I have to name my text. and then drag it over teh text so it will get stuck on it but it doesn't work does anyone know why ?? or am I doing sojmthing wrong.

damn so anoyying when something doesn't work.

Scrollbar Component
I have successfully installed scrollbars several times but this time its not happening. Mx is asking for the textfield instance name but it has one called 'text' and the scrollbar commponent(my scrollbar) recognizes 'text" as the target textfield...not sure why this is happening- any possible explanations?

ScrollBar Component
I'm creating a specialized photo-album application which shows the customers photo-sessions from the photographer, and they can select which pictures they like.

In my thumbnail preview (mcThumbNailPrev), I'm attaching my thumbnails (mcThumb[x]). Is there any way I can utilize the scrollbar component for my 'mcThumbNailPrev' to view all my thumbnails? I'm just now getting used to MX, and all I know, is that the scrollbar works on text fields. Can it be used on movieclips too? I'm sure it can be.

Any guidance?

Scrollbar Component
I have a scrollbar component attached to a dynamic text box, which works fine(almost), but it always stops scrolling at the last but one line, no matter how long the text is, when I use the mouse. If I use the keyboard to scroll it is fine and shows the last line. Any ideas how to fix this? tks

Scrollbar Component Help?
How do i get those stupid scrollbars to work on a dynamic text field? I drag the component onto it, its attached to the textfield, but when i play the movie, it doesn't scroll, its just sitting there annoying me. What else do I have to do to get this to work?

MX UI Component - Scrollbar
I've designed my own scRollers before but was trying to get the canned UI component to work for me. The Help file states I can drop it on my dynamic textfield and it should work, but I'm finding differently. It seems to target my textfield's instance name correctly. I've traced my textfield's maxscroll property to 30. But, no matter what I've tried I've got no scrolling. It doesn't even show a grab handle.

Any ideas?

Scrollbar Component
Right,

I'm no biggy on actionscript which is why im trying to learn it in the first place.

My problem is this:
I have a dynamic text box,(with scrollbar comp) enter my text locally and format as html, and everything works great.

As soon as i change this to LoadVariables with an outside text source, my scrollbar blanks out and won't do anything.

so basically how the hell do you get external text to scroll using this component?

P.S iver tried it on the stage and also loading into a MC holder clip, with no joy.

Scrollbar Component
does anyone know how to make your own scrollbar component in flash mx, just like the one that it came with but with a different look?

Scrollbar Component
How do you get the scrollbar component in Flash MX to scroll the contents of the text automatically?


Quote:




scroller.setScrollProperties(80, 0, 100);
scroller.onEnterFrame = function() {
if (scroller.getScrollPosition()<100) {
scrollerpos = scroller.getScrollPosition()+1;
scroller.setScrollPosition(scrollerpos);
} else {
scroller.setScrollPosition(0);
}
};




When I did that, the text finished scrolling at about 1/4 of the scrollbar and scrollbar continues scrolling till the end. I need to know how to set the maximum page value of .setScrollProperties to fit the amount of text I have in the textbox.

Help!

Scrollbar Component
I am using MX, and I need a scrollbar for dynamic text, but I want to use a different graphic than what is provided by the scrollbar component. I've made two buttons that scroll by attaching the .scroll action but it only scrolls 1 line per mouse click. I used the code:
on(press) {
Textfield.scroll -= 1;
}

I just need an easy way to create a scrollbar for dynamic text using my own graphics.
Please Help!

Scrollbar Component.
I am wondering if there is code, to make the scrollbar component goto the bottem, and start there.

Scrollbar Component, Please Help
just to be clear, im using flash mx not the new version

im making a flash chat program and im using the scrollbar component on a textfield, the problem im having is that when somebody sends a new message or something and the data in the textfield adds up and stuff, you arent able to scroll down to the last message, what i need is a solution to make it when new data is added to the textfield, it updates the scrollbar to make it possible to view everything in the textfield, and also i want to make it to when new data is added to the textfield, it sets the viewed position of the textfield to the bottom so the new message is viewe, help help pleeaaaase!!!!:'(

Scrollbar Component
When I load text from and external file and display it in text field, it displays correctlt but scroll bar component doesn't work. I have checked instance names and they all are 100% correct in each other's reference, I have also checked action script but no prob there. Any suggestions?

Where Is The Scrollbar Component?
Hello
I am using FlashMx2004.
I am trying to add to a dynaminc Text a scrolbar. I read that i need to use the Scrollbar component from the UI components. but i dont have any scrollbar in my UI components lists?! where is it? its not in MX2004? if not what should i do to slove the problem?
Many thanks
Adi

Scrollbar Component
Is there a way to change the movie that is being played in the scrollpane? Like when I press a button the movie will change...lets say this:

I make a new document...add a scroll component and have it call to movieA. I make buttonB and put it next to the scrollpane. When I click on buttonA I want movieB to come up in the scrollpane and when I click on another button ButtonA I want movieA to reappear...is this possible? And if so...could someone instruct me on how I would do it? Thank you.

Scrollbar Component Help
I'm making a project for biology and I got the scrollpane working. I went back and made a few changes to frame order, but basically restored it to the way it was again, and now the scroll pane doesn't work.

Help?

Scrollbar Component (PLZ HELP)
hi this iz probably really simple but I dont know how 2 get the scrollbar componet to work. How do I scroll text is really the question.

Thanx in advance
austin

Scrollbar Component
i have used the scrollbar component on a dynamic txt field for the first time but it is not working...anyone ever used them and had success/failure? any tips? the compinent is linked to the instance name of the txt field.

thanks

MX UI Scrollbar Component
Do you know how to make the scroll track transparent???? Can't seem to get it. Remember, this is the MX UI Scrollbar component....it's styled a little differently than the last one...more round.

Thoughts??

Help!!!
Blue

Scrollbar Component
I know this is an easy question, but I don't know.

How do you use the scrollbar component? I can't get it to work?

What are the steps?

Scrollbar Component
im unable to use the scrollbar component, its not scrolling the dynamic textfield with an instance "2" filled the parameters target textfield = "2" and horizontal= "false" also made the dynamic textfield scrollable... what to do pple

someone plz edit the file

Scrollbar Component
Hey, I've been asking around and gotten no responses so far, so if anyone can offer any help I'll be eternally grateful.

Everytime I drag the scrollbar component into my textbox it snaps into the upper left hand corner of the frame. Any suggestions?

Copyright © 2005-08 www.BigResource.com, All rights reserved