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




Printing A Scrolling Textfield



I've tried targeting the textfield var like so:
on (release) {
printAsBitmap("_root.fader1.containerMC.daTextBox" , "bmovie");
}

but all it does is print out the clip containing it, which is not showing all the text

Any ideas?

Somebody has suggested copying the contents into a new text field which woud be taller than the actual movie, does anybody know how to do this dynamicaly.
Also I am pulling the text in from an html formatted .txt file

cheers

j



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-31-2002, 07:01 PM


View Complete Forum Thread with Replies

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

Printing A Scrolling Textfield
I need to print a textfield from Flash. I have a multiple choice quiz where the questions and answer choices are loaded from an XML document. The questions are displayed one and a time while the user is going through the quiz, and then at the end a textfield displays all of the questions and answers, as well as which answers are correct and what the user's choice was. Works just fine onscreen, but when I try to print (using a button within the .swf, not using the print option in the browser) the text gets scaled to all fit on one page.

I'm using Flash MX, and the printing code on the print button is:

print("_root.printMe_mc", "bframe");

where printMe_mc is the movieClip containing the textfield, which has one frame with the #p label where the textfield is displayed in its entirety (not scrolling, just one long field).

Printing occurs, the only problem is the scaling of the text. How do you tell Flash not to scale the text, but to print to multiple pages if necessary?

I've tried using "bmax" and "bmovie" for the bounding box parameter, with the same results -- everything scaled to fit on one page.

Do I need to determine how many lines per page I want to print and manually parse through the textfield, dividing it up into "page size" chunks and display those chunks in separate movieclips, created on the fly (maybe?)and then print those?

Any tips, tricks, clues, or brilliant ideas would be greatly appreciated!
Thanks,
Cindy

Vector Printing Of TextField. Part Of TextField Not Printing.
Hi, I hope somebody here can help me.
I have a movieclip with a dynamic textField in it.
I set autoSize = "center" and fill it with text.
Then, if i then use PrintJob.addPage("myPage", {printAsBitmap:false}); , the bottom few lines of the textfield don't print.  (The textField shows up fine on the screen.)

The textField shows up fine if I use {printAsBitmap:false}, allbeit in lower quality.

If anyone can make a dynamic textField print properly as vector, please lemme know.

thx,
miguel3d

Printing A TextField
hello :p Me again,

Posting separate messages for each of them problems.

Does anyone know how one can specifically print a dynamic text field, is there a suitable print command which does that. Or, can i have an external text file and print that file(?)

I think flash only offers options to print frames, but the text in the dynamic text field is scrollable and i want to print the entire text with one command.

Thank you.
Abhay

Printing A TextField
hello :p Me again,

Posting separate messages for each of them problems.

Does anyone know how one can specifically print a dynamic text field, is there a suitable print command which does that. Or, can i have an external text file and print that file(?)

I think flash only offers options to print frames, but the text in the dynamic text field is scrollable and i want to print the entire text with one command.

Thank you.
Abhay

Printing Textfield Target Instead Of MC
I don't have a printer at home so I can't test this.

I have a client with a scrolling textbox, they want the text in the box to print.

The print function, as I understand prints whatever's in the frame, within the specified bounding box.

If for a target I give it a variable containing text instead of a MC reference, will it just print the text?

Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:


Any help would be welcome

Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:


Any help would be welcome

Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:


Any help would be welcome

Printing Contents Of TextField
Is there any way to print the contents of a textfield or string using the pring command in AS?

Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:


Any help would be welcome

Printing Contents Of TextField
Is there any way to print the contents of a textfield or string using the pring command in AS?

Printing A Movie Clip And Textfield?
I have loaded an swf as a variable in a movie clip. This is how:
pic1 = mov1.swf
loadMovie (/ic1, "lp1");

Now I want to print this movie clip which is actually the swf 'mov1'. I have used both print and printasBitmap options, but none works. All I am getting is black lines when using print option and blank page when using printasBitmap option. I am using the following code to print:
on (release) {
printAsBitmap ("lp1", "bmovie");
}
I have taken a second frame in movie lp1 whose label is #b and there I have drawn a rectangle which I believe would be taken as the bounding box for the movie to be printed. Isnt this right??
Could anyone tell me what the problem might be??
Also theres another textfield on the same frame as the movie clip which i want printed, is there a way??

Error Printing TextField With BevelFilter.
Hi,

