ActionScript 3.0 :: Clickable Object In Video?
Oct 30, 2009
I would like to make individual object / products/ persons clickable in a video. Coull is an example of such software. Does anybody have knowledge or resources how to do this? Can this be done in FLASH or FLEX. I would like to make a tool which can select certain objects in a movie, follow them and make them clickable.
View 4 Replies
Similar Posts:
Oct 13, 2011
How to add clickable video seekbar
when click on some area of the seek bar it should take the video seek to that position.[code]...
View 1 Replies
Sep 21, 2009
I have a layer of buttons and then on top i have this overlay that fades on at times.While that overlay is there all the buttons under it are still clickable and the cursor still changes to a hand. How can i make the buttons not clickable when there is an object on top of it?
View 1 Replies
Dec 31, 2010
I have added an on click event to a child object which is not always displayed Its pearent object also has on click events. There are two problems.
1) Whenever I click on the child object the pearents onclick behavior also runs. I do not want this to happen.
2)The child object can be clicked on even if i set its alpha to 0, or set its display property to false or send it to the back of the stage. This means its behavior can be invoked by the user even if it is not visiable I dont want the child object to be clickable when it is not dispayedI dont want the pearent object to be clickable through the child object
View 1 Replies
Jul 13, 2010
it is in fact MC created with duplicateMovieClip("ButtonTemplate", "Button1", this.getNextHighestDepth()); and on (press) event on it, so it acts as button. On clicking it, it moves playhead to a frame 10 where it should not exist while template button is placed on layer that has frames only 1-5 and it loads a MC that covers it and even has command
_root.coveringMC.swapDepths(_root.getNextHighestDe pth());
I still get "hand cursor" on hovering covered button and is still clickable?
View 5 Replies
Mar 12, 2009
I am trying to play a video dynamically and make it clickable as like a link.[code]The Video player seems to appear and the video plays well too but there is a problem with the onClick Event which doesnt work no matter what i try. the click action never seems to work..what am i doing wrong here.
View 3 Replies
Jul 30, 2011
I have a Video object which plays a video with an alpha channel. There are objects behind the Video object which I'd like to allow the user to interact with, so if someone mouses over the playing video nothing happens but if they mouse over objects in the background, something happens. Is this possible?
View 3 Replies
Jul 6, 2010
Alright I'm pretty sure I know what my problem is, but not sure how to fix it. I created a 50x50 grid of objects I want to be individually clickable using the following code to generate them:
[Code]...
I'm assuming this should work except for one issue, the above code is within another object that I have set to be able to clickdrag (so you can drag the whole map at once). Because of this, using "this.onMouseDown" seems to apply to the entire mapObject and gets the depth for each of the 2,000 some odd objects I've created. How do I set it up so that if I click on a nodeObject it gets the depth for just that and assigns it to a variable?
View 1 Replies
May 27, 2010
I've been trying to do as the client requested : redirect to campaign page then to destination page once a customer clicks on the top banner in swf format.If you are using Firefox, Chrome or Safari, I suspect you can reach the destination page.However, if you are using IE or Opera, I doubt it.I think to cause of such a weird problem is:The swf ojbects don't have a link to url, SO I have to hack the theme template file like this :
<div id="header">';
/*
* A quick and dirty way to put some swf into PHP, and rotate among them ...
[code].....
View 2 Replies
Aug 23, 2008
I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.
Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;
[code].....
I am getting the following error with this script.
Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.
View 3 Replies
Mar 26, 2012
I am creating an actionscript video player in Haxe and to avoid the asyncError I am trying to create a custom Object. How do I do this is Haxe? The client property specifies the object on which callback methods are invoked. The default object is the NetStream object being created. If you set the client property to another object, callback methods will be invoked on that other object. Here is my code.
public function new()
{
super();
[code].....
View 2 Replies
May 8, 2009
In as3, I've created my own video object to play an flv file. The code starts out something like this:[code]...I would like to attach a .swf skin for it but cannot find any examples on how to do it. All examples are instructions for adding code to a instance of the FLVPlayback object.My question is can you only attach skins to the FLVPlayback object?
View 4 Replies
Feb 9, 2010
I am trying to stream an FLV file into a Video object by attaching a netStream using attachNetStream(). This works fine for local files as well as downloading files from a different domain; however, I am trying to download an FLV from php file that sends these headers:
Content-Type: video/x-flv Content-Disposition: attachment; filename="video.flv"
The netStream object responds as though there is no problem, outputting:
NetStream.Play.StartNetStream.Buffer.FullNetStream.Buffer.FlushNetStream.Play.StopNetStream.Buffer.Empty
But The video does not play on the Video object. If I download the video from that php link and save it locally, then have the netStream load it from there, it works just fine.
Why is this happening? I was trying to use URLStream as a way around this, but I couldn't figure out a way to attach a URLStream to a Video.
View 3 Replies
May 25, 2010
I have placed a video object on top of a graphic that is a link to another site. Before the user clicks the button to activate the video, they can see my background graphic and use the link. After they play the video, the background graphic is no longer visible. Is there any way to get rid of the remnants of the video after it is played so picture and link are visible again?Here is my great code:
videowindowbutton.addEventListener(MouseEvent.CLICK, videowindowbuttonhandler);
var nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);myvideo.attachNetStream(ns);var listener:Object = new
[code]....
View 11 Replies
Jun 5, 2011
As simple a problem as the title says. I must be doing something really stupid. I've got a large section of a site, built a month ago runs fine. Went to make some changes. Now when I compile the video instantiantion fails. I've gone back to basics to test this problem out and it persists.So, here's my document class:package sections{import flash.display.MovieClip;import flash.media.Video;public class LocketVideo extends MovieClip{private var _vid:Video = new Video(200, 200);public function LocketVideo() {trace("hi there");}}}When I compile the swf I get the following error:/Projects/[omitted]/Src/sections LocketVideo.as, Line 9 1137: Incorrect number of arguments. Expected no more than 0.( line 9 is the _vid line )Now, if I pull out the parameters of the video object it works fine... well compiles fine. A video object without a size isn't much use. Note that if I don't set parameters... all other calls to the object fail.My first thought was that my default Flash classes got corrupted. Nope. Ran this compile on two other computers, same issue. Also thought maybe I had the fla set to the wrong .
View 3 Replies
Jun 5, 2011
I've got a large section of a site, built a month ago... runs fine. Went to make some changes. Now when I compile the video instantiation fails. I've gone back to basics to test this problem out and it persists.[code]...
View 1 Replies
Dec 14, 2007
I am creating a simple video player with the video object but I am using Flash Media Server. I can not figure out how to determine the completion of the FLV. Here is my code:
[Code]...
View 2 Replies
Jul 19, 2009
I've got a video with a black rectangle that moves, tilts and zooms...is there any way flash can match an object to that? (for example, if I want to put an image over the black box?? Is there any way to detect where objects are in a video from flash? I've seen some things with web cams where snow collects on people in the cam, etc. so there's got to be some way to "find" things.
View 3 Replies
May 14, 2009
I wrote an application that loads a FLV into a ByteArray object at runtime. Now I want to play this FLV into a Video object. The problem I have is that the Video object won't accept anything else than a NetStream (or a Camera) as its source, and I can't find a way to set an in-memory FLV as a NetStream's source for playing.
View 2 Replies
Feb 2, 2011
How do I maintain aspect ratio using the Video Class object "<media:Video id="video" />", not the VideoDisplay or FLVPlayback objects. I am using the Video Class object, Netstream and NetConnector, using LifeSize as my server, protocol is RTMP and the url is like: [URL]
Everything plays back fine and for the most part my code is like this:
videohost = "rtmp://my-IP-address/folder1/folder1a/";
vidUrl = "mp4:feed.mp4";
nc.connect(vidhost);
[Code].....
View 2 Replies
Apr 28, 2010
I embed a video in html page with swf file. that is running on local host but when i run this on live server. than it dosent work properly.I link flv video in swf file and embed it in html.
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','338','title','testing','src','Edit_video/9vi/home-page2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Edit_video/9vi/home-page2' ); //end AC code
[code]....
View 3 Replies
Jan 28, 2009
Is there a way to have a video object whatever the camera size is but have it displayed on the screen as a certain size? I cannot get the video object to stay a certain size...even if I put it in a movieclip.
View 1 Replies
Jun 18, 2009
I am doing video.attachNetstream(ns) in the videoContainer's parent movieclip. How do I access the netstream object of the video inside the container. Basically, I want something like this : video.getNetstream(). Does any equivalent exist?
View 0 Replies
Jul 6, 2010
I have a video player that is working great. What it does is it Buffers the video until enough of it has loaded that the playhead will not run into itself. That part works great, the issue I am having is there is a little message to let people know the video is buffering. The message is in a Dynamic textbox with an instance name of "loader" and a video with and instance name of "display".
Here is what I have, it just does not appear to be working.
Code:
loader.text = "Video Is Buffering for the Best Experience Possible, Please be Patient. Video Will Play On Its Own When Buffer is Equal To The Remaining Load Time";
if (display.Playing){
removeChild(loader);
}
What I want it to do is remove the loader text when the video is playing. They can play it manually or let the buffer do its thing. This does not seem to be working.
View 1 Replies
Aug 26, 2005
The only way I know how to create a video object for playing progressive FLV is by going to the libraby panel and clicking the context menu, then new Video, and dragging the video object to stage. But I would like to know if there is way to create a Video object with actionscript at runtime.
View 2 Replies
Mar 9, 2007
My question deals with adding a cuepoint in actionscript 3 using code. In flash 8, I made use of the FLVplayback component which included a method addASCuePoint(). In Actionscript 3, I am now using the standard method of creating a video object, except i can't figure out how to use actionscript to add a cuepoint. In the AS3 LiveDocs entry for NetStream , it list only event and navigation as cuepoint types. Previously there was a third type of cuepoint: actionscript.
Code:
public function LoadVideo(){
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var vid:Video = new Video(320, 240);
[Code] .....
I am guessing one option is to create an onEnterFrame function that compares the NetStream.time to each value in my cuepoint array, and then do a addEventListener(EventType.ENTER_FRAME, onEnterFrame); Although this might work it requires my application to loop through my cuepoint array every single frame, which isn't really efficient.
View 1 Replies
Nov 21, 2009
The thing is, this feels so basic, and Flash Developer Tool 3 is just giving me this nonsense error! I know, it's probably not really nonsense but... I want to create a simple video object and let it play a local flv. okay, here's the error:"call to a possible undefined method attachNetStream through through a reference with 'static' type Video"What does it means? Does it means the object Video is static, and it's not supposed to be? Or does it mean the attachNetStream is static? here's the function
Code:
private function showVideo(e:MouseEvent):void {
var videoConnection:NetConnection = new NetConnection();
[code].....
View 3 Replies
Jan 19, 2011
I have a video and I want to crop part of it and have it play somewhere else on the screen.
Is there a way to do this, possibly by overriding the draw function of flash.media.Video?
View 4 Replies
Feb 4, 2010
I'm trying to create a video player in AS3 that displays the player controls when the user hovers over the video, however I'm having a hard time getting the MOUSE_OVER event to fire. I've made sure that the video's index is at the top, so that's not the issue. Is there something I'm missing? Is there any reason why this event listener wouldn't work on a video object? video.addEventListener(MouseEvent.MOUSE_OVER, doThis);
View 2 Replies
Feb 7, 2010
What is the differences in use of these two objects? Which one should be used for a "Youtube-like" video player with a custom skin and playlist?
View 2 Replies