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




Importing Text Into Scrollable Dynamic Field



hi guys

I've been trying to set up a dynamic text field with a scrollbar (from the flash MX UI components) that enables someone who hasn't got flash to upload a simple text file to alter the site's text content. I've created an empty text field on the stage and in the text options panel, selected Dynamic text, and Multiline. I've given the field the variable name "welcome" and on the first frame of the main timeline, added the code:

loadVariablesNum("welcome.txt",0);

my text file starts with welcome=........

My problem is that the text file seems to load up okay when trying it out on the preview, except that I can't use the scroll to see all the text. The system works fine when I manually copy and paste the text straight into flash so I don't think it's anything to do with the scroller setup. Any ideas? I'm a bit stumped!

cheers everyone in advance!



FlashKit > Flash Help > Flash General Help
Posted on: 05-26-2003, 03:03 PM


View Complete Forum Thread with Replies

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

Starting Position In A Scrollable Dynamic Text Field
hello all

is it possible to set the starting position of a scrollable dynamic text field, for example in a chat where message are loaded for the top: when new messages are loaded, the scroll must be at the maximum bottom position, to read the last message...

thx

Setting Text In Scrollable Dynamic Text Field
This is not really a question, though maybe someone can explain this behaviour.

1. Create a dynamic text field
(instance name: yadda_txt; variable: yadda)
2. Drag a scrollbar component on it
(target textfield: yadda_txt)
3. Set text

Method 1:
yadda_txt.text = "some very very long text... etc... etc...";

Method 2:
yadda = "some very very long text... etc... etc...";

If you use method 1, the scrollbar will become active.
If you use method 2, the scrollbar will NOT become active.

Is it because the target textfield is yadda_txt?
Perhaps the scrollbar is listening to events on yadda_txt?

I'm actually wondering if the scrollbar really is disabled, because I can't enable it with setEnabled(true);
Unless the scrollbar checks yadda_txt which is still quite empty.

Anyone know how any good Flash books?

Dynamic Content: Cold Fusion Results Placed Into A Scrollable Text Field
I currently have a scrollable dynamic text field that is being populated from an externally located static text file.

This is the ActionScript that is currently in place; it is taken from the tutorial “Scrolling Dynamically Loaded Text” ( http://www.kirupa.com/developer/mx/dynamic_scroller.asp )

loadText = new loadVars();
loadText.load("StaticTextFile.txt");
loadText.onLoad = function() {
scroller.text = this.VariableName;
};


I need to utilize this scrollable dynamic text field functionality with information passed from Cold Fusion as opposed to a static text file.

I work closely with the Cold Fusion developers so they are confident that they can pass me just about anything I need. The problem is “we” don’t know what exactly that is.

Here is the scenario:

I am building a completely flash help module for one of their web projects. Throughout this module certain “glossary terms” are presented in various locations. When the user clicks one of the “glossary terms” (which have been made into buttons) I target a MC instance to come onto the stage and provide the definition.

You can see what I have built up onto this point here:
http://qc.accelerateu.org/joel/index.html

As it stands now the text for the definition is pulled in from a static text file. It needs to be dynamically generated from Cold Fusion and passed into my flash movie. The definitions for these glossary terms are located in a database as they are used in numerous projects/locations throughout our entire website.

What I need is:

I need a way to set a variable in flash that tells the movie what the source of the content is going to be. I need to pass that variable out of my movie to Cold Fusion then, based on the performed query, have the results sent back into my flash movie and be scrollable depending on the length of the content.
I don’t need to concern myself with anything transpiring on the Cold Fusion side, I just need to know how to send the query from my flash movie and put the results back in.

Any help would be tremendously appreciated! You could very well be saving my job :)

Have a great day,

jOEL

Problem Importing Text Data Into Dynamic Text Field
Head slowly banging into wall on this one. I've done it before but for some reason I'm missing something here.

Particulars -- I've got a flash movie with a menu that jumps to a particular frame to load a page. On that frame, there is a movie clip (instance name: scrollbox_frame), and in that movie clip there is a four-layer animation. One of the layers is not animated but contains a dynamic text box (instance name: about_frame), with multi-line and HTML turned on, and a variable name of "aboutus". This is the code that is triggered by the menu button on the root of the flash movie:


