ActionScript 3.0 :: Stopping Streaming Video With Cue Points?

May 20, 2009

All i want to do is make a video streaming in a video object to stop on a cue point, and play from abother when a button is pushed. It's relatively simple, right? Wrong. Over a hundred $s in how-to books and several hours wasted searching online later and I have nothing. I have checked and re-checked the cuepoints are correct (i made them in flash video encoder CS3) and tried just about everything as far as AS is concerned. Here is my latest attempt: (obmintro is the player instance name, i have the rtmp info in source under player parameters and it plays fine)
 
import fl.video.MetadataEvent;obmintro.addEventListener(MetadataEvent.CUE_POINT, cp_listener);function cp_listener(eventObject:Object):void{if (eventObject.object.name == "site_end");{  obmintro.pause();
//i have also used stop, stop("obmintro"); and i don't even know what else.}}

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Play Few Frames Of A Movie In Reverse But Stopping At Set Points

Feb 11, 2010

I'm very new to flash and even though i'm capable of using the search function and finding posts which look relevant i don't really understand them, most notably i am only familiar with controlling a movie clip with buttons within the movie clip symbol and i get confused by actionscript that seems to do otherwise.

Within a frame on my main stage i have a movie clip symbol of around 125 frames. To control this movie clip symbol i have 4 button symbols within the movie clip symbol. The actionscript code that runs throughout this movie looks like this[code]...

This leads to free frame by frame navigation using the buttons forward_btn and backward_btn and if you'd like to move to set points in the animation you can use the fastforward_btn which plays the movie clip forwards until it hits a stop command on one of my chosen frames.

What i'd like to do is have a button that plays the frames backwards until it hits these frames. Is there a combination of while loops and prevFrame() i can use or anything straight forward?

View 1 Replies

ActionScript 2.0 :: [CS4] UnloadMovie Not Stopping Sound From Streaming?

Jan 8, 2010

I'm new and I've got a problem I've been trying to fix for a couple days and haven't been able to.I am loading youtube videos in to movie clips with actionscript on a frame:

this.video_mc1.loadMovie ("http://www.youtube.com/v/URL");
this.video_mc2.loadMovie ("http://www.youtube.com/v/URL");
this.video_mc3.loadMovie ("http://www.youtube.com/v/URL");

[code]....

View 2 Replies

ActionScript 3.0 :: Stopping Audio Streaming Inside A Layer?

Oct 8, 2009

Sometimes I get ahead of myself and have to stop and say how the hell did I do this before?'m referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping. But how do I stop audio that is streaming inside a layer from a button ?

d(new URLRequest("yoursoundfile.mp3"));var my_channel:SoundChannel = new SoundChannel();//2.play_btn.addEventListener(MouseEvent.CLICK, playSound);stop_btn.addEventListener(MouseEvent.CLICK, stopSound);//3.function

[code].....

View 3 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

Media Server :: Streaming Video Live With A Video Camera?

Sep 17, 2009

I am looking to broadcast live video and need a camera that is better than a simple webcam. It looks like they used to make video cameras that would register as webcams, but stopped making them.If you wanted to broadcast an event live, what would be a good camera to use?

View 5 Replies

ActionScript 3.0 :: Streaming Flash Video And The Dimension Of The Video Is 1280 By 720?

Apr 10, 2011

I am streaming flash video and the dimension of the video is 1280 by 720 (same size as the stage)
 
but just before the video streams, there is a quick flash of the video (about 320px by 240px) at the top corner of the stage, and then it plays the videos at the correct size (which is 1280 by 720)  .... a quick flash is the best way I can explain it.
 
This is my code:
 
function clicked(event:MouseEvent):void {
var video:Video = new Video();
addChild(video);

[Code]....
 
is there anyway I can stop that quick flash of the video .... so when I click on the button, it just plays the video, at the correct size?

View 4 Replies

Flash :: Play Smooth Streaming Video From Iis 7 For A Video Player?

Jun 10, 2011

I want to play smooth streaming video from IIS using the flash video player like e.g. jw flash player instead of silverlight player?Which video format should I use in this case? Can flash then play e.g a video via smooth streming encoded with microsoft encoder?Do you know some alternative video players, that combines flash and silverlight functionality (selected per java script) to use with flash and silverlight?

View 1 Replies

ActionScript 2.0 :: Streaming Video - Change The Location Of The Video Without Flash?

Jan 30, 2004

I am trying to make a flash movie and have it find a external movie to show. I also need to be able to change the location of the video without flash, so I think I have to use a seperate .as file.

View 6 Replies

IDE :: Video Streaming - Loaded An External Video With Playback Component?

Feb 18, 2010

I have loaded an external video with playback component in Flash CS4.

Now the question is do I need to add streaming script or not?

View 2 Replies

Flash :: Video Player For Video Streaming?

Oct 31, 2010

I need a flash video player for our public site where users will share videos.The video usage model is similar to youtube as far as video part is concerned.Users will upload and share videos. Users will browse and play all shared videos as well.The videos will be streamed from the server and our app is a .NET/C#/JQuery application.We have 3 options:

1) Either buy a commercial flash player

2) Customize a open source player or use free player and customize its gui

3) Develop our own (time consuming and last resort)

