ActionScript 2.0 :: Put Together A Class For Playing Video Using The Video Object?

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


Similar Posts:


ActionScript 3.0 :: Make A Video Class So Can Put In Src And Video Dimensions To Load Up A Video

Oct 13, 2011

Im trying to make a video class so I can put in my src and video dimensions to load up a video .. I am wishing to implement this in the following way

[Code]...

View 2 Replies

ActionScript 3.0 :: Remove Object When Video Is Playing

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

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

ActionScript 2.0 :: Preloaded Video Already Starts Playing While Preloading (at About 30%), But Without Showing The Video?

May 2, 2005

I've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:

Code:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");[code].....

View 6 Replies

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

Jun 2, 2010

I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.

View 3 Replies

Actionscript 2.0 :: How To Detect When Video Finished Playing To Play Next Video

May 31, 2010

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();

[code]....

View 1 Replies

Actionscript 2.0 :: Detect When Video Finished Playing, To Play Next Video?

Aug 17, 2009

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();

[Code]....

View 1 Replies

ActionScript 3.0 :: Video Buttons Not Work Unless Video Playing

Jan 20, 2010

I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.

Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....

View 15 Replies

ActionScript 3.0 :: EventDispatcher Class To Dispatch A Custom Event To Stop A Video From Playing

Nov 11, 2009

I am trying to work with the EventDispatcher class to dispatch a custom event to stop a video from playing. The video plays inside a MovieClip with an attached class file called PlayerProfile. I want the video in the PlayerProfile MovieClip to stop playing when the user clicks on another MovieClip called ScrollBox. I'm getting no compile or runtime erros, but the code is not stopping the video. I have seen use of a public static constant to represent the custom event. Is that what I am missing here.

[Code]...

View 1 Replies

ActionScript 3.0 :: MaintainAspectRatio Using The Video Class Object

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

Java :: Youtube Keep Flash Video Playing / When Go To Users Profile Page From Video Page?

Aug 31, 2011

In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash. Does anyone how Youtube accomplishes this? I would like to know if it's possible to keep the flash state of a site constant while moving from page to page on a site.It doesn't seem as if the flash is reloading, so I don't think that they are just saving cookies for the current video time and starting the video at that point when they refresh.I would assume that they're using ajax, but the application of this feature is really clean. The URL gets correctly changed to the users' profile page's URL. The back button still works as it should. (I can press back and forward between video page and user profile page and the video continues going clean and never drops.)

View 2 Replies

ActionScript 3.0 :: Video Playback - 60 Seconds Video To Start Playing After 40 Seconds Have Been Downloaded

Jul 19, 2010

1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.

2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)

View 2 Replies

ActionScript 2.0 :: Video Player That Functions Off Of The Video Class?

Mar 29, 2010

I pose this question to you. I have created a video player that functions off of the Video Class, netConnection and NetStream and up until this very moment works 100% as it should.The hang up I'm getting is that I have a onMetaData function that checks ALL of the flv's or f4v's metadata as it is loaded into the player, so i can use it to control some other elements of the player. Here is the code I am using:

Code:
my_ns.onMetaData = function (md:Object) {
for (propName:String in md){;

[code].....

View 0 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

ActionScript 3.0 :: Flash Video Sites - Add Video And Resize The Video Acoording To The Page Size

Aug 18, 2011

Recently i have visited so many video enriched flash site like this one [URL] Most of them shows video in full size. I downloaded the video using FF plugin. Video framesize is very small compared to the stage size. When i tried to add video and resize the video acoording to the page size , it slows the browser. I tried to embed the flv inside an swf and loaded the swf using normal loader and plyed it.. but the quallity and performance comapred to these site is very low..

View 3 Replies

ActionScript 3.0 :: Video Loop - Made A Video In After Effect And Export It To Flash As A FLV Video

Dec 18, 2010

I made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code

[Code]...

View 1 Replies

CS3 Best Way Of Playing Video?

Apr 20, 2009

not got my earlier problem sorted yet (about the title contuing to loop) but have another question now! ive managed to get an audio clip into my page complete with play and stop buttons. the audio is dynamically loaded

id like to put video in and have an flv video to use. id like to dynamically load it so keep the overall file size down and have navigation buttons for the user using actionscript 3 but not sure how to do this. looked around online and getting increasingly furstrated!

View 4 Replies

Swf In Flv Not Stopping, Video Keeps Playing?

Jun 4, 2010

I'm making a basic flash website, and have already created the site structure, but I'm having trouble adding FLV and SWF, as they aren't responding as I would like.

1) I have built a basic flash photo gallery, and it works great. I have exported the SWF, but when I add that to my main sites keyframe, it plays non stop, and the buttons on that embedded SWF don't work.

2) After adding a FLV video to a keyframe, it works as I would like. Except that when I click to another keyframe after starting the video, it keeps playing. How would I be able to pause/stop the video if a navigation button to other keyframes are clicked.

