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??
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-19-2002, 08:05 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 Movie Clip
Hi,
I am making a CD-ROM using Flash. I want to be able to print out some maps and floor plans. I have made the symbols that I want to print into movie clips and placed them on their own in the stage and in their own frame in the timeline. I have a button that goes to this frame. On this frame I have the script:
print ("bkk map", "bmovie");
gotoAndPlay ("end");
I have the movie clip label set to #p
It seems to work when I test it as a swf, although the print dialogue box comes up repeatedly until I press cancel. But the pages print.
I have a projector which calls in various swf files for the content of the pages. When I view the page in this format the printing does not work. It opens the print dialogue and spools paper, but does not print anything.
Can anybody think of a reason why this is happening and how to fix it???
Thanks.
Printing More Than One Movie Clip
I want to print 2 movie clips when the user clicks print. So far I have:
on (release) {
getURL("print:", "headline");
}
What is the syntax to print another MC called "subhead"
I tried:
on (release) {
getURL("print:", "subhead" && "headline");
}
on (release) {
getURL("print:", "subhead" and "headline");
}
on (release) {
getURL("print:", "subhead"; "headline");
}
to no avail.
Any ideas?
THANKS!
Printing Movie Clip
Hi,
I am using this command to print a movie clip.
on (release) {
print("_root.myMovieClip", "bmovie");
}
The problem is that my Movie Clip height is to large to print on one page.
Is there any command to tell the flash player to print the specific movie clip on two pages.
Thanx in Advance
Printing A Movie Clip
I"m trying to print a scrolling movieclip
with a "print" button...
but the "print" command seems to only print what is visible onscreen.
is there any way to print the entire contents of a scrolling moving clip?
Printing A Movie Clip...
Rumor has it vector based movie clips size to page and print full scale, this is a neat feature and somthing we wanted to offer our client. Although im having trouble getting it to print the movie clip. Can you help me out?
Code:
//Handle Roll over without movie clip
on (rollOver) {
var colorful = new Color(this);
colorful.setRGB("0x6E91CB");
}
on (rollOut) {
var colorful = new Color(this);
colorful.setRGB("0xCA5711");
}
//Handle release
on (release)
{
//Disable the print button
this.enabled = false;
//Attach the clip to be printed
mapPrint_mc = attachMovie("mcMap", "mcMap",{_x:0, _y:0, printOnly:true});
var objpj:PrintJob = new PrintJob();
objpj.orientation = "landscape";
mapPrint_mc._rotation = -90;
if (objpj.start()) {
objpj.addPage(mapPrint_mc,{},{printAsBitmap:true});
objpj.send();
}
//Clear the printed movieclip and print objects
mapPrint_mc.removeMovieClip();
delete mapPrint_mc;
delete objpj;
//Enable the print button
this.enabled = true;
}
Printing A Movie Clip
I"m trying to print a scrolling movieclip
with a "print" button...
but the "print" command seems to only print what is visible onscreen.
is there any way to print the entire contents of a scrolling moving clip?
Printing A Movie Clip
I created a simple draw pad and the canvas that one draws upon is an MC called "BoardMask" with an instance of Canvas Mask MC that comprises the background in which one sees their drawing. I'm wondering if it would be possible to only print what was created on the canvas and not print the whold swf?
Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
Bit Of A Challenge .... Printing Out A Movie Clip.......
i am trying to print out a movie clip in flash but im really having troupble getting the movie clip to be scaled and printed out to standard a4 size.... for some reason im getting a blue border at the top and bottom of the page when im printing and its not resizing the contents of the movie clip to fit A4 size...........
ive attached the fla.. so you can see the problem ....
im sure someone with some real skills will be able to work this out...
Printing Masked Movie Clip
I'm trying to print a movie clip that contains a masked area - while the mask appears to be working, the printer seems to be taking the invisible area into account and is resizing the image to fit the page. Does anyone know of a way to resolve this? I've read about problems concerning masks on another forum, but the only solution given was to try setMask, which I did, but no joy.
I'd appreciate any help on this!
Printing A Movie Clip And It Comes Out All Black
I am printing a movie clip and it works fine if I run it locally on my machine, prints perfectly. I upload the swf to our framework, and run the same print function, it comes out completely black. But this doesnt happen on all computers, only some. Some it works fine, but I can't figure out any correlation between the compuuters it works on. So far, I have only seen it work on flash 8, but not all flash 8, as I tried it and it came out black for me. I have tried using print() and the printjob class with no luck.
The framework that I am uploading to is a flash movie that has a black background, that holds the one I am working on, if that helps at all. Confusing problem, so let me know if any other info I can provide. Hoping somebody else has seen this before.
Jon
Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
Problems Printing Multi Frame Movie Clip
Hi,
I need to print out a multi page “Price List”, which is part of a much larger movie.
I’ve got each page, which contains “Mixed” Text & Graphic content on a number of framers within the movie clip that I’m targeting with the “Print” Function. The function itself is placed on a “Button” instance on a frame next to the Price List in the main Timeline.
Problem is that when the “print” function fires it indicates, via the printer dialogue window, that it is about to print all the frames of the main Timeline & not just those contained within the targeted clip.
Weird thing is that in trying to analyse the problem I set up a simplified movie with just the movie clip to be printed & & a print button & it works fine!
Anyone any ideas?
Thanxs
Printing A Movie Clip With Dynamic Text Boxes
I've got a certificate inside a movie clip, and i want the dynamic text box to dispay the user name, but for some reason it is coming up undefined, even though i have the dynamic text box set to finalname = _root.inputname, but it comes up as undefined on the screen. :( Can anyone tell me where i am going wrong?
Is there a way to print just a specific movie clip on the screen? I can only print all the frames in the movie and without the dynamic text box... any help would be greatly appreciated.
Problems Printing Multi Frame Movie Clip
Hi,
I need to print out a multi page “Price List”, which is part of a much larger movie.
I’ve got each page, which contains “Mixed” Text & Graphic content on a number of framers within the movie clip that I’m targeting with the “Print” Function. The function itself is placed on a “Button” instance on a frame next to the Price List in the main Timeline.
Problem is that when the “print” function fires it indicates, via the printer dialogue window, that it is about to print all the frames of the main Timeline & not just those contained within the targeted clip.
Weird thing is that in trying to analyse the problem I set up a simplified movie with just the movie clip to be printed & & a print button & it works fine!
Anyone any ideas?
Thanxs
Textfield Movie Clip Problem
I am trying to create an effect for an input textfield, where by when the user roll's over the textfield, the outline is highlighted. When the user set's the focus of the textfield, i.e. they click in the box, the bg colour changes.
The way I have approached this problem, is to create a movie clip that acts as a button. Therefore we get the ability to use something like:
movieclip.onRollover = function () {
this.bg.play()
}
However, I am trying to target the input textfield within the movie clip, so that I can use:
target.textfield.onSetFocus() command.
The movieclip, due to acting like a button, does not allow me to select the text area.....
Any thoughts on how I can get around this ?
Regards,
motorpilot
Textfield Showing The Valuable Of A Movie Clip.
We can show the number of clicks with next button and
textfield.
button: click = Number(click)+1;
textfield: valuable name=ClickNumber
frame aciton: ClickNumber=click
My problem is that I want to put the button into a movie
clip. But when I put it into a movie clip, it doesn't
show the textfield.
I am not sure I explain my problem properly.
I want to upload my test file.
If you know how to upload My test fla file to this forum, please let me know it.
Instead of it, you can see my intention at http://www.tvez.co.kr
At the site, I want to calculate the total number of clicks
by adding the number of movie-clip click to
the number of button click.
Thanks in advance
Can't Manipulate Textfield Properties In Movie Clip
I have a movie clip (containing a button that contains text) that I've brought into my main movie via attachMovie. I can manipulate properties of any elements and symbols in the clip except the text on the button. I need to be able to make this text autosized so that I can space it out properly (several of these clips are dynamically attached and positioned from xml). I have no idea what the problem is.
Here's a bit of the code (theButton is the button and buttonText is the text on the button):
for (i = 0; i < navText.firstChild.childNodes.length; i++) {
var theSubNav = eval("_root.totalSubNav." + navText.firstChild.childNodes[i].attributes.navbar);
nextxPosition = 50;
for (x = 0; x < navText.firstChild.childNodes[i].childNodes.length; x++) {
newObjName = "open" + x;
if (navText.firstChild.childNodes[i].childNodes[x].nodeName == "independent") {
theSubNav.attachMovie("independentButton", newObjName, x);
thisButton = eval("theSubNav." + newObjName);
thisText = navText.firstChild.childNodes[i].childNodes[x].attributes.title
thisButton.theText = thisText;
thisButton.theButton.buttonText.autoSize = true;
thisButton.goesTo = navText.firstChild.childNodes[i].childNodes[x].nodeValue;
thisButton._x = nextxPosition;
thisButton._y = -0.1;
nextxposition = nextxPosition + thisButton.theButton.buttonText._width + 20;
Any thoughts?
Help Creating Dynamic Textfield In Movie Clip
I'm having trouble getting a text field to show up inside of a movie clip when the text field is created dynamically. When I use this.createTextField as in the following code, the text shows up. However, when I create a movie clip on the stage, give it the instance name classes_mc, and then try to add text to it, nothing shows up. I know ActionScript can read classes_mc because I've drawn a border and the lines show up (see code). Even so, I've tried using "Linkage" and making the movie clip Export for ActionScript (even though the lines show up without doing this). No matter what I do I can't get the text to show up when it's in a movie clip.
I need to use a movie clip because I will eventually be putting multiple text fields in the movie clip and having them all scroll together.
Any ideas?
Attach Code
working...
this.onEnterFrame = function(){
classes_mc._width = 500;
classes_mc._height = 300;
classes_mc._x = 0;
classes_mc._y = 0;
classes_mc._lineStyle(1,0x000000);
classes_mc._lineTo(100,0);
classes_mc._lineTo(100,20);
classes_mc._lineTo(0,20);
classes_mc._lineTo(0,0);
this.createTextField("classInfo_txt", this.getNextHighestDepth(),10,10,120,120);
classInfo_txt.text = "Hello";
}
not working...
this.onEnterFrame = function(){
classes_mc._width = 500;
classes_mc._height = 300;
classes_mc._x = 0;
classes_mc._y = 0;
classes_mc._lineStyle(1,0x000000);
classes_mc._lineTo(100,0);
classes_mc._lineTo(100,20);
classes_mc._lineTo(0,20);
classes_mc._lineTo(0,0);
classes_mc.createTextField("classInfo_txt", this.getNextHighestDepth(),10,10,120,120);
classInfo_txt.text = "Hello";
}
Edited: 04/19/2008 at 09:20:39 PM by puponpup
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 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
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
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 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
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 With The SetMask On A Clip?
I'm trying to print a movie clip that is being masked with a jpeg that is shiny surface.
printAsBitmap("_root.designStage.designImageMC","bmovie")
or
my_pj.addPage(_level8, {xMin:570, xMax:980, yMin:100, yMax:500}, {printAsBitmap:true});
both are printing the masks of the movie clips as big boxes, covering the movie clips. so i'm just getting my shiny jpeg as the printout, instead of the movieclip that is supposed to be cutting out the mask to appear as though it's shape is shiny.
_root.designStage.stageMaskFourMC.setMask(_root.designStage.designImageMC);
this is how i'm having the set the mask since i'm loading an image to a movie clip and then masking it with this in a function when the load is complete.
any ideas of how to get around this printing the mask only?
Printing A Clip Of Dynamic Content...
I've got an array of objects... think shopping cart...
I'm able to aggregate all of the items into a single clip for display on screen... think "view basket contents". This works fine.
But I cannot get it to print.
What happens is the clip prints just fine except none of my "items" show up... just an empty cart. They're in the clip... I can see them on screen, but they don't print.
The print function seems to print the clip in its "frame 1" state and none of the dynamic content shows up.
Anyone got any ideas?
Printing Mc From Loaded Clip Gives Empty Pages
Hi all,
So I need to print a mc from a .swf that is loaded into another .swf.
However the print gives empty pages. The printing works fine when the swf is not loaded into another other swf.
So structure is:
main.swf (loades)
print.swf (swf that contains the mc to print)
print.swf works fine when run standalone in a browser.
I am using the printJob class. It does not seem to be a path problem... Any ideas?
Code:
mcPrint.onRelease = function() {
this.gotoAndStop("out");
var pj:PrintJob = new PrintJob();
// Letter paper size
pj.pageHeight = 730;
pj.pageWidth = 550;
if (pj.start()){
tr.text = "WOOO!";
pj.addPage("mcResultsAllPrint", {xMin:0,xMax:550,yMin:0,yMax:710});
pj.addPage("mcResultsAllPrint", {xMin:0,xMax:550,yMin:700,yMax:1270});
pj.addPage("mcResultsAllPrint", {xMin:0,xMax:550,yMin:1270,yMax:2150});
pj.send();
} else {
tr.text = "Problem!";
}
delete pj;
};
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
|