ActionScript 3.0 :: Printing A Scrollable Text Field?
Aug 6, 2008
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()) {
[Code]....
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.
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.
I have read the tutorial called "loading text from external sources"(with 3 buttons loading 3 different texts) . I tried it but when I click right on the button, it says "cannot place actionscript directly on an object" Must the different buttons be on different layers?(In my project, they are on the last page of my site)
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.
I've built a scrollable text field of alphabetical titles.I looking for actionscript that works something like anchor tags in HTML. (Or a simple way to do it).Even though it scrolls a - z, I also want the user of having the option of clicking on an alphabetical menu from above the text field and then the text field would jump to that letter of the alphabet.
I'm trying to print an MC that is on screen with a dynamic text field in the MC - its printing just fine but the placement of one of the elements is off. Basically I have a dynamic text field centered on the stage, however when I print it, the text field moves to the very right on the printed page, while the rest of the contents of the MC stay centered. To clarify on the printed page I basically have this nice page with centered text, but the dynamic textfield is moved all the way to the right of the page.
I have a screenshot in a scrollable field (Flash CS3/4) and have put a button on the screenshot so when the user clicks it's supposed to call up a movie clip of bubble with a description of the section. I'm not finding the best way to call this movie clip up.
My problem is this. The dynamic field in my swf are being populated by global variables that I set throughout the movie and these print fine on the front of the card. However, in order to get them onto the magstripe they need to be the printer font. No problem! But there is. I I compile the swf with data in the fields (typed in before export) they are written. BUT, if I print from inside the movie with the dynamic filed fields they DO NOT carry through.
I have text that is in a scrollable box using the scroll bar component and I would like to be able to format headlines differently than the main body copy, etc. How do I do this? The text is dynamic, multiple line.Was hoping not to have to use external files.
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.
Anyone know how to make scrollable text on mouse over ( the text will scroll upward or downward depending on the position of the mouse to explain myself ). Im using AS2; is AS even needed..It would be nice too, if the you can control the speed of the text.
Is it possible to login through flash using one Dynamic Text Field and one Input Text Field and no buttons? If so how? I have seen many tutorials dealing with logging in to PHP using flash but it requires you to make your own php scripts which i am not familiar with. Can some one tell me how to do this with PHPBBs existing php scripts... I want to be able to login thorugh a Input Text Field box and have it verify it in PHP and also be able to register and view other PHP info such as users online and FAQ..
I'm making a calculator using Flash MX that works the same way as the basic calculator found on windows (not the scientific one). But having the user input a number, store it as a variable, store which function the user wants to perform and clear the text field then store the new input in the same text field as a different variable and multiply or add or divide or subtract the 2 numbers and getting the equals sign to display the answer when clicked is harder than I thought it would be.
I've got my canvas size at 900x600 pixels, the text i want on the screen is too large for the site's design, so i want to have the text in the middle with 2 scroll buttons UP - DOWN on the right hand side of the text. [let me point out i dont want the scrollbar from components cos it doesnt go with my sites colors]. So thats not an option.
I looked online and it said 'make a text box, select 'scrollable' then create a button and right click and type in the following into the actions' but when i right click the buttons actions i always get 'current selection cannot have actions applied to it' There was a reason i stopped using flash, and it seems ive stumbled upon that reason again, im reading tutorials on the CS3 Pro version which is the one i have and what its telling me to do is not possible.
Text Button UP, Button DOWN Click DOWN text scrolls down Click UP text scrolls up
I want to put scrollable text on a page. It was a template I purchased and was finished and ready to post but wanted to add more text in a scrollable text box. First, my components did not appear in the components window so I had to go to Publish Settings and set it Actionscript 2.0 and they appeared. Great! I created a text box, made the text dynamic, multiline, I see Instance_1 and dragged the UI scroller where it should go. (Yes scrollable text is highlighted) After a thousand attempts it never recognizes it.
I can do it no problem when I create a new movie (a hundred times) just can't get it work in this movie. Yet I can scroll down the text with my mouse but I can't EVER see the scrollbar... When I switch the settings to Actionscript 3 . When I drag the Scroller it says "A component already exists..." then asks me to use or replace. Is there something in this template I need to delete?
i have this web sore I'm trying to work on just trying to keep it basic but user friendly my main problem i am having is it carry's over the images to the next frame they disappear after 3 or so minutes but then when you drag another item into the cart it erases what has been dropped in before
so really what I'm looking to do is i want to be able to keep my pictures, text, drag and drop capabilities, and so on i just want to be able to put it all into a scrolling box
that way the user can scroll through and add items without having images over laying on the next page after they were added to the cart and so on any way to see what I'm working with
I am working on a file that has a rotating dial, and I'd like the dial to reveal contents of a text field (a link) as the dial points in the direction of the text field. I have 4 text fields located at 90, 180, 270 and 360 degrees (top, bottom, left and right). I have it controlled via AS, so I've got all the Math but I was hoping someone might know how to reveal the links when the arrow (in the dial) is pointing in these directions.I set up a text field for testing, which shows the degrees, but I'm getting 'NaN' in the field (problems with Theta and converting degrees to Radians, I think). I thought this might help me figure out how to reveal those links, if I can get the NaN to work.Currently, the file is rotating with an onPress, but I'm going to convert it to a mouse follow, instead, so the user only has to float around to see the links.
I have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
I made a post under actionscript 2.0, but I wasn't sure if it belonged there. So here goes.I made a text box and added a mask to it, it is really long so I made it scrollable. For some reason it keeps cutting off the bottom of the text, meaning it won't scroll all the way down, it truncates it. The text is dynamic and the fonts are embedded, heck I even tried breaking the fonts apart.
I am using Flash Professional 8. I tried to create a scrollable textbox, which has two columns, please see attached image (menu.gif). Unfortunately i have to type out the whole text, even though i have the text already formatted correctly using tables in a html file. Also, why is the keyboard tab button not working within a scrollable text box?? Is there a way to activate it? I have been using the space bar to align text within the textbox. And the alignment is not exact!?
Anyway, when i test (Ctrl+Enter) the movie In Flash 8, the two column text formatting is lost and the text is spread out all over the textbox?? It seems at runtime, the text formatting does not apply? I have managed to create tables in html which display the above text exactly how i want it. However, how can this html file be imported into the textbox in Flash 8?
I am trying to create scrollable text that scrolls up/down automatically (meaning without having to continously click on the button) when either the user mouses over or clicks on the button. Currently I am using the action script:
I'm trying to separate the text in my scrollable textbox into separate paragraphs, with space in between each paragraph, but I don't know how to do this in ActionScript. So far, the frame actions look like this:
textField = " "
(There's text in between the " ", but I'm not going to paste it here because there's a lot."Also, I'm trying to format the text, so that the headings of the paragraphs are bold while the rest of the text is normal.
Well i have basically 2 input boxes, one is small and one is very big which has a scrollbar next to it. But for some reason, when you type text into the big input box, the text typed is size 20 around there; even though i have set the text size to be only 10.Its also on multiline so everything should be fine but i don't know why its not working?! Is there something i have to change?is will the scrollbar automatically be scrollable if too much text is entered? or do i have to put in some actionscript to make it do that.
how do I go about printing entire, scrollable text area in flash movie, I know how to print entire page but when text file is scrollable it doesn't print whole text.
I have a flash site (scene 1) with scrollable text fields. I want to create a separate (popup) flash page in a completely separate scene (scene 2) that will open in a new window from a link within scene 1.
In scene 1 there are various frames within the timeline that contain scrollable dynamic text (information) that will occasionally be updated.
I want a popup window to open scene 2 and contain the updated information from scene 1. In other words, I don't want to have to update both scenes to display the same information.
There are actually several frames that contain different information in each and I want all the information to appear in scene 2 in a stacked order as dynamic text so that users can scroll through all the pages from scene 1 without having to navigate to other frames.