Flex :: Create PDF File In Air/actionscript
Apr 26, 2011i have AIR application and I need save some data to PDF file..can i do it some simple?? is different way for save image to pdf or save only text to pdf??
View 2 Repliesi have AIR application and I need save some data to PDF file..can i do it some simple?? is different way for save image to pdf or save only text to pdf??
View 2 RepliesHow can I create a .txt file using flex 3? And I want to write some datas in to this file......
View 1 RepliesAll I want is to take my AS3 source code files and compile them into a SWC file.Upon inspection, the SWC files I generate end up with some kind of timeline or spite in them when I use the Flash IDE or that Flex SDK utility "compc", and it's irritating.
View 1 Repliesis there any way to create a file as a hidden in vista, xp, 2000,98 ,macintosh from flex by using var file:File = new File(""); or any other way
View 1 RepliesI want to create a file and write some data (userid) into the file at first run of my application, during the second run all the operation (will go to the next state) based on the file data, is it possible? How to create and write data into file?
View 2 RepliesI'm using Flex 4 for building the communication to Arduino. There are three (3) main values coming from it (X,Y,Z). Here the Flex's code
newText.text = magnetic.readUTFBytes(magnetic.bytesAvailable);
d = JSON.decode(newText.text);
MNx = d["x"];
MNy = d["y"];
MNz = d["z"];
Is there any example or codes (in Flex) that can I create and save these values as a TXT file (data.txt). These values as a structure should be like below.
[
{
"time":"1",
[Code]....
I'm having trouble creating an XML file from Air. It always seems to have some extra character in front of the first block in the xml file like this "¥". This application can read back out of the document, but if i open it with a text editor to make a change and save it, it will no longer open in my application. When I create this XML file, the whole reason I want to use an XML is so that I can possibly edit it on another computer, or in a text editor, and send it back.
Right now I'm creating the XML like this:
var myXML:XML = <motor>
<type>{motor.type}</type>
<shopLocation>{motor.shopLocation}</shopLocation>
<customer>{motor.customer}</customer>
<tech>{motor.tech}</tech>
[Code] .......
I had flex project with few action script files.I want to make the project as swc file. So can i know how to create it as swc file.
View 2 RepliesWe can auto-generate flex-confix xml file from flash-builder so to provide users that want to compile project on there own would be capable of doing such thing with out buying FB. So we use something like -dump-config slotConfig.xml as flex compiler argment. This generates a file for us... with lots of detailed comments like this one I generated from that project:
<flex-config>
<!-- benchmark: output performance benchmark-->
<!-- benchmark usage:
[Code]....
I made a basic text editor that lets users insert predefined strings into the document with button clicks. What I need to do now is let the user define their own buttons and string values. For example I have a button that inserts "Hello" into the text. The user may want to create a button that adds "Goodbye".To accomplish this I figured I would create a .txt file called buttons.txt or something. i would readutfbytee, loop through it to create the buttons. problem is I know what I want to do but not sure where to start
View 2 RepliesMy ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash). Is this what is happening? What's the standard work-around? At the moment, I'm editing the target mxml just to cause a file change.
View 2 Repliesi'd like to do something like this:
[Code]...
of course i could hardcode that - but if I then change something about the as file, the linenumbers won't be correct anymore, or maybe i rename the as file and so on. It'd be great to be able to create that string somehow using compiler directives. Is this Possible in an AIR application created with ActionScript 3.0?
I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
View 2 RepliesI have been struggling to get Maven2 to cooperate with me, and was wondering if anyone out there had any ideas on how to get this working.... I am working on a Flash project, and we are considering switching from our hybrid Flex4/FlashCS4 to a pure Flex4 solution. We would like to use the Maven2 build system, so that our developers do not have to manually download, install, and configure Flex4 on their machines.I have managed to create a single-module project using Maven2 with Flex4 (I am using the Sonatype FlexMojos Plugin and their Maven2 repository located at http:[url]....
|- bin
| |- moduleX.swf
| |- moduleY.swf
| |- ...[code]....
Basically, each of our modules has its sources located under "src/<modulename>/" and its test sources located under "test/ <modulename>/", with generated SWF files being placed in "bin" and generated SWC files being placed in "lib". Our assets (things that we would like to be able to reference using the "@Embed" or "[Embed]" tags) live under "share". I have looked at the references on project inheritance and aggregation, but can't seem to find anything that would allow us to keep our existing project directory structure. We would like this migration to be as quick, painless, and non-disruptive as possible. how to create a "pom.xml" file that allows us to keep our current infrastructure.
I am newer with flex technology.I am creating a chart using ant file & .mxml in eclipse my 'ant' file executes properly but it gives following error when i opens a .swf file which is created auomatically:
Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL
[Code]...
Having got into flash about a year ago, I have a fairly good understanding of as3, but I have never had any reason to learn as2. For an upcoming project, we were looking to use Scaleform GFx, with the UDK. (Unreal Development Kit) Trouble is, Scaleform only supports as2. From what I've been told, as3 is supposed to be better in just about every way, so I really don't want to learn a language that?s most likely on the way out, if I have any other options.
Is there any converters out there, that can convert script from as3 to as2? Or another workaround possibility, since flash communicates with the UDK by means of just calling a function, could I create an as2 file that could dynamically load an as3 file?
I asked this earlier but maybe I didn't give enough information. I am working on a website where video quality is very important and the client is delivering me the video already compressed. I then want to import it to flash CS3 and export it as .flv for progressive download with the media playback component. I have done all of this successfully in a sense that it all works but the video quality is not good enough, it's good but the client says it;s a bit grainy. I used the highest setting in Flash, on2 vp6 at 700kbs.
My question is what is the best file format (.mov etc) and what settings should the client use, so I can create the highest quality .flv export from their .mov file? Second question, I used an 8 second buffer but now the client is saying they don't want it to buffer at all. What are the other options besides progressive download, I have never delved into this before?
For some reason I am unable to create a FLV file from a MP4 file with high bitrate. I even created a custom setting and specified bitrate as 2500 but the output file is always around 775.
View 9 RepliesI'm in flash cs3 project. I need to create a pdf file from an image path included into an xml file or if easy also in a written path as the code below:[code]
View 0 RepliesIs it possible to just create a .AS file and define constants inside of that file? Without making a new class, just so that all my classes can access these constants? This is of course possible in PHP, but are the scopes handled differently in AS3?
View 3 RepliesIs there a any way to create a txt file in as3 and save reports in that file?
View 1 RepliesIs there a any way to create a txt file in as3 and save reports in that file?
View 2 RepliesI am trying to create a swf file from my original file. I have published swf files before from this file but all of a sudden I get a error. It says "Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long. I checked the files and neither the destination file nor the drive locked. The file is named index and always has been named that. What am I doing wrong?
View 6 RepliesHow do you create a .flv file from a flash file? (Flash CS4)
View 2 RepliesMy group is working on a Flex/AS3 scientific web application that is data intensive. Luckily the only plots involved are line charts. However, each line chart may have multiple traces (up to 24), and each trace may contain up to 2000 points. The user will need to zoom in and out and interact with the data (e.g. data tips, etc.).
The response I'm getting from developers is that's a lot of data to render in a plot in Flash. For reasons beyond the scope of this post, we can't sample the data to reduce the size (this has already been done and nature of the data prevents further sampling).
Rendering speed is critical for this app. What kind of rendering speed should I expect the Flex 4 line chart component to provide for a given number of points (e.g. 1 second to render 1000 points?)
Are there products available that handle plotting large data sets better, which can be incorporated in Flex (I've seen FusionCharts and ZingCharts online but have no idea how they compare with Flex's components)? Of those, which are easy to develop with while still providing a lot of flexibility in look and feel?
has their own web-to-lead form that can be used to send leads from a website contact form. But I want to submit leads from a contact form inside a flex application. I can't see anything in the documentation, or on Google about this. Is it possible?
View 1 RepliesI have a drop down list for selecting the titles for a person, I want to employ smooth drop down when i select the drop down menu.
View 1 RepliesI have a flex component, a VBox, that has content inside it. Text components mainly.The VBox is holding a report that I want to be able to save to PDF. I am using AlivePdf to achieve this but the PDF produced is blank when viewed in Adobe reader (latest version).When I open the PDF in Notepad++ I can see that there is definitely content in there and the file appears to be structured correctly.This is the method I am using to generate the PDF:
private function doPrint(whatToPrint:UIComponent):void
{
var printPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );[code].....
I want to create a custom component library. the components are customize-able during creation time. means like Accordion or TabNavigator, when we drag and drop the Accordion in flash builder it
<mx:Accordion x="38" y="167" width="200" height="200">
<s:NavigatorContent width="100%" height="100%" label="Accordion Pane 1">
</s:NavigatorContent>
[code]....
How to post data from a flex file to a php file? I am not able to create an action.
View 2 Replies