Flash :: PrintJob Printing Background Colour Only?

Sep 14, 2010

Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.here's my code:

public function print():void {
//bitmap_to_print.smoothing = true;
var print_page:Sprite = new Sprite();

[code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: PrintJob Printing Background Colour Only?

Sep 14, 2010

Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.

ActionScript Code:
public function print():void {
var print_page:Sprite = new Sprite();
var sp:Sprite = new Sprite();

[code]...

View 0 Replies

Flash :: Loading HTML Into Printing With PrintJob()?

Aug 26, 2011

Is it possible to load HTML content into Flash from a URL and print it with PrintJob() with Actionscript 3 without the Windows print dialog showing?

View 1 Replies

Actionscript :: Printing Transparency Pngs With Printjob (Flash)

Dec 2, 2010

I am trying to print a movieclip with printjob in flash. This movieclip contains two layers: one with a PNG image with transparency and one below with a jpg image. The problem is that the transparency of the png is not respected so the jpg image does not appear. The code i'm using is real simple: var my_pj:PrintJob = new PrintJob();

[Code]...

View 2 Replies

Printing - Recommended Printer For Flash PrintJob() (Name Badges)?

Mar 29, 2011

A client needs a standard consumer color printer for printing name badges from my flash app. Last time we used the app, I couldn't do any pre-testing of their computer and printer beforehand. So, of course, the margins were completely wrong when the time came to print. Ideally, I'll have the flash app's bugs worked out for the next run, but for safety's sake does anyone know of a printer that has good controls for custom margins and offsets, in case some minor adjustments are needed?

View 1 Replies

ActionScript 2.0 :: Printing A Range Using PrintJob

Feb 17, 2009

I can currently print one page from a flipbook by typing the page number in a text field and using the actionscript below. What I'd like to be able to do is print a range of pages. Can someone help me modify this script below to allow for a range to be printed?[code]

View 1 Replies

ActionScript 2.0 :: Printing Png Image Using Printjob?

Feb 18, 2010

I have one movie clip which is having extenally loaded png image. Now i want to print it.Its printing but showing one white box behind the image that means its not printing transparent image.My code is as follows:

Quote:
on(release)
{

[code].....

View 0 Replies

ActionScript 2.0 :: Printjob Not Printing .jpg On The Screen

Nov 1, 2006

I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't.

View 2 Replies

Flex :: Set Printing Orientation When Using FlexPrintJob / PrintJob?

Dec 27, 2011

I want to call the Flex printing API to set the print arguments before sending printing command.But there is no method in Flex(FlexPrintJob or PrintJob) to set the printing orientation.Are there some methods to solve this problem?My project is running in B/S structure and the view layer is in Flex.

View 1 Replies

ActionScript 2.0 :: PrintJob Only Printing Blank Pages?

Sep 23, 2009

I had this working and then I placed the make movie clip and printjob parts of the script into functions and the wheels fell off. So I step backward and try to simplify it but it is still not working. It's been years since I worked in Flash but I've been asked to give this project a shot so I'm kind of learning to ride the bike again.

Code:
on (release) {
var pagearray = new Array();
if (eventChoice == "all") {

[Code].....

View 0 Replies

ActionScript 3.0 :: Printing A MC With White Background, Not Stage Background?

Dec 10, 2008

trying to print a movieclip with a white backgroundwhile keeping the stage background black.The movieclip,printResults_mc has a white rectangle in the bottom layer, 850pixels x 1100 pixels. The following function scales printResults_mcto the printers printable area but because isimpossible to predict the aspect ratio of the printable area someblack background always leaks out. I tried making the whitebackground 20 pixels larger than I need (870 x 1120) and thensetting a crop rectangle in addPage of (10,10,850,1100), no luck,the black stage background just fills in the area outside the crop.A simple solution would be to temporarily set the stage backgroundcolor property to white, print, then set it back to black, but I

View 1 Replies

ActionScript 3.0 :: PrintJob Background Color

Mar 27, 2010

I have an SWF that has a print function attached to a button that prints a movie clip called content_MC.I have the SWF set with a transparent background using the wmode=transparent in the embed object.The FLA/SWF has a white stage/background.When I print the SWF that is set with a transparent background to PDF the background prints as black. I'm assuming this is because of the wmode=transparent setting in the embed object. What I need is for the embed object to stay transparent on the website but for the background to be white when someone prints.Is there some sort of variable in the PrintJob class that might handle this?url...

View 41 Replies

ActionScript 1/2 :: Background Colour Displays Over Flash Work?

Jan 23, 2010

Anyway for some reason when i test scene the box comes up showing my flash fine but when i go and locate the .SWF in the folder that all my flash fla and swfs are then for some reason its only a graphic clip and movieclip animation that displays and the rest of the background is the background colour. I checked this by first changing it to black and preview. To which the background changed black and then did the same and changed the background colour to blue and the same thing happened, the background in the swf changed to blue aswell. I have no actionscript in the scene and the majority of the things are just art besides a graphic clip the movie clip animation.

View 5 Replies

Professional :: Change The Background Colour Of A Flash Slide-show?

Jun 9, 2010

how to change the background colour of a flash slide-show.  I am trying to post a slide-show on a website, but some of the pictures do not fit the box well and, as a result, there are black bars surround them.  Is there a way that I can change the background colour so that it blends with the background colour of the website?

View 1 Replies

ActionScript 3.0 :: Change CSS Background Colour Via Script Form Flash?

May 6, 2011

There are a few posts around this topic but not on exactly what I'm trying to do. At various points in my flash app I want to try to affect a change in the containing html. basically I want to be able to change the background colour of a div. I understand i will probably have to use external interface to call a javascript function, but I'm strugging to get the js right, I'm imagining something like this[code]...

View 2 Replies

IE Showing Wrong Background Colour?

Oct 2, 2007

I made a website a year back or so and I'm having to update it now. However I've noticed the flash menu I have on the site doesn't seem to appear correctly anymore when I check in on a PC using IE.

Basically in the bottom left hand corner the swf background colour should appear grey (#333333) not white. Seems to work fine on Safari and Firefox.

View 1 Replies

ActionScript 3.0 :: XML Background Colour Property?

Dec 20, 2011

This is probably easy, but I'm an AS3 noob and google is returning every result under the sun apart from the ones I want. Is there a way to set the background colour of a flash movie according to a value pulled from an XML file?I already have the background colour property set as BGCOLOUR within my XML file, and I've used the code in line six to pull that value through (I think)...

ActionScript Code:
function processXML(e:Event):void {
var my_xml:XML=new XML(e.target.data);
my_speed=my_xml.@SPEED;
my_images=my_xml.IMAGE;

[code].....

Since adding the sixth line of code in the section above, it's broken the project, so I've had to remove that line.

View 9 Replies

ActionScript 2.0 :: Change The Colour Of Background?

Feb 22, 2006

I finaly got the code I needed to change the colour of my background but it clearly needs altering. At the moment it works but I have to click the button twice for the colour to change. Now for once I see that this makes sense because I have onRelease twice!

This code is on the button:

on (release) {
home_btn.onRelease = function() {
var myColor:Color = new Color (this._root.background1);
myColor.setRGB(0xFF8844);}

However i'm unsure how to alter the code correctly....I assume the second onRelease needs to change to something else? I tried just: home_btn = function() { but am really just guessing.

View 2 Replies

ActionScript 2.0 :: Change Colour Of Background

Jun 6, 2003

I got this code from Kax. This allows me to change colour of my background. This use to work on my movie but now is just not working anymore!Since i created a button loading a .swf file this has stopped working, Any suggestions anyone?[code]I understand that I have to replace "myMovieClip" with the name of my clip!

View 14 Replies

ActionScript 2.0 :: Way To Change Background Colour

Mar 17, 2007

I'm trying to change background colour

var color:Color = new Color("stage");

color.setRGB(0x000000);

its currently purple, how come it doesn't change

View 5 Replies

ActionScript 2.0 :: Set Background Colour Of A Line?

Feb 23, 2010

I'm trying to set the background of a createTextField(), BUT only for the lines, not the whole box.

If I use background and backgroundColor, it sets the whole text box bg to be white, but I only want the lines filled in.

For example, if you 'select' the text on an HTML page, only the lines are highlighted. Can this be done in Flash?

I'm using CS3 AS2.

View 6 Replies

ActionScript 3.0 :: Flash Using "ColorPicker" Component To Change Background Colour?

Jan 5, 2011

Is there a way that I could change the background colour using the "ColorPicker" component in flash CS5? I want to be able to change it from within the swf once it is published.

View 2 Replies

Flex :: Change A DropDownList's BackGround Colour?

Sep 17, 2011

This is what I've done so far.

<!-- fill -->
<!--- Defines the appearance of drop-down list's background fill. -->
<s:Rect id="background" left="1" right="1" top="1" bottom="1" >
<s:fill>

[Code].....

If you look closely you'll see that I've changed the default value for the bgFill color. However, when I run my application, the background color for the dropdownlist is still the default white.

View 1 Replies

ActionScript 2.0 :: Changing Browser Background Colour?

Oct 12, 2009

I want to make the colour of my browser to change when my swf reaches a certain frame in the time line.

In my flash project I have placed the following actionscript in one of the frames.

ActionScript Code:
getURL("JavaScript:changeBgColor('#000000')")

and I want place the following javascript in my HTML file:

ActionScript Code:
<script language="JavaScript">
<!--
function changeBgColor&#40;newBgColor&#41; &#123;
if &#40;window.document && window.document.bgColor&#41; &#123;

[Code].....

but I don't know where in my HTML file to place it as there is alot of Java I don't understand. I have tried to place it in myself but it won't work. The HTML file I wanna place the Java into, is attached.

View 2 Replies

ActionScript 2.0 :: Change The _root. Background Colour?

Nov 9, 2005

Is it possible to change the _root. background colour with actionscript.

View 5 Replies

ActionScript 3.0 :: Change The Background Colour To Transparent In The Scrollpane?

Jan 15, 2010

I have inserted the scrollpane on my page (named "mypane")but would like a transparent background.

View 3 Replies

Professional :: Can't Change The Colour To Match The Site Background As 1

Feb 11, 2010

I've created a banner ad (attached) for my company and intended to have it appear as a rectangle with rounded edges (transparent corners). It seems like I need to create a transparent border or mask to have my animated banner appear in this way.
 
Can I add a mask or a border to the whole thing just to make the rounded corners transparent and see the background colour of the site I'm putting it on?
 
Note: the corners are currently white. I can't change the colour to match the site background as 1. the banner will be shown in different places, and 2. the background is a gradient.

View 1 Replies

Flex :: Dynamically Change Background Colour Of Datagrid Row?

Mar 7, 2010

It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time.See: http:[url]....I have a datagrid where I need to change row colours to red then back to normal frequently based on changes to the bound ArrayCollection. So I'm looking for a way to change the row colours dynamically.Obviously as the changes are happening frequently it would be nice if changing the background colour of the row wasn't an expensive process.

View 2 Replies

ActionScript 2.0 :: Function That Changes The Background Colour Of A Text Field

Aug 19, 2005

I have a function that changes the background colour of a text field:

Code:
function changeColour() {
_root.ticker_txt.backgroundColor = "0xFFCC00";
_root.ticker_txt.background = true;

[Code]....

If I move the changeColour(); call outside of the unpause(); function - it works perfectly!?

I am sure it is the way I am refrencing the textField - but everything is in the same moviclip/scene/frame - so _root should work surely?

View 2 Replies

ActionScript 2.0 :: Changing Background Colour Of Opened Window?

Jul 6, 2007

I've used script -[URL] to open a centralised window on the release of a button. It works brilliantly but how to change the background colour of the opened window to black. I'm no programmer so don't really have much of a grasp of Action or Java script but having looked on the web, I think what I need to do is use document.bgColour('#000000') somewhere in the script but have no idea where to put it or even if it's right!

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved