Flex :: Sending Snapshot Without Using Base64Encode

Mar 15, 2010

var is:ImageSnapshot = myImagesnapshot;
var str:String = ImageSnapshot.encodeImageAsBase64(is);

As of now, I am sending my jpeg data to the server with the code above. The problem is that it almost doubles the size of the data. Is there a way to send the image data directly without using any encoding.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Snapshot Of A Movieclip And Add The Snapshot To The Stage On Every Frame?

Nov 8, 2009

I want to take a snapshot of a movieclip and add the snapshot to the stage on every frame.

Does anyone know how to do this?

I'm trying to achieve a reflection effect...

View 3 Replies

Flash :: DisplayObject Snapshot In Flex 3?

Jul 9, 2009

i'm creating a visual editor in flex and need to let users export thier projects into Image format. But i have one problem: size of the canvas is fixed and when user add element which is out of these sizes some scroll bars added. And user continue working on the project. but when he want to take snapshot of the canvas he just get the visible part ot the canvas with scrollbars. how to get image of the fullsize canvas?

The only solution i found is to check the positions and sizes of canvas child objects and rezise it to fit them. then take snap and resize back. But it hmmmm... too complicated i think. Is there some "easy methods"?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>

[Code].....

View 3 Replies

Flex :: How To Take Webcam Snapshot Picture

Jul 11, 2010

Using Flex, what is the recommended way of taking a webcam snapshot picture? Something along the lines of:
var camera:Camera = Camera.getCamera();
var image:Image = /* magic goes here */

View 2 Replies

Flex :: Unable To Create Snapshot Of Canvas?

Nov 6, 2009

In my application a canvas object has height = 90 px & width = 86400 px (indicating number of seconds in a day [60 * 60 * 24] ). The canvas is scrollable and the user can add or delete components in that.Now, I want to have snapshot of the whole canvas & shrink it to size 910x30 to draw taken snapshot in another canvas.Can anybody tell me how to take snapshot of such large Component?I have tried to take snapshot in BitmapData object but as it max width is 2880 can not give whole canvas snapshot.

View 3 Replies

Flex :: Take A Snapshot Of A Movieclip With A Transparent Background?

Sep 13, 2010

I am coding in AS3 and I am using BitmapData to take a snapshot of a movieclip. Is there a way to have the end result BitmapData to support transparency?

How do I take a snapshot of a movieclip without any background?

View 2 Replies

Actionscript 3 :: Take Snapshot Of Video Control In Flex?

Feb 2, 2011

I had mx:Video object that play live strreamingvideo So how I can take snapshote of that Video

View 1 Replies

Flex - Taking A Snapshot, Scaling It And Repeating?

Apr 1, 2012

I'm trying to scale text from 1 to 5, a sort of zoom in type of look. I'm using the code below:

<s:Scale target="myLabel" autoCenterTransform="true"
duration="2000"
scaleYFrom="1" scaleYTo="5" scaleXFrom="1" scaleXTo="5"
>

The text scales terribly. So my goal is to take a snapshot of the text label at a large font, add it to the display list, set the scale to a 5th and then animate the scale up to 1. After that I have to set the text again and do it all over again.

This is a Flex app and that's where my question comes in. I don't know how to take a snapshot, then what to add it to (group?) and then how to erase it and start over again?

View 1 Replies

Actionscript :: Flex - Snapshot With Clipping Rectangle And Scaling Matrix?

Jan 29, 2010

var snapshot:ImageSnapshot = ImageSnapshot.captureImage(someSprite);
var file:FileReference = new FileReference();
file.save(snapshot.data,'abc.png');

n the above code I am able to capture an image.But I also want to apply a scalingMatrix(for zoomIn/Out) and a clipping rectangle to it. How to do it? I tried capturebitmapdata too, but with that I can't even get a proper image. See here. So I don't want to use that.

View 1 Replies

Flex :: Capture Snapshot With Camera Height / Width Different From Video Display

Feb 3, 2011

I have a video display in my flex app. which is attached to the camera. The camera resolution can vary depending on the user's selection, While the video display (preview) dimensions are fixed. I am then doing this:
bmd.draw(vidDisplay);

Where bmd is the bitmap.. The problem is the resulting bitmap has the correct size of the camera settings (which is set) but the capture from the video is always the size of the video display inside the bitmap.. I hope i am making sense. The result looks like a little picture inside a bigger image top left justified. I want to have a video display preview with fixed height, but be able to take snapshot with varying resolution.

View 2 Replies

Php :: Sending An E-mail With Attachment From Flex

Feb 15, 2010

