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.
Similar Messages
-
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 -
Execute a function module when user exits.
Dear All,
Do tell me like there is a FM wherein I can pass a username and TCode for the user at the start up,
NAVIGATION_SET_START_TCODE
is there any for EXITS/LOGOFF. We have an requirement wherein we need to update some details when user logoff from system so login validations can be flagged accordingly.
Regards,
Dantham ConpolwedsonHello Dantham
Probably you are looking for user-exit SUSR0001 ( User exit after logon to SAP System ) consisting of the following components:
EXIT_SAPLSUSF_001 " Customer-Specific Check After Every User Logon
Regards
Uwe -
Sounds stop playing when user locks screen on iOS with AIR 3.9 Beta
We built a simple application that should play sounds when in background and when the screen is locked.
Since we updated to the latest AIR 3.9 Beta SDK, all sounds stop playing when the user locks the screen on iOS.
The sounds resume when the screen is unlocked.
- it works on Android
- we use renderMode : cpu
- we use UIBackgroundModes : audio
- we use NativeApplication.nativeApplication.systemIdleMode=SystemIdleMode.KEEP_AWAKE;
- sounds play when the app is in background
- was working great with AIR 3.8 SDK
Any help would be greatly appreciated.
Thanks!Thanks for reproting the issue, we have an internal already logged bug for this, which is under investigation at the moment.
-Nimit -
Store data when user exits from web application
is there anyway to call a method when user closes browser and session finish
thank youI usually just use a HttpSessionListener.
What's the difference?Lots ......
This is from javadoc
public interface HttpSessionListener
Implementations of this interface are notified of changes to the list of active sessions in a web application.
The implementation class would be invoked and in its methods, could process any action on session creation/termination
public interface HttpSessionBindingListener
Causes an object to be notified when it is bound to or unbound from a session. The object is notified by an HttpSessionBindingEvent object. This may be as a result of a servlet programmer explicitly unbinding an attribute from a session, due to a session being invalidated, or due to a session timing out.
The implementation class would usually be a bean. The bean thus has control to take any action it deems fit when its bound to a session or when its unbound from the session.
Depending on the requirements, you could implement either of the two interfaces.
Thanks,
Ram. -
Getting FLV to stop playing when user clicks on nav button
I have a portfolio_mc that is inside of a content_mc (stage->content_mc->portfolio_mc). There are 3 buttons that take the user to an appropriate frame designated by a frame label and this loads up an FLV. The problem is that when I click on any of the navigation buttons on the main timeline, the FLV that is currently playing, is still playing (I can hear the audio). So I need to figure out how to stop this.
Here is the code used for controlling the buttons in the motion_mc timeline:
stop();
var naviArr:Array = new Array(btn01, btn02, btn03);
btn01.addEventListener(MouseEvent.CLICK, navigate);
btn02.addEventListener(MouseEvent.CLICK, navigate);
btn03.addEventListener(MouseEvent.CLICK, navigate);
btn01.buttonMode = true;
btn02.buttonMode = true;
btn03.buttonMode = true;
function navigate(event:MouseEvent):void
switch(event.target){
case btn01:trace("video01");
gotoAndPlay("video01");
handleBtn(btn01);
break;
case btn02:trace("video02");
gotoAndPlay("video02");
handleBtn(btn02);
break;
case btn03:trace("video03");
gotoAndPlay("video03");
handleBtn(btn03);
break;
function handleBtn(btn:MovieClip):void
for(var i:uint = 0; i<naviArr.length; i++){
if(naviArr[i] == btn){
naviArr[i].removeEventListener(MouseEvent.CLICK, navigate);
naviArr[i].buttonMode = false;
}else{
naviArr[i].addEventListener(MouseEvent.CLICK, navigate);
naviArr[i].buttonMode = true;I really like your layout it is very cool looking.
You have it all set up just right. KGlad is right you don't even need to embed the flvplayback controls in another movieclip. I think the reason I had them in movieclips was another designer had them all set up that way and at the time I didn't want to mess with them. =P
At the beginning of your navigate function before you drop into the switch statement just put this in.....
function navigate(event:MouseEvent):void
if(movie != null) //anytime there is something called movie on in scope when we navigate tell it to stop.
movie.stop();
switch(event.target){
case btn01:trace("video01");
gotoAndPlay("video01");
handleBtn(btn01);
break;
case btn02:trace("video02");
gotoAndPlay("video02");
handleBtn(btn02);
break;
case btn03:trace("video03");
gotoAndPlay("video03");
handleBtn(btn03);
break;
That should do it for you. -
How can I get an flv video to stop playing when I exit the page it's on?
The audio continues to play no matter where I navigate on the site.
ThanksYou want to stop the audio from playing and also downloading more video/audio if it is still downloading when you go to a new keyframe where the video display/component or mp3 player is removed from the stage because it's keyframe ended or do not exist anymore but you still hear the audio.
Add an event listener to your video playback component that calls a function when the flash player tries to remove the video plaer from the stage that stops the netstream or at least stops/pauses the video playback.
[link removed]
//sample NetConnection and NetStream classes when the video player is removed from the stage tell the NetStream to stop playing or downloading the content with .close();
var connection:NetConnection = new NetConnection();
connection.connect(null);
var stream:NetStream = new NetStream(connection);
addEventListener(Event.REMOVED_FROM_STAGE, videoRemovedFromStage);
function videoRemovedFromStage(e:Event){
stream.close(); -
Getting a video to stop playing when user clicks on another button to navigate
Hello,
I am trying to create a little website in flash.. I have some video that plays automatically once the user goes to that section (I am using frame labels to navigate from section to section of the site).
But, when the user clicks another button to go to a different page, the video is still playing because I hear it..How can I stop the video from playing once another button gets clicked?
thanks
babsAll's you should need, if the video starts playing on its own, is...
function clickSection(evtObj:MouseEvent) {
if (this.currentLabel == "about") {
about_mc.vid_mc.gotoAndStop(1);
gotoAndStop(evtObj.target.name);
If the video needs to be kick started because it was sent back to stop at frame 1 due to a previous navigation, then place that kick start in the about frame itself... about_mc.vid_mc.play();
If that's not working, be sure to check that your instance names are assigned. Also, I have been assuming that the video is embedded into the timeline of the movieclip, so if that's not the case, then some other solution may be needed. -
Make video stop video when leaving a frame = problem as not all frames have this video
I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is:
import fl.video.VideoEvent;
function onClick(evt:MouseEvent):void {
if( showreel.playing ){
showreel.stop();}
gotoAndStop(evt.currentTarget.name);
motion.addEventListener(MouseEvent.CLICK, onClick);
web.addEventListener(MouseEvent.CLICK, onClick);
logo.addEventListener(MouseEvent.CLICK, onClick);
photo.addEventListener(MouseEvent.CLICK, onClick);all assets, as far as possible, should be removed from the display list and readied for gc when no longer in use. that includes flvplayback instances.
and yes, when you return to a frame or situation where you create an flvplayback instance, it will be created. the removedfromstage event doesn't do anything except detect when something is removed from the stage:
flv.addEventListener(Event.REMOVED_FROM_STAGE,f);
function f(e:Event){
flv.stop();
that's it.
for a typical beginner to intermediate coder, flv will be on one frame of the main timeline. adding those lines of code will ensure that when you move from a frame that contains flv (and that code), any video playing in flv will be stopped so you won't hear it when you navigate to another frame. -
Hi All,
I am MM consultant, i need help with user exit.
I am trying to test if one user exit M06B003 would be triggered before saving the Purchase Order in ME21n.
I have gone to SMOD, opened this user exit, it opened a function module by name EXIT_SAPMM06B_001.
In this function module there wasa include module ZXM06U18.
I have selected a beak point on this include.
and created a newsesion with ME21n.
when i fill up all details, and saved, it got saved and gave a PO number, it didnot stop at that user exit.
what might have went wrong. this exit is not yet used, not atleast once.Hi Vinay,
Not sure about the exit you're using. However it's important to have in mind that the user exits works only in determined code functions. For example, that exit you're using maybe it doesn't goes through when you save the document. Maybe it's for the validation when you enter some field in the PO.
You should check if this is the case. If this scenario does not fit to your requirement you should try to find another exit for the moment of saving the document with the data you need.
Hope it helps.
Regards,
Gilberto Li -
How can I test the IDOC ORDERS05 user exit EXIT_SAPLEINM_002?
We used user exit EXIT_SAPLEINM_002 for changing the PO IDOC values.
When I repeated the PO message to create new PO IDOC, I can not stop the process at the user exit EXIT_SAPLEINM_002. Is there any way to debug the PO IDOC creation at the point of user exit EXIT_SAPLEINM_002, so I can see how the user exit EXIT_SAPLEINM_002 works at run time?
Thank you in advance!
Fisher LiHi
Put a debug point at include ZXM06U02 in user exit EXIT_SAPLEINM_002.
In your PO go to header tab -> output and set ur output type to periodically scheduled job because if that output type is send immediately it will not stop at break point. So select your output type press button Further data and set it to peridically scheduled job.
Then go to we15 give ur application as EF, your Po number and your output type then execute. It will stop at that user exit. -
Hi all,
When I worked in the version 4.6 I used to use the object v_ext_act, v_ext_imp and the transaction St05 to find a user exit or a badi when I need it. But since I started to work in the version 6.0 it seems that with these objects I can't find anything.
Any of you know if SAP has changed the name of these objects?
ThanksHi Raul,
Another approach that you can use in order to find out user-exit or badi in a program or transaction is to start execution of it in debug mode and then put a break-point in following statements:
CALL CUSTOMER-FUNCTION --> to find user-exits.
CALL BADI --> to find BADI's
Then just press F8 and SAP will stop whenever a user-exit or badi is invoked.
Hope this helps.
Cheers. -
User exit at Transfer order creation
i have a user exit named MWMTO001.
it has been given like this will trigger at the end of the transfer order creation (Update task). wt i have done here is i activated the user-exit and when i try to create the TO its not getting stopped over the user-exit and here i didn't understand wt is mean by update task.
regards,
Mahesh.GHi,
How is it solved?
I'm facing same problem, would you please advise?
Regards -
User Exit ZXEDFU02 skipped in Inbound function module (WE19)
Hi!
when I choose Inbound function module in WE19, User Exit ZXEDFU02 is beeing skipped... or al least it seems so (not stopping at breakpoint in Exit).
But I need to add some lines to a segment, so need this Exit.
PS: I try to add some lines to Invoice List Idoc segment, Idoc type INVOICE02.
Any ideas?
Will reward,
Mindaugas.If is outbound try following
For outbound you have to use following way.
1) Cllick header-->output
2) Repeat output type
3) Select output type and click Further data and select dispatch time to 1(Send with periodic schedule job).
4) Save.
5) Go to Transaction WE15 or execute RSNAST00 program
6) Select your output type..input object key-->nothing but document number(eg..sales order number).
select output type and transmission medium.
7) Now breakpoint stop at your user exit.
Let me know still if you have problem.
Thanks,
Narayan -
I want to update SU number in the destination field in the Transfer Order, which will come from the material document text field.
i have a user exit named MWMTO001.it has been given like this will trigger at the end of the transfer order creation (Update task). wt i have done here is i activated the user-exit and when i try to create the TO its not getting stopped over the user-exit and here i didn't understand wt is mean by update task.
thanks in advance.
Regards,
SriniHi Srinivasa,
Please check list of all user exists for LT01
Transaction Code - LT01 Create Transfer Order
Exit Name Description
MWM2S001 Exit to Determine 2-Step Picking Characteristic
MWMBAP01 Enhancement for BAPI WarehouseTransOrder.GetDetail
MWMBAP02 Enhancement for BAPI WarehouseStock.GetDetail
MWMD0001 Transfer order print via RLVSDR40
MWMD0002 Transfer order print as multiple process with RLKOMM40
MWMIDI07 Enhancement for Output WMPIHU (Create Pick-HU) Inbound
MWMIDO11 Enhancement for message WMTORD: TO with several items
MWMIDO12 Enhancement for Output WMPIHU (Pick-HUs) Outbound
MWMIDO13 Extension for WMMBXY (subsequent tasks after goods movement)
MWMPP001 Enhancement WM/PP Interface (automatic TR generation)
MWMRF001 RF: Influence Display of material description
MWMRF100 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0100)
MWMRF101 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0101)
MWMRF102 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0102)
MWMRF104 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0104)
MWMRF105 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0105)
MWMRF106 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0106)
MWMRF107 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0107)
MWMRF108 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0108)
MWMRF151 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0151)
MWMRF152 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0152)
MWMRF153 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0153)
MWMRF170 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0170)
MWMRF202 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0202)
MWMRF203 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0203)
MWMRF204 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0204)
MWMRF205 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0205)
MWMRF212 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0212)
MWMRF213 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0213)
MWMRF221 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0221)
MWMRF302 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0302)
MWMRF303 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0303)
MWMRF304 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0304)
MWMRF305 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0305)
MWMRF312 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0312)
MWMRF313 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0313)
MWMRF321 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0321)
MWMRF400 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0400)
MWMRF402 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0402)
MWMRF403 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0403)
MWMRF404 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0404)
MWMRF405 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0405)
MWMRF406 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0406)
MWMRF410 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0410)
MWMRF411 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0411
MWMRF412 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0412)
MWMRF502 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0502)
MWMRF503 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0503)
MWMRF504 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0504)
MWMRF505 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0505)
MWMRF600 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0600)
MWMRF601 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0601)
MWMRF630 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0630)
MWMRF631 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0631)
MWMRF632 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0632)
MWMRF633 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0633)
MWMRF634 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0634)
MWMRF650 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0650)
MWMRF651 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0651)
MWMRF700 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0700)
MWMRF701 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0701)
MWMRF702 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0700)
MWMRF703 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0703)
MWMRF704 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0704)
MWMRF705 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0705)
MWMRF760 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0760)
MWMRF761 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0761)
MWMRF762 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0762)
MWMRF763 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0763)
MWMRF764 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0764)
MWMRF765 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0765)
MWMRF766 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0766)
MWMRF767 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0767)
MWMRF768 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0768)
MWMRF769 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0769)
MWMRF777 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0777)
MWMRF800 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0800)
MWMRF801 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0801)
MWMRF802 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0802)
MWMRF803 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0803)
MWMRF804 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0804)
MWMRF805 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0805)
MWMRF806 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0806)
MWMRF807 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0807)
MWMRF888 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0888)
MWMRF889 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0202)
MWMRF998 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0998)
MWMRF999 ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0999)
MWMRFCOD Enhancement for function codedisabling
MWMRFDLV select delivery by user criteria
MWMRFPRT Enhancement for printing
MWMRFSSG user exit for sorting TOs in RF system-guided transaction
MWMRFUP Customer defined general purpose pushbutton called from scr.
MWMRP001 Cust. Exit for Fixed Bin Replenish.: Delivery Item Selection
MWMRP002 Cust. Exit for Fixed Bin Replenishment: TR Quantity Distr.
MWMRP003 Customer Exit for Replenishment using RLLNACH1
MWMRP004 User Exit for Replenishment using RLLNACH4
MWMTO001 Enhancements for end of transfer order generation
MWMTO010 Exit: Calculation of Total Planned TO Processing Time
MWMTO011 Correction of Planned Processing Time for TO Item
MWMTO012 Correction of Sorting and Split Transfer Order
MWMTO013 Stock Removal for Sev. Storage Types as in Stringent FIFO
MWMTOAU3 Separate selection of posting changes for autom.TO creation
MWMTR001 Exits at the end of transfer rqmnt creation (IM,PP interf.)
No of Exits: 104
Rewards if useful........
Regards
Minal
Maybe you are looking for
-
Is there a way to hide the name of the sender of a text message?
Is there a way to hide the name of the sender of a text message?
-
Creating spool file for Mass printing of smartforms
Hi all My requirement is Mass printing of Development Plans, In this case is i need to select all the smartforms depending upon the selection screen data.& i need to pass all the smartforms to newly created spool file.. how should I use TSP01 & Funct
-
Photomerge in photoshop elements 7
The photomerge path in PSE 7 is not active
-
Which logical partition for which physical one ??
Dears, I have a linux machine and 4 harddrives on RAID 5. Now when i run $ df -k I have: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 411043104 225881224 164282112 58% / /dev/cciss/c0d0p1 101086 15962 79905 17%
-
No DRM-free updates to my music since the 1st week. Whats going on?
I was wondering if I didn't have any more EMI music, but I just saw that Pat Benatar is on there and I have a lot of singles that I purchased and the albums are listed as iTunes Plus, but I'm not getting an option to update. Anyone else running into