Flex :: Programmatically Extracting A Frame From A Video In Flash?

Dec 29, 2009

I need to write a small Flash app that will need to extract a video frame from a playing video. It will not need to be saved to the HDD of the user. I just need to get the image data and display it in the Flash movie. The frame to extract will be chosen by the user, which is why I'd like to do this purely on the client side (though I know I could do it from the server side).

View 2 Replies


Similar Posts:


Flash :: Audio / Video Element Control Volume Programmatically?

Nov 10, 2009

Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?

View 2 Replies

Flex :: Programmatically Send An Email From A Flash AIR MOBILE App

Mar 27, 2012

I am trying to figure out how to send an email from a Flash Mobile (smartphones: blackberries, iphones, androids) app using mxml and Flash using Flash Builder 4.6. My boss told me to find out if it is possible. So far, I have been doing a lot of searching around on the internet for an answer.

I found this website: [URL], that has some classes for sending email in flash, but #1, I don't know if they work in Mobile apps, and #2, I can't find any instructions or tutorials on how to use the classes to send a simple email.

I downloaded the package from the site and imported into my project, where I am trying to send the code. But without sample code on how to simply send an email, I am not entirely sure what all do, and nor am I sure how to determine things like what port number to construct the SMTPMailer object (the SMTPMailer object is included in that package, and it takes a host string and a port number integer in it's constructor), right now I am trying 80 or 8080 for the port number, and I've tried localhost and one of our server computers, 198.162.1.109 for the host.

Anyway, I keep getting this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.

Here is some of my sample code:

[Bindable]
private var mailer : SMTPMailer;
private function init() : void {

[Code]......

View 2 Replies

Flex :: Extracting Asset From Swf File?

May 22, 2009

As I am building a Flex framework for minigames, I plan to bundle a bunch of graphic assets (movieclip symbols) into a single swf file, which I will load into my Flex application, before extracting the symbols from the swf file for use in my application

View 3 Replies

Actionscript 3 :: Change The FLV's Frame Rate Programmatically?

Apr 26, 2010

I have tried with stage.framerate but It doesn't seem to work. Is there a way to adjust the FLV's framerate at runtime?

View 1 Replies

Flash :: Flex - Change The Local Settings Manager Of Programmatically?

Dec 8, 2011

i want to know whether its possible to change the local settings manager of flash programatically?. Earlier when the global settings manager was there i changed the settings by directly editing the .sol file? Will the same work now?

View 1 Replies

Professional :: Programmatically Generate Live Streaming Video?

Feb 15, 2010

We have video cameras from Point Grey Research that are typically used for instrumentation and measuring.To oversimplify, the Flycapture software library they provide essentially captures single frames as 2-dimensional arrays of 16-bit greyscale values. We want to measure and process this information in real time. We also want to take this video, write some simple overlays on it (rectangular outlines, histograms, etc.) and make it available for viewing on a local area network using an ordinary web browser.

That is, we need to programmatically generate a live FLV stream on the fly--where the source of the video is not actually a device, but our program. The resolution and bandwidth requirements are modest; 320x240 30 fps 8 bit-grey = less than three megabytes per second. Some very simple, fast, easy compression would do, and in fact compression is not really needed at all.

I'm puzzled as how to where to start. I've browsed dozens of free and commercial packages, and they all seem to assume that the video source is a device.

The FLV and RTMP specs are intimidating. I can't easily identify any trivial subset (e.g. no compression) that would be easy to implement myself, nor have I found free or inexpensive commercial libraries that would do it for me.

View 1 Replies

Flex :: Flash - Programmatically Select An Item In A List After DataProvider Is Updated?

Jan 2, 2011

I have a Spark List container whose dataProvider is bound to a result set coming back from a RemoteObject call. Pretty standard stuff.

<s:List id="list" dataProvider="{model.stuff}" width="100%" height="100%"
selectedIndex="@{selectedSlider.value}"
itemRenderer="{stuffRenderer}">
</s:List>

The selectedIndex is associated with an HSlider, but that is not the problem. My issue is that I would like to automatically select a certain "preferred" element from the list (only initially...to guide the user).

I tried to do that in a creationComplete event but my data hadn't shown up yet...setting selectedIndex didn't work..

View 3 Replies

ActionScript 3.0 :: Memory Leak Using Flash.media.video And Bitmap For Frame By Frame Function?

Oct 12, 2009

i have a pb of memory leak:i using flash.media.video to read video i have function to do frame by frame:FrameBuffer is an Array containing my video frame, lastimg is Bitmap object

[Code]...

View 1 Replies

Flex :: Extracting Relevant Info. From Date / Timestamp In Adobe With Row Object

Jul 1, 2009

[code]The row object consists data for different columns of a datagrid. dp.push(row) pushes the data onto the datagrid.Columns with index 3 and 4 have type of "DATE" with whole time stamp being displayed. Is there any method in flex which will help me extract the monnth/day/year from date or timestamp for that matter.

View 2 Replies

Regex :: Flex - Extracting Variables From A String Like /var1/var2/var3/?

Aug 4, 2009

I need to extract in actionscript the variables from a string like /var1/var2/var3/...Each variables can be characters or/and number and variable size.My current regex /(w+)/g work for the first variable but not for the others.

var matchExpression:RegExp = /(w+)/g;
var match:Array = matchExpression.exec(browserManager.fragment);

View 4 Replies

Flex :: Copying A Single Frame From A Video?

Oct 24, 2010

I'm working with video in Flex. I'd like to be able to pause the video at a certain point and copy the displayed frame as an image, and save it to a database. how I might copy a single frame from a paused video?

View 1 Replies

Actionscript :: Get Random (or First) Frame From Video Using Flex?

Dec 7, 2011

I am developing an application for recording videos and previewing them as tilelist. Is there any way to capture a frame of the video to use as a thumbnail in my list? I'm using Flex 4.5.

View 2 Replies

Flash :: Extracting Thumbnail From .flv

Apr 21, 2010

i was wondering, how can i extract thumbnail from a flash-video file, then display it in a listbox.the listbox is suppose to have many videos which i need to extract thumbnails from programatically with actionscript.the flash-player is going to be on the web, and the extraction must happen when the swf file is loading, therefore, the method must not be too time-taking.

View 4 Replies

Flash - Extracting VideoFrames From A SWF?

Aug 30, 2011

have a SWF that I want to extract VideoFrames from.They appear under this name when the SWF is opened with 7-Zip (VideoFrame).Obviously, extracting them in that manner accomplishes nothing, as they are not in any recognizable image format.I have loaded the SWF into Flash Professional CS5, and am able to view all the Bitmap objects (assembled in a "UI", overlaying the video animation at one corner) in the Library, but I cannot find an enumeration of the video frames anywhere, or even find the object displaying them.

EDIT: I do NOT want to simply export the entire frames of the SWF, as there are several UI elements overlaying the video. I know for a fact that the entire video frames are present (just partly covered up). I want to extract the frames of the embedded video, not the SWF frames.

View 2 Replies

Flash :: Extracting Variables Out Of .swf Using C++

Nov 1, 2011

I am currently working on a project which relies on variables and constants defined in an external .swf-File. As I don't have the sourcecode to the .swf file I need to extract the content of these variables by decompiling and copy&pasting the variables by hand. I was wondering if there is a way to extract these variables by analysing the bytecode using c++ for instance.

View 1 Replies

Flex :: 4 - Scroll Flex Spark Datagroup To Maximum Amount Programmatically

Jul 6, 2011

I have a spark skinnable component which contains a datagroup with images. The datagroup is scrolled by hovering the mouse over it. Everything works fine except one thing: after I change the datagroup provider, I need to scroll down automatically. The problem is the images are not loaded immediately after I set the provider so (contentHeight - height) does not yet represent the actual maximum scrolling position. Is there an easy way of telling the datagroup to scroll down as its content loads? Because the workaround seems to be not so straightforward. This is the code for scrolling(thumbnailStrip is my datagroup):

[Code]...

View 1 Replies

Flash :: Extracting Image From Swf File?

Feb 25, 2012

I have a flash object (with an swf extension). The flash object contains an image which I need to extract and use instead of the swf file..especially for devices not supporting flash. How can we extract the image from an swf (flash) file? what tools can I use?

View 2 Replies

ActionScript 2.0 :: [fmx] Extracting From A Flash File?

Mar 29, 2004

I was wondering if there is an easy way to get just the actionscript out of a flash file apart from decompiling it, as you loose a lot from doing it this way...I also dont have the time to manually rip it out in chunks.

View 3 Replies

Flex :: Flex - Programmatically Close A DateField Component?

Oct 17, 2010

I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most other components do.

How would you go about implementing such behavior? I can listen to keydown == escape on the TextInput portion, but just realized that I don't know how to tell dateField to give up focus and politely close - in fact I'm not even sure that's the right strategy (maybe I should work at the DataGrid level?

View 1 Replies

Flash :: Php - Extracting SWF Gives Compiler Errors In Adobe CS4

Apr 24, 2010

I have been given an SWF to edit a link in the AS code. The fact is the SWF uses some XML that is generated (actually retrieved) by PHP code from a database. menuXML.load("/sub/page/dynamic.php?genre=" + genre); so the point is we can use the same SWF 'mainfraim' and fill them with different animations/sources based on the link provided in dynamic.php?genre=### Now, I've used Flash Decompiler Gold to extract all files in the SWF and can open it again in Adobe Flash to edit it. When done I enter CTRL+ENTER and there are immediately 4 compiler errors!! Errors:

1x < Unexpected 'if' encountered >
2x < Statement block must be terminated by '}' >
1x < Ecpected a field name after '.' operator. >

How can these errors be present, when the original SWF works perfectly??! If I don't manage to solve this, I'll have to find out how to create an .php file the SWF tries to use which can select the proper resources (from a database I guess) to show them (using ?genre=###)

View 1 Replies

Actionscript :: Extracting From .fla File, Without Adobe Flash

Apr 6, 2011

I'm using MTASC's haXe to compile SWF from AS. Considering I don't have Adobe CS, what are our options to extract the action scripts from any FLA file?

I mean different versions, like CS4, CS5, etc. Converting older versions to CS5

View 1 Replies

Flex :: Programmatically Load Images In It?

Dec 7, 2009

I need to load several images as Bitmap or BitmapData objects. The images are hosted outside the Flex project, and they're referenced by an external configuration file, so I can't embed them. Because the images won't be displayed directly to the user (they're being added to a PDF that is generated for download), creating a grouping of Image objects, attaching them to the application, and waiting for their LoadComplete handler to fire seems inefficient.

What is the best way to load these images into an application? Programatically load images in it?

View 1 Replies

Flex :: Multiple Selection Programmatically?

Mar 17, 2010

I have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Programm. I'm wondering, whether I can programmatically select some rows depending only on code?

View 1 Replies

Actionscript :: FLEX Add Stroke Programmatically

May 4, 2010

how can I assign the stroke to my LineSeries, programmatically in Actionscript ?<mx:LineSeries stroke="{new Stroke(0xCC33CC, 2)}"/>How is it in Actionscript? LineSeries.stroke doesn't exist

View 2 Replies

Flex :: Programmatically Add Views To A Viewstack

Jun 10, 2010

I'm trying to figure out how to in as3 (not mxml) add views to a view stack.For example I have a view component like so[code]I've being trying to add it to a viewstack in the following way.[code]I'm aware I have to assign ID's but for now I just want to get the view in there

View 2 Replies

Flex :: Programmatically Close An AIR Application?

Feb 17, 2011

I would like to know the correct way to close an AIR application programmatically. In my Spark WindowedApplication I have:this.addEventListener( Event.CLOSING, shutdownApp );and of course an implementation of the shutdownApp method (which basically tidies up temporary files).his works fine for the top-right close button of the window. However I also have functionality which needs to shutdown the application. Within the code I have called:NativeApplication.nativeApplication.exit();However this doesn't trigger the Event.CLOSING method, and so my temporary files are not cleared up. Should I not be calling nativeApplication.exit ? If so, what should I call instead? I'd rather not have to call my shutdownApp method before the NativeApplication.exit() as this doesn't feel quite so elegant.

View 2 Replies

Flex :: Write A DataGrid Programmatically?

Aug 10, 2011

I have this code but I am trying to convert this to actionscript so I render this programaticaly but I failed. how do i write this on AS?

<mx:DataGrid allowMultipleSelection="true" id="dg_disk" dataProvider="{people}" height="100%" width="100%" selectedIndex="0" x="50" y="50">
<mx:columns>
<mx:DataGridColumn dataField="name"

[Code]...

View 5 Replies

Actionscript 3 :: Add A Flex Skin Programmatically?

Sep 2, 2011

I have various components that are skinned through a programmatic skin. The skin class references a singleton class that holds various colors to be applied to different aspects of the component. The singleton class has default colors set to variations of black/grey etc. I'm loading in custom colors from an XML file that are then loaded into the singleton. I'm applying the custom skin through a css stylesheet that is included in the main Application mxml.

The problem is that when the swf initially loads, the components that are drawn on screen are black and don't reflect the changes in color loaded from the XML file. I have some dropdown windows that show on button clicks and those dropdowns do reflect the correct colors from the XML file. Therefore, the system is working correctly, but the initial drawing of components obviously happens before the XML is loaded and applied to the singleton.

My question is, is there a way to apply a skin to an element programmatically by calling the constructor?

I have this in my css file:

.PanControlsBackground {
borderSkin:ClassReference('skins.buttons.PanControlsBackground');
}

[Code]....

or something to that effect? This way, I can remove the loading of the skins in the css file and control when they are instantiated to ensure that the correct colors are applied before displaying the various components.

View 1 Replies

Flex :: Programmatically Add A Set Of Controls With Some Amount Of Pixels Between Them?

Nov 8, 2009

I need to programmatically add a set of controls with some amount of pixels between them. I can't seem to find how to do this in the Flex docs.

View 4 Replies







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