ActionScript 1/2 :: Print The Current Screen(or Frame) At Runtime Using Flash?
Nov 19, 2009In my project i need to add a button to print. When i press that button i need to print the current screen(or frame).
View 1 RepliesIn my project i need to add a button to print. When i press that button i need to print the current screen(or frame).
View 1 RepliesFirst, when i print my movie(properties 760 x 520) it is very small on paper. How can i make it fit the paper?
Second, how can i only print the current frame or what is on the screen from flash?
I'm building a stand alone presentation application (.exe) in Flash CS4, and want to add a print button which prints current frame. Tried to find about that everywhere on internet, but didn't quite found what I need. So when someone clicks the button, I wish to save that image in original size as bitmap or jpeg image. How can I do that?
View 2 RepliesI want to print the current page (web page) when user clicks on a button.
View 14 RepliesIs there a statement in AS3 that will return current class and/or scope? I'd like to use that in trace statements so that I know the exact location of a trace.
View 2 RepliesI am trying to create a print button on the last frame that will allow the user to print just that frame. I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper. Here is the code that I have so far:
function printScore(event:MouseEvent):void
{
var printJob:PrintJob = new PrintJob();
[code].....
How can I make a action script controlled print screen that will save a part of a screen And can I filter a color out of it (so that only that one color will NOT be visible on the saved img) with AS
View 3 Repliescan i make a print screen button in flash? but i dont the button to print all screen.. just some place that i set to print screen..
View 2 Repliesi want to user print screen command in AS3 and convert into bitmap as background in fullscreen i.e.
print screen from keyboard - keycode i.e. 44 [URL]
i want to know how can i run printscreen code from flash to capture user screen as i want to have flash presentation in 600x600px with disabled desktop and flash presentation should be in center of screen.
Quote:
import flash.system.fscommand;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
fscommand("fullscreen", "true");
[Code].....
I am developing a small flash application.In my application users should be able to drag different elements from a toolbox into a canvas.At some point a user will be able to save the different elements he dragged as a picture.I wanted to know if there is a functionality that prints the screen in flash.
View 1 RepliesI have a print function that is supposed to print the current visible view of an mc...the mc contains a map that can be zoomed in on and panned...I want to only view what the mc shows...and I had this function working before...but I have made hundreds of changes to my code, without testing the print function along the way, so I have no idea what I did that may have broken my function..
[Code]...
How to write an AS3 object's memory location for example to a label?
View 3 RepliesI try to convert Movie snapshot at runtime and allow user to print or save images. Found examples of using AS3 JPGEncoder but I got empty image.
[code]...
Im trying to find some way (in actionscript 3) to output info for the current package at runtime.
Given the following code snippet;
package com.foo.thing
{
import com.foo.Helper;
[Code].....
I'd want the tracePackage method to trace out the string "com.foo.thing.Tester".
And also is there a way to print a part of flash contents of maybe entirely compose the stuff (image that is) you give to printer.In my case i have a flash in which contains to pictures (basicaly even and odd page of a book) and other stuff. I want to add printing functionality. Also i want user to be able to choose what to print - whole flash, both pages or just one of them
View 2 RepliesIs it possible to add a child to the current frame only?
I know you can just remove/hide them, and generate/show them again.
But isn't there an easier way?
What's the sanest way to achieve something along the lines of this.gotoAndStop(this._currentframe)?
What I want is that Flash re-loads the current frame as if I was using gotoAndStop (which does nothing if it is given the current frame as target frame).
I want to print the screen using bitMapData.
var bmd:BitmapData=new BitmapData(700,500,true,0xFFFFFFFF);
//draw the bitmapData from the captureContainer to the bitmapData object;
bmd.draw(stage, new Matrix(), null, null, null, false );
I have it working but the image being drawn starts from the Top Left of the stage I need it to start x 15 and y 80 is there a way to do this? Ive tried bmd.scroll(15,80) but it just make the image look funny.
I want to print variables onto the screen of my game. I am using text boxes to display the variables. When I try update the text boxes, the text boxes are blank.
I use an EventListener to update the text boxes:
// Add the EventListener that updates the game HUD
addEventListener(Event.ENTER_FRAME, updateHUD);
[code].....
Why this code doesn't print anything in the screen?
var ball:Ball = new Ball();
ball.x = 300;
ball.y = 300;
addChild(ball);
I have in the library a Movie Clip with the name "Ball" and the class name "Ball".
Say I want to print a summation or integral on the screen. Is there some kind of API I can use to do this? Or do I have to import images?
View 1 RepliesIs there a way to Get the print screen image from the keyboard. Say for example I had a image hosting site and wanted a feature where users could paste in an image and simply host it that way. would that be possible? EDIT: Would it be possible with some sort of third party plugin? Are there any existing Firefox plugins which do something similar?
View 6 Repliesgot a touch screen project that runs full screenwith scaling (so the same project can also be disributed on CD andweb without manually resizing everything). Full screen is invokedby:if (runMode=="touch") {fscommand("fullscreen","true")};When the user prints the player is knocked out of full screenmode. I can put it back into full screen mode butunsightly and a potential security issue to have access to thedesktop while the kiosk is running. Does anyone know how to keepthe player in full screen mode? I know it can be done,got a sample from the client (AS2, my project is AS3) that runsfull screen without scaling and the print dialog floats nicely overthe stage without dropping out of full screen mode.
View 1 RepliesI am trying to print a HTML from my air app, however, this HTML should never be seen on screen. I am using HTMLLoader for this, as per some sample I saw on the web.
What happens, is that there is a print dialog, but it prints out a blank page.
If this is a window application, and I click some button to print (just the HTMLLoader) it gets printed.
Following is my code.
var mySprite:Sprite = new mySprite()
var loader:HTMLLoader = new HTMLLoader()
loader.loadString("ADDRESSThu Aug 20 21:37:20 GMT+0530 2009")
[Code].....
Is there a method to disable the print screen button, for example bring up an error box explaining it's disabled, instead of taking a print screen?
View 2 RepliesI have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...
View 1 RepliesI have a small flash tidbit that is basically used like a menu. It scrolls through the thumbnails left and right, when clicked the pages navigates to the appropriate location. However, the flash movie jumps back to the beginning of the movie. Is there anyway I can get it to stay in the same spot when the page is changed? I tried using iframes, but this did not work out, it had the same result. ref:[URL] to see the problem scroll the images to the right and select 'wall boarder buddy' (fourth image from the left) this takes you the page and the flash resets to its original position.
View 12 RepliesI have tried this a dozen different ways and I really am at my wits end.
I have a presentation that works like a powerpoint. Everything is working as it should, except one part. I have a movie clip with an instance named slides, and I want to actively display which frame number you are in this move clip.
I have tried more than one why but I see no reason why this should not work:
var frameNum:Number = this.slides.currentFrame;
this.frameText.text = "P�quina " + frameNum + " de 173";
It appears to work at first, but does not update when I navigate the slides. It constantly says 1. Before I just added a function to the back and next buttons to frameNum++ and frameNum--, but after I created the Menu I would prefer it to automatically detect what frame it is on.
If I have 5 frames and each contanins a MovieClip on stage that includes it's class, listeners, functions etc.If I go from one frame to another,should I clean everything up? I mean remove listeners, remove childs etc etc.Or other MovieClips except those in the current frame are ignored from flash player.
View 3 RepliesDoes anyone know how to trace out the frame rate that a swf is currently playing at?I've tried creating two date objects on adjacent frames, running the getTime() method on each and subtracting the difference but it seems to be the same regardless of what I set the movie's frame rate to in the property inspector...I am basically trying to monitor the performance of an animation at runtime and make adjustments on the fly based on how fast or slow the movie is playing.
View 4 Replies