ActionScript 3.0 :: Adding A Movieclip To AlivePDF?
Mar 31, 2010
I am wrapping my head around AlivePDF. I can't seem to find an aswer to this question. Can I add a movieclip as the data to include inside the page? I have it so that the PDF generates text from specific text fields, but I want it to show "mainContent_mc" to the page. I am building this as an AIR app (apperantly you can't do this from an EXE file published from Flash).
View 1 Replies
Similar Posts:
Nov 23, 2009
Been trying to crack adding images to a pdf using AlivePDF 0.1.4.9 for a week or two now. Creating the pdf and adding text was straight forward and easy to do. How ever adding an image has managed to illude us. I have included our code below. We have also tried the addImage() method without success as well. Our code builds perfectly but produces a blank pdf that opens and says An error has occurred on this page
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.DisplayObject;
[Code]....
View 1 Replies
Nov 23, 2009
I downloaded AlivePDF 0.1.4.8 and 0.1.4.9 from the their site. However, I am having difficulty implement it in CS3 or CS4. The SWC file just won't show as others do.
View 1 Replies
Jul 3, 2010
I have AlivePDF with Flex, making a webapp. I've got version 1.5 of AlivePDF but can't seem to set the font:
myPDF.setFont( FontFamily.ARIAL, Style.BOLD );
this gives an error of "1067: Implicit coercion of a value of type String to an unrelated type int." Am I doing it wrong?
View 2 Replies
May 6, 2010
I feel stupid to even ask this question...but how do I get started with AlivePDF? I have downloaded the .zip-file and extracted the files, but what to do next?? I have a .fla-file I want to conect it to.
View 3 Replies
Jan 7, 2011
Create tables with AlivePDF?
View 3 Replies
Jun 25, 2010
I need to export charts and data tables to pdf file in flex application.For this we can user AlivePDF but i need to export to local not server.Can we export to local system prompting user to select the location to export?
View 2 Replies
Nov 26, 2010
I'm testing alivePDF 0.1.5 and till now everything's been fine. I'm super interested in the new function writeFlashHTMLText() cause it makes my life so much easier! xD I'm now trying to display the generated pdf in a browser tab/window instead of just saving the file (using the filereference class' save function). I saw that there was a PDF.save() function that allowed that specifying the argument Download.INLINE. However I don't want to use the save function of the pdf class cause I don't want to use a script.
View 1 Replies
Feb 28, 2011
I have a large web application with verticalScrollBar with few charts and large datagrid. I am planning to create pdf of my web application using AlivePdf.
Right now, Im using below code to creat a pdf of my application, but no luck.
var printView:DisplayObject = new InteractionsAnalysis() as DisplayObject;
printView.width = Application.application.width;
printView.height = Application.application.height;
[Code]......
View 1 Replies
Sep 19, 2011
I'm looking for ways to solve this. I need to save a pdf to server. All the searches brought me to either file being downloaded or being saved locally. Is there a way to use alivepdf to save on server folder?
View 6 Replies
Nov 5, 2010
I have a movieClip button in my library that I dynamically add multiple instances of to the stage using code (so each instance has a unique name). The button has two frames, so it has a basic rollover effect (just changes color. To make the rollover work, I've had to dynamically add an event listener to each new instance of the movieclip, which triggers the rollover function.
I was wondering, instead of adding an event listener each time, can I somehow have an event listener within the movieclip to take care of the rollover? Or will it not make any difference to the number of event listeners, as it will still add a listener with each new instance of the clip?
View 1 Replies
Feb 15, 2011
I am using AlivePDF to generate/save pdf on local machine which is working fine.[PHP] var savePDF:PDF; var bytes:ByteArray; var f:FileReference = new FileReference(); savePDF = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER); for (var i:int = 0; i <numPages; i++) { //add all pages } bytes = savePDF.save( Method.LOCAL); f.save(bytes, "abc.pdf");[/PHP] I am looking for a solution through which I can print the pdf without using any server side technology.
View 3 Replies
Apr 22, 2010
adding the grid to a pdf with some other elements on there as well.text is not showing up in some cases. I've tested myself silly on the computers i own but there doesnt seem to be a problem.However, the person i made this for keeps saying text doesnt show up. I've seen the results of his instance of this tool and the keen, trained eye suggests that every row gets stretched out to the bottom (and beyond) of the page. A select all copy paste into plain text app suggests there is no text in the pdf (except for the text that IS showing up)
View 2 Replies
Jan 24, 2011
I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf. I am taking the image inside a canvas. How do I control my images so that they come fit on that pdf file for any image size that I take.
View 1 Replies
Dec 15, 2010
I have downloaded alivepdf open source library.Now I want to import the classes given in the library...for that how to install that lib...or where to put the folder...or what should I do to stop the compiler from giving me the error for lineimport org.alivepdf.
View 4 Replies
Feb 15, 2011
I am using AlivePDF to generate/save pdf on local machine which is working fine.
[Code].....
I am looking for a solution through which I can print the pdf without using any server side technology.
View 4 Replies
Mar 25, 2012
I have a scrollpane in my library.Inside a movieclip, I create an image gallery and add it to the scrollpane.I do this in this function.[code]Now everything works fine, and no problems occur.I do however get the runtime error TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/endDrag()It doesnt seem to affect my file, but I am sure it would be better to try and get rid of it.I think it has something to do with adding my movieclip to the main movieclip, and maybe.I am not removing it when I add a different movieclip.Whenever I add a movieclip to the main one, I use container_mc.addChild(...);Does addChild check to see if a movieclip already exist, and remove it if it does? Or do I need to remove my clips beforehand?
View 2 Replies
Feb 28, 2011
I have a MovieClip called chipmovie which I have exported to a class method called ChipMovie, when I try and add it to another movieclip, for some reason it doesn't display.
I have checked Export for ActionScript and Export in Frame 1.The code that adds it to the MovieClip is as follows:
public function addChip(chip:Number)
{
var newChip:ChipMovie = new ChipMovie();[code].....
In the output it says:
init y = -151 height is 0
for all the ChipMovie objects I try to add.
View 2 Replies
May 3, 2010
So I'm using AlivePDF to generate a 6 page PDF with a range of text and graphics. It's a fairly large PDF, prob 4mb when saved. I need to be able to pass the PDF along with a few other variables to a PHP script that uploads the PDF and then sends an email.
Because I need to pass the PDF data along with other information, I've been using a standard POST request with URLVariables, only I Base64 encode the PDF ByteArray before sending to avoid any sort of corrupt data. This works fine, except the Base64 encode operation takes ~8 seconds, and sometimes longer on a slower machine, causing a timeout.
View 8 Replies
Apr 24, 2010
I'm trying to split my stage into 2 sections
- bubbleZone
- menuZone
so I have created 2 sections and turned them into movieClips. On the first bubbleZone movieClip I want to add multiple "bubble" movieClips which will only appear in the bubbleZone movieClip. See code below. However, the bubbles seem to be appearing all over the stage and are hidden by the bubbleZone movieClip. Is there anyway to make the bubbleZone movieclip pretty much just a background for catching events and then tying the individual bubbles to just the bubbleZone so they don't appear anywhere else on the stage?
var bubbleZone:BubbleZone = new BubbleZone();
bubbleZone.vx = 1;
bubbleZone.height = 600;
bubbleZone.width = 820.8;
[code]...
View 2 Replies
Apr 1, 2009
I have 290 transparent .png image files that i would like to be quickly added to a movie-clip so that i can use it as an animation. (As2 or 3 either way).
The pictures are all the same height/width and format. Is there a quick way i could import them to a movieclip quickly, as manually drag and drop into the movieclip is tiring?
View 1 Replies
Jun 15, 2009
My code is this:
Code:
stage.addEventListener(MouseEvent.CLICK, addBullet);
function addBullet(event:MouseEvent):void {
var bullet:MovieClip = new bshot();[code]....
bshot is a movieclip in my library with the class name of bshot as well.i do not understand when i click i do not get a bullet being added to the stage?
View 3 Replies
Aug 27, 2009
normally when i want to add a movieclip to the stage I would do this:[code]but I have an array of linkage ID's that I select from randomly at runtime so how do I code it to place it on stage?[code]
View 5 Replies
Apr 27, 2009
I had a problem with ScrollPane. My application consists of two Buttons(with instances: myBtn1,myBtn2).I added textfields to a movieclip(myClip) and again added this movieclip to a scrollpane(sp) using the code as follows:
var sp:ScrollPane = new ScrollPane();
var myClip:MovieClip = new MovieClip();
myBtn1.addEventListener(MouseEvent.CLICK,onClick);function onClick(evnt:MouseEvent):void {
[code].....
View 2 Replies
Aug 28, 2009
If I have the following on the timeline in my FLV, it works and attaches my movie from the library to the stage. If I do the same from my class, it does not.
var myMC:ToolTipMc = new ToolTipMc();
addChild(myMC);
View 3 Replies
Sep 10, 2009
//This small class add the same movieclip to the stage with random scale and position
// Garden represents a movieClip in the library
//attached fla and document class
Why using the same name garden for all instances of Garden is not a problem? Can I track each individual instance of Garden on the screen or recall it for something else?
[Code]...
View 1 Replies
Feb 3, 2010
I want to add a new instance of a MovieClip named chair_mc in my .as file but am not sure where to place it. I also want to bring in two other MovieClip symbols but am not sure where to place this. This is the code:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code].....
View 18 Replies
Feb 19, 2010
i have created a preloader for my swf file. I want to simply add an image onto the stage whilst another swf is loading. My image is saved in a movieclip called image in the library. How would i add it to the stage and make it stay there whilst it is being loaded. I have tried manually moving it onto the stage but it only stays for 1 frame.
import flash.display.*;
import flash.events.*;
import flash.text.*;
[code].....
View 3 Replies
Aug 17, 2011
i have created a preloader for my swf file. I want to simply add an image onto the stage whilst another swf is loading. My image is saved in a movieclip called image in the library. How would i add it to the stage and make it stay there whilst it is being loaded. I have tried manually moving it onto the stage but it only stays for 1 frame.
import flash.display.*;
import flash.events.*;
import flash.text.*;
[code]....
View 1 Replies
Sep 22, 2011
My code is simply looping through an xml file and creating 'pages' (which are later animated).
This has all worked fine but now I want to add a sprite over the entire contents of the page if the contents of the xml contain a URL.
At run-time I can see that the checks for the URL are being processed correctly and that the overlay is being generated, but I cannot "see" it on the page.
The following code is located in a for loop for every page in the xml file:
var page:Page = new Page(); //MovieClip in my library
// ... other stuff
var textMC:FadeText = new FadeText(xml); //load the text from the xml fragment for this page
[Code]....
I now believe it is something wrong with the XML. It is correctly parsed XML (otherwise FlashPlayer would throw exceptions in my face) and it appears that this code works on every page except the second. Further more, if the second page is set as visible (a flag in the XML determins if the page is created or not) then none of the other pages overlay works.
View 2 Replies