ActionScript 2.0 :: Print Test Game Results?

Aug 2, 2011

I have a flash quiz game, written in AS2, a few years old and needs some updating. I need to include a print button for at the very end, so the user can print out their test scores. I've found one script for the PrintJob Class, but it hasn't worked so far. [highlight=Actionscript]

btn.onRelease = function(){
var pj = new PrintJob();
var success = pj.start();

[code]...

What's the problem with this script; and alternatively, is there another way to print the results?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Print Drag And Drop Results?

Mar 29, 2010

I am working on a drag and drop application. I've gotten quite far despite my inexperience with AS3.

So here's the dealio...

I have a drag and drop interface that includes 6 library items. 4 of the library items have 38 instances, one of the items has 8 instances and the final one has 4 instances.

In my one and only scene there is a movie clip with an instance name of content_MC and a class assignment of MC that contains all of the above listed objects as well as the image that users drop the objects on to.

There are also 2 buttons on the stage, in the one and only scene, for resetting the drag and drop and a print button for printing the contents of the content_MC movie clip.

I'm having an issue with printing the results of the drag and drop that are contained in content_MC.

Right now when I print, the PDF output I get is only of the original state of the drag and drop; so no drag and drop results just the interface prior to drag and drop.

I of course need the final results to be printed.

Here's a link to the application in its current condition...

[URL]

Here's the code I have for everything...

ActionScript Code:
import flash.printing.PrintJob;
// Register mouse event functions
content_MC.a1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

[Code]....

View 2 Replies

ActionScript 2.0 :: Drag And Drop And Print Results?

Jun 19, 2010

I am working on programming a drag and drop interaction where you drag items onto an area and can print the results.Anyone know of any examples of this already out there? It needs to be in AS2.0 and published to Flash Player 7.

View 0 Replies

Actionscript 3 :: Test And Compare The Results Of The Changes?

Mar 6, 2010

I have a library that provides a reflection API on top of describeType() (a method that returns an XML object with all the specs of a class or instance). Since this library is used in several other libraries and frameworks.

The problem I'm facing is that I'm not sure about the best approach to refactor this libraries' code and make it possible to test and compare the results. I could easily add timers to the code, log the ouput and compare the results, but it seems like a lot of work to do this manually.How did you test and compare the results of the changes?Is there perhaps any testing framework (also non-actionscript) that helps in performance testing in such a scenario?

View 3 Replies

ActionScript 3.0 :: Mailing Test Results From Flash + Asp?

Jul 29, 2009

i can find and cant get this to send a email.here is the code i have:
 
Flash/AS3:
stop();
submit_btn.addEventListener(MouseEvent.CLICK, sendInfo);
var emailfrom:String = "someone@somewhere.com";var emailto:String = "someone@somewhere.com";var emailsubject:String = "test

[code]....
 
Nothing happens when i hit the send button can anyone tell why.... I just got off phone with web host provider and they do support asp and i do have the correct SMTP

View 32 Replies

Flex :: Extract Test Results From Flash?

Apr 5, 2011

I've got a suite of unit tests for my project (pure AS3), and they all work brilliantly outputting standard JUnit XML to the trace output window. However, when I tried to get my test suite running on our continuous integration server I ran up against a wall.Flash is a sandboxed beast, isolated from the file system. I can't see an intuitive way to get this generated JUnit XML in to our CI software so it can be verified as passing.

I've taken a shot at implementing the approach shown in Continuous Integration with Flex,but it relies on reading trace output logged to flashlog.txt that is prone to failure on many fronts (debug player must be installed, flashlog.txt must be created, mm.cfg file must be configured properly). Also, I find that some of the time it fails to find the results in the flashlog and the build fails despite all the tests passing. This could be because I have too many tests and some are being pushed out of the log file.

View 3 Replies

ActionScript 2.0 :: Yet More Printjob Aliased Nonvector Test In Print?

Apr 5, 2006

I've made an mc with an attached txt field offstage from which to print from. The text that populates the off stage tf is all blocky and non vector looking...so are the printed sheets. I am using both html formatting and textformat formatting on the print text. It is a dynamic text field. It has this problem with both the printed result and when i peak off stage to look at the actual fields loaded with this text. I've already tried adding dummy fields offstage with the "embed" option activated.

View 7 Replies

ActionScript 2.0 :: Test Print Base SWF - Loading Another Movie Into It

Sep 14, 2006

I have created a test print base swf and have used the code below in frame 1 to load another movie into it called "TestPrint.swf". I have a button called "my_btn" located in "TestPrint.swf". I have targeted this button in the code below (or so I thought). This is designed to print the contents of frames 1 and 2 within the swf. There are no movieclips within the loaded swf.

this.createEmptyMovieClip("holder_mc", 999);
holder_mc.loadMovie("TestPrint.swf");
this.holder_mc.my_btn.onRelease = function() {
print(this._parent.holder_mc, "bframe");
};

The TestPrint.swf loads OK, but I am unable to print the contents of TestPrint.swf. I suspect that it is an addressing problem and I am not very familiar with relative addressing.

View 1 Replies

ActionScript 2.0 :: Soccer Game - Showing Classic Results Realtime With Scores

Jul 19, 2003

I want to make a soccer score game. A game that shows classic soccers results realtime with the score at the point they where scored.

An example:
World Cup 1986 Mexico
West Germany - Argentina
The final score 2 - 3
The players who scored and the exact time:

---West germany---
Rummenigge (74 min)
Voller (82 min)
------------------

---Argentina------
Brown (23 min)
Valdano (56 min)
Burruchaga (85 min)
------------------
The total of matches with data like above is 45.
The total time of a soccergame is 90 minutes.

And further more I want a start player selection kind-of-thing like this:
USER INPUT
select game [] (ex. VM 86 mexico, VM 94 USA etc.)
select number of players: [] (ex. 4)
select number of games pr player [] (ex. 5)
Select total time of playing [] (ex. 60 minutes)
Write the name of the players

1. Load external data (the pool of matches)
2. Get user input
3. Select random matches for the players
4. Calculate the time (90min/60min etc.)
5. Tell clock countdown the time and start the countdown from 90min to 0min
6. When a scoretime is equal to clockcountdown time then display game score and the soccerplayer who scored and the name of the player who got the match.

View 2 Replies

ActionScript 3.0 :: Hit Test Object In A Game?

Mar 1, 2012

I am currently making a game. The user drags back the fish and then lets go when it gets to the desired force and angle. If it hits the penguin it disappears however i want it to rebound off the iceberg so it can bounce off and hit the penguin. However it just disappears i've tried everything and i cant work it out.

package {
import flash.display.Sprite;
import flash.net.SharedObject;
import flash.events.Event;[code]....

View 1 Replies

ActionScript 2.0 :: Billiards Game Hit Test Not Working?

Jan 22, 2009

I am trying to develop a billiards game, in which I require hit test for balls. I have developed the code given below for this purpose. However, I find that the hit test is not working properly.

Code:
var i=0;
var im=10;
var circle_mc;

[Code].....

View 2 Replies

ActionScript 2.0 :: Driving Game Inaccurate Hit Test?

Oct 21, 2003

I have this experiment with a Jeep in a small drivable area with a garage thing.What I wish to happen is that the hit test for the Jeep to be more accurate so when you are inside the garage the front or the rear of the **** jeep doesn't stick out half a mile or when you hit the edge wall it doesn't act off the **** centre/registration point.

I set up a hit-test test but with a square symbol and when you hit it, it is accurate because it doesn't use the jeeps centre/ registration point why can't I implement this on the jeep or can I, If so How? - Look at the .fla with the white squares.And also how would I implement it so that if the area was slightly bigger the background would move around the jeep. Like an art based rpg not tile based, or should I use tile because it is easier?t.

View 3 Replies

ActionScript 3.0 :: IE Print Button Gets Around Print Movie Clip With Alpha?

Aug 24, 2010

I have a print button with this code in it:

Code:
var pj:PrintJob = new PrintJob();
var printOptions:PrintJobOptions = new PrintJobOptions();

[code].......

View 1 Replies

ActionScript 2.0 :: Print The Contents Of A Textfield Or String Using The Print Command?

Mar 16, 2004

Is there any way to print the contents of a textfield or string using the pring command in AS?

View 2 Replies

ActionScript 3.0 :: Create A Print Button To Print One Frame?

Jan 3, 2012

I 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].....

View 1 Replies

Print From Flex App By Clicking Print In Context Menu?

Jul 5, 2011

I want my flex 4 application to print proper picture when I click on print in context menu of Adobe Flash Player.Is it possible?

View 1 Replies

ActionScript 2.0 :: Print MovieClips When Press A Print Button

Jun 5, 2007

i want to simply print 2 movieClips when i press a Print button. so i have the "_root.container_mc" and "_root.logo_mc"... paste the simplest code for printing a "landscape" page with these 2?

View 3 Replies

ActionScript 2.0 :: Make A Print Button That Will Print The Contents Of A Mc?

Jan 14, 2008

I am trying to make a print button that will print the contents of a mc...this mc basically holds a dynamically drawn floorplan which can be zoomed and panned...I want to be able to print the contents of the mc, and only what is viewable in the mc at the time of the print...so if you are zoomed in, all that prints are the actual objects visibly seen in the mc...I think it may be with the print command using bmovie but I have no idea how to assign a #b lable to the frame.

View 3 Replies

ActionScript 2.0 :: Print Section And Then Check Out The Print Pieces?

Jul 15, 2004

[Code]... and go to the print section and then check out the print pieces. for some reason my resizing gallery movie is doing some weird stuff and i cant figure out how to fix it. my actionscript goes like this :

[Code]...

View 4 Replies

ActionScript 3.0 :: Unable To Print More Than 5 Pages In One Print Job?

Dec 19, 2008

I am not able to print more than 5 pages in one go. I want to print almost 12 pages in one print job. I am creating the movieclips of each page by adding the dynamic data in to it and store in an array. When all the movieclips created and stored in an array(pagesAry) then it call the following function to print those pages:

private function sendToPrinter():void
{
pj = new PrintJob();
try

[code]....

Getting error: Print job canceled as it took more than 15 seconds to complete.

View 5 Replies

ActionScript 2.0 :: Print Button Shows Up On Print Out?

Jul 19, 2005

how do you set a print button so that it does no show up in the print out?

View 1 Replies

ActionScript 2.0 :: Print Entire Page But When Text File Is Scrollable It Doesn't Print Whole Text?

Jul 14, 2005

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.

View 8 Replies

Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?

UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.

View 1 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

ActionScript 2.0 :: Test Movie Works But Test Scene Does Not

Mar 19, 2009

I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works

on (release) {
gotoAndStop("scene1",2);
}
second button takes you to frame 3

but on scene 2 that performs same function as scene 1, the first button

on(press){
gotoAndStop("scene2",2);
}

instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.

View 1 Replies

Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?

View 2 Replies

Flash :: Packet Loss Test Like In Ping Test From Flash Technologies?

Feb 22, 2012

Does any one have a idea about how to do a packet loss test like in ping test from flash technologies (Flash or Flex)?

View 1 Replies

Android :: Cross Platform Game - IOS : Develop A Very Simple Game For Iphone/ipad?

Mar 7, 2012

I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?

View 1 Replies

ActionScript 3.0 :: Game That Populates User-designed Cards Into The Game Using An External Xml File

Apr 24, 2011

I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as

[Code]...

View 2 Replies







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