View 1 Replies

Professional :: Swf Video Not Playing?

Jan 19, 2010

I created a video player (flvplayer component) and have one video as the source.  I've had CS4 create the html and embed the video.  Locally the video plays fine, however once loaded on the server the player's skin and button show up but not the video.  The service provider said that they allow flash and have the MI

View 2 Replies

Professional :: Video Not Playing On .swf?

Jun 21, 2010

I imported a video to my FLA (cs4), and added a playhead. On my local machine the video plays fine , but when emailed to someone to test, the page with the video displays only a blank spot. Also , on my local, I have a home page, and link for video, when I do click to videos, that works, but if I click home button I made, the video sounds keeps playing. I guess making the video display would be first priority, then the make it stop when not on the page containing it would be 2nd,

View 12 Replies

ActionScript 3.0 :: Video Not Playing When Run Swf?

Dec 12, 2010

I have some video that I uploaded and when i test movie it doesnt work.  At first i had two videos on one frame and then i move one to a different layer.  Initially when i uploaded them they both worked until i changed the parameters (auto play).  but on the 3 frames in which I have the videos; the ones on the top doesnt play and the ones on the bottom plays.

View 4 Replies

Professional :: Playing A FLV Video?

Nov 28, 2011

I'm using Flash CS4.I just dropped an FLV file into my document and tested it.What asctionscript can I use to get it to not autoplay?Instead I would like to place the words "Click Here to play video" on top of the video so that when the user clicks on the text the video then begins to play.

View 2 Replies

Actionscript 3.0 :: Mp4 Video Not Playing?

Sep 17, 2010

I have an mp4 video, not sure the specific encoding outside of that, that I'm trying to play in a flvplayback component. I can get the audio to play, but for some reason there is no video. I've tried simply attaching it to the component and I've tried using a Video object and attaching a net_stream with the video in AS3. Same result. How do I fix that? If it's an encoding issue, how do I figure out what the encoding is and what software do I need to fix it?

View 1 Replies

IDE :: Fullscreen Playing Video Only?

Oct 20, 2009

I'm using the normal

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;

and it's just fullscreening the video part of my swf, not the entire swf.

View 6 Replies

Load A Video Into A Video At Certain Cue Points Along The Main Video?

May 31, 2009

I would like to load a video into a video at certain cue points along the main video.  Does anyone know how to do that?

View 20 Replies

ActionScript 3.0 :: Stop A Video From Playing?

Dec 8, 2009

i have a simple website i'm building. 4 sections/nav buttons. on the main homepage a video automatically starts playing, but when you click on another nav button which takes you to another frame in the site that displays another section - the video from the first homepage section is still playing.here's the code i'm using on the buttons that go from one section to the next:

Quote:

home.addEventListener(MouseEvent.MOUSE_DOWN, homeNav);
function homeNav(event:MouseEvent):void {
gotoAndPlay("home");
}

[code]....

what do i need to do so that the video stops playing when you go to another section from the homepage/section?

View 5 Replies

AS3 - Stop Video Playing In Same Timeline?

Dec 8, 2009

I've just posted a reply in the ActionScript3 Forum as someone else has had the same problem, but I can't find a solution so posting again here as it's taken me about 5 hours of getting nowhere and I'm sure this is really easy... have one frame on my time line called "theatre" and another called "Video" the buttons between the two work but the video continues to play in the background when I go back to the "theatre" frame on the same time line and I can't find a stop function that will work A button on my main page links to Video on the timeline with following AS3

btnVid.addEventListener(MouseEvent.CLICK, clickbtnVid);
function clickbtnVid(event:Event) :void {
gotoAndStop("Video");

[code]....

View 2 Replies

ActionScript 3.0 :: Playing .mov Video With FlvPlayback

Apr 22, 2009

I have some .mov files I need to play with the flvPlayback component. When I had them in my actionscript it does not work. I've read allot and it says that the component will play mov video but it does not for me.
 
I am running CS4 with FlashPlayer 10 and AS3.

View 1 Replies

My Video Refuses To Stop Playing

May 25, 2009

1) I'm on the portfolio page, and I click a button to load a video.

2) Let's say I change my mind and press "back" button BEFORE the video has a chance to load completely.

3) I am back at the portfolio page. Everything looks okay BUT the video eventually loads. I can't get rid of it if I remain on the portfolio page.

View 7 Replies







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