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

  • SEARCH
  • Home
  • 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 8300945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:45:04+00:00 2026-06-08T16:45:04+00:00

I am using Eclipse Helios to build the flash using MXML file.I am currently

  • 0

I am using Eclipse Helios to build the flash using MXML file.I am currently displaying a video in my flash.What i want is that when i double click on the video then an event has to occur,but unfortunately i am unable to get the double click event of the video on my web page.Here is my mxml code:

 <?xml version="1.0"?>
<!-- Publish Stream mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="Initialize();" 
        layout="absolute" paddingLeft="0" paddingTop="0" paddingBottom="0"
        paddingRight="0" >

    <!-- Script for PublishStream -->
    <mx:UIComponent  id="uiComp" visible="true" doubleClickEnabled="true" mouseEnabled="true"/>

    <mx:Script source="test.as"></mx:Script>
</mx:Application>

here is my as file code:

import mx.controls.Alert;
import flash.net.NetStream;
import flash.net.NetConnection;


private var _video           : Video;
private var _serverName      : String;
private var _connection      : NetConnection;
private var _stream          : NetStream;


public function Initialize():void
{
    _connection = new NetConnection();
    _connection.client = { onBWDone: function():void{ /*Alert.show('onBWDone', 'Alert Box', mx.controls.Alert.OK); */} };
    _connection.objectEncoding = flash.net.ObjectEncoding.AMF0;

    _connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    _connection.connect("server");
    Alert.show("Initialise", 'Alert Box', mx.controls.Alert.OK);
}

//Status event handler
public function netStatusHandler(event:NetStatusEvent):void 
{  
    Alert.show("hanlder", 'Alert Box', mx.controls.Alert.OK);
    _stream = new NetStream(_connection);
    _video = new Video();
    _video.doubleClickEnabled = true;
    _video.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler);
    _video.attachNetStream(_stream);
     _stream.play("FlickAnimation.flv");
     uiComp.addChild(_video);
}

private function doubleClickHandler(event:MouseEvent):void
{
   Alert.show("Double Clicked", 'Alert Box', mx.controls.Alert.OK);
}

Please tell me why i am not getting the double click of video ,or is there any other way to get the work around.Any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 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-06-08T16:45:07+00:00Added an answer on June 8, 2026 at 4:45 pm

    Your code shouldn’t compile to begin with. Video is not an interactive object and has no property with the name “doubleClickEnabled”. I.e. there is no way to handle any mouse or gesture events (not only double click) on video. What you want to do is to put some interactive object under or above the video so that it can handle clicks, or put video into a container, which is itself an interactive object.

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

Sidebar

Related Questions

I'm using Eclipse Helios on MacOSX. I'm PHP guy so i just want all
Using Eclipse Version: Helios Service Release 2 Build id: 20110218-0911 with Android plugin. I
I am using Eclipse Helios. Last days I am facing problem that Eclipse Helios
I am trying to build a dynamic web app using Eclipse Helios. I am
I want to create a simple web service in Eclipse (Helios J2EE), using Apache
I am using Eclipse IDE (Helios Version). As part of the build path, I
How to build an OSGi bundle that use Scala (2.9.1.RC3) with PDE (Eclipse Helios).
We are using: JSF 1.2-1.2_07-b03-FCS JSTL 1_1-mr2 (special build) Java 1.6.0_22-b04 Eclipse 3.6.0 (Helios)
I am using the Eclipse for PHP Helios build and developing extensions and templates
We will be using eclipse(Helios or Indigo) for multiuser environment for development. For this

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.