Disable FLV Playback Buttons Temporarily

I have an FLV Component on stage, controlled by ActionScript.
I've got code to listen for a cuepoint, pause the movie, etc. But,
I want to disable the use of ALL component buttons until I
re-enable them. How? Can I just reassign the buttons to no actions?
I don't know what they're called, etc.

Hi muzicman82 (i like your name),
i work almost everyday with flv but never with FLV component.
So, im afraid im not gonna be a big help.
But, even if i think this component have a disable/enable
buttons method (if not, it should), if you find the name of those
buttons you can use the enabled property of movieClip.
ex: playBtn.enabled = true; or playBtn.enabled = false;
With this you dont have to reasign the action when
re-enabling the button and also if you disabled the button by
reassigning no action to it, your button will still be clickable.
//--> doesnt work; i try it and only get the property of
the component ... i learned something (**** components lol);
Now, to have an idea of whats the name of those buttons you
can try a "for in" loop like this (not sure if its gonna work with
components):
for(var each in myComponantName){
trace(each);
// <--
Hope it will help you!

Similar Messages

  • FLV Playback Component - specifying an image before it plays

    I am using the FLV Playback Component to play a video.
    Instead of playing automatically, I want to be able to set an image
    (or a frame of the movie) to display and only play the movie after
    the user clicks the play button. I can't find anything anywhere to
    explain how to do this or a workaround for it. Can anyone point me
    in the right direction? thanks.

    Actually, I'm just trying to access the movie controls in the
    FLV Playback component, so I can adjust how the work.
    This does not work:
    this.movie.forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction)
    Neither does this:
    MovieClip(this.movie).forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction)

  • AS 2.0 FLV playback multi videos

    I've set up FLV playback for one video, but need to allow
    users to choose the next movie they want to view (non linear), as
    well as allow them to click through each movie in a linear fashion.
    Not sure what code to attach to buttons to:
    1. Allow non-linear video playback
    2. Allow the if/then/else option of going through each video
    in a linear manner--thinking should attach code to fwd button
    Code below, any help would be much appreciated! thx
    //------NETCONNECTION SETUP--------------------
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    //------NETSTREAM SETUP--------------------
    var ns:NetStream = new NetStream(nc);
    ns.onStatus = function(info) {
    if(info.code == "NetStream.Play.Start") {
    progressBar.onEnterFrame = videoUpdate;
    ns.onMetaData = function(info) {
    ns.duration = info.duration;
    //------ATTACHING NETSTREAM--------------------
    video.attachVideo(ns);
    //------PLAYING EXTERNAL FLV--------
    ns.play("sample pics.flv");

    The person above is correct but assure you enter into component inspector, and change the the parameters of the component.

  • Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?

    Hi everyone,
    i created some swf loading a flv file in a flv playback and
    check on the auto/hide parameter. When i test the movie it works
    very well. BUT, in my website, i put those swf files in Lightbox
    (javascript computed) and when the mouse goes Over the flash video,
    it shows the Skin player and when the mouse goes Out, the Skin
    player stays over the video!? Why? Does someone has an idea on how
    to force the auto/hide paramater in this case?
    Thanks for your help
    Orlenka

    Found this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
    (AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
    //### force 'autohide' when mouse inactive
    var timer:Timer = new Timer(1500, 0);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    var skinSprite:DisplayObject;
    var prevMouseX:Number;
    var prevMouseY:Number;
    function onTimer(e:TimerEvent):void {
      //get skinSprite if we haven't already
      if(!skinSprite) {
        var child:DisplayObject;
        for(var i:Number = 0; i < player.numChildren; i++) {
          child = player.getChildAt(i);
          if(i == 2) { //this is the skinSprite
            skinSprite = child;
      //check to see if mouse hasn't moved since last timer event
      if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
        skinSprite.y = -1000;
      prevMouseX = mouseX;
      prevMouseY = mouseY;
    stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
    function stage_onMouseMove(e:MouseEvent):void {
      if(skinSprite) {
        skinSprite.y = 0;

  • AJAX and Actionscript to Control FLV Playback Skin

    I have AJAX running on an application that opens up a new panel displaying a flash video. The flash video uses one of the FLV Playback skins. When I play the video on the panel, everything is fine. But, when I close the panel with the javascript-enabled button, the video would still play even though the panel and video are "gone" from the html page.
    I was looking into using javascript to talk to actionscript to control the FLV Playback skin's stop function so that when the close panel function is activated, the video play's stop function would be called. How do I find out the path to and the name of the stop function inside the playback skin? Is it possible to call the stop function inside the FLV Playback skin? Or, would it be easier to create my own video controller?
    I hope this is clear. Any help is appreciated. Thanks.

    I don't clear your questions
    Regards,
    nha khoa
    nhua
    gia cong
    nhua
    gia cong chi
    tiet
    khuon mau
    thiet ke web
    do dung cho be

  • Looking for a way to disable the "GET" button

    I have a user who would like to only allow the progressive streaming playback in iTunes U (ie disable the get button). I haven't seen any way to do this in the docs but it's entirely likely I'm missing some simple (or not) way to do this.

    You know, say after about, oh, six, seven beers I sometimes think, "Hey, I should write a book about iTunes U." It would be called something like "Deploying iTunes U" ... it wouldn't make any money (few tech books do) ... but it would win me loads of "wuv" (remember this is the beer talking). Then, of course, the next day rolls along and I realize how much work writing a book would actually be ... and then I think, "Crapspackle! ... how many beers did I have?"
    But if I were to write that iTunes U book, Chapter 1 would be called "About iTunes U" (every tech book has to start this way ... "About XML", "About MySQL", "About TCP/IP" ... like that) ... and the last section in that chapter would be called "What iTunes U is not". The first few paragraphs in that section would read this way ...
    iTunes U is not a streaming service. Sure, content displayed in iTunes U can be double-clicked and it will play ... in effect, content does stream. But while iTunes U can be made to stream content, you should not think of it as a generalized streaming service. The model for iTunes U is the iTunes Store. Think about why the iTunes Store succeeds. Podcasters do not stream ... people have been streaming since the mid-90s ... but podcasting took the world by storm. Why? Because content wasn't tethered to a network connection ... it became as portable as the iPod. This is the model you're buying into; this is the target you're aiming for.
    Whenever faculty at my site make "But ... !!" arguments, they pretty much run along one of the following lines:
    1. When I stream, students can't redistribute my content. I have control.
    Any reasonably determined person can capture a stream and redistribute it -- it is not technically "hard" to do. If a student wants to get your content onto an iPod or a PSP, he/she can easily do so. Do not fool yourself into thinking it can't happen. Chance are, it already has.
    2. I have copyrighted material in my content -- I can't afford for students to redistribute my content. I have to "know" that only students can get access to my content.
    See response to Argument 1. In addition, I have found that many instructors have naive notions about what copyright permits and forbids (and please do not be offended if you, dear reader, are an instructor ... copyright is really complicated, it's not your fault). From a copyright standpoint, streaming is basically irrelevant (you are not "protected" if you stream).
    At my university, we have a designated copyright authority. It is her job to know what's permitted and what's not for us. In any conversation with a faculty member about whether to stream or not, I always recast the question this way: "Are you allowed to use the material in a public way at all?" In every instance, I refer the questioning faculty member to our copyright expert for clarification.
    3. I want to make sure my students are sitting at desktop computer when they view my content. A stream forces them to do so.
    Not anymore. Think about how many phones have YouTube clients. Remember that these technologies are, for the most part, being driven by what students say they need. Students want to learn asynchronously -- that is, they want to listen to a summary of your lecture while commuting to campus; they want to listen to your supplementary materials while working out. A significant part of what makes iTunes U so cool and unique is that it exploits the synergy that exists between iTunes, the iTunes Store, and iPod music players. When you try to force students to view your material as a stream, you break this synergy. If you will not provide content the way students want to get it, they'll create their own solutions (see response to Argument 1).
    It can be tough to wrap your head around, but if you provide students with what they want, they won't circumvent your efforts. In effect, you will have the greater control. It requires a Zen way of thinking. If you focus on creating great content, and letting students get access to it asynchronously, you are taking away from the the major motivation for redistributing your work without permission.

  • Make flv playback exact fit to window project not desktop

    hi , first i want to say i use Flash Cs5 - flash player 10 - As3
    i want when i click on full screen button on flv playback component my flv player window goes to exact fit my flash window not my desktop or even better if i can set resolution for full screen mode ....
    i have strange problem the full screen function not work in any third party flash protection and projector tools ...
    finally i found some component that use some As2 script to make full screen button function to exact fit window and it`s interensting cause this flv player works well in  test movie mode !!!
    as the full screen function in default Flash Cs5 not work in test mode and you must run swf directly from local or run projector ...
    i realize that when the full screen function works in flash test movie ( ctrl + enter ) mode it work in another third party tools too ...
    i don`t now why but maybe some security reason in As3 dont let it run from test movie and another third party tools ...
    what can i do about it ??
    how can i write script for my flv playback component to read new function for full screen mode and set it to exact fit window ( project ) not my desktop ( the size of project not chang at all and only flv player resize to my window )
    is this possible to set resolution for Resize mode  ?!?
    is this possible to create a button for this ??!?
    i know i ask many Questions and maybe u confued as i am now , but i have spend a week to solve this problem , checking all third party tools and no success , even i post my problem to many forums ...
    pleaseeeeeeee help me

    use:
    fs_btn.addEventListener(MouseEvent.CLICK,f);
    var flv_pb_x:Number=flv_pb.x;
    var flv_pb_y:Number=flv_pb.y;
    var flv_pb_h:Number=flv_pb.height;
    var flv_pb_w:Number=flv_pb.width;
    var fs_btn_offsetX:Number=flv_pb.width+flv_pb.x-fs_btn.x;
    var fs_btn_offsetY:Number=flv_pb.height+flv_pb.y-fs.btn.y;
    function f(e:MouseEvent):void{
    if(flv_pb.width<stage.stageWidth){
    flv_pb.width=stage.stageWidth;
    flv_pb.height=stage.stageHeight;
    flv_pb.x=0;
    flv_pb.y=0
    fs_btn.on_mc.visible=false;
    fs_btn.off_mc.visible=true;
    } else {
    flv_pb.width=flv_pb_w;
    flv_pb.height=flv_pb_h;
    flv_pb.x=flv_pb_x;
    flv_pb.y=flv_pb_y;
    fs_btn.on_mc.visible=true;
    fs_btn.off_mc.visible=false;
    fs_btn.x=flv_pb.width+flv_pb.x-fs_btn_offsetX;
    fs_btn.y=flv_pb.height+flv_pb.y-fs_btn_offsetY;

  • Stuttering flv playback issue- need help asap

    We need help asap. Have a project is due to deliver today (5/14).
    We have a video to go on a dvd-rom, live action with Motion Graphics behind.
    When output is done thru Projector the Motion Graphics stutter as they scroll.
    Here is more technical info:
    Stuttering flv playback issue:
    Prores 422 timeline 29.97fps 1280x720 output from fcp using current settings.
    Mov file is approx 7gb, plays relatively smooth on a mac pro with no raid.
    Frame by frame analysis shows all frames are present with no jumps tears or skips.
    Tried several output paths, programs and settings to create a smooth flv file to no avail.
    We adjusted data rates from 2k, 3.5k, 4k and 8k, no luck
    We adjusted keyframe rates from low to all frames, no luck.
    We tried cs3 flash encoder, cs5 media encoder, squeeze ect, same results.
    Playback in the flash projector seems to choke slightly no matter what we do.
    Have also posted in the Director Forum.
    Any help much appreciated!

    Here are a few ideas off the top of my head:
    Try playing the file using a different xtra, sometimes different ones will work better.  If you have Director 11.5, there is a native flv playback xtra.
    You can build a player easily in Flash using the flvPlayback component, then bring that into Director as a swf.
    Once you have the video in Director, try making the member Direct To Stage (DTS).  If it is already DTS, try making it not DTS.
    Make sure the video is not transparent, and nothing in Director overlaps the video... in fact, when the video is playing, nothing should be moving at all, and try to keep the amount of code that is running to a minimum.
    Try lowering your video's data rate further or try using a different codec.
    Using VBR (Variable Bit Rate) compression often makes the video appear to play smoother.
    Try compressing the flv with different software.  FFMpeg, for example, is free and does a very good job, often better than the Flash Video Encoder that comes with Flash/Creative Suite.

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • How can I disable the previous button in the first page and the next button in the last page?

    Hi all,
    I have created a new skin for a webhelp by modifying the layout and the buttons. However, I am not able to find a way where in we can
    disable the previous button ini the first page of the webhelp and hte the next page in the last page of the webhelp. If both the next and previous button is visibile in the first and last page, it is sort of misguiding the user.
    I am using Robohelp 9.
    Please advice.
    Thanks,
    Parag

    I think you are mixing Previous and Next in a browse sequence and the Previous and Next that you get in the browser itself.
    In a browse sequence, they are automatically disabled at the start and finish. When in the first topic in the sequence only Next will be enabled, when in the last topic only previous will be enabled.
    Previous and Next in the browser are working on the topics your user has viewed which is not the same thing.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I disable the Voicemail button on an iPhone 4

    How can I disable the Voicemail button on an iPhone 4 or
    if that is not possible can i programme it to dial my own phone rather than my carrier's Voicemail box?

    No, it's not possible to disable that button and no, it's not possible to reprogram it to anything else.

  • Is there a Way to lock apps or disable the home button?

    I often allow my 16 month old to play toddler games on my iPhone. He knows how to slide his finger to unlock the phone and he loves pressing and holding the home button to activate Siri so he can talk to her! LOL! I am worried that he will accidently delete or move an app to another screen by accident so is there a way to prevent that from happening. Also while he plays his games, he likes to press the home button which closes him out of his game. Is there a way to disable the home button so he can just stay within his toddler games?

    You can use Guide Access to restrict your child to using a single app. See:
    http://support.apple.com/kb/HT5509
    Regards.

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys,
    How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer.
    Thanks,
    Recca

    Recca,
    Can you do this via authoirsations instead?  ie. Allow two types of users, Designers who have access and Users who don't.
    User will be able to access the Query Desinger but have no access to create or save. That should suffice.
    If you start tweaking with the toolbar it may have wider negative implications.
    Regards
    Gill

  • How do i disable a stop button within an event

    Using LabView 8.6 I'd like to disable my vi's stop button so the user can't stop the vi unless the network application is in the correct mode of operation.
    I only want the user to be able to stop the vi when it is ok to do so. What I tried works to prevent the stop button from operating at the wrong time but the vi does not always stop and I have to force the vi to stop.
    My event structure handles all the buttons and inputs for my vi. The event structure is within the while loop that generates commands for the network application when I click on one of the buttons or enter a value into a input field. Another while loop is reading data from the network application and displaying the data on the vi. I used a "Stop" local value to stop the display while loop.
    How am I supposed to disable the stop button but have my vi stop when it is ok to do so in the correct way?
    Attachments:
    Image 1.jpg ‏61 KB

    OK I'll try to handle this point by point.
    Q1, what gets wired to the "SilentShutdown" & "Discard?" when using "Application Instance Close?" 
    A1 Wire a TRUE to Discard?  That's the only thing that event case needs if the Stop condition output is default if unwired "F"   
    REASON you had a problem" it makes not sense to wire the same value to both Discard? and Silent Shutdown?  (Or even use both)  Discard in Filter events is used to "Trap" the event and decide if the app really wants to process it so discarding an app close removes the event and the OS wont process it.  Silient Shutdown? does just about the opposite an tru hear means "Shut down the app without any normal user prompts" Wiring them both T or F would trigger either allowing the app close event to process normally or triggering a application shutdown.
    COMMENT:  I've tried various combinations of nothing & true/false but clicking on the "Windows Red X" still closes the window (as far as I know no one has ever clicked the windows close, but the "Stop" button has been clicked a number of times by mistake)
    RESPONSE: Ah! You have "Trained" LabVIEW users!  They have been burned so often by LabVIEW code that they expect it to misbehave and don't even think about trying to "Close" a LabVIEW window.  In decades past the event structure did not exist in LabVIEW and so the only way to prevent the app close event from firing was "User Training."  There are better practices available now.
    Q2: If I get the previous suggestion to work and follow the next suggestion (Rip off the abort button), I won't be able to ever stop the vi when it hangs. It still does that sometimes. In my actual vi I'm still getting the hangs.
    Amplifications:
    if the vi stops[,] the network communication & control to the network application is lost.
    then the only way to stop this applications[external app on another processor] is with "^C" in the Putty window.
    A2: You've got the tail wagging the cart before the dog-horse!  BOTH application need to be rethought in such a manner as they can be independantly controlled.  But, this is a LabVIEW forum so I expect that your scope of work is to get the LabVIEW side working in a dignified manner- let's concentrate on that.  PuTTY windows and Task Managers are not evil - for debugging and integration.  especially when integrating multiple processes that may not yet be "Mature".  but a quick VISA write "^C" in your shutdown code might make the other application tolerable
    Q3hould I use a "Flat" or "Stacked" sequence to control the order of execution within the "data" loop?
    A3: NEITHER.  You should do a quick forum search for Queued State Machine or Queued Message Handler (QSM and QMH) after looking at the help for the QSM Sample Project (LabVIEW 2012 or later) the Shipping examples are a good place to start but! many discussion threads have questioned the example's exit practice and offered some alternate examples.
    Jeff

  • How do I disable the wireless button on my Acer Aspire 3000

    I got my Broadcomm wireless working, and everything's great, except for the design of this stupid laptop. The button that toggles the wireless is positioned in a way that if I am leaning back with the laptop on my lap, my belt or stomach often accidentally turns the wireless off.
    Is there a way I can keep the WLAN working, and just disable this stupid button?

    If the button on your laptop is anything like the one on my old one (an old model Sony Vaio), the switch is actually a hardware switch that simply completes a circuit and provides power to the wireless card. If this is the case, short of taping the button in the 'on' position or opening the case to solder the connection, I don't see a way to keep it on indefinitely.

Maybe you are looking for