I've made a custom compontent wich mails your own drawings to you. But I have a problem to send an e-mail with attachment. I use the HttpService to send the data to the php-file, but I always get the Fault message (form phpFault()). This is my code in Flex:

[Code]....

View 1 Replies

Python :: Flex - Sending PNG File Using CGI

Jun 3, 2010

How can I send a .png file using python cgi to a flex application?

View 1 Replies

Flex :: Sending Entire Columns Of Datagrid To PHP?

Nov 4, 2009

My Main.MXML

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/" width="100%" height="100%">
<mx:AdvancedDataGrid sortExpertMode="true" id="baselineGrid" dataProvider="

[Code].....

I need to send the entire datagrid columns to PHP. How to send all the values of the column 1 and column 2.

Note: COlumn 2 is an itemRenderer which has a combo box.

View 1 Replies

Php :: Flex Sockets Not Sending Data On Windows?

Sep 17, 2010

I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages.When I send a message on my Mac it goes through to the server and gets sent to all the clients, including any Windows client I may have connected. The message will actually display on Windows clients as well, it's only when I try sending from Windows that it doesn't work.

I've tried adding a crossdomain.xml file served by a PHP script listening on the correct port, but none of the clients ever seem to ask for it, and if the client works on Mac I assumed it should work on Windows. By the way I'm exporting the project as an AIR file (dunno if that makes a difference).I can't find anything regarding this so I'm wondering if I'm being stupid somewhere or whether I need to takes some special measures for Windows clients?I have pasted my client code below.

import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;[code]......

View 1 Replies

Java :: Sending Date From Flex To EJB Service?

Dec 8, 2010

I have a ValueObject in Java Source Code with a java.util.Date or java.sql.Date attribute and in Flex-AS3 have a DTO mapped by [RemoteClass] using a Date AS3 Type.When I set a date in Flex with 2010-09-05 format YYYY-MM-DD in DateField component and send it to Java, java shows 2010-09-04 there is a difference of a day from flex to java

I'm using Java EJB Service + GraniteDS + RemoteObject to comunication.

View 1 Replies

Flex :: Sending Parameters To Alert CloseHandler

Feb 21, 2011

Is it possible to send parameters to a closeHandler Alert function? The fisrt parameter the function gets is the CloseEvent, but how to send another one?

[Code]...

View 3 Replies

XML :: Flex 3 - Using Repeater And Sending XML Information To Component

Apr 26, 2011

I trying to import an XML file, and send bits and pieces to a custom component. My XML file is structured like this:

<projects><project>
<projName>{Insert title of project here}</projName>
<startDate>{Insert date here}</startDate>
<positions>
<daysOffset>{Insert a number here}</daysOffset>
[Code] .....

When I save the project, I do not get any errors or warnings. However, when I attempt to output the values in the component, the projectPositions piece comes back as Null.

View 1 Replies

Flex :: Sending AMF Typed Objects Back To PHP?

Oct 29, 2011

I succeeded in sending typed objects from a PHP application to a flex front-end using Zend_AMF as per this question. The problem I am facing now is that I would like to send a typed object from flex to PHP and on the PHP side, be able to receive it as a typed object instead of stdClass.

