Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 644407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:23:15+00:00 2026-05-13T21:23:15+00:00

I want to build a component, where the user can play a video in

  • 0

I want to build a component, where the user can play a video in a Flex Spark VideoDisplay. There will be a button and whenever the button is pressed, I want to save the current time of the VideoDisplay plus a screenshot. The screenshot needs to be someway saved, because I want to display all times and screenshots in a DataGrid (screenshots should appear when the user hovers a time in the DataGrid).

So, how can I take screenshots of the Spark VideoDisplay and save/display them?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:23:15+00:00Added an answer on May 13, 2026 at 9:23 pm

    You can take snapshots a few ways, this way just uses the ImageSnapshot class, but you could do it by manually drawing the bitmap of the video display if you’d like. Here’s a sample:

    Renderer

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer 
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        width="100" height="100" creationComplete="trace(data)">
    
        <mx:Image source="{this.data}" width="100%" height="100%"/>
    
    </s:ItemRenderer>
    

    Sample App

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">
    
        <fx:Script>
            <![CDATA[
    
                import mx.graphics.ImageSnapshot;
    
                public function takeSnapshot():void
                {
                    var snapshot:BitmapData = ImageSnapshot.captureBitmapData(videoDisplay);
                    var bitmap:Bitmap = new Bitmap(snapshot);
                    list.dataProvider.addItem(bitmap);
                }
            ]]>
        </fx:Script>
    
        <s:layout>
            <s:VerticalLayout horizontalAlign="center"/>
        </s:layout>
    
        <s:VideoDisplay id="videoDisplay"
            source="video.mov"
            width="400" height="300"/>
    
        <s:Button id="button" click="takeSnapshot()"/>
    
        <s:List id="list" horizontalCenter="0" width="100%" itemRenderer="SnapshotRenderer">
            <s:dataProvider>
                <mx:ArrayList/>
            </s:dataProvider>
            <s:layout>
                <s:TileLayout/>
            </s:layout>
        </s:List>
    </s:Application>
    

    To accomplish exactly what you were describing (take snapshot and save snapshot), you could store those in an array in that takeSnapshot method, or you could loop through the list.dataProvider do get the bitmaps. Then you’d just need to pass them to a backend language (ruby, python, php…) to save.

    Hope that helps,
    Lance

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build flash application that can detect the user eyes color and
i want to build a component that will be able to show a integer
i want to build a screen for user to get his marks on competitions,
I want to build a form_tag that will allow me to post a new
I want to build a basic Client-Server application, where my android smartphone can stream
I am pretty new to JSF, and want to build a composite-component that would
I want to build a client-server architecture software, and I want the server component
i want to build a composite component already holding some buttons with the possibility
hope you can help me, again :) i want to build a little webbased
I would like to build a calendar 'component' for my website. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.