Flex :: Saving A MovieClip To Disk As Swf In Air, Then Reading It Again?

Aug 20, 2011

i have seen almost all relevant threads on almost whole internet. and i m still confused..i m working on a drawing app ( flex / air ), 1- where user loads image file,(bitmapdata > bitmap > movieclip base layer)2- add layer ( new sprite > movieclip "second object in display list")3- draw on this sprite ( graphics.draw circle / etc, lot of other details etc)4- usr can add more layers etc, name layers etc ... all sprites are of same size as bitmapQ1. now i wanted to save this main movieClip (part of UIComponent ) as swf file. so user can read again and continue work. almost like i do with photoshop.

comment: i know it sounds too generic, to ask such detailed thing. so please be patient..i have been fiddling around with byteArray. and Air File Object,flash.net.fileReference etc..Q2. (main question), i don't want to convert drawn sprites to bitmapdata and then do bytearray. ( in my mind) it will convert everything to pixels, which i don't want.Q3. is there some auto magical line which will do everything..(save drawn vectors / shapes) in sprites as is?? (less chances). if i can read swf as movieClip, i can check sprites for layers and everything else... problem is writing this to disk as swf file.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Saving Files To Disk?

Oct 20, 2010

If a user in the web browser creates some sort of file using my swf and I then want them to be able to store that file on theyre local disk do I -HAVE TO- make a round trip to the server first or is there another way without having to send the file to the server and back to the client again?

View 5 Replies

ActionScript 3.0 :: Saving Image To Disk Without PHP

Nov 3, 2009

Is it possible to save image from Flash with ActionScript3 without using of any server side script? I need the download image functionality on application distributed on a cd so I can't use any server side scripts.

View 1 Replies

Flex :: Air - VideoDisplay Record/Save To Disk/server

Aug 1, 2011

I want to also add cuepoints to a live recording video as it is incoming.

I have a live feed incoming from a VideoDisplay object in my Flex Air app, and I would like to be able to record the video/audio of this and save it to disk and/or upload to server.

Is this possible? If so, would it be possible to add CuePoints to the video as it is being streamed live? Right now I am just trying to record a live stream from my VideoDisplay.

View 2 Replies

Actionscript 3 :: Flex - Downloading Files Directly To The Disk?

Sep 23, 2011

Is there a way to download some files directly to the user disk, without browsing? (assuming they give permission of course).FileReference does this, but does not allow to directly save files to the hard disk (if not through browsing).

View 1 Replies

Actionscript 3 :: Flex AIR Play AAC Audio File From Local Disk

Apr 8, 2010

I would like to play AAC audio format file from local disk. I got example to play through netstreaming but I need to play it from local disk. I got an example to play mp3 file from local disk using Sound class.URL...

View 1 Replies

Flex :: Save Unique File From Web Browser To The Local Disk?

Jan 19, 2011

We have a Web login feature. We will offer Free calls to a large campaign.

Scenarios:

Because of free calls, we will offer a unique file to be downloaded and stored After a week or month we will call them and offer them our desktop application to scan and see how trusted, the user is If we dont find the same file again, we will never start business and more our own statistics Based on that report we want to do some follow ups campaign We can do this with cookies but we want user experience and trust analysis

Example: if you play a music in youtube.com, without notice your file is actually in /tmp/Flash....flv with lot of data on it.

Question: How can i do the similar using Flex/Flash from the web browser ?

View 2 Replies

Flex :: Download/Save/Write A File On The Client's Hard Disk Using Flash?

Nov 16, 2010

I wonder how can I download/save/write a file from my server to a client's computer using flash or flex.

Sign up
Sign in
Click on the ("FREE") button placed on the right of the page. (the
orange button)

[code]....

then you'll see a confirmation popup for the download, then you choose where do you want to save the file, and the flash movie saves the file!

View 1 Replies

ActionScript 3.0 :: Read Image Pixel, System Memory(ram) And Free Disk Space In Flex?

Dec 13, 2010

