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.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 10-31-2008, 11:11 PM
View Complete Forum Thread with Replies
Sponsored Links:
Printing Dynamic Text Fields
Does anyone have any experience of printing dynamic text fields...i'm trying to take a body of text from a main movie to a loaded movie and print it in a dynamic text field, but it keeps printing out blank!
can anyone help with this?
duffi
View Replies !
View Related
Printing Dynamic Text Fields
Ok guys and gals, here's the problem:
I'm making a random sum generator for times, addition and multiplycation for school work. I've posted the swfs just to show you waht I mean.
But the trouble is I want to directly print what the main dynamic text field contains but it only prints what you see on the screen...
Any ideas???
View Replies !
View Related
Printing Dynamic Text Fields...
I'm trying to print a symbol using the
print("symbol", "bmovie");
code and it is printing everything except the dynamic text feilds in the movie symbol..
I've included the character outlines but still no luck with the text
anyone have any idea whats going on?
View Replies !
View Related
Printing Dynamic Text Fields
Hello,
When my movie loads i also load text in dynamic text fields in an MC outside the stage for printing.
Works fine!
BUT when i try and print the movie all the dynamic text disapears!
Only the graphics in the MC are getting printed.
It is html formatted text.
I used FlashPaperPrinter to see what came rolling out the printer.
so i have not actually printed anything..
Thanks!
View Replies !
View Related
Printing Dynamic Text Fields
just a quick question..
Im tryng to print a movie using the print bitmap function and it is printing but for some reason the dynamic text fields are all get pushed out of place and appear further down the page than they should do.
any one got a feasable idea why this is happening?
thanks
View Replies !
View Related
Printing - With Dynamic Text Fields
Hello,
i wonder if anyone can help me........i know there are a lot of posts already on how to print out dynamic text but all of them seem to be using scrolling text fields.
However my problem isn't even as complex as this but i still can't work it out.
At the moment i have a form of text boxes which the user inputs text.............from here there is a print button.........in order to compile all of the answers together i have created a movie clip.........with the layout of the printed page on it, and placed this on the main timeline. Inside this movie clip to be printed i have dynamic text fields...which link to the text fields which the users inputted data in, therefore both sets of text fields contain the same data, when you change one the other should change.
I have set up a very simple printJob command to print out the movie clip named print_mc and it prints the page even the outline of the text boxes but it doesn't print out the content which appears on the screen. my code is attached below.......please if anyone could help i would be very grateful :)
print_btn.onRelease = function() {
_global.aOneVar =oneAPone.text;
_global.aTwoVar =oneAPtwo.text;
print_mc.gotoAndStop("2");
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
if (result) {
myPrintJob.addPage("print_mc", null, {printAsBitmap:false}, 2);
myPrintJob.send();
delete myPrintJob;
} else {
}
};
thanks
View Replies !
View Related
Printing Dynamic Text Fields (problems With)
Well, the problem is this...
I recently developed a Flash App that shows some info from a database. Everything worked fine, but when I tried to create a printing system from within Flash I got stucked. You see, my intention was to put a dynamic text field iside a MC, which in turn was positioned outside the stage, and use the print method targeting the MC.
The height of any text field is always fixed (or so I belive), and I really don't know the extents of the text I'll be printing, so there is a good chance that I'll not be abel to print the whole amount of information.
Is there any way to get around this?????
If anyone knows one, pleeeease let me know.
thanks.
View Replies !
View Related
Printing & Dynamic Text Fields Not Showing Up.
I am havingtrouble trying to print from a button in my FLASH movie.
this is what I am usign for my code:
Code:
on (release) {
print("_root.partsPanel_mc.choices_mc.objectClip_mc", "bframe");
}
now this DOES print, and it DOES print the correct target MC. (objectClip_mc)
objectClip_mc is a movie clip that consists of some STATIC text and some dynamic textFields that are populated by choices throughout my movie.
It only prints the STATIS text though..and NOT the text inside the dynamic textFields.
The font (ARIAL) "IS" embeded. I also have a (#b) in the frame/layer that has the objectClip_mc on it. the layer above it (and NOT inside the objectClip_mc) is a mask.... and when teste, the text is visible so I know the embeding is working. (I have "ALL CHARACTERS" checked for embed option)
Id appreciate any help on this...or tips. If you have experiencewith printing form FLASH..PLEASE post!!
thanks
View Replies !
View Related
Possible Bug Printing Input Text Fields With Borders
I have a flash file with several input text fields. The border for the fields is set to visible. Ials o tried setting myfield.border = true;.
In all cases, the borders are visible when the file is viewed with a browser, but do not show up when the file is printed form Windows/Internet Explorer. All Macintosh browsers print the borders as expected.
What is the problem?
View Replies !
View Related
Scrolling 2 Text Fields
hey,
does anyone know where i can find a tutorial or does anyone know the coding to create a single scrollbar that control the scroll of 2 text fields which have externally loaded text files.
thanks
View Replies !
View Related
Scrolling Text Fields
Hello there all,
Right, I have a textfield in my swf and have got 6 button movie clips over the top of it, 3 at the top and 3 at the bottom. I've also knocked the alpha channel of the buttons down to zero to make them transparent, thus not obscuring my text.
I want the upper most button to scroll the text up quickly, the one below it to move the text up a little slower and the one below that to move it up really slowly. Then there is a space with no buttons, essentially to stop any scrolling altogether and then at the bottom are three identical buttons that do the oppsite to the top 3 scrolling the text down rather than up.
I was trying to make it so that whilst the cursor was over these buttons the text would continually scroll, but i am finding that when the cursor is over the buttons they move up or down incrementally once and then stop.
Is there a way I can make the text continually scroll whilst the mouse hovers over the button? Surely there must be right?
Here's a snippet of the basic code i've written so far;
Code:
upFast_btn.addEventListener(MouseEvent.MOUSE_OVER, up_Fast);
function up_Fast(MouseEvent:Event):void
{
newsText.scrollV --;
}
Cheers for any help.
View Replies !
View Related
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
View Replies !
View Related
Scrolling Dynamic Text Fields
The Scenario:
I have a dynamic text box and a scrollbar and onload I put some content in it then scroll, _root.text_box_name.scroll = int(blah). This works fine.
So whats the problem you ask?
OK the scroller works fine on the content that is there onload but what I need to do is change the content multiple times, now at first I assumed this wouldn't be a problem coz the textboxes/var maxscroll variable would just adjust accordingly, but no what happened is once I change the content the _root.text_box_name.maxscroll ceased to return anything. Now I don't know if this was how the dynamic text boxes were intended to be, but thats just re-god damn diculous.
So If anyone has anything that could help me toward a solution/explination I'd appreciate it.
View Replies !
View Related
Scrolling Text Fields With Images
I am working on a website that I want to be like a frame, with the buttons always on the left while you scroll through the content (vertically)- all within the confines of the movie. I know how to create a scrollable text field but how do I include images, etc. into this field? Is there another way to make scrolling content?
I'm pretty new to Flash and can't figure it out. Please help!! Also, is there a way to make the text field so that you can still scroll through it by using your mouse wheel?
Thanks.
View Replies !
View Related
Dynamic Text Fields With Scrolling
does anyone have any idea why text would refuse to be visible in a dynamic text field? my scroll bar functions properly and is set to the correct size to relfect the size of the text and also I am able to select, copy, and paste text from my field. For some reason, however, the text is not visible. all of the parameters are correct, but still no visible text. any ideas?
thanks all,
eric
View Replies !
View Related
Hyperlinks Within Scrolling Text Fields
I have flash version 5 and have just added a scrolling text box to my project and need each line of text within the scrolling text field needs to link to different iframes within the html page it sits in. So I suppose simply my question is: how do I make text within scrolling text fields into hyperlinks?
If anyone could help with any hints, it would be great as I am sure it must be simply but I do not know how to go about doing it?
thanks
james
View Replies !
View Related
Buttons In Scrolling Text Fields - Is It Possible In MX?
Hello my design brothers + sisters;
My problem is this;
Is it possible, in Flash MX, to put buttons in a scroll field?
These buttons would call html pages, nothing within the native .swf;
Is this even possible? If so, does anyone know how, or know of any links with tutorials on how to do so?
Any feedback is most appreciated
{F-pilot}
View Replies !
View Related
Buttons In Scrolling Text Fields - Is It Possible In MX?
Hello my design brothers + sisters;
My problem is this;
Is it possible, in Flash MX, to put buttons in a scroll field?
These buttons would call html pages, nothing within the native .swf;
Is this even possible? If so, does anyone know how, or know of any links with tutorials on how to do so?
Any feedback is most appreciated
{F-pilot}
View Replies !
View Related
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?
View Replies !
View Related
Scrolling In Multiple Text Fields..... Urgent
I have my site on the verge of completion. Except one issue keeps resurecting itself to haunt me.
My news page works fine right now. It loads a dynamic text field. It scroll that text great. But as soon as I put a textfield of any sort (static, dynamic, user input) into any other part of the movie, it refuses to scroll more then one line. Does anyone know why? And more importantly, does anyone know how to fix it?
Thanks for any help you can give
View Replies !
View Related
Scrolling Multiple Text Fields At Once Using The MX Scrollbar?
Hi guys,
I have 3 text fields in my movie. They all need to scroll at once in unison with each other (because the information is related).
So when the user drags the scrollbar up and down all three text fields scroll up and down at the same time. All fields are the same height.
How can I do this? Ideally I would like to be able to use the built in Scrollbar component of MX but it only seems to be able to scoll one text field at a time...anybody else done this yet?
View Replies !
View Related
Scrolling Text Fields - By Mouse Wheel
I have several scrollable movieclips (text columns). Currently they are only scrollable by button or bar. I would like to convert them to mouse wheel scrollability in addition to my scroll buttons/bar.
I'm thinking I need to actually convert them to text fields 1st then apply a mouseover AS. Am I close? Can anyone furnish an axample AS for wheel scrolling?
Thanks, I'd be forever greatfull.
View Replies !
View Related
Preventing Input Text Fields From Scrolling?
Is there any way to prevent an input text field from scrolling as the user types in information? If its done with .scroll and .maxscroll, how would it be done on a single frame with a text field named, say, "test"?
I'd rather not use max characters to limit the typing because the user will be able to change fonts and the amount of space will vary from font to font.
I'm using Flash 5 BTW.
View Replies !
View Related
Scrolling Text Inside Text Fields?
Hi, i work in a technology company and require if it possible to have scrolling text animate within a text field. So you would'nt actualy animate the field itself only the text would scroll up like movie credits then repeat itself on a loop inside. Also the text that will be going in will be external and is dynamic, so you could get 1 result going in, but then 4 at another time depending on the results.
So idealy it would all be in one frame and be much like a component?
Thanks
View Replies !
View Related
How Do I Get 2 Scrolling Static Text Fields To Operate Independently Of One Another?
I am quite new to this flash stuff. I created two separate scrolling text fields side by side to one another. I was able to get them functioning so when i click on the up and down arrows next to the text it scrolls up and down. The problem is when you click on either set of arrows it controls BOTH text fields at the same time.
When I click on the set of arrows for the text on the left I want them to control the LEFT text. When I click on the set of arrows for the text on the right I want them to control the RIGHT text.
I attempted to attach the file I am refering to. If you use instant messenger it might be easier to communicate that way, aol and yahoo = spky15b
thanks
View Replies !
View Related
Finally... How To Use MX 2004 TextArea To Create Dynamic Scrolling Text Fields
After working on this for far longer than I should have, I've finally figure out how to use MX 2004's TextArea component to display dynamically loaded text strings from our CF server.
In the interest of saving everyone else time, expense and grief, here's what I did.
(1) Drag the TextArea component onto your movie.
(2) Use the Properties inspector's properties tab to set the width and height values of the text field.
(3) Give the TextArea an instance name. I used "comment".
(4) Switch the Properties inspector to the parameter mode and edit these fields as appropriate. I changed HTML to true, EDIT to false, WORDWRAP to false, etc. Be sure to leave TEXT alone.
(5) Insert a second layer in the movie and open the ACTION panel and insert the code you're going to use to pull the text string(data) from your server.
Here's my code:
code:
var colist = new LoadVars();
dataurl = "http://www.mycompany.com/flash/quote.cfm?co_name=Cod";
colist.load(dataurl);
attachMovie("loadbar","loadbar",9);
loadbar._x=5;
loadbar._y=175;
colist.onLoad = function() {
removeMovieClip(loadbar);
comment.text = colist.company_list;
}
I load the "loadbar" movie to indicate a search is being made and to give the server time to return the data. Once the data is loaded, I remove the loadbar movie.
What this CF query does is look for companies whose names include the phrase or word "Cod". This of course would usually be a variable input by the user, but for test purposes I hard-coded it.
When I test the movie, I get back a selectable list of company names and their respective stock symbols in a scrollable text window with both vertical and horizontal scrollbars.
I hope this helps reduce the frustration I felt trying to figure out how to make this all work.
Now to move on to customizing the component!
View Replies !
View Related
Displaying Tablular Data, Scrolling Multiple Dynamic Text Fields
Hi guys,
I'm trying to figure out the best way to do this, and am not entirely sure so would like your input on what you reckon is the best method to use.
Flash system is for a publishers site, with simple ASP backend used with loadVars etc to load in text. What is wanted is a display of all the titles with release date, author name and range in a scrollable table.
Initially I had thought of doing the following. Create the text fields, apply text, attach scrollbars with 3 invisible, set all scrollbars to have the same scrollPosition. However this seems to be a bit of overkill, and on some of the office macs it seems to use an excessive amount of processor power and slows everything down.
Anyone have any better ideas?
R
View Replies !
View Related
Pagination/printing Fields - Request To Macromedia
This is a suggestion that I emailed to wish-flash@macromedia.com. I thought others might be interested in it, and may be able to contribute to it.
Send email to the above email address requesting this or other features for Flash 7.
-----
Greetings
Just got back from FlashForward2002, where I was a finalist for my site "zeroEra.com", and wanted to submit my wishlist for printing features in future versions of Flash.
Currently, Flash is excellent for printing off a single page of dynamic content, or numerous pages of static content, but it provides no robust controls for paginated dynamic content.
Most modern online administrative systems, some user systems, and a number of CDROM deployable applications benefit from printable reports or summaries, based on user entries. Currently, implementing such solutions requires developers to build the Flash application, and then create supporting HTML-based pages for printing. This was a minor issue with Flash 5, in that the user had to leave their familiar environment to print. It becomes far more of a concern now with FlashMX, where developers now can create genuine applications, independent of a server back-end, with SharedObjects.
For instance, say I would like to build a CDROM (or even an online) piece, where users can enter variable amount of information (which would be stored with SharedObjects), and then print off a report on that information - this report could be anywhere from one page, through to tens of pages long. Currently, I could not do this in Flash, without having to have the user either: run through the print dialogue once for each page; or print off a bunch of extra blank pages. This is because Flash does not have any support for multiple page print jobs, except via the (VERY) static #P method. Currently, I would have to use a third party tool to write a temporary HTML file to their drive, then use another third party tool to open it, then instruct the user to print it out from their browser - hardly an ideal solution.
I could go on, but I would rather provide some potential solutions for the above mentioned issues.
One excellent solution would be a print queue object. This would allow you to queue up a number of print "objects" for a single print job. For instance:
printJob = new PrintQueue();
printJob.setFooter("myfooterMC",showOnFirstPage,"p ageNumberVariableName");
printJob.setHeader("myHeaderMC",showOnFirstPage,"p ageNumberVariableName");
printJob.addItem("target",arguments);
// carry out some actions that modify target
printJob.addItem("target",arguments);
print(printJob);
arguments would contain bounding box information, etc.
In this fashion, you could generate any number of pages to print, 1 at a time, and then print them all in a single job. You could also specify any parameters that would be universal to the job (for instance, a footer and header).
Another potentially useful capability would be the ability to print a field, and have Flash automatically handle pagination. A rough example would be:
printJob = new PrintQueue();
printJob.setHeader("myHeaderMC",showOnFirstPage,"p ageNumberVariableName");
printJob.addItem("myCoverPageMC",arguments);
printJob.addItem("fieldTarget",boundingBox,paginat e,backgroundColor);
print(printJob);
This would make it very simple to generate simple multi-page reports. Developers could format the text in the field using HTML to create titles, etc. and then add a header to give it a cohesive branded look. Developers could add text fields correlating to "pageNumberVariableName", and it would automatically update the page number in the header/footer.
These are just my early thoughts for this, and are somewhat undeveloped. Please feel free to contact me for clarification or for more information.
Thank you for the great product!
View Replies !
View Related
Dividing Number X (30, 25, 13, Etc..) Amongst Text Fields (1-100 Fields)
Sorry about the title of this post, but I didn't find it easy to make a descriptive title.
What I'm trying to do, isn't a huge project, and I don't believe it's infinitely complicated. I just can't seem to wrap my head around it at the moment.
Hard enough to explain what I want...
Try to picture this:
Flash file opens up.
There are 6 text fields on the screen.
You enter the number 30 into a text field located near the top and press a button.
The 5 remaining text fields suddenly have numbers in them:Field 1: 30
Field 2:8
Field 3:9
Field 4:3
Field 5:5
Field 6:5
The idea is that I need a piece of code that will divide a variable amount of 'points' between a variable number of text fields. But not only does it have to be divided it has to be randomly and often unevenly divided.
So X = Number of text fields X / 30
Won't bring about the desired results.
I think I can (but haven't tried) divide 30 evenly easy enough, but since thats not what I'm after...
Any suggestions?
Seems to me that the final code will be one of those 'Wonder why I didn't see that' sort of things. But I can't get it.
Thanks for your help.
-Lem
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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();
View Replies !
View Related
Scrolling An Mc With 2 Dynamic Fields (as Columns)
hello !
i'm trying to find a way to scroll 2 dynamic fields (fed with xml data ) with one sole scrollbar: each textfield corresponds to one column of text.
So i figured i could have them both in an mc and attach a scrollbar to that mc. The components do not seem to accept mc scrolling (only dynamic textfield scrolling). I tried Kirupa's nice scrollbar tutorial but the issue i'm having is that it does not take into account the length of the dynamic textfields. I would like this scrollbar to disappear if there is enough screenspace to display the content.
Any idea how to make a scrollbar for an mc of varying length?
thanks a lot,
Alex
View Replies !
View Related
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
View Replies !
View Related
Help With Text Fields And Inputting Text From External Text Files
help with text files and paths
i need some help with input text field and text files.
i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:
onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}
and the code on the frame action is:
fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();
i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using
loadVariablesNum ("text.txt", 0);
placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.
should the load variable be on a frame actions or on a button action and whats the path to my input text field???
any help appreciated - as its driving me mad.
thanks
eskymo
View Replies !
View Related
Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.
Link
In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:
_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;
Thanks so much!
View Replies !
View Related
Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,
In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.
I have tried these macromedia solutions with NO success:
http://www.macromedia.com/support/fl...t_outlines.htm
http://www.macromedia.com/support/fl...namic_text.htm
http://www.macromedia.com/support/fl...haredfonts.htm
Does anyone have a working sample .fla they can send me?
-Jimmy
View Replies !
View Related
Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,
In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.
I have tried these macromedia solutions with NO success:
http://www.macromedia.com/support/fl...t_outlines.htm
http://www.macromedia.com/support/fl...namic_text.htm
http://www.macromedia.com/support/fl...haredfonts.htm
Does anyone have a working sample .fla they can send me?
-Jimmy
View Replies !
View Related
Input Text Fields Colours To Fade In And Out On Entering Text?
I am uploading a file with input text field that changes colour when you click in it - this is great, but what if i wanted the following:
in the initial state, the text box is grey as you can see, but when i click inside it, it fades to pink instead of suddenly just changing to pink. And likewise, when i click outside the box it fades back to grey.
You will see what i mean if you view the file.
it's mx not mx2004
Thanks.
View Replies !
View Related
Loading Text Into Mulitple Fields From A Single Text File
Hi there. I am trying, and failing(so no soucre) to make text load dynamically into multiple fields.
I am trying essentially to load text using only one text document- into several fields. This is so I can run a very primitive cms system in flash. (all the fields need to call different portions of the text.
If anyone understands what I mean and how it could be done, it would be great
View Replies !
View Related
Assigning Text In Dynamically Created Text Fields; Flash 8
I'm having trouble with dynamically assigning text to a dynamically created text field.
This works:
ActionScript Code:
//set font with TextFormat
myFormat=new TextFormat();
myFormat.align="left";
myFormat.color="0xFF3300";
myFormat.font="MyriadProBoldCon";
myFormat.size=25;
//create text field
this.createTextField("timText", 1, 10, 10, Stage.width,40);
timText.text="I declare a truce for robot juice";
timText.embedFonts=true;
timText.setTextFormat(myFormat);
but this doesn't:
ActionScript Code:
//set font with TextFormat
myFormat = new TextFormat();
myFormat.align = "center";
myFormat.color = "0xFF3300";
myFormat.font = "MyriadProBoldCon";
myFormat.size = 25;
//create text field; text shows up right now
this.createTextField("timText", 1, 0, 10, Stage.width, 40);
timText.text = "I declare a truce for robot juice.";
timText.embedFonts = true;
timText.setTextFormat(myFormat);
//but click a button, and the text disappears and is not replaced!!!
btn1.onRelease = function() {
timText.text="Breakfast is served all day in Hell!"
};
btn2.onRelease = function() {
timText.text="We prefer to be called Buccaneer-Americans."
};
btn3.onRelease = function() {
timText.text="It's fun to use learning for evil!"
};
I've tried setting up the TextFormat and createTextField as a function that's called on the onRelease handler. I've tried dropping the whole frackin' code in the onRelease function for each button. Neither approach works.
I've been digging around on the web, looking for answers, and nothing seems to solve my problem. Does anyone have any ideas?
thanks in advance!
View Replies !
View Related
Mixing Vars And Text In Dynamic Text Fields..
Hi,
My preloader has a little percentage feature/dynamic textfield so it will show say 10%, 25% etc.
My code:
_root.loadedpercentage.text = Math.round((sofar/total)*100)+"%";
does not work. Doh!
It just shows the value of the percentage eg 10, 25 but the % character does not appear.
I really dont like dynamic textfields cos they dont like me. Can someone tell me whats wrong?
Cheers.
Steven.
View Replies !
View Related
|