I have a movie clip with a TextField that has a BevelFilter. When I run my movie everything is OK, but when I use the PrintJob to
send it to the printer it seems the textfield has lost filter properties. In the page printed by the printer has the textfield without the BevelFilter. Why????? Could anyone help me???

I need to solve this problem as soon as possible.
Thanks for everything.

Dynamic Textfield Printing And Linking
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)

Printing Dynamic Textfield Content
There have been some topics with this title but none of them seems to solve the problem of printing the dynamic text content which is by the way also a scrollable text. I manage to print only what is seen but not the whole text.

Is there anyone who could help. I am attaching my fla which is used only for testing purposes.

Thank you in advance

http://www.galahala.com/print2.zip

Printing XML In Textfield In List Not Line
ve got my content to print into my text field with no XML using text();
But, it always prints in one long line. How can I tell it to line break after it prints each node?

This is basically my code right now


Code:
function ParseClients(clientInput:XML):void {

//trace("XML Output");
//trace("------------------------");
//trace(clientInput.Client.Automotive);

var clientAttributes:XMLList = clientInput.Client.attributes();

for each (var clientIndustry:XML in clientAttributes) {

clientXML.field_01.text = clientIndustry;
clientXML.field_02.text = clientInput.Client.attributes()[1];

clientXML.clientfield_01.text = clientInput.Client.children().text();

}



}

Dynamic Textfield Printing And Linking
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)

Printing Hidden Contents Of Scrollable Textfield
Hey guys,
Do you have any idea as to how to print the text inside a dyanamic textfield. now the problem is that the textbox is say 100/100 pixels and has a scrollbar attached to it and is set to multiline. Now is there a way to print all the text of the dynamic textfield.

Please respond ASAP...

Images Embedded Within Dynamic TextField Not Printing
Not sure if there's already a thread on this, but my issue is that images that are embedded within a dynamic textfield via XML are not showing up when I try to print using PrintJob. The images are showing up properly within the textfield on the screen, but not in the print preview (and of course not in the final print).

The print functionality is fairly straight forward, I have a MovieClip that contains one dynamic textfield. The textfield is populated by XML and CSS files.

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

