Stop FLV
I have a project that has multiple swf files for each of the
sections. One of my sections has some videos in it. When I start
playing a video and click on a button for the main menu (button
code is on the main menu page with addChild to place them on the
additional swf pages) the video keeps playing on the new page. I
don't want to hear the video on the different pages. I was
wandering if there is a way to stop the video player when I exit
the swf? Or are there any other ways to get the video to stop when
I go to a different section of my project.
I wish I had something solid for you. I can only tell you
what Ive done to brain storm because I have the same issue.I am
creating my digital portfolio in flash cs3. On one page i have 2
diferent imported movies that have audio. When I navigate away
from the movie the audio still plays. On the movie page there
are 6 buttons or choices to navigate away with. I can add a
robot_flv.stop(); code to stop one of the movies on one button.
Sometimes this works for a coupke times then I get errors. The
program wont let me code both movies at once. I thought a
conditional statement may be the
answer but Im unclear as to how to script it. I have pieces
of how that works. I think I get a error when both are coded to
stop because they are never both playing and a simple stop is not
enough. I have spent weeks trying to figure this out and I
desperately need help. Today a friend told me that Flash doesn't do
well when the movie is imported. He suggested I code it to remotely
link it with a url and add a component for control. I am trying
this tomorrow because Ive been all over the internet for weeks
looking for an answer and I have found nothing.
Similar Messages
-
How to play and stop flv files through NetStream in AIR Application
Hi,
In a folder I have 'n' number of flv file, which are DRM protected. when the user try to play those files for the first time through my AIR application, it will prompt for username and password and gets the license/voucher from the server and store it in AIR Runtime. so that from the next time onwords it won't prompt for username and password as because it already has license/voucher.
My problem is assume there are 500 files, such that for each file the user has to enter his credentials[username and password]. which is a stupid thing. I want to avoid this process by implementing this process internally/programetically. By playing/accessing each file through netstream from the folder and setDRMAuthenticationCredentials for that file and stop the stream. Here I am able to play each file but I am failed to stop it. I mean to say I will get the license for all the flv files internally[while loading my AIR application], such that user should not be interrupted for his credentials for each file.He should play as if he is accessing/playing a non-DRM protected file. I will be very thank full if any one help me out in this.
public function init():void {
connectStream();
getLicenseForAllFiles();
videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, drmAuthenticateEventHandler);
ppt_videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE, ppt_drmAuthenticateEventHandler);
private function getFilesRecursive(rootFolderPath:String):void {
//the current folder object
var currentFolder:File = new File(rootFolderPath);
//the current folder's file listing
var files:Array = currentFolder.getDirectoryListing();
//iterate and put files in the result and process the sub folders recursively
for (var f = 0; f < files.length; f++) {
if (files[f].isDirectory) {
if (files[f].name !="." && files[f].name !="..") {
//it's a directory
getFilesRecursive(files[f].nativePath);
} else {
//it's a file
fileList.push(files[f].nativePath);
//Alert.show(""+files[0].nativePath);
var fileName:String = files[f].name;
if(fileName.indexOf("PPT_")!=-1){
ppt_videoStream.play(files[f].nativePath);
ppt_videoStream.pause();
videoStream.play(files[f].nativePath);
videoStream.pause();
private function connectStream():void {
videoConnection = new NetConnection();
videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
videoConnection.connect(null);
ppt_videoConnection = new NetConnection();
ppt_videoConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ppt_videoConnection.connect(null);
videoStream = new NetStream(videoConnection);
videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
video.attachNetStream(videoStream);
ppt_videoStream = new NetStream(ppt_videoConnection);
ppt_videoStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ppt_video.attachNetStream(ppt_videoStream);
private function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success":
//connectStream();
break;
case "NetStream.Play.StreamNotFound":
trace("Unable to locate video: " + videoURL);
break;
private function drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
private function ppt_drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void {
ppt_videoStream.setDRMAuthenticationCredentials("adobe", "adobe", "drm");
Thanks
Sudheer PuppalaHi,
Please go through following links..this will help you:
http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/
http://forums.adobe.com/thread/753959
http://blog.unthinkmedia.com/2008/09/05/exporting-pdfs-in-flex-using-alivepdf/
Thanks and Regards,
Vibhuti Gosavi | [email protected] | www.infocepts.com -
Stop FLV from playing upon leaving frame.
Maybe someone has some insite on this before I open an artery. I have a timeline, seperated into sections. The navigation targets frame labels. On one of those keyframes there is a flv. When you play that video and then navigate to another frame without stopping the video, it continues to play. I've tried giving it an instance name and adding a stop action to it that resides in the button functions so when it navigtaes to another frame it would stop. However, when I click on any button and the movie is not currently playing, I get a error message that reads TypeError: Error #1009: Cannot access a property or method of a null object reference. I assume it is looking for something that is not currently there. It has been suggested that I use the SoundMixer.stopAll() but that removes any background music currently playing.
Do I need some kind of conditional statement that detects if the flv is currently playing?
Can FLV be controlled with a simple instancename.stop() ?
Dazed and confuseduse that instance name (eg, flv) and in the frame where flv exists, use:
flv.addEventListener(Event.REMOVED_FROM STAGE,f);
function f(e:Event):void{
flv.stop(); -
Hi
I have a video flv into videodispay and when the user click play and then stop button the flv continue to download in background, how can I stop the http progressive download ?
thanksIf you're using VideoDisplay as a video Object, you should not only stop the stream, but close it. (Simply by calling the close() function), That would determinate the stream.
-
Starting / stopping FLV's with buttons
Basically all I want to do is have a flv play, then stop...2
buttons come up and depending on which you click on, plays the
associated video. Kind of like a choice thing. Video plays ->
make choice 1 or 2, plays video 1 or 2.
Shoved the video in the timeline on the main layer.
Created a new layer. Put the text button on the last frame
that the video plays on.
Opened Actionscript on the keyframe of the button.
Added in
stop();
mybutton.onPress = function() {
gotoAndPlay(710);
710 is the frame on which i had the other video start, on a
seperate layer might I add.
However the result is .... movie plays .... briefly see
button flash....next video plays without me clicking the button :(
How do I go about making this happen?
Thanks,
- GoOsEonPress is not a function in as3. Also, you need to add the
script to a frame on the timeline. you need to add an event
listener to your button that calls upon a function to execute your
code.
mybutton.addEventListener(MouseEvent.CLICK, doSomething);
function doSomething(e:MouseEvent):void{
gotoAndPlay(710);
}; -
Stopping .flv when user exits frame
I know the solution to this is probably amazingly simple, but
I've had very little experience using video in flash.
I have a flash movie that allows the user to watch a video,
but can skip it by pressing a button, moving them to another frame.
The problem is, the video continues to play while the user is
on a different frame, and the user can hear the audio from the
video clip. Is there a way to stop the video when the play head
moves into a different frame?
I looked a the clear method, but that doesn't seem to do what
I'm looking for.
Any suggestions will be most appreciated.Not to be ungratful or anything, but the nature of this
problem is time sensitive. I really don't have time to watch an
eight part vid tutorial, otherwise I'd be doing so with my
Lynda.com account. Plus after downloading the .flv it won't play
after I've loaded it into a Flash file. Thanks tho Nick, this looks
like a resource I will be checking on in the future.
If anybody can just offer me a suggestion to my problem that
would be great. Much thanks. -
Stop FLV from auto loading and playing clip
I intend to have four video files on my site.
As of now, when the user goes to the site, all four files
play
simultaneously. What I need is a way (code) to have each
file not automatically start and
allow the usr to click a play button. That button is already
there and you click to activate it.
Here's the code that automatically plays the clip:
<a href="
http://www.mysite.com"><object
type="application/x-shockwave-flash" allowScriptAccess="never"
allowNetworking="internal" height="345" width="460" align="middle"
data="
http://www.sourcefile.com/flashplayer/video.swf">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="
http://www.sourcefile.com/flashplayer/video.swf"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="menu" value="false" />
<param name="flashvars"
value="url=http://newmedia.sourcefile.com/movies/www.sourcefile.com-matrix_ping_pong.flv"
/>
</object>
<msprm name="allowScriptAccess" value="never" />
<msprm name="allowNetworking" value="internal" />
<msprm name="movie"place value="
http://www.sourcefile.com/flashplayer/video.swf"
/>
<msprm name="quality" value="high" />
<msprm name="bgcolor" value="#ffffff" />
<msprm name="menu" value="false" />
<msprm name="flashvars"
value="url=http://newmedia.sourcefile.com/movies/www.sourcefile.com-matrix_ping_pong.flv"
/><COLOR="#FF0000"> Click on screen to Pause,
from <BIG>myfile.com</BIG> </a>it happens anytime my laptop is open. iTunes will just open and start playing.
i do notice that it happens most often when i'm streaming content from another site, or from chromecast. -
i want to stop a video from playing,when leaving a frame
i tried to use SoundMixer.stopAll(); but it only stops the sound,
i think my video is still streaming in the background because im starting to notice performance problems when i go back and open the video again
the website gets very slow.
please helpI am sorry, my answer may be too late.
Anyway, I guess you have to stop streaming by calling close() method.
Have a look at
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#include ExamplesSummary
Then you can call stream.close() to stop it.
Or if you have a flvPlayBack component on stage then you have to call stop() on that.
For an example, if flvPlayBack component on stage has been named as "myVideoObj" then you have to call myVideoObj.stop();
Also may be you have to set
myVideoObj.autoPlay = false;
Good luck
getnaleen -
How to stop flv-container swf buffering?
Hi all,
We have a swf that plays an flv on the homepage of one of our
websites. Unfortunately the site is exceeding its bandwidth because
everytime someone arrives on the homepage the flv (at approx 30Mb)
is buffering whether they watch the video or not.
Is there any way to prevent the video buffering until the
user clicks play? I have Flash 8 and Flash CS3 but can only use
Flash 8/AS2.0 files with our CMS.
Thanks!
BeckiThere's no functionality in the player that would allow you to control this; however, I'm having a hard time thinking of what problem you're trying to solve by asking for this feature. Is this to preserve bandwidth on a metered account?
-
Hi all,
I'm using a MediaPlayer instance and a VideoElement to load and display (play | stop | pause) a video. Each time I try to "stop" the video, it doesn't go back to beginning of the video. I checked the video's metadata and it has a proper duration property.
I wanted to know if any of you had seen this issue before and if there was a workaround.
Thanks in advance,
JulienCalling MediaPlayer.stop() should cause the media to auto-rewind, unless the media isn't seekable. If this isn't the case for you (sounds like it isn't), can you post a small, runnable sample with source to demonstrate the problem? Thanks!
-
I'm trying to play flv on frame 1 after both flv and contents
on frame 2 are loaded.
how can I stop flv from playing before the contents are
loaded?
AS on frame 1I'm trying to play flv on frame 1 after both flv and contents
on frame 2 are loaded.
how can I stop flv from playing before the contents are
loaded?
AS on frame 1 -
Getting Captivate skin to control flv
I have a Captivate file that references an FLV. Is there a way to get the Captivate skin to control the flv...(i.e. pause flv, stop flv, play flv). We were trying to avoid having a Captivate skin and an FLV skin. It gets confusing for the user because they can press pause on the Captivate skin but the video contiues to play.
In the Captivate slide,
- Right-click on the imported flv
- Select Properties
- Select the Options tab
- Deselect "Pause slide till end of video" (it's selected by default)
- Select "Synchronize with project"
- Click OK
Obviously, if you're doing this, you should have selected Autoplay for the flv, and selected "None" for the skin. -
Audio from Flash CS3 Video overlapping
audio from Flash CS3 Video overlapping
help stopping the FLVPlayback instance (which has an instance
name of theVideo) when another button is clicked!
How do I stop flv playback when user clicks a navigation
button ...
Excuse me in advance for asking about a topic that may be
very popular!
I'm using the attached code to go from the main stage to one
subset of .swf files (loaded movies) and I apparently have no
problems with overlapping. Hell, the files even seem to unload
themselves correctly. Then, when I go to my second subset of .swf
files (with the exact same AS3 structure), which has a Flash Video
file (made by the FLV Playback component), I get into an
overlapping problem associated with the audio.
How can I stop, cancel, or unload the audio when the file is
clicked away from (the user selects another button on the main
stage)?
Code attached. Please let me know if anything else is needed.
Yours Sincerely,
JntspecialtyI have tried to clean up code and do this right.
I need help referencing (storing the value in the variable
"stopsoundoverlapReq") the "flvplayback instance AFTER theVideo is
instantiated (ie, the frame that contains theVideo has rendered)"
correctly.
Also, now I need help with the name of my nav bar button's
method followed by parentheses, which should include the
appropriate method parameter.
On my main timeline, I tried to clean up the code and use:
var stopsoundoverlapReq:FLVPlayback =
stop("videopage.swf/MovieClip(ldr.content).theVideo");
Then for my nav bar button on this same timeline use:
any_btn.addEventListener(MouseEvent.CLICK, stopsoundoverlap);
function stopsoundoverlap(event:MouseEvent):void
stopsoundoverlap.stop(stopsoundoverlapReq);
The 3 errors I get now are :
1046: Type was not found or was not a compile-time constant:
FLVPlayback. var stopsoundoverlapReq:FLVPlayback =
stop("videopage.swf/MovieClip(ldr.content).theVideo");
1061: Call to a possibly undefined method stop through a
reference with static type Function.
stopsoundoverlap.stop(stopsoundoverlapReq);
1137: Incorrect number of arguments. Expected no more than 0.
var stopsoundoverlapReq:FLVPlayback =
stop("videopage.swf/MovieClip(ldr.content).theVideo"); -
Same Button performing multiple tasks.
I have a close button on a demo reel page in Flash CS4, AS3.0. I want this button to stop the current flv file playing, and to return the timeline back to the "demo_Page" section (frames10-15).
Unfortunately my capacity as a web designer is fairly minimal. I have no idea what I am doing. Can any one steer me in the right direction?
Thank youbutton.addEventListener(MouseEvent.CLICK,callFunction);
function callFunction(e:Event):void{
///script for stop FLV
//Script for play frames 10-15 -
FLVcomponents keep loading when I leave
I'm using the FLVPlayback component in CS3 (progressive
downloading). I have several component instances laid out in the
site in various places. With the current setup of the site, it is
most convenient to place each FLV component instance in a separate
frame.
Here's the
LINK
First, I had a problem that the audio would keep playing even
if I clicked a button to leave the section where the FLV instance
resides. I solved this by coding the FLV to "stop()" when the video
fades out (the current video fades out before switching frames)
Now the problem is that if you leave the keyframe that the
video is in while the video is still buffering, eventually you hear
the audio from that video kick in and play.
How do I stop a video from loading after I leave the frame it
resides in? Is it foolish to set things up this way? Should I have
one omnipresent video player that merely responds to buttons on
different frames? Is removing the "source" a valid way to stop a
video from downloading mid-stream? I think there's a gap in my
general understanding of the FLV component and it's relation to the
video that it is hosting.
I'm no newbie to AS, and have been tackling AS3 with zeal for
a few months, but I admit my brain is still works better with the
visual interface, hence my tendency to let keyframes control
actions. Don't be afraid to toss coding solutions at me.
Thanks in advanceWell, I did alter my code so that the source property sets to
"stop.flv" (a non-existent video), when you leave the frame where
the FLVplayback instance resides (rather than just stopping the
video). When you revisit that video, since the source was
originally inputted into the parameters panel for the component, it
reloads the correct video. (no permanent change has been made to
the source of the component instance residing in the keyframe.)
This does stop everything, but seems like a poor way of
operating...Please still let me know what more professional way
there is of doing this.
Maybe you are looking for
-
Certificate request not working with web server v2 template on windows 2012 R2
I have tried to generate a certificate request on my domain joined Windows 2012 R2. I have tried both online and offline requests. I am using the web server v2 template. Both Method fails with error message that the cryptographic algorithm is unknown
-
Accessing Intel Raid Bios Utility
I've added a Maxtor 160gig Sata hdd to my motherboard and have been trying to set it up, but when i try and press CTRL + I nothing happens, it just continues to load up the bios and o/s.
-
Hi Guys, We work in AFS .Here my scenairo is that first we will producing single piece and then converting it into bulk box pack. I have done the MRP run and generated the requirements for both the bulk box and single piece . And use single piece j
-
If statment based on details of Group
Post Author: bwells2 CA Forum: Formula I'm trying to create a If then statment and have the Value displayed on the group line. for example Group Detail I want to look of the group and find islike SCR then "Yes" else then "No" Thanks!
-
I realize that this is a combination of an adobe question and an excel question, but the forums that have attempted to answer this question for others don't solve my problem. The adobe instructions for inserting a pdf into an excel cell say: "To e