Here is the class in flex:
package com.mysite{
[Bindable]
[RemoteClass(alias="CTest")]
public class CTest {
public var stuff1:String;
[Code] .....

After some testing, I removed the namespace from the PHP object and moved it into the global namespace. This seems to have resolved the issue. I have tried setting RemoteClass to modules estingCTest and also modules.testing.CTest. $_eplicitType was then set to the same value for both tests. The result is that when I use modules.testing.CTest, this is the classname that Zend_AMF sees. If I use namespace notation, Zend_AMF sees modulestestingCTest, as all the slashes get stripped out. But how can I get this working with php namespaces?

View 1 Replies

Flex :: Getting A Sending Failed Error In AMFPHP

Dec 20, 2011

I am using remote object in flex to call a method in amfphp. I have project setup properly with a services-config.xml in d src, d end point uri pointing to the gateway.php. After testing on my localhost everything works fine but when I copied my files to a remote server repoint the uri in d servies-config and then recompiling the application gives a sending failed error.

View 2 Replies

Flex :: AIR: Sending Email With Embedded Image?

May 22, 2009

I'm making a Flex AIR application that will produce a giftcard from a webcam picture. This giftcard needs to be sent in an e-mail to a recipient provided in the program. Should I upload the picture to a server and use php to send the mail?

View 2 Replies

Php :: Take A Snapshot Of A Flv Video With Js/as3?

Oct 31, 2011

I am developing a website in php hosted on a shared linux server.I need to allow the users of my site to upload and play flv videos with flowplayer.It would be fantastic to show a snapshot of the video before it starts, something like these: http:[url]...My server doesn't support pseudostreaming and it has no ffmpeg/mplayer support (it's a shared host after all...)

I am guessing how can I take a snapshot of the nth frame of the video with only php or javascript or action script.I read something about bitmapdata class in flash >= 8, but i don't know how to do all the work automatically without the user's input.

View 2 Replies

IDE :: Flash SWF Snapshot To JPG?

Sep 11, 2009

I am in search of a "simple" way to implement the generation of a JPG from a Flash SWF housed within an HTML page. DETAILS: Once a visitor has assembled draggable objects within the SWF, and to their liking, I would like for them to have the ability to click a button that would render a JPG version of their layout. Hope this makes sense. I have found source codes online, in conjunction with PHP scripting, but am struggling to make this work.

View 1 Replies

Flex :: HTTPService Is Very Slow By Sending 10'000 Lines Of XML To The Server

Apr 6, 2010

I have a flex app which allows user to create some content. this content will then be sent via xml back to the server:

private function saveBackXMLToServer():void {
var params:Object = {};
params["xml_file"] = XML_content();
http_Service.send(params);
}

My problem is, that the transport of the data this way is very slow... It takes about 20 sec for 10'000 lines of XML... How can this be done better?

I'm trying to follow all of your hints, but they don't seem to be simple to change. My code is done in a way that I can't get access to every Object, and save it. So what I do is to load the swf file with one xml, and return the whole xml after I run it. My guess is, that the time isn't spent on transporting those lines to the web server (this task gets done quickly normally), I thing that there happens something on the send function of the HTTPService that every object must get changed, before sending...

UPDATE2: I just realized that it is not a matter of the flex app it is a matter of the rails app. It receives a 700 KB String. I guess it is not done for handling such a object. How to transport it then? I tryed to work with the file upload but couldn't get it done... Error 2037 was occuring! I'll go on trying.

View 5 Replies

Flex :: In Mate, Sending Two Or More Requests To The Server Simultaneously?

Sep 29, 2010

I'm using Mate's RemoteObjectInvoker to call methods in my FluorineFX based API. However, all requests seem to be sent to the server sequentiality. That is, if I dispatch a group of messages at the same time, the 2nd one isn't sent until the first returns. Is there anyway to change this behavior?

View 1 Replies

Flex :: Flash - NetStream With GroupSpecifier Not Sending Handler?

Nov 20, 2010

I have a simple video/chat application built in FLEX. I've created a groupSpecifier,netGroup and a NetStream for the different functionalities. NetGroup is mainly used for the messaging (Posting) and keeping track of the users who enter.NetStream is (or would be used) to control some functions like "start video, stop video" for everyone under the same group.The most important functions I will post on here. The first is setupGroup.

private function setupGroup():void{
var groupspec:GroupSpecifier = new GroupSpecifier("vid"+GROUP_ID+"_sid_"+SESSION_ID);
groupspec.serverChannelEnabled = true;

[code].....

View 1 Replies

Flex :: Sending A File Between AIR Applications Using Local Connection?

Feb 2, 2011

How do i send a text file between air applications using local connection?Sender AIR

private var conn:LocalConnection;
public function init():void
{

[code]......

View 2 Replies

Actionscript 3 :: Take The Stage Snapshot?

May 31, 2011

Cannot convert the stage as a bitmapData and draw it. Is there any way,

View 1 Replies

ActionScript 3.0 :: Get My Webcam To Take A Snapshot Using It?

Nov 16, 2008

Currently working on a school project that requires me to use AS3 to display a webcam, and create a button that will take a snapshot and place it beside the video display.[code]...

View 2 Replies

ActionScript 3.0 :: Getting A Snapshot Of A Video?

Nov 8, 2009

I'm making a video gallery in AS3 and using PHP on server. How can I get snapshot of an instant in a video to display it as that video's thumbnail (like YouTube)? I'm not sure if this is an AS3 question or a PHP question.

View 0 Replies

Actionscript 3 :: Creating Loop For Sending Variable To Other Components In Flex?

Dec 10, 2009

I have some simple function in Flex in which I would like to send one of my variables to all the components used in my app... The problem is that there is lots of components in my app, and I'm not sure how to reference to my component's id... Basically, is there an easier way to do this;

private function preloadStuff():void{
// populating of bulkLoader var
var preloaderItemsList:XMLListCollection = new XMLListCollection(preloaderItems.children());
var item:XML;

[code].....

View 2 Replies







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