Make button invisible when flv starts again

Hi,
Please, can some one help me and tell me how to have a button
instance become invisible when the play button from the skin.swf
file is clicked? There may be another way to acomplish what I am
trying to do.
I have a Flash 8 file with a FLVPlayback component pointing
to a FLV file. I am using an external skin for the controls. When
the video is finished I have it displaying a button, but if the
person wants to start the video again the button needs to become
invisible again. I am assuming I need to create an actionscript
that says if the video is playing (at all ) the button is
invisible. But how?.. is the big question for me.
Any help would be great.
Thanks
thepopguy

This is possible. You need actionscript to check the status
of the video, if it is playing then the button goes invisible. This
is called an event listener. You need to give the component an
instance name - like vid. Then use this code on the frame:
//listen for movie to play
var vidList:Object = new Object();
vidList.playing = function(){
button1._visible = false;
//any other actions go here
vid.addEventListener ("playing",vidList);
stop;
//listen for movie to stop
var vidList2:Object = new Object();
vidList2.stopped = function(){
button1._visible = true;
//any other actions go here
vid.addEventListener ("stopped",vidList2);
stop;
============
This code will actually listen for the movie to play, and
then it will make the button invisible. It also listens for the
movie to stop, and it make it visible again.
Sample:
http://www.johnkalnin.com/flashhelp/Vid-isPlaying-inv.html
Flash 8 source:
http://www.johnkalnin.com/flashhelp/Vid-isPlaying-inv.fla

Similar Messages

  • Make button invisble when movie starts to play

    I have a FLV file in a FLVplayback component. Once it has
    played and reaches the end I have a button become visible. But my
    delimma is if I want to watch the movie again and click play, the
    button remains. How can I make it go back to being invisible until
    it reaches the end again?
    Any help would be greatly appreciated.
    thepopguy

    Thanks ggshow,
    The button that would be clicked is the play buttion of the
    skin.swf file. Would I add the actionscript to the play butto in
    that fla file? And if so, what happens if someone is playing the
    video and pauses, then resume playing.

  • How to make buttons invisible on the layout(se51)

    hello All,
                                 i have a dialog screen i need to make few button invisible when i calll the next screen but the next screen is the same screen , according to my logic only needed buttons should be seen and rest should be unvisible. please help me fast ..
                           have a nice time there bye

    Ritesh,
    Go through the code .Here instead of input fields you add the modi id for BUTTONS.give same MODIF ID name to required enable fields and not required fileds are another group name.
    PARAMETERS: p_pcfile LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'
                MODIF ID ccc,
                p_pctype LIKE rlgrap-filetype OBLIGATORY DEFAULT 'ASC'
                MODIF ID ccc,
                p_unix   LIKE rlgrap-filename OBLIGATORY DEFAULT '.\'
                MODIF ID ccc.
    PARAMETERS: p_dir LIKE rlgrap-filename OBLIGATORY DEFAULT '.'
                MODIF ID ddd,
                p_fp  LIKE rlgrap-filename
                MODIF ID ddd.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN OUTPUT.
      IF p_up = 'X' .
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 1.  "Enable
              screen-invisible = 0. "Disable
              MODIFY SCREEN.
            WHEN 'DDD'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
      IF p_list = 'X'.
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            WHEN 'DDD'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    Pls. reward if useful

  • JavaScript to make button invisible button visible again

    Hi
    I have been trying to create a form in LiveCycle Designer (part of Acrobat Pro ) that keeps a button (call it #1)invisible until another button (call it #2) is clicked, at which click event the invisible button(#1) becomes visible. I've been using JavaScript and either setting the #1's presence as "invisible" in the object editor or scripting it as a formready event presence = "invisible". I've scripted in the click event for #2: #1.presence = "visible". This doesn't work to get #1 to show on #2's click. I've tried a few more similar script with no success.
    I'm relatively new to Designer, though have some experience with JS.
    Is there another way to script to initially make an object "invisible" and get it to become visible by a runtime event?
    I would appreciate any help.
    Kind Regards,
    Stephen

    Template needs to be saved as Dynamic in order to see those dynamic features working. You have that saved as Dynamic and still have no luck try the following....
    #1.presence = "visible";
    xfa.layout.relayout();
    Note: 1. A button name can not start with "#" hope you are using some meaningful names.

  • To make a push button invisible when a Radio button is selected.

    Hi,
         There are 5 radio buttons in a group. Out of those when st and 3rd are selected a push button should be made visible else invisible.
        The problem is that when the transaction is executed by default the first radio button will be selected but the push button wont be visible.But if i re-select the 1st radio button then the push button will be visible.
        So is there any way to make the push button visible when the transaction is executed(ie bcoz the 1st radio button is by default selected) or neither of the radio buttons should be selected by default.
    Thanks in advance.

    Hi Sridhar,
    For example say your PF sataus name is 'STATUS-100'  which contains the push button and function code for the button in 'PUSH', then in your part of code use the following syntax,
    Here 'rb_select' is your radio button.
    IF rb_select EQ 'X'.
        SET PF-STATUS 'STATUS-100' EXCLUDING 'PUSH'.
    ENDIF
    I hope this will help you.
    Regards,
    Manoj Kumar P
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM

  • How to make an effect stop and start again?

    How do I make an effect start stop and than start again?
    I'm trying to blur faces (I finally figured out how to do that---copy the video to a 2nd layer and use the mosiac and crop effects) but how do I make the effect only appear when the face is in the screen as multiple times throughout the video clip the subjects face goes off camera.  In the effect controls window it doesn't give me an option to add a blank keyframe.
    Any advice on how to have this effect start/stop multiple times in one clip??
    Thanks

    If the effect isn't keyable, try keyframing the transparency of the copy with the effects on it.

  • Need to Hide Controls when FLV starts playing

    I am using FLVPlayer_Progressive.swf
    and Clear_Skin_1.swf to load and auto-play FLV video on a
    website.
    It works great but the video controls are visible on top of
    the video.
    I want to hide the controls!
    I spent several hours to find a way how to hide the controls
    (Play/Stop) when video starts playing.
    Anyone knows how to do this?

    I have the same desire to have video controls hidden unless
    mouse activity. As robertvo stated, FLVPlayer_Progressive.swf with
    any of the Clear_Skin_*.swf skins, shows video controls when movie
    starts. I am embedding player in html and have set skinAutoHide in
    flashvars parameter as follows but it has no affect:
    <param name="FlashVars"
    value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=${param.videoClip}&autoPla y=true&autoRewind=false&skinAutoHide=true"
    />
    Jeff

  • Can't make buttons invisible

    I am trying to use buttons to show word definitions on mouse rollover.  The definition is in the tooltip and is used as the label.  The definition shows, but I can't make the button invisible.  It shows as a solid block with the label.  I've changed the Appearance to no line and no fill, but nothing changes.

    Acrobat X Pro.  Could it be that I have to produce the document for distribution before they disappear?
    I've inserted a graphic with all the settings I have used, but it may not be readable.  I've picked Hidden and no line or background, but it still shows ups.
    Thanks for your help.

  • I have some days ago started updating of Firefox for Mac OS 10.6.8 under Help but it is paused and the upgrading don´t continue when i start again

    I have some days ago started updating of Firefox for Mac OS 10.6.8 under Help but it is paused and the upgrading don´t continue when i start again

    Hi Ryan,
    I managed to find this reference specifically for restoring on Snow Leopard:
    If you are using Mac OS X Snow Leopard, start your computer from the installation disc. Then use the "Restore From Time Machine Backup" utility.
    Now that was copied from this more comprehensive reference:
    Mac Basics: Time Machine backs up your Mac
    You may also find this article helpful:
    http://pondini.org/TM/14.html
    Finally, I cannot see why Time Machine would leave out your playlists and ratings? Think about it. Why would Time Machine specifically copy everything BUT your playlists and ratings? Ryan, what are your options? I would have to ask you this: Are you certain that you properly did the sync? That is another/different forum altogether: Using iPhone /see subsection on Syncing.
    Either way...
    Best Regards,
    mm
    EDIT: For whatever reason I tried three times to edit out one of the redundent adjectives... either different or another which preceeds the word forum, but the advanced editor would (apparently NOT allow me to do so). I hope that it doesn't render without any adjective before the word forum.

  • How do I make a routine stop and start again without restarting labview?

    I am running Labview 6i and am somewhat of a noob.  I have a subVI designed to take information and write it in a file, but every time I stop this subVI it will not start again until I restart the entire VI.  I would like to be able to start it and stop it and take multiple readings because I must leave the main VI running.  The subVI is attached.
    Solved!
    Go to Solution.
    Attachments:
    Saveas.vi ‏23 KB

    I tried a couple of case combinations, and this one seems the most solid.  Still, the while loop is not passing information.
    Attachments:
    Saveas.vi ‏27 KB

  • Make button invisible until end of flv

    I am trying to create a flash file for flash player 6 and 7
    that plays a flv video and when the video is finished you see, over
    the last frame of the video, 2 buttons. The buttons would be
    "replay video" or "go to url". Also how can I make them dissappear
    if the user wants to play the video again?
    If you know of any tutorials or know of any examples, that
    would help as well.
    Any help would be greatly appreciated.
    Thanks
    Thepopguy

    For Flash 8 yes. It worked great, but I need to do it for
    Flash 6 or 7. It gives me a message that says it won't work in
    Flash 7 when I go to publish it.
    I used the same code, but it did not work.
    Thanks
    Thepopguy

  • How to make buttons unclickable when one of them is clicked

    Hello,
    I am using JDev 11.1.1.4.0.
    I have a jspx page that has 6 command buttons. Some of them process the data present in the form and some of them are for navigation. Problem is when a user clicks a command button and clicks other button impatiently if the first process takes some time. Most of the time the app is able to handle this behavior, but when it fails it fails with 404 error(I'm speculating).
    Is there a quick and easy way to make rest of the buttons unclickable until the process finishes? I was going to handle this in backing bean to set the disable property to false when one of them is clicked, but cannot figure out when to set them back to disable=false.
    Many thanks in advance for the help.
    Bones Jones

    Shay,
    I tried something like this, but didn't work for me:
    public void submit(ActionEvent actionEvent) {
            disableButtons(true);
            ADFUtil.invokeEL("longProcess");
            disableButtons(false);
    }Debugging line by line, I found out even after the disableButtons(true) line, the buttons were still clickable. Curious, I put the disableButtons(true) at the end of the method, buttons were disabled when the control came back to the user. So it seems to me only the last diableButton() call before returning control has the influence.

  • Why is that when I have my computer on and firefox open and I shut firefox and reopen I get the restore previous button and when I start my computer there is no restore previous button and I have to reset my tabs. This is very unproductive

    I have asked this before and did not get a answer. Is there a way I can reinstall version 3. Also, how do I get to the tools option can't find

    There was a different question here which I replied to, when I hit Post Rely, this question came up as the one my reply is to! It was from Larry also, but just the same, Why did the reply jump from one question to a different unrelated one? I hope Larry gets the problem he has fixed!
    Hey Larry, I had the same problem when I down loaded Fire Fox 4.0! Go to the upper left corner of the screen. Is there a small red box with an arrow that says Fire Fox? Left click there and a new menu drops down. Go to Options DO NOT CLICK!, scroll over to Menu Bar and left click on it and the red box goes away and leaves all the options your looking for! To remove it back to the other way, left click on Views, scroll down to Toolbars, DO NOT CLICK!, scroll over to Menu Bar and click on that and it will revert to the original set, with red Fire Fox bar in corner again! Have a Nice Day! :)

  • [SOLVED] Using gdm, how to make commands run when x starts?

    Hello World!
    I am running arch on a Thinkpad T400, and would love to be able to scroll using the middle button and the trackpoint. I found this article: http://www.thinkwiki.org/wiki/How_to_co … TrackPoint
    and it says to insert some commands into .xsessionrc. The thing is, I'm not sure where .xsessionrc is, or if arch even uses .xsessionrc. (It said it would depend on the distribution.) I tried putting it in .xinitrc, but apparently that only runs with the command "startx", but I'm using a display manager. (gdm). In this thread:
    https://bbs.archlinux.org/viewtopic.php?id=85714
    the person was told to put the script in .kdm, since he was using that display manager. Is there a similar place for gdm where these commands will run at startup?
    If anyone is curious, here are the commands I need to run:
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
    Any thoughts, hints, suggestions, or solutions would be appreciated.
    Last edited by TheGuyWithTheFace (2013-07-16 23:22:39)

    You should copy the global file to the location cookies indicated, and then modify the local copy.
    https://wiki.archlinux.org/index.php/Aw … ation_file
    Arch wiki wrote:Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:
    It's a good idea to leave that template config file alone (the one in /etc/xdg/awesome), so that when you break your local config (and you will, trust me) you have the template file as a backup.
    You might want to read the wiki page for awesome, and also consult the awesome wiki.
    Last edited by 2ManyDogs (2013-07-16 23:39:56)

  • Help! Stuck on white screen after sleep mode and won't start again!

    Bought the iMac last week, updated to 10.5.1. Worked well until this morning after I did a security update. Then put it in sleep mode - and basta! After I wanted to work on it again - it didn't restart. So, I had to switch off using power button, but it never started again and always got stuck on the white screen with the Apple logo and the rotating loop. Tried to repair permissions - cannot do it, as it says there is an error. Tried to re-install from DVD the Leopard while archiving the previous information - can't do either - says error. Now trying to re-install it again with an erase option. But this is not a good option, people! This is pretty very much disappointing, Apple!
    Can anyone help, please!

    Boy that is way too bad.
    Could you tell us what the error message was?
    While sometimes the error messages are not very informative, other times they are. That might be a clue as to what is going on.
    When you restart from the DVD you have the option to access Apple's Disk Utility and repair the disk.
    You might want to try that, skip repairing permissions at this point.
    You can also reset the computer by unplugging all cables including the power cable for at least 15 seconds and then plug in the power cable and keyboard and restart.
    You can reset the PRAM by holding down the command-option - p - r keys simultaneously during restart and waiting for the startup chime then releasing those keys after the second chime to allow the start to continue.
    HTH

Maybe you are looking for

  • Please help - Trying to create a realistic liquid morphing

    Hello I'm fairly new to Flash and vector art but have a project to create a Flash based flowchart that is made up of liquid blobs that morph to show the various paths to the chart. I've had a go making the blobs in flash but when l go to animate them

  • Just bought a new pc and now my itunes library hasn't got all the songs on it after logging in

    i had a very full i tunes library on my old pc, i have bought a new laptop and have transferred everything over to the new pc but when logging into itunes there isnt half the songs we own on there, i thought it was all on a cloud and can access on an

  • Connecting XI to MSSQL Server

    Hi,   I want to connect to Mssql Server from XI, I have downloaded and JDBC driver of MSSql server. Is this enough to connect to XI server or else i have to do any other configuration in XI server. How to know that JDBC Adapter is enabled in XI Serve

  • Toolbar of ALV hierachy tree cumulates separators at the end

    Hi all, I'm using an ALV hierarchy tree on a dynpro with dynamic subscreens, where each subscreen adds one or two buttons to the standard ALV toolbar. These buttons are separated by a separator. Now the user can reset the screen with the subscreen an

  • Rsplan filter for planning function

    Hi. When creating button in bex analyzer for launching some planning function there is point Use selection from Data Provider where I see only providers based on queries, but none of filters created in transaction rsplan. What i am doing wrong?