I am required to find a flash video player with these requirements:

Player should work in all major browsers (IE, FF, Chrome, Safari)

Player should have way to inject Advertisement clips when playing a video file

Light weight and easy to integrate

Must support streaming and scale

Plus all other basic features of a flash video player.

View 1 Replies

Flash :: Video Player For Video Streaming ?

Apr 11, 2011

Possible Duplicate: Flash video player for video streaming.is there any good and open-source video player to be embed in as3, no flex, html, and js.i tried

f4player.org

https:[url]....but i found tons of bugs,if you know any comercial player, that would be awesome too.

View 1 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

Starting And Stopping Video And MP3

Aug 5, 2009

I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline?

View 6 Replies

Professional :: Video.swf Not Stopping?

Mar 22, 2011

In my website design. I have a swf video that doesn't stop when i go to another page in my website. How can I fix this?

View 13 Replies

Stopping Video Component Playback?

May 20, 2009

I have a frame where I have added an flv playback component to play a flv file. Everything plays fine, but when I test the file and navagate away from the frame that the playback component is on, the video continues playing.
 
Is there any way to get the video to stop when the user navigates away from the frame? I'm sure this could be done if I add the video using AS 3.0 (that is what the navigation of the site is coded with).

View 2 Replies

ActionScript 3.0 :: Stopping Video From External SWF?

Jul 2, 2009

I'm building a flash web site and I'm loading external SWF files to a main SWF. One of these external SWF loads videos using a FLVPlayback Component. The problem I have is when a video is playing and you press another link in the main SWF the other section loads but the video keeps playing in the background, eventhough every time a load a new external SWF I use the unload() method to unload the previous SWF.

View 3 Replies

ActionScript 3.0 :: Stopping Sound From Video?

Sep 22, 2009

In my website i have some videos. When i import the video.swf to my main swf. everything works fine. But if i navigate away from the video part the video goes away but the sound keeps playing.

I dont want to use the flash.media.SoundMixer.stopAll() function becasue i have a jukebox player that i want to work inbetween. and dotn want it to stop when you navigate the menu. It only stops when you go to Videos.

Here is the code i use:

var image:Loader = new Loader();
addChild(image);
image.x = 95;

[Code]......

What can i put in the news button to make the sound from the video stop.

View 7 Replies

ActionScript 3.0 :: Cue Points In Video In External SWF?

Jan 26, 2012

I have a video that is playing in an FLVplayback Component, inside of a MovieClip. I have a cue point in the video about half way through, that triggers a seperate MovieClip (on the Parent timeline). This worked perfectly until I removed the Parent MovieClip, and made it an External SWF. Now the cue point triggers this in the Output window:

Code:
ArgumentError: Error #2109: Frame label head_fade not found in scene head_fade.
at flash.display::MovieClip/gotoAndPlay()
at M_fla::head_intro_7/fl_CuePointHandler()
at flash.events::EventDispatcher/dispatchEventFunction()

[Code]....

Do i have to do anything different now that this is in an external file.

View 3 Replies

ActionScript 2.0 :: Navigate To Certain Points In A FLV Video?

Jan 11, 2008

I'm currenlty working on a Flash project where I need to navigate to certain points in an FLV video. I've worked a little with FLV before, and I've worked with cuepoints to trigger other actions/events in Flash, but what I'm looking to do here is when certain events happen in Flash (could be as simple as someone clicking on a button) I need the video to jump to a certain point.

My first thought was to set actionscript cuepoints then have the events in Flash make the video go to those cuepoints, but I can't seem to find any information how to do that. All the information on cuepoints I've been able to dig up talk about using the cuepoints in the video to trigger other actions, not vice-versa.

View 4 Replies

ActionScript 3.0 :: Stopping Video On Frame Exit?

Mar 8, 2009

I'm using Flash CS4, and all the actionscript so far has been Actionscript 3. I have some videos in my project -- this is being exported as an exe for cd distribution, rather than a website thing. So each video is wrapped inside a movie clip, which is wrapped inside another movie clip that deals with playing/pausing it, which is wrapped inside another movie clip that gives scrollbox functionality, which is placed on the stage. On the main timeline is a keyframe every frame, each of which has a stop() action, so that each frame is essentially a different "page" and you can navigate between these with menu buttons which call gotoAndStop().

The problem is, if the video is playing when you click a button to navigate to another frame, it continues playing even though it's no longer on the screen. You can hear the audio in the background. In addition to this, if you navigate to a frame four frames ahead, and each of the frames in between has a video, all those videos will start playing in the background as well.

I want to make sure that when you are on a particular frame the only video which will play is the video on that frame. If there is no video on that frame, no video should play. I was hoping that I could just catch the moment when you move away from the frame and call stop() on the video there, but I can't seem to catch that point. The FRAME_EXIT event seems to catch the end of the render loop or something so that it happens every time it draws the frame, rather than when you actually leave the frame and move to another one. In addition, I'm not sure catching the point where you move past a frame would help the problem with videos from in-between frames being started, as those frames are never entered so presumably never exited either.