i am writing a program that need to load photoshowever, there is limitation in flex that users cannot load photos with pixel above 4069 x 4069 into a bitmapdata.how can i check photos pixel before running to error? since some pictures are big nowadays, i would llike to check the user`s system memory and free harddisk space. See if the computer have enough space to load the photos.

View 2 Replies

ActionScript 3.0 :: Reading XML Element As MovieClip

Apr 4, 2009

I'm running into what I suspect is an elementary problem. On the stage of an .fla I have three MovieClips: square, triangle and line. I reference them in a simple xml document...

Code:
<?xml version="1.0" encoding="UTF-8"?>
<testing>
<objects>
<clip> square </clip>
[Code] .....

When I run this I get the following error...
TypeError: Error #1034: Type Coercion failed: cannot convert XML@105087c1 element <clip> to flash.display.MovieClip.
The question is how do I identify the XML element as a MovieClip?

View 2 Replies

ActionScript 3.0 :: Reading LoaderInfo Flashvars Then Chaning Them And Reading Them Again Fails

Oct 24, 2011

I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.

View 1 Replies

ActionScript 2.0 :: Saving A MovieClip To A JPG?

Jul 11, 2007

Does anyone know how I can take a MovieClip in Flash and save it to a form as a JPG. I know you can print a MovieClip so I imagine you can save one to a server. I'll try and do my best on explaining what I currently have and what I am trying to do:

I currently have a Flash piece that is a type of configuration tool for a product. Lets say its a Hat Configuration tool. A customer that comes to purchase a hat can change the color, size, stitching, text, fonts, images, etc... and when the are finished the can print their hat, which has all the information and the final picture of the hat as the configured it, or they can send the product via e-mail. Currently the send via e-mail just sends the information as a text file via an ASP process page. What I need to do is send the movieclip as an Image (JPG) to the server.

View 7 Replies

ActionScript 2.0 :: Saving MovieClip To EPS Or SVG Online

Apr 26, 2007

I've got some vector design that the user can change color, form, etc.. I want to be able to convert the movieclip result to eps or svg so it still in vector format?

View 2 Replies

ActionScript 3.0 :: Saving Movieclip State In External File

Jun 14, 2011

I am developing iOS app in Adobe AIR and Adobe Flash CS5.5... It's basically a huge timeline of movie clips with entrance screen. What I want to do is somehow create an external AS or TXT file, in which I got few movie clips defined as visible/hidden. I want the movie itself to change those states of the movie clips in the external file when it reaches certain frames in the main timeline, so that the next time you open the app and its entrance screen, there are buttons (movie clips) made visible there which can link/bring you to the previously reached frame.

View 4 Replies

ActionScript 2.0 :: MovieClip Table - Saving Variable With SharedObject

Jun 24, 2011

I am using a movieclip "table" that is attached on the enter frame event at the main scene. I am trying to save variable "money" and I use this code inside the movieclip, when I test the movie it shows me money1 as undefined and I cant find why! I have used _root. and doesn't work.

PHP Code:
var svar = sharedobject.getLocal("MY VAR");
svar.data.moneynew = money;
svar.flush();
money1=svar.data.moneynew;

View 1 Replies

Actionscript 3 :: Dynamic Application Saving And Retrieving Data To XML Via MovieClip

May 1, 2011

I am creating an application in Flash CS4 that will load data from an XML file and add a movieClip for each item to the stage. Each movie clip contains a NumericStepper component and Input text field.

The user needs to be able to change the fields and update the XML file for the event.CHANGE event.

The XML file needs to be formed like this. I need to be able to navigate between sections and load the data for each one.

<sections>
<section>
<data>

[Code].....

I just need a push in the right direction. I using the Object Oriented Programming methods with a Document class and movieClip classes to control my application. I have been spinning my tires creating several crippled versions.

View 1 Replies

Flex - Reading Nodes In XML?

Jul 17, 2009

> <root>
>
> <module c_name="Executive Library">
> <node cd_title="Document One"
> cd_link="http://localhost/userMana/upload/feature.xml"/>

[code]....

I am able to read the module name, but how can i read the cd_title, when the label field is different.

View 1 Replies

Flex :: Reading Data From XML File?

May 31, 2010

How to read data from XML file in flex?

View 4 Replies

Flex :: Passing And Reading Parameters To A .swf?

Jun 21, 2010

What is the preferred way of passing parameters to a Flex application deployed as a .swf and how do I read the parameters from Flex?

I'm looking for the equivalent of passing and reading URL parameters in Flex land.

View 3 Replies

Xml :: Reading Variable From File In Flex?

Jan 15, 2011

I'm trying to read the address of a flv file from an xml file and then put it in the "source" property of a videodisplay tag .

[Code]...

View 1 Replies

Xml :: Flex 3 - Reading External Xml File?

May 4, 2011

I've tried every example I could find, but nothing really worked. What I'm looking for the to actionscript code (without using classes - i'd like to do all the code in the section of the mxml file) to load in an XML file that is stored in the same location as the swf file.

[Code]...

View 2 Replies

Flex :: Reading In Existing File In 4.6?

Mar 8, 2012

I have a data file on my computer that I need my flex mobile app to read from. Is it possible to put this file in a certain location on my computer so that the app will see it when I'm testing(ex-can i put it in a folder that is linked to the applicationstoragedirectory directory)?

View 1 Replies

Actionscript 3 - Reading Embedded Metadata In Flex?

Jan 3, 2010

I saw that you can embed meta-data into images very much like you can in mp3s, here.

Can someone point me to a tutorial of how to embed and read this sort of information w/ photoshop and flex together? I really wouldn't know where to start... Tried googling but I'm not sure I have the right keywords down.

View 3 Replies

Flex :: Accessibility - Reading Out A Label/text?

Nov 28, 2010

I need to make a small app accessible to screen reader.I'm managing to make buttons accessible, but I would also like to have a section of text accessible by screen readers so that users can hear what the text says.

I can't seem to work out how to do this.. I've tried various text controls and set them as focusEnabled, tabEnabled, i've set the accessibility* attributes too but it never seems to work, I cannot tab to a text label and hear the content.

I'm honestly a little new to accessiblity in Flex so apologies if i'm missing something obvious.

View 1 Replies

Php :: Reading PDF Form Field Data From Flex 4?

Dec 20, 2010

I have managed to import and read a PDF using the CF Proxy for Actionscript: [URL]After all my trouble there, the precious form filed information that I was looking for was not there in the PDF info object. GRRRR. So I am back to looking for a way to do this with CFC's or CFM's or PHP.All I want is this:

Read the PDF from a Flex app.GET the form field information.WRITE a new PDF with the form field values.I have found so many close but no cigar options ... and I have tried so many that failed. There are so many free PDF this and that out there. But Adobe seems to reserve the real functionality for themselves. All the free options don't seem to have access to the form data?

View 1 Replies

Flex :: Reading Server URL From AS3 For Cairngorm Configuration

Aug 30, 2011

I need to read the URL that the browser shows when a Flex application is called because I would to reference it in a mxml configuring Cairngorm remote objects. The goal I would reach is to automatically configure Cairngorm services from environment to environment (dev,test,qa,prod) without statically set the value in the mxml or other ActionScript. Since the Flex client is deployed in the root of the war of the webapp, it's enough to read where the browser is pointing.

I have written a class that is doing so:
public class ConfigServer {
public function ConfigServer() {
var loaderUrl:String = FlexGlobals.topLevelApplication.loaderInfo.loaderURL;
var urlToSet:String = <loaderURL-string-manipulation>;
_serverUrl = urlToSet;
[Code] .....

But whenever I call the ConfigServer constructor and for every (known to me) technique I applied (statics or singletons or public ro so on), I have always had the same error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.fao.fapda.util::ConfigServer()[C:devworkspacesFAPDA runkFAPDA-clientsrcorgfaofapdautilConfigServer.as:8]

Cairngorm services initialization is done as follow:
<fx:Declarations><cut/>
<services:FAPDAServices id="services"/>
<cut/></fx:Declarations>
And the problem is that FAPDAServices.mxml is read runs before FlexGlobals is valid. Is there a point in the Flex Application lifecycle where such loaderURL is defined so that I can construct ConfigServer? When in startup events that initialization in done?

View 1 Replies

Flex :: Sqlite - Saving A File In Flex Air?

Aug 15, 2010

I'm trying to copy my SQLite file that is used in my Air app to user's selected directory using

var fileSaveDest:FileReference = new FileReference();
fileSaveDest.save(dbWorkedFile,'Inventory.DB');
dbWorkedFile is a File
dbWorkedFile = File.documentsDirectory.resolvePath("Inventory.db");

I tried this but the saved file isn't a valid SQLite file. Also, I was wondering whether it's possible to embed SQLite to Air? If so how can I import and export the database?

View 2 Replies

Flex :: Adobe Alchemy Byte Array Reading?

Feb 3, 2011

I am trying to send a bytearray extracted from a file to the C code and return that bytearray again from the C code..I am printing the contents of the return value from C in a text view contents.text but all i can see is the byte array object "OggS". I can't see the contents of the byte array. Can anyone say where i am going wrong?.. I have posted the C code and the AS code.

AS Code:
private function copyByteArray(content:String):void{
try{

[code].....

View 1 Replies

Flex :: Reading Client Side Excel File?

Sep 20, 2011

I need to read a excel file from the client side and show it to data grid. I tried searching but could not find something relevant.

View 1 Replies

Php :: Flex In Saving PDF At Server?

Jul 8, 2009

I am a new bee to flex. what i am trying to do is to generate and save the layout design which nothing but canvas to a pdf format at the server. Currently i am able to display the pdf in browser (see the function below:) but cannot save the file at the server.

private function continueToPdf():void{
myPDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
myPDF.setDisplayMode ( Display.FULL_WIDTH );
myPDF.addPage();

[Code]...

View 2 Replies







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