ActionScript 2.0 :: Set Alpha To 0 For Printing?
Aug 3, 2011
I have a game I'm adding a print button to, for users to print their score at the end of the game. The problem is, is that the printing make some of the buttons look weird, for some reason (color is missing, a white box around the button, that should be empty/transparent). This is the script I'm using to print:
Code:
printButton.onPress = function() {
print(drawingArea, "bframe")
}
I've tried a number of ways of making it so the buttons are seen normally, even tracing them as bitmap, but it makes everything lock up when I try to print that way and nothing else seems to work. So I want to temporarily make the buttons invisible, while it's printing, and then go back to vissible once it's done.It's easy enough setting the button alpha to 0, with
Code:
printButton.onPress = function() {
buttonInstanceName._alpha=0;
and then the script to print; it makes it invisible just before it prints, but what I need is way to reset the alpha to 100 once it's done printing.
View 2 Replies
Similar Posts:
Jun 19, 2007
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.
View 3 Replies
Oct 23, 2010
[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?
[Code]....
View 2 Replies
Dec 15, 2011
just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:
create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;
[code]....
View 9 Replies
Jun 27, 2003
using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.
i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...
View 14 Replies
Aug 2, 2011
I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?
View 6 Replies
Sep 2, 2011
I am building a map which has different layers on it, all on top of one another, all 700x700px and all movieclips. I have a print button (PrintUp) which sends the movieclips to be printed, however when I print, they don't sit on top of one another, they come out separately. How can I get them to print on top of each other like they are in the swf?
The two movieclips are "Background" and "Grass"
Both 700x700 and exactly the same X&Y.
Here is the code below:
PrintUp.addEventListener(MouseEvent.CLICK,Print);
function Print(e:MouseEvent):void{
var printJob:PrintJob = new PrintJob();
if (printJob.start()) {
if (Background.width>printJob.pageWidth) {
[Code] .....
View 2 Replies
Apr 27, 2008
I am having trouble exporting a movie from within flash player into a .eps for importing into Illustrator. I cannot use the native scene items for export within Flash CS3, since the content is dynamically generated when the movie is played, and would need to save the outcome. I am working in Master Suite CS3, so dont want to do anything that involves exporting into Corel or other suites.
View 1 Replies
Sep 10, 2009
I am trying to print my Flash work out to an EPS/Illustrator compatible file so that it can be opened in illustrator and printed.Used to be able to use the Apple LaserWriter 16/600 PS printer driver but I am unable to find it anywhere. Is anyone else using any other updated drivers/techniques?
View 2 Replies
Dec 2, 2009
Is there any way to print all code and scripts that are inside of (and ideally, even imported into a .fla?? I've been brought on board a project with existing code, and I am having a real hard time discovering all the little hidden code bits inside of the Flash file. There's script attached to objects, script in imported .as files....there's script everywhere...and I don't know of any way to -see- all of it and print it out so I can go over it.For instance, in the Actions window, it'd be nice if I could right-click on "Scene 1" and select "Print" and have all of those little scripts print out.Even a way to do a "Flash-file-wide" (including all imported script files) Find/Search would be nice (something similar to Dreamweaver's site-wide "Find and Replace"). It seems like Flash limits its searches to the exact file window you have open at the time.
In particular, I'm currently looking for a function that is called - but whose code I cannot find anywhere. A "Find" inside the main .fla turns up nothing, and I've tried searching the outside .as files and still can't locate it. Just in case it was a built-in Flash library function I wasn't familiar with, I searched for that, too. No dice.Is there any functionality like this? Is it on anyone else's wish list? How does everyone else locate all the code bits on a large Flash project that has been undocumented?
View 1 Replies
Mar 30, 2010
In s Flex 3 app, I have canvas with a PNG image for a background. The image is the same width & height as the canvas. I also have some other controls in the canvas:
[Code]...
View 1 Replies
Jun 12, 2010
where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http:[url]...........But now i have been continuing testing, and i found out, that if i print from another application and then comeback, my video stream from the webcam is blank, this has no sense at all, since i am printing from another app. http:[url]....What is going on here i mean, this must be a flash player issue right.
View 1 Replies
Aug 10, 2011
I have a app writing in Flex AS4. Now I have a component and I need to print it using FlexPrintJob. However, every time when users need to print it in landscape mode, he/she has to click the "Properties" button in the dialog of print and change the orientation from portrait to landscape and it is really annoying.
I wander if there is a way to control it in programming? In other words, can I change some codes to set the default properties of printers to print it in landscape mode?
View 1 Replies
Dec 12, 2011
I want to print the entire page from my flash application irrespective of the size which I have given. I know this can be done through scale-to-fit. I have used the following code to print from my flash application. The size of my stage is 1024 x 900 pixels and I would like to print in A4 size and scale to fit while printing. I haven't used any movie clip
[Code]...
View 1 Replies
Nov 22, 2006
I have a page that is loading external variables / images into the swf flash file, then comes to a stop on the last frame.
I need to print this exactly how it is on your screen on that last frame, with all the external images that have been preloaded etc etc. Exactly how you see it.
View 1 Replies
Dec 17, 2007
Is it possible to target just one frame of a movie clip using:
on (release) {
print("print_mc", "bmovie");
}
print_mc is a movie clip containing many frames all labeled #p, so that they will be printed. What if I only wanted one frame to be printed, is that possible?
View 2 Replies
Apr 11, 2004
My question is whether you can have a "generate jpeg" or "generate pdf" button within Flash that a user can click on and a .jpg or .pdf is generated from that.For example if I want a user to customize a Postcard to his/her likings and then save it as a jpg/pdf to print it, is that possible?Or to just have a print button that prints at high enough resolution to have it look good on paper (150-300dpi?)
View 1 Replies
Feb 26, 2005
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
View 5 Replies
Jun 22, 2010
I am creating a Flash project that involves loading 4 external .swf files (from a library of files), via MovieClipLoader, into one frame of the root timeline, creating a finished layout. Each of these external files sits on its own layer (1 to 4). I want to be able to print ALL 4 layers from this one frame, at once, on one piece of papercan this be done?if so could someone give me example of what the script might look likeI can print just one of the layers using:
on (release) {
printnum(1,"bframe");
}
View 1 Replies
Oct 24, 2008
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:
View 6 Replies
Nov 19, 2009
I want to print a movieclip in flash. I want that if the size of the movieclip is more than the page size, then it automatically goes to the next page. How can I do this?
View 1 Replies
Apr 19, 2010
component, or any other method, which will enable silent printing of a PDF from a projector?
View 3 Replies
May 18, 2011
I'm doing a kiosk-type flash application. and i have a print function at the end of the application, to print the receipt... but..1) whenever I press the PRINT button in flash, it will pop out a printing preference window and I will have to press OK then it will print. In other words, is it possible to skip selection printer window? I must print "directly" the job in the default printer. I'm develping a kiosk application and need print a "receipt".2) and then is there any code to check if the printing succeed or fail? so that if it fail, i will display a fail msg in flash.. etc..
View 15 Replies
Dec 3, 2011
I'm on to designing my 3rd app. I have two already in the Android and Apple stores. Fairly simple ideas these were. Now, I've come across a bit of a challenge. I want to design an app that contains a database of text files, many also containing pictures. I'd like to have it where you can view these files on, lets say, the iPad, and then print them wirelessly, or send them to yourself in an email, so they can be printed elsewhere.
I have considered just creating an ebook and selling that on the store, but I don't think apple allows you to print from these books. Has to be in PDF, and having an app would be a much better way of distributing and updating it. My idea is creating something quite siimilar to how Apples 'Pages' works, just without any editing capabilities. Select document and print. Sounds simple enough but I can't find any code or tutorials to help me out with this. What I want to know is... can I add a button, that will open up and use the printing options built into iOS? Is this possible to do in Flash with AS3 or would I need to learn how to use Flash Builder and Flex? Could it possibly be done in InDesign?
View 1 Replies
Dec 26, 2009
I am building my website in adobe flex(i am n00b). I have some photographs which I would like to make sure that people cannot print.
I do understand that it is not possible to completely stop users from printing. But atleast disable the context menu or just the print option and the copy option.
View 2 Replies
Jan 3, 2010
Is there is any printing support in Adobe Flash like the new one in Silverlight.net beta 4?
View 1 Replies
Jun 24, 2010
I have a flash movie which produces a certificate for participants in an online course.It gets the pageHeight, pageWidth from the printjob then scales the certficate image to fit nicely in the middle.This is working fine on windows and linux, but on the mac it is not behaving. It is chopping of the right and bottom edge of the certificate, I think because it's misreporting the page size - putting in some debugging information about the dimensions reports as expected - the same as on other platforms - but if I put two printouts on top of each other on a lightbox, the mac one is scaled up, mostly horizontally.
View 1 Replies
Jul 20, 2010
I have pre-existing PDF files which I would like to send to a PrintJob in Flex 3. I can load the files fine with UrlRequest, but I need to somehow get the data into a Sprite to be included into a PrintJob.
View 1 Replies
May 12, 2011
I have a requirement to print a bill from the AIR application.
Following are the constraints.
I need to print to a DotMatrix Printer. I have a complex layout with header, footer and a datagrid with data rolling out to more that one page. I need to have a template to which I will be passing my object.The suffice with the usage of Jasper reports, but I have no server side support.I tried the FlexReport, bentbit and other tools which is optimized for the DotMatrix printers.
Is there a alternative to get the above requirements done. Is there any alternative similar to that of jasper reports without going for a server.
View 2 Replies
Dec 28, 2011
We have a requirement of customizing some images (adding some text to images) using a flex app or jquery for printing this. Once the customization is done, it has to save the output image in 300 dpi for ensuring high quality for printing. We are stuck here and not sure how to save this image in 300 dpi. We can make sure that the source image uploaded for customization is in 300 dpi. But after the customization, we have to save the image in 300 dpi also.
View 3 Replies