View 2 Replies

ActionScript 2.0 :: Stopping Video When Clicking Away From Page?

Dec 23, 2009

Ok so i have a video on my page which plays automatically when the user goes on the pageWhat i want to happen is when the user clicks a button away from the page, the video and the sound all stop so it can't be heard in the background.Other pages have videos on, therefore can't use stopallsounds.

View 2 Replies

ActionScript 1/2 :: Opening A Form And Stopping A Video

Mar 1, 2011

I have a button on a page with a video running.  i want the button to open an html form I have already set up and i want the video to stop playing.  i tried this code and it achieves  neither objective.

my code on the button:

on (press) {
}
stopAllSounds();
getURL(become_member.html);

View 3 Replies

ActionScript 3.0 :: Stopping Video From Taking Over Fullscreen?

Jun 30, 2009

I have a main flash file that loads in a second swf. In the second swf I have two movieclips that have been exported as "vidplayer" and "vidplayer2" in the linkage.Each of these movieclips contain an FLVplayback component which automatically plays when the movieclips load. The movieclips are triggered by a .as file which is linked to the document class of the second swf.Anyway, the problem I am having is that I would like to put in a fullscreen button into my main flash file. When I click the fullscreen button, the video that is playing takes over the whole screen and all of the other graphics disappear. I would like the whole flash file to become fullscreen and not just the video.

After searching for a while I found that you can put in: FLVplayback.fullScreenTakeOver = false; (where " FLVplayback" would be the instance name of the FLVplayback component that is playing the video), to stop the video from taking over.My problem is that since my FLVplayback component is part of another SWF that is loaded in, and it's also part of two different linked movieClips that are controlled by a .as file. I don't know what instance name to give my FLVplayback components.

View 0 Replies

ActionScript 2.0 :: Stopping Embedded Video In Flash

Jan 28, 2010

I have three (youtube) videos embedded in Flash. Every time a new video is a loaded, the sound video from the old video continues to play. I have tried using removeMovieClip(); and I have tried stopAllSounds(); I have tried 'delete video_mc'. Nothing seems to work!

Here is my script:
ActionScript Code:
// Video Script
// Default - We'd Drink
// show this video on load
showDefault();
videoBtn1.onRelease = showDefault;
function showDefault(){
[Code] .....

View 2 Replies

ActionScript 3.0 :: Stopping Sound From An Intro Video

Jan 18, 2011

I'm new to actionscript, and don't understand the basics of the code's structure, but I've looked around a bit on here, and unless I'm missing it, I can't find how to stop a sound on the timeline. I'm using CS5, and the flash file is version 10 with AS 3.0.My website has an intro video that lasts for 16 sec with sound for all 16 seconds. I have a link to skip the intro, but when i click the link, and the time line advances to the frame that i've specified after the intro, the sound continues to play until all 16 seconds are finished.I've seen how to stop all sounds with the SoundMixer, but after the intro, I have another 2 second sound that plays as the buttons for my main links come flying into the stage. So I dont want to turn that sound off as well.here is to target the intro sound file (which i've placed in a movie clip) in the SoundMixer volume variable, but I don't know how to code that.

View 1 Replies

Actionscript 3.0 :: Stopping Video That Is Played In External SWF

Jul 27, 2009

I'm having a major problem stopping video that is played in an external SWF. I've added the external SWF file via the addChild method. However, when I remove it the video's audio keeps playing. The only other solution if I can't figure it out is rebuilding the site in AS2.

View 7 Replies

ActionScript 3.0 :: Stop(); Is Stopping Background Video

Mar 18, 2012

[URL]

The picture explains my dilemma. I really want my BGvideo layer (which is an animated looping footage for the background) to be independent from the actions that I have put in to stop my button animations.

View 2 Replies

Media Server :: Flash Video Streaming With "fall Forward" To HTML5 Video For Mobile Only

Jul 19, 2010

I'm looking to duplicate the video-embedding technique shown on [URL], whereby they show the flash video to all platforms where flash is available, and only show the HTML5 player on mobile devices. (specifically, iphone / ipad)
 
Is there a browser-sniffing framework, or some other method available to accomplish this?

View 2 Replies

ActionScript 3.0 :: Playing To Video Cue Points With Easing?

Feb 12, 2010

I have a few questions about cue points that I can't answer with my Google skills. Firstly, I am looking into using navigation cue points for playback of an FLV in my Flash project. But the seektocuepoint functions don't seem to play to the cue point, they just skip ahead. I want to actually play through to the actual cue point in the video. Is there a way to do this?

Secondly, I noticed that you can't play FLVs in reverse.

And lastly, is there a way to implement easing when playing and stopping FLVs? I know this sounds odd, but it would sort of be like dropping the playback rate to half just before stopping. Is this possible?

View 1 Replies







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