Code:
myVariables = new LoadVars();
myVariables.load("text1.txt");
myVariables.onLoad = function(success){
if(success){
about_frame.text=myVariables.aboutus;
}
}
and this the text1.txt document:


Code:
aboutus=ABOUT US <br>blah blah blah
It's not working, and I've tried seemingly dozens of permutations. What am I missing? Anybody?

Importing XML Data And A Carriage Return (new Line) Into Dynamic Text Field
Regarding importing XML into Flash, I am wondering if anyone knows a way to add a carriage return (a new line) at a certain point inside one single XML element (ie. something like: <abc> line one ??? line two </abc>. The one thing I got to work was to make my variable point to one element in the xml, then add + "

" then add text from another element. However this is annoying because for each text box I will have to know exactly how many paragraphs there are so that I can add the right amount of new lines and references to new elements when assigning the dynamic text's variables value. Any help offered would really be appreciated.

Importing XML Data And A Carriage Return (new Line) Into Dynamic Text Field
I recently read the great tutorial on importing XML into Flash at http://www.kirupa.com/developer/acti...dataflash5.htm.

I am wondering if anyone knows a way to add a carriage return (a new line) at a certain point inside one single XML element (ie. something like: <abc> line one ??? line two </abc>. The one thing I got to work was to make my variable point to one element in the xml, then add + "

" then add text from another element. However this is annoying because for each text box I will have to know exactly how many paragraphs there are so that I can add the right amount of new lines and references to new elements when assigning the dynamic text's variables value. Any help offered would really be appreciated.

Link In Scrollable Text Field?
could any body tell me if its possible and if so how.........

any help will be greatly appreciated........

thanks....

Scrollable Image In Text Field
Ok, I'm having problems getting an image to be scrollable in a text field. I can get the image to load in the box but for some reason the scroll bars are not active. So currently I have a dynamic text field that's rendered as HTML, multiline and non-selectable. The instance name on the field is textField_txt. On my actions layer I have the following actionscript:

stop();
about_txt.htmlText = "<img src='flash/bottlemenu2.jpg' height='739' width='374'>";

Like I said, the image displays but isn't scrollable. Any ideas?

Printing A Scrollable Text Field
I'm trying to print the contents of a scrollable text field. Why after all these years this is such an impossible task in Flash is beyond me. But maybe I'm overlooking something?

Right now I have two text fields. One for display and one for printing that is hidden from the user and is roughly the size of A4 paper. The content of the print text field is scrolled as many times as is necessary and each time is added to a print page.

The function looks like this:

function printText(e:MouseEvent):void {
var printer:PrintJob = new PrintJob();
if (printer.start()) {

txtPrint.scrollV = 1;
var intMaxScrollV:int = txtPrint.maxScrollV;
var intNumLines:int = txtPrint.numLines;
var intNumPages:int = intNumLines / intMaxScrollV;

var sheet:Sprite = new Sprite();
sheet.addChild(txtPrint);

for (var i:int = 1; i <= intNumPages; i++) {
printer.addPage(sheet);
txtPrint.scrollV = txtPrint.bottomScrollV + 1;
}
printer.send();
}
}

Unforntunately this is not very reliable because the size of the print text field does not correspond exactly to the size of the A4 paper and of course the print margins set by the user can differ as well. This results in an overlap of text between the different pages coming out of the printer.

Please, please tell me I'm overlooking something?

Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field?

Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.

Thanks

--aaronmatthew

P.S. This is a CD-ROM app and can't be posted.

Scrollable Text Input Field?
Can anyone point me in the right direction as to how to create a text input field with a custom scrollbar, I have everything set up , I have my custom scrollbar, and a text input field that scrolls when you move the scroller thumb. The problem is that since it is a text input field, I need to be able to detect when the text field fills up, so that I can move the scrollbar to the bottom. Also when you highlight the text and move it up I need to be able to have it scroll back up. I have my _input.onChanged function set up, I just need to know what to do inside of here.

thank you!

Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field?

Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.

Thanks

--aaronmatthew

P.S. This is a CD-ROM app and can't be posted.

Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field?

Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.

Thanks

--aaronmatthew

P.S. This is a CD-ROM app and can't be posted.

Load Variable And Show Up In Scrollable Text Field
Hello all,

I am trying so hard to get this to work and am baffled. I have a flash site that gets updated frequently, some of the text will tend to be larger than the textField size(I use load variable to get the txt file), so I thought I would use scroll to make it work. Well I cannot understand how to call the Variable text.txt

I have tried Set Variable and that works well for the buttons, but the textField, when set variable will show, when the movie is previewed, only text I type into the variable field. I would like that textField to read from the text.txt, and then be able to use the scroll bars to navigate it when it is larger than the alotted space... any clues? THANKS!!!

Scrollable Dynamic Text
hi guys, i neeed help.
I have a dynamic textfield where it read from from txt file.
the stage size has to be small so i would have to scroll the text
up slowly for the stage to show all the text.

The question is, how do i make it so that when the text is scrolling up, it will scroll in reference to the length of text i have in my txt.

Its like if i only have 3 lines of text, it will scroll till the third line and loop back to the first, and if i have 20 lines, it will scroll till the 20th line and loop back to the first.

Show me a sample file if possible ^_^
thanx guys!

Dynamic Scrollable Text
I have been searching the tutorials section on finding a good scrollbar to scroll dynamic text loaded from a .txt file. Does anyone know of a good one. I am looking for something similar to the one found at http://24-7media.de/ingram/

Thanks for your help

Dynamic Scrollable Text
I cannot seem to figure out what the problem is here. I am trying to make scrollable text on a movie clip that is within a few other movie clips. I put this on the first frame of my actionscript layer of my movie clip.
code:
loadtext = new LoadVars();
loadtext.onLoad = function() {
greg_about_txt.text = this.greg_about_txt;
};
loadtext.load("greg_about_txt.txt");

the second layer is my dynamic text box and my scroll component. I set the target of my scroll bar to the dynamic text box with the instance name "greg_about_txt." And I have a .txt file in the same folder as the .fla named "greg_about_txt.text." All I am seeing is the scroll bar and no text.

Dynamic Text - Scrollable
I am stumped. I realize that I need to have dynamic text in order to scroll it, but within a movie clip I cannot get dynamic text to be visable in my swf file. I can see Static text, but not dynamic text. I thought that it was a problem with the scrollBar component, but I cannot see any text. I had tried to load a .txt file externally, and it was really qwerky, some times it loaded some times it didn't, so I just decided to put the text in a scrollable text field. Any clue as to why the dynamic text is not visable. I can see it in my fla within the movie clip, just not in the swf.

Text Scrollable Without Being Dynamic?
when using static text blocks, can they be made scrollable without inporting a text file?

I am using empty MCs to load product information and photos from a side menu. Text is currently in a swf file but i have a few extended product descriptions now that will have to be scrollable.

If i have to load text variables in order to scroll i'll have rethink my approach. Thanks.

Help In Dynamic Scrollable Text
hi,
i need help in dynamic scrollable text.the dynamic text their are n number of topic,while selecting the topic it show the relevant
content or image..plz help....its possible

Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...

Currently I'm using javascript which works fine to pass text from textfield A to textfield B:


Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.

Your help/advice would be greatly appreciated,

-Scott

Dynamic Text Loaded And Scrollable
I am able to load my external text but cannot figure out how to put a scoll bar in so it's scrollable.
Thanks for the help.

Scrollable Dynamic Text Question
I have some dynamic text boxes controlled by the flash scroll bar. The problem is that when I save the file, close it, and reopen it, the changes I made to the text box height isn't saved. What is going on here?

Confusion With Scrollable Dynamic Text...
Perhaps someone could clarify for a newb on how to create "scrollable dynamic text"? I have followed some of the tutorials listed on flashkit.com and various other sites. However, I am using Flash MX 2004 and most of the tutorials were built for Flash 6. I am more of Photoshop user than anything... but to get to the point. All I need is for two buttons (one up and one down) to move the text. I would also like for the text to be imported from a text file on load. The tutorials I have tried previously worked, but the text only scrolled up to a certain point... Hope I am making sense. If someone could direct me to a tutorial or give me some helpful information I would appreciate it. Thanks.

Ben

Scrollable, Dynamic, And HTML Text Box
Now I have seen and made scrollable dynamic content, as well as HTML dynamic content. HOWEVER! I have not been able to achieve SCROLLABLE, HTML-enabled, DYNAMIC text! I have scoured the web in search of a tutorial that explains this, as well as tinkering with every option from the previous attempts. If someone could pass on some knowledge, or point me to a tutorial, You would be my hero for a week! Maybe even a month!!

Anything that can help me figure this out would be awesome & THANKS for all posts!

-Nanascalala (dazed and confused)

Print Dynamic Scrollable Text
I create a dynamic text field using code below:

this.createTextField("scroll_txt", 1, 0, 0, 240, 360);
this.createTextField("my_txt", 1, 0, 0, 240, 360);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.html = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.size = 9;
my_fmt.font = "Arial";
my_txt.htmlText = _level1.myinclude;
//myinclude is a variable inported from txt file.
my_txt.setTextFormat(my_fmt);
_parent.scrollUp_btn.onRelease = function() {
my_txt.scroll--;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
_parent.scrollDown_btn.onRelease = function() {
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};

I found below code on the web to print this:

_root._print.onRelease = function() {
pages = Math.ceil(_root.printmovie.my_txt._height/780);
// 780 is the height I decided to use here
var Do_print:PrintJob = new PrintJob();
if (Do_print.start()) {
var Height = 780;
var ymax;
var ymin;
for (i=0; i<pages; i++) {
//
ymin = i*Height;
ymax = ymin+Height;
Do_print.addPage(_root.printmovie, {xMin:0, xMax:595, yMin:ymin, yMax:ymax});
}
}
if (i>0) {
Do_print.send();
}
delete Do_print;
_root.printmovie.removeMovieClip();
};

Problem is that it still only prints the visible text and not all the scrollable dynamic text. Wish somebody can solve this once and for all, because I came accross a lot of people with the same problem, yet no workable solloution.

Printing Dynamic Scrollable Text
I create a dynamic scrollable text field with the following code. The variable "myinclude" in level1 is loaded from a txt file.

this.createTextField("scroll_txt", 1, 0, 0, 240, 360);
this.createTextField("my_txt", 1, 0, 0, 240, 360);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.html = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.size = 9;
my_fmt.font = "Arial";
my_txt.htmlText = _level1.myinclude;
my_txt.setTextFormat(my_fmt);
_parent.scrollUp_btn.onRelease = function() {
my_txt.scroll--;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
_parent.scrollDown_btn.onRelease = function() {
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};


I use the following code to print this textfield. The problem is that it only prints the part of the scrolling text that is visible at the time. Is there any sollution to this? Please i am desperate as I have been struggling with this for weeks!!!

_root._print.onRelease = function() {
pages = Math.ceil(_root.printmovie._height/780);
// 780 is the height I decided to use here
var Do_print:printJob = new PrintJob();
if (Do_print.start()) {
var Height = 780;
var ymax;
var ymin;
for (i=0; i<pages; i++) {
//
ymin = i*Height;
ymax = ymin+Height;
Do_print.addPage(_root.printmovie, {xMin:0, xMax:595, yMin:ymin, yMax:ymax});
}
}
if (i>0) {
Do_print.send();
}
delete Do_print;
_root.printmovie.removeMovieClip();
};

Clickable Scrollable Dynamic Text
Dear homiez,

I want to have a list of items that can be added to throughout a game persay (I was thinking like a function addItem(potion), but I'm not sure what the specifics are for said adding of text), and then I need them to be scrollable in their text box, and then I need them to be clickable, as if it were a button (the finger icon is not necessary). I'm not even sure if that last one can be done - can dynamic text be turned into regular link-button things?

My dearest apologies for asking questions that I'm sure is very, very obvious to anybody with text scripting experience. But I seem to have trouble searching for certain keywords in forums like these and help files in Flash.

Scrollable Dynamic Text Problem
Ok, I have this movie with dynamically loaded text... it is supposed to scroll when the text is too long.
When i test the movie in flash - it works; when i check it with the F12 button - it works.
However, when I publish it and upload to the server... it doesn't work...
what might be wrong?

Scrollable DYNAMIC Text Content?
anyone knows how to make a text scroller that can scroll dynamic text?

the tutorial in kurupa only supports static text.

please help!

Creating Dynamic Scrollable Text
How do you create dynamic scrollable text?, even if I select scrollable I still don't get a scrolbar, so I have to select the text and drag it down.
So how do you get the bar in the text?

Scrollable Dynamic Text Problem
Ok, I have this movie with dynamically loaded text... it is supposed to scroll when the text is too long.
When i test the movie in flash - it works; when i check it with the F12 button - it works.
However, when I publish it and upload to the server... it doesn't work...
what might be wrong?

Scrollable, Dynamic Images & Text
Hey,

I need to create a scroller which includes images and text. It is basically a news panel for a site that I am doing, and they want to include images and text for all news items.

I have done dynamic text before for sites, but it has always been pretty simple. I have a couple of concerns, and googling hasn't really answered any of my questions. Firstly, I want to know: Is it possible to have a scrollable field in Flash that contains both dynamic images and text? Looking at some posts both here and elsewhere, it appears that only Flash MX 2004 supports this, but it is buggy.

Secondly, does anyone know of any decent tutorials / sample movies / just general tips about how I would go about creating the attached design in flash (with the text aligning to the left of the image etc)?

Many thanks for your help!

Loading A Php-script Into To A Dynamic Scrollable Text-Box
Hello, i've got following Problem:
I'm loading a PHP-Script into a dynamic Text-Box and this works fine. I've got several Flash-Files with scrollbar for external txt-files. And they all work fine. But it doesn't work together.

I've got a formular for postal-codes. It has the variable "plz". I added following actionscript on a Go Button:

on (release) {
plz = plz;
land = "D";
link = "plz.php3?plz=";
tmp = link add plz add "&land=" add land;
loadVariablesNum (tmp, 0, "GET");
gotoAndPlay (50);
}

The Script returned me the with the varible "seek_result" the wanted text.

Now I just want to make this scrollable!!!

Who can help me? Thank You!

Best wishes
indamicx

Loading An Image From Scrollable Dynamic Text
http://www.flashkit.com/board/showth...46#post2626346

For the discussion

[F8] Dynamic TextField - Text Selectable, But Not Scrollable?
Is it possible to have a dynamic text field where the text is selectable but not scrollable?

i have a textfield that isn't displaying its full contents. if someone selects the text and moves the mouse downward, they see more content. i don't want that to happen, but i like the idea of them being able to copy the text.

Printing All Text In A Dynamic Scrollable Textfield
Hi,
I have search alot about solutions for solving the problem about trying to print all text in a dynamic Scrollable Text. There is no answer for this. So, is there a simpel way to print all the text in a dynamic scrollable textfield?

Because the text is dynamic, there is possible that the text can be 1- 100 pages.

Please help me out.
niklas@bafe.nuniklas@bafe.nu

Embed Image In Scrollable Dynamic Text Box
Hey Guys - In Flash 8, I've got a Dynamic Text box that is successfully displaying my text in a vertical scroll. It is set to render as HTML and I'm able to format everything and it works fine.

Problem is I'm trying to embed an image using <img src="images/image1.jpg"> but it isn't working.
Does anybody have any ideas as to what may be going on ?
Thanks in advance for your time.

[MX04] Printing All Text In A Dynamic Scrollable Textfield
Hi,
I have search alot about solutions for solving the problem about print all text in a dynamic scrollable textfield. There is no answer for this. So, is there a simpel, or any way to print all the text in a dynamic scrollable textfield? Not just the text you see on the screen.

Because the text is dynamic, there is possible that the text can be 1-100 printing pages long. So please don't tell me to resize the textfield to match textsize height.

Please help me out.

Problem Creating A Scrollable Dynamic Text Box With XML Content?
Hi,

I have linked my xml file to my dynamic text box but now the scrollbar will not work, has anyone any idea why this might be?

Cheers

Scrollable Dynamic Text; Help My Flash File Included (MX 04)
(thank you skribble for helping me get this far!)

Alright so now I have a new problem. I'm trying to get dynamic text to load into a scrollpane, but it doesn't seem to work. I've included my flash file, so maybe someone could help me out with this, I've spent over 5 hours on it already, maybe I'm just missing something obvious T.T

The script for it is on a new layer called "Action". If I just create a dynamic text field on the stage, it works fine. So to try and get it in my scrollpane, I placed the dynamic field into a movie clip called "p1". Then in the parameters of the scrollpane, I have content set to p1. It doesn't work... and if I change it to static text it loads in the scrollpane just fine.

I was thinking maybe I have to tell the original load script where to look for the instance? But how? Or is it something else... please help me

EDIT-- Erm.. my file size was too big to attach, sorry about that..

I made the graphics all ghetto and made the stage really small but it didn't really help with the file size.

I uploaded it to my server, CLICK HERE for the flash file and CLICK HERE for the text file.

I'm sorry the flash is so large (400k), but if I zip it my server will give a "forbidden" if you try and download it. I tested the link on my mac and PC, so I know it works heh. Sorry about all the trouble.. Help if you can

Printing Multiple Pages Of A Scrollable Dynamic Text Box
I've seen a number of posts in this forum and others about how to print text out of a scrollable dynamic text box. Some people have come up with solutions like making another dynamic text box off-stage that is A4-size that contains the same text as the scrollable text box. The printJob() action then uses this text box as its target and prints a nice A4 page.

But what if there is so much text, it needs more than one A4 page to print? I've been searching for answers without much luck, but I did come across this:

ActionScript Code:
on (click) {//create PrintJob objectmyPrintJob = new PrintJob();//display print dialog boxmyPrintJob.start();var maxS:Number; //total number of lines in textAreavar botS:Number; //total number of lines visible in scroll box//loop through untill i have added a page for each scroll panefor (var i = 1; botS*i<=maxS; i++) {// add specified area to print jobmyPrintJob.addPage("_root.print_txta", {xMin:-36, xMax:612, yMin:-36, yMax:792}, {printAsBitmap:false});maxS = _root.print_txta.label.maxscroll ;botS = _root.print_txta.label.bottomScroll;//manually scroll the box_root.print_txta.vPosition = botS; }// send pages from the spooler to the printermyPrintJob.send();// clean updelete myPrintJob;}

Source: http://livedocs.macromedia.com/flash...=00001640.html

This would obviously be attached to a button, and is trying to print a text box named "print_txta" at the _root level. The trouble is, it doesn't work!.

I've tried changing it around a bit, like relocating the ending } of the loop, but still cannot get it to work. All it does is print the one page over and over (luckily I was printint to Adobe PDF, so I wasn't wasting paper! I recommend you do the same if you want to test the script!) and if you have more text than will fit on one A4 page, it ignores everything past the first page!

I wonder if anyone else on this board can make more sense out of the above script and perhaps get it to actually work in the way it was supposed to? I think this would benefit a lot of people out there.

Scrollable Dynamic Text; Help My Flash File Included (MX 04)
(thank you skribble for helping me get this far!)

Alright so now I have a new problem. I'm trying to get dynamic text to load into a scrollpane, but it doesn't seem to work. I've included my flash file, so maybe someone could help me out with this, I've spent over 5 hours on it already, maybe I'm just missing something obvious T.T

The script for it is on a new layer called "Action". If I just create a dynamic text field on the stage, it works fine. So to try and get it in my scrollpane, I placed the dynamic field into a movie clip called "p1". Then in the parameters of the scrollpane, I have content set to p1. It doesn't work... and if I change it to static text it loads in the scrollpane just fine.

I was thinking maybe I have to tell the original load script where to look for the instance? But how? Or is it something else... please help me

EDIT-- Erm.. my file size was too big to attach, sorry about that..

I made the graphics all ghetto and made the stage really small but it didn't really help with the file size.

I uploaded it to my server, CLICK HERE for the flash file and CLICK HERE for the text file.

I'm sorry the flash is so large (400k), but if I zip it my server will give a "forbidden" if you try and download it. I tested the link on my mac and PC, so I know it works heh. Sorry about all the trouble.. Help if you can

Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

Problems With Loading Scrollable Dynamic Text On Button Press
hi!
i'm trying to create a scrollable dynamic text in flash mx, which is loaded from external text files. i have tried to use the flash mx scoll bar component following help but, although seemingly very staightforward, it not work. the text got displayed but it did not scroll.

i tried to use the tutorial from flash mx component library:
http://www.flash-db.com/Components/i...e=Scroll%20Bar

it works fine but i have to display different chunks of text on click of different buttons. i have tried the "on(release)load variable" command but it did not work. could you please enlighten me how can it be done?

the main movie has got three layers, with one frame each: one with all the content, second with actions (functions:

function addItems() {

Title = myData.Title;
myText.multiline = true;
myText.wordWrap = true;
myText.type = "dynamic";
myText.background = true;
myText.backgroundColor = "0x000000";
myText.border = false;
myText.html = true;
myText.htmlText = myData.myText;
ScrollBar.setScrollTarget(myText);
formStyleFormat = new FStyleFormat;

formStyleFormat.scrollTrack = "0x000000";
formStyleFormat.highlight = "0x000000";
formStyleFormat.highlight3D = "0xffffff";
formStyleFormat.arrow = "0xffffff";
formStyleFormat.face = "0x000000";
formStyleFormat.background = "0x000000";
formStyleFormat.shadow= "0x666666";
formStyleFormat.darkshadow= "0x333333";
formStyleFormat.addListener(ScrollBar);
formStyleFormat.applyChanges();

textFormat = new TextFormat();
textFormat.color = "0xffffff";
textFormat.bullet = false;
textFormat.underline = false;
textFormat.bullet= false;
textFormat.size= 11;
textFormat.font= "arial";


myText.setTextFormat(textFormat);
}

third frame contains actions LoadData:

myData = new LoadVars();
myData.onLoad = addItems;
myData.load("mytext.txt");

cheers!
gayeta

[F8]Scrollable Wordwrap Between Multiple Dynamic Text Boxes Of Different Sizes?
Hey gang,

I'm not even sure this is possible. What I want to do is put lengthy bit of text on my stage and have it basically wrap to the shape of a jpg on the stage. What I thought I'd do was create multiple single-line dynamic text boxes of different widths so that the text conforms to the shape and load the text into those, but I also need it to scroll. How would I scroll mulitple text lines of different widths so that I don't lose any text or get any duplicate text at the end of one box/beginning of another?

I hope that makes sense. I'm not really looking for someone to write code for me, more about the theory behind how to go about it.

Thanks in advance for any help.

-Sandy

External Html Loaded Into Dynamic Scrollable Text Block
Hello everyone,

I using the code form the gotoAndLearn tutorial "HTML+CSS+Flash".

I'm trying to load the html file into a dynamic textbox, which is fed into a movieClip (using the scrollPane component), which is all inside of another movieClip.

This doesn't sound to tricky... but It's not working. I suspect the problem is with the scrollPane. Or maybe i can't get the path right.

Help? Anyone?

Thanks,

Viva La Brimelow!

Getting MySQL Field Data Into Dynamic Text Field In Flash
Hi, im having some trouble as to how to retreive data from a mySQL database field and putting the values into a dynamic text field in Flash... im quite new to this so any help will be appreciated! thanks.

[F8] MySQL Field Value Into Dynamic Text Field In Flash
Hi, im having trouble as to how to retreive a value in a field of a MySQL database and putting it into a dynamic text field in flash... i have no idea as how to do this... any help? thanks

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