[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.

Printing A Scrolling Movie
I'm using the scrollpane with a mc loading inside of it. What I want to do is print the whole MC. But I only get whats shown. Is there anyway that flash will print all the content in the scroll pane?

Scrolling Thru And Printing Textbox
With lots of great help from the folks in this Forum, I've built an application that loads some XML text into a Flash movie, allows the user to search for specific text therein, and then returns the results to a datagrid. The results are also returned to an array, which is then sent to a text box (with tabular setup) and printed. Works perfectly when the search results are a single page, but when I have to go to multiple pages, that's when the trouble starts. With the attached code, I'm getting the same page printed twice. So the NUMBER of pages is correct (the result searched on was indeed two pages long), but the information being printed is simply the first page twice. So it appears the page is NOT scrolling prior to each print send.

Any help would be greatly appreciated.







Attach Code

import flash.display.Sprite;
import flash.display.Loader;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.printing.PrintJob;
import flash.printing.PrintJobOptions;



//create get catalog button with actionscript
var track_mc:Sprite = new Sprite();
track_mc.graphics.lineStyle(0,0xffffff,100);
track_mc.graphics.beginFill(0xff0000);
track_mc.graphics.drawRect(0,0,20,755);
track_mc.graphics.endFill();

var scrollHandler_mc:Sprite = new Sprite();
scrollHandler_mc.graphics.lineStyle(0,0xffffff,100);
scrollHandler_mc.graphics.beginFill(0x000000);
scrollHandler_mc.graphics.drawRect(0,0,20,20);
scrollHandler_mc.graphics.endFill();

track_mc.x = 240;
track_mc.y = 22;
scrollHandler_mc.x = 240;
scrollHandler_mc.y = 22;
addChild(track_mc);
addChild(scrollHandler_mc);

//create an input textfield for the data
var printField:TextField = new TextField();
printField.type = TextFieldType.DYNAMIC;
printField.border = false;
printField.width = 260;
var printFieldFormat:TextFormat = new TextFormat("Courier New",10,0x999999,true);
printField.setTextFormat(printFieldFormat);
printField.x = 0;
printField.y = 0;
addChild(printField);

//Building the text box, but skipping first instance, which appears to be null for some reason
var theText:String = new String();
theText = "PRODUCT" + " " + "PRICE" + " " + "UM
";

for (var i:int = 0; i < prodArray.length; i++) {
if (i != 0) {
if (umArray[i] == "") {
umArray[i] = "EACH";
}
if ((i == 56) || (i == 111) || (i == 166) || (i == 221) || (i == 276) || (i == 331) || (i == 386)) {
theText = theText + "
PRODUCT" + " " + "PRICE" + " " + "UM
" + (prodArray[i] + " " + priceArray[i] + " " + umArray[i] +"
");
} else {
theText = theText + (prodArray[i] + " " + priceArray[i] + " " + umArray[i] +"
");
}
}
//here we are adding the data compiled above to the text field
printField.text = theText;
}
//set depth of text box based on how many items returned
var depth:int = i*17.3;
printField.height = depth;
track_mc.height = depth;
printField.multiline = true;
printField.wordWrap = true;
//printField.scrollV;
printField.autoSize;


//set up the scroller variables
var minScroll:int = scrollHandler_mc.y;
var maxScroll:int = minScroll+(track_mc.height-scrollHandler_mc.height);

//now we have to print the text box or stage for scene 3,
//delete the text box, and then return to first scene.
if (i <= 55) {
var myPrintJob:PrintJob = new PrintJob();
var mySprite:Sprite = new Sprite();
mySprite.addChild(printField);
myPrintJob.start();
myPrintJob.addPage(mySprite);
myPrintJob.send();

} else {
trace(track_mc.height);
var myPrintJob2:PrintJob = new PrintJob();
var mySprite2:Sprite = new Sprite();
myPrintJob2.start();
while (i > 54) {
i = i - 55;
mySprite2.addChild(printField);
myPrintJob2.addPage(mySprite2);
printField.scrollV = 1000;
}
myPrintJob2.send();
}
printField.visible = false;
track_mc.visible = false;
scrollHandler_mc.visible = false;
gotoAndPlay(1,"Scene 1");


stop();

Difference Between Scrolling A MC And Scrolling A Textfield?
Hi there,

What is the difference from scrolling a textfield and scrolling a movieclip?
My scrollbar resizes automatically with textfields,
and I don't know how to scroll movieclips within the same scroller. Do I only have to change some names or something?

Thanks Already

Printing Text In Scrolling Component?
Hi All,

Does anyone know the answer to this question;

Is it possible to do the following, if I have a flash movie for a site and the text on each page appears in a scrollbox component is there a way of allowing the user to print each page and be able to read all of the content text for that page.

Almost like having two versions of the page one to display and one that will print in it's entirety?

Do you know if that can be done?

Grateful for any pointers

D

Scrolling Text Fields & Printing
Hello all,
I am working on a project that calls for the printing of a text field with html text dynamically loaded from an XML file. I am able to figure out the number of pages and get them sent to the printjob fine. How ever I am having an issue with the scrolling because I can only get the text field to scroll down to the bottom of the text. So when I print a document that contains 1.5 pages of text, I get 2 full pages printed. The first page is fine, but the top half of the second page is the same text from the bottom half of the first page, so it's not a usable printed text document. I have worked out a solution where I take the total lines of text in the text field (textField.numlines) and divide that by the number of visible lines in the text field (textField.bottomScrollV). Then I have a loop that tests to see if this value is an integer which would mean that the text fits onto a set # of pages, if not I add a <p></p> tag to the text field until the value is an integer. This adds whitespace at the bottom of the text field to force the text up out of the visible area of the textfield so that the last page of the doc prints without any repeating lines. The problem with this is that since the ScrollV function counts lines of text and not pixels it won't work properly if there are variable font sizes (ie: having a page title in a larger font than the body text).

My question is how do I convert the lines of visible text (textField.bottomScrollV) into a pixel value to calculate the amount of whitespace needed to get this to dynamically scroll the correct amount for each page printed?

Let me know if this just doesn't make any sense and I will post the actual code I am using.

Printing A The Entire Area In A Scrolling Plane?
I have tried two different aproaches to get the area inside a scrolling plane to print, but both ways only print the area showing in the srolling plane rather than the entire page.

The 1st way:
I tried to call a moivie clip. 1st I put the print bttn out side of the plane and then inside the mv clip. I thried changing the parameters using #p and #p on frame as well as using PrintNum and Print (target, )

The second way:
I tried all of the same type of things while loading an outside swf file into the plane.

Can anyone please help me?
Thank you!
Quince Wyss

Printing Pages With Scrolling Text Boxes
I'm wondering if anyone has ever had any success getting the contents of a scrolling text box to print for users. I know how to get the page to print but I would like to know if scrolling text box contents can be programmed to print.

Is there a work-around to this?

Scrolling Textfield
hello!

i'd like to know how to build a scrolling textfield in flash 4 including a dragable slider and two buttons, one for up and one for down. i've worked through a turorial on the flashkit site and it works fine in flash 5 but not in version 4.

has anyone got an example fla or knows an url where to find a proper tutorial?

in case you've got an example could you mail it? here is my adress:
lounge@transporter.at


thanks,
elo.

Scrolling Textfield Help
this is my current cv, painstakenly written in flash, but i need an easier way to load the info into the website from a separate text (updating this site is a pain)...so here is the old site:
http://disfasia.net/cv/cvenglish.html

I decided to external an data file and load this into a flash file with xml. Here are the files for the flash/xml combination:

http://www.disfasia.net/testcv.zip

Yet, as you will notice, this testcv file does not scroll up or done without an outside button (how to do this with the white border and title UNDER which the swf must file itself). It seems also complex to figure out how to get this to look like the first website. So, recently someone suggested a scrolling textfield would do the trick. I know how to do this, BUT i cannot change the fonts as in this testcv---which has one line in bold, the next line not in bold.

Here is what I was able to do from a tutorial:

http://www.disfasia.net/scrolling_tutorial.zip

please advise.

all help appreciated greatly!

cheers


disfasia

Scrolling Textfield Is Getting Me Down
hi i just created a scrolling text field for a website and when i test my movie if functions correctly, until i navigate to the other pages of the website after i have used the scroll bar. these errors happen after the page that has the scrolling textfield.

please advise
TypeError: Error #1009: Cannot access a property or method of a null object reference.


var textLoader:URLLoader = new URLLoader();
var textFile:URLRequest = new URLRequest("text/external.txt");

var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = text_mc.y;
var easing:Number = 5;
var scrollAmt:Number = 15;
var scrollDirection:Number = 0;


function textLoaded(event:Event):void
{
text_mc.external_txt.text = textLoader.data;
minScroll = text_mc.y;
maxScroll = minScroll - text_mc.height + mask_mc.height;
}

function dragScroller(event:MouseEvent):void
{
var dragX:Number = line_mc.x - scroller_mc.width/2;
var dragY:Number = line_mc.y;
var dragW:Number = 0;
var dragH:Number = line_mc.height - scroller_mc.height;

scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
stage.removeEventListener(Event.ENTER_FRAME, scrollText);
}

function stopDragging(event:MouseEvent):void
{
scroller_mc.stopDrag();

}

function setScrollPercent(event:Event):void
{
scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
if(scrollPercent < 0)
{
scrollPercent = 0;
}
else if(scrollPercent > 1)
{
scrollPercent = 1;
}
targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
text_mc.y -= (text_mc.y - targetScroll) / easing;
}

function scrollUp(event:MouseEvent):void
{
setDirection(scrollAmt);
}

function scrollDown(event:MouseEvent):void
{
setDirection(-scrollAmt);
}

function setDirection(dir:Number):void
{
scrollDirection = dir;
stage.addEventListener(Event.ENTER_FRAME, scrollText);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
}

function scrollText(event:Event):void
{
targetScroll += scrollDirection;
text_mc.y -= (text_mc.y - targetScroll) / easing;
if(text_mc.y > minScroll)
{
text_mc.y = minScroll;
targetScroll = minScroll;
}
else if(text_mc.y < maxScroll)
{
text_mc.y = maxScroll;
targetScroll = maxScroll;
}
scrollPercent = (text_mc.y - minScroll) / (maxScroll - minScroll);
scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
}

function stopScrolling(event:MouseEvent):void
{
scrollDirection = 0;
}

textLoader.load(textFile);
scroller_mc.buttonMode = true;
text_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

Scrolling TextField Please Help
Hello I am creating a dynamic text field that can be scrolled.

It is working but only problem is when I drag the sroller or click up or down button the text start srolling but now I want to add a stage event listener to check when the mouse moves up on the stage and that means the user have stoped dragging.

I can implelement stage.addEventListener(MouseEvent.MOUSE_UP, endDrag); fine when I have the code on the main timeline but when I move it into a class and add it there it give me an error saying null object reference

can any one please tell me how to resolve this I am attaching the fla and the class file

NO Scrolling On Multiline Textfield...
HELP!!! (please)

I need help. I need to make a multiline text field that does not scroll, it just stops letting you type when you have filled the text field up!

I could set the text field to limit chars, but that doesn't solve my problem, because the users will be using the return carage, and that would still allow them to type past the bottom of the text field. I just need to limit them to 20 rows, and 40 coloms of text. is there an actionscript way?

I am using flash 4, but would be willing to use 5, or MX if I need to to make this work.

Any one have any idea? Thanks!

Link In A Scrolling Textfield
I created a scrolling textfield and inserted a link in it. The code of the existing link is like this:
<A HREF="http://www.somesite.com">Some site</A>.
This works just fine, but I need to open it in a new window, so I added "target ="_blank" to the existing code and now it looks like this:
<A HREF="http://www.somesite.com" target="_blank">Somesite.com</A>.
Unfortunately, it's not working, I am getting a syntax error message.It seems to have a problem with "_blank" part. Is there any way to make this work?
Thanx-
Lee Bosh

Scrolling The Textfield To The Bottom
I wish to make sure that the bottom-most (is that a word?) contents of the scrollable textfield is shown at all times.

How do I do that? Do I have to use the 'bottomscroll' property to find the number of lines currently populating the textbox, and then use the "scroll" property to set it, or is there any other - easier - way?

Help much appreciated.

Scrolling Textfield With Swf Inside
hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:


Code:
<p class="body">
<img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/>
</p>
where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:

code:
loaderate = new LoadVars();
loaderate.load("sammidge.html");
loaderate.onData = function(r) {
sandwich.styleSheet = _root.stylizimo;
sandwich.html = true;
sandwich.htmlText = r;
};


so, does anyone have any ideas? t'would be much appreciated.

Scrolling Textfield With Swf Inside
scrolling textfield with swf inside

hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:


code:<p class="body"><img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/></p>


where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:


ActionScript:PRE {font : normal normal normal 13 "Courier New", Courier, Arial;;}loaderate = new LoadVars();loaderate.load("sammidge.html");loadera te.onData = function(r) { sandwich.styleSheet = _root.stylizimo; sandwich.html = true; sandwich.htmlText = r;};


so, does anyone have any ideas? t'would be much appreciated.

Scrolling Textfield With Swf Inside
scrolling textfield with swf inside



hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:

code:<p class="body"><img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/></p>

where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:


ActionScript:PRE {font : normal normal normal 13 "Courier New", Courier, Arial;;}loaderate = new LoadVars();loaderate.load("sammidge.html");loaderate.onData = function(r) { sandwich.styleSheet = _root.stylizimo; sandwich.html = true; sandwich.htmlText = r;};

so, does anyone have any ideas? t'would be much appreciated.

Scrolling Textfield With Swf Inside
scrolling textfield with swf inside



hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:

code:<p class="body"><img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/></p>

where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:

ActionScript:PRE {font : normal normal normal 13 "Courier New", Courier, Arial;;}loaderate = new LoadVars();loaderate.load("sammidge.html");loaderate.onData = function(r) { sandwich.styleSheet = _root.stylizimo; sandwich.html = true; sandwich.htmlText = r;};

so, does anyone have any ideas? t'would be much appreciated.

Disabling Textfield Scrolling
Is there a way to disable scrolling on textfields? We are having a reoccuring problem where textfields that schouldn't be scrollable still scroll for 1 line.

You can see ALL of the text in a textfield (nothing is hidden below the fold), but when you click and drag, the text field scrolls up one line. This looks really sloppy but we can't find a fix. It seems that flash autosize makes the textfield a few pixels too short.

I've tried every variation I can and looked through the as docs with no luck. Any suggestions?

Scrolling Textfield With Swf Inside
scrolling textfield with swf inside



hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:

code:<p class="body"><img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/></p>

where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:


ActionScript:PRE {font : normal normal normal 13 "Courier New", Courier, Arial;;}loaderate = new LoadVars();loaderate.load("sammidge.html");loaderate.onData = function(r) { sandwich.styleSheet = _root.stylizimo; sandwich.html = true; sandwich.htmlText = r;};

so, does anyone have any ideas? t'would be much appreciated.

Scrolling Textfield With Swf Inside
scrolling textfield with swf inside



hey there

i'm modding a file for a friend, and he'd like the ability to have a scrollbar that scrolls a big long interactive menu in the same way a regular textfield scrolls, using an mx scrollbar component that i skinned.

i just figured i'd load an html file with the following code:

code:<p class="body"><img src="sammidge.swf" vspace="0" hspace="0" width="380" height="1977"/></p>

where the 'body' class is defined in a stylesheet object in the swf. the movie loads into the textfield fine, but the problem is, it's about four times longer than the textfield and we want it to scroll, but the scrollbar remains dimmed, as though it doesn't register the length of the swf.

i tried it with a regular jpeg, and it does exactly the same thing. here's the code that loads the html file into flash:

ActionScript:PRE {font : normal normal normal 13 "Courier New", Courier, Arial;;}loaderate = new LoadVars();loaderate.load("sammidge.html");loaderate.onData = function(r) { sandwich.styleSheet = _root.stylizimo; sandwich.html = true; sandwich.htmlText = r;};

so, does anyone have any ideas? t'would be much appreciated.

TextField Scrolling Issue
Well, there's lots of tutorials on how to make a textfield scroll, but How do you keep one from scrolling?

I have a htmlText enabled textfield and I need to figure out how to keep it from scrolling. I've been playing with it for a bit and can't seem to come up with a viable solution.

Any help would be appreciated.

I want it to:

Not allow the user to type beyond the end of the textfield. I can't just set a maxChar, because of the different size and type possibilities for the text.

And I want it to not scroll at all.

Thanks

Scrolling An External Image In A Textfield
hi,
im loading an image with the <img> tag into a textfield.
The image is loaded succefully.
If the image is bigger then the textfield border i defined, can i scroll it like a regular text ???
If not do u have any other suggestion to implement this feature ?

RollOver Scrolling Textfield Problem
Okay I have run into a problem with my scrolling text fields... Basically I want the text to scroll when the mouse rollsover instead of having to click the up/down buttons. Heres what I have so far, but cannot figure out why I can't get the textfield to move...

I have on my main timeline the following:

For my Up Button:

onClipEvent ( enterFrame ) {
if (Select) {
newstext.NewsLoad.scroll -= 1;
}
}


For my Down Button:

onClipEvent ( enterFrame ) {
if (Select) {
newstext.NewsLoad.scroll += 1;
}
}

Now I have placed my textfield inside a seperate MC for the purpose of fading the dynamic text... So... on my main timeline I have the MC "newstext" within this MC is the textfield named "NewsLoad"... I have the following actionScript inside this MC:

loadVariables("flash/NewsText.txt", this);
theFormat = new TextFormat();
theFormat.font = "Arial";
NewsLoad.embedFonts = true;

Scrolling Problem With CSS Applied TextField
I have a decent scroller that I made a year ago or so and has served me well for regular text fields. However I've recently applied CSS to the text field and the scroller starts to go whack. I'm pretty sure this has to do with the maxscroll property of the text box. It seems that it's incorrect after CSS is applied.

Does anyone know how to fix this problem? Just a general answer would be great, or a place to start. I don't need you to dig through all my code.

Also, I've never used the scrollPane component, as I've always had success with my own scroller. Anyone out there know if the scrollPane is affected by CSS or not? (I would imagine not).

Mouse Wheel Scrolling Textfield
Hi,
I've created a mousewheel scrolled textfield. Works fine except one thing: the onMouseWheel event listener is active on the whole stage rather than on the textfield only.

I'd like to make it run only when I point mouse cursor over the textfield, and stop running as soon as I roll it out.

Here's some rough code I've already got:

Code:
var mouseListener:Object = new Object();

mouseListener.onMouseWheel = function(delta:Number) {
//actions triggered when scroll up/down occurs
}

Mouse.addListener(mouseListener);
Now, assume there's a nested textfield "textField_mc.textField_txt" with enabled scrolling option (mouseWheelEnabled).

How do I make it behave as described earlier?

Continuous Scrolling Inside Textfield
down_btn.onPress = function() {
textField_txt.scroll += 1;
};

I'm using this to scroll a textField but it means continuously clicking... Does anyone know a workaround for this so that it continuously scrolls while the button is pressed?

Thanks

Prevent Selectable TextField From Scrolling
I have a TextField that I need to keep selectable since apparently its the only way to get href links active in AS3. My problem is that if a user selects a chunk of text there's a chance the TextField will scroll down a bit. Is there any way to avoid that?

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