Customizing flvPlayback component buttons

Hello folks,
I am working on a project that includes video. I am
controlling the aspects of the video using custom playback buttons.
However, I want the ability to scrub the video (forward and
back) instead of when you click the forward or back buttons, you're
not going to either the beginning or the end of the video. Think
about your DVD player-when you hit the fast forward button, you are
actually seeing the frames speeding by. Same for the rewind button.
I don't want to jump to the beginning or end.
Does that explanation make sense? If not, please let me know.
I appreciate your time and attention on this.
Kind regards,
Greg

Thank you for posting that code. I feel I'm close to getting this sorted!! I've implemented that function and get output like (the initial number is how deep the instance is in the display list):
1 instance1
2 videoPlayer
2 0
2 instance16
3 instance17
3 instance18
2 instance19
2 instance20
2 instance21
2 instance22
1 instance23
1 instance24
1 instance25
1 instance26
1 instance27
2 instance28
2 instance29
2 instance30
3 on_mc
4 instance32
5 button_mc
5 instance33
2 icon_mc
etc. etc. etc.
However, if I add a button to the skin and give it an instance name it doesn't seem to come through in the list. If I try to target any of these names (video.videoPlayer.instance17.visible = false;) I get 1119 error (Access of possibly undefined property instance17 through a reference with static type fl.video:FLVPlayback).
If i did go down the route of creating my own skin, would the code come across for the buttons and the functionality if I wanted say for example full screen. Would this be a case of just naming and setting instances correctly? Would I need to re-layout objects for full screen?
Sorry for all the questions; it just seems so complex when all I want to do is either override existing skin button code or add a new button.
Thanks for any input, Mark

Similar Messages

  • Custom FLVplayback skin buttons

    I have searched all over the web and have found multiple site
    with titles about customizing the FLVplayback skin. But they all
    seem to fall short when it comes to loading a developers own
    custome graphics.
    Now, I might have just simply missed the boat or I am
    overlooking the obvious. But I can't seem to find any examples or
    details about how to use my own custom graphics created in
    photoshop, and put them in place of the default graphics used in
    the Flash provided skins.
    I ma looking for someone to suggest a book on this subject or
    link to a detailed tutorial on how this is done.
    Thanks

    erm.. You just need to grab the single buttons from the
    component library and replace the graphics with your owns. It's
    also explained in the help file of Flash how to do that.
    If you need any help, let me know.

  • Android Back Button when FLVPlayback component in full screen

    I'm launching an FLVPlayback component in to full screen by setting fullScreenTakeOver = true and setting StageDisplayState to FULL_SCREEN in an air for android app. This works fine. The video plays in full screen
    But when I press the device Back button, it quits out of the app.
    Everywhere else in the app I can catch the key_down event and do preventDefault(), stopImmediatePropogation(), but the event doesn't seem to fire when FLVPlayback is in full screen.
    I've tried adding the Key_Down event listener to NativeApplication.nativeApplication, to stage and to the FLVPlayback component itself. None of these seem to work.
    I do, however, get the correct behaviour when I test the app in Flash IDEs simulator
    Thanks
    Ben
    EDIT:
    Also worth noting. Using latest Flash CC and AIR 17 testing on an S4

    www.giancarlogenise.com
    the video is in the promo section.
    if you navigate the site without pressing the Full screen button, everything is fine.
    If you click the full screen , strange behaviours every time
    I bought this template, but I have to add the video section by myself.

  • Remove sound in FLVplayback component?

    How do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add SoundMixer.stopAll(); for every button in my main and loaded swf but this will stop my background music as well....
    The flvplayback component is located in another swf file and the code was added on the second frame of the movieclip call "scrollGroup"
    import fl.video.FLVPlayback;
    import flash.events.Event;
    var flvPlayback:FLVPlayback = new FLVPlayback();
    flvPlayback.fullScreenTakeOver = false;
    flvPlayback.autoPlay = false;
    flvPlayback.source = "video/Listening_to_Community_Voices.f4v";
    flvPlayback.skin = "MinimaFlatCustomColorPlayBackSeekCounterVolMuteFull.swf";
    flvPlayback.x = 31;
    flvPlayback.y = 123.8;
    addChild(flvPlayback);

    http://forums.adobe.com/message/2587415?tstart=0

  • Steps to create a custom Window component?

    What steps do I need to take to create a custom Window component? My approach now results in the component being uneditable in design view. What I do is simply select "New > MXML component", base it on spark.components.Window and supply a filename. I tried with a Panel component and that works fine.

    Hi,
    Step by Step creation of SAP Payroll Funcitons:
    1) Follow the menu path
       Human Resources>>Time Management>>Administration>>Tools>>Funtions/Operations
       or transaction PE04. Enter a four digit name for e.g ZIABC, and press the create
       button, enter the description. On creation the system proposes the name of
       the routine use it, or enter a name of your choice by selecting the option 'Self-defined'.
    2) During the execution of payroll some tables are filled with wage types and there amounts
       to make these tables available to your routine enter the name of the table for e.g (RT or
       CRT) in the input parameters, and to make the changes done to the data in the tables
       avaiable to the payroll enter the name of the table in the Output parameters as well.
       Input Parameters
       Ctry                                         Num     Object Name
       99                                           1       RT
       99                                           2       CRT
      and same shall be done in the Output Paramters if required.
    3) Create an include in the program PCBURZ990 (using Transaction:
    SE38), in which create a subroutine with the name supplied by SAP or the
    name selected by you during Funtion creation,
    in our case, it is FUZIABC.
    Note: The program PCBURZ990 is in SAP Namespace, so an Access Key
    will be required before you can proceed. But it will not be overwritten during any upgrade.
    *Example of the subroutine
       FORM FUZIABC.
    *enter the code
       ENDFORM.
    4) After this activate the program the Funtion and add it in the schema used for payroll processing.
    Reward points if helpful.
    Regards,
    Manoj.

  • Targeting an FLVplayback component within a nested movie element

    I'm trying to get my own buttons to load FLV movies into the FLVplayback component. I've got it to work in a simple test but need help making it work on a more complex level. The test is here http://lawrencejonespromoprince.com/testvideo.html
    I've named the FLVplayback instance 'my_video'
    The simple buttons have this script in the actions:
    on (release) {
          my_video.load("videonamehere.flv");
          my_video.autoPlay=true;
    This all works great as long as the buttons and the FLVplayback component are on the same frame on the same page. But for the actual use, i need it to work where the buttons are on a nested page within another movie element. So the nest looks like this:
    Scene1   Nestmovie1   Nestmovie2   Nestmovie3
    ...where the FLVplayback component is in Nestmovie2 and the buttons are in Nestmovie3.
    The nesting was needed so the buttons are on a separate slider panel so i can scroll through the list of movies.
    See the actual flash site in progress here http://lawrencejonespromoprince.com/index2.html
    and the movie list (not done) will be on the 30 Promos page.
    So now the question is, how can i target the FLVplayback instance within a nested movie.
    Thanks

    You should be able to use _root references to get back to the main timeline to target the flv player
    on (release) {
          _root.nestedMovie1.my_video.load("videonamehere.flv");
          _root.nestedMovie1.my_video.autoPlay=true;

  • Embedded Component Button Disabled

    Hi everyone,
    I created an Embedded Component with a button to be added on a standard TI so I also created the EventHandler for the onClick properties of the button that will perform the action of a custom object, but upon loading the page, the button is disabled. What do you think is missing from my configurations? Below is the screenshot of my event handler.
    Thanks in advance.
    Regards,
    Rajiv

    Hi Rajiv,
    the instance binding is missing for sure!
    An action can only be executed on a selected instance of your custom business object. What you need to do:
    - Create an "Inport" in your embedded component.
    -  Set AutoFire and AutoExecute in the properties of this Inport (right-hand-side) to TRUE
    - Select an EventHandler that is executed onFire
    - Bind your UI component with the "BOOperation" Read to an instance of your custom BO (if there is none you might wanna create one either via ABSL or via an Operation dynamically)
    - Bind typical the "Outport" which sends the ID from the standard TI to the "Inport" of your embedded component (normally I use this for the dynamic instance creation via BOOperation create)
    When your UI component is bound to your custom BO the Button will be click-able and the action will be executed. I am sorry that I currently cannot help with screenshots but I am sure something similar is already explained somewhere in SCN...
    Cheers,
    Jens

  • F4V video will autoplay in FLVPlayback component but won't appear w/autoplay "false"

    I'm designing a Flash Form Application (using screens) for an interactive portfolio. One screen, labeled multimedia (video), has an FLVPlayback component that appears on "stage" once visitors click the "multimedia" text button. The screen appears fine and the video actually begins to play with the parameter to autoplay toggled to "true." However, as this is just one of many screens, I only want it to play when the screen loads or when the visitor clicks the play button.  And please don't assume anything.  I'm an amature with components.
    I'm sure it's something small that I've missed. Has anyone else run into this or know why this happens or what I may've missed? Am grateful for any helpful assistance anyone offers.
    Thanks.

    See:
    FAQ: How do I import VOB files / edit a DVD?
    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   
    RSS feed)
    - Over 350 frequently answered questions
    - Over 300 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Switching between FLVPlayback component at their playheadTime

    Hi There,
    I hope someone can save me with this.
    I am currently on a project (AS3), where I have 2 frames, with videos (using the FLVPlayback component).
    and I want to switch from one video to the next video, however the catch is when i switch to the next video I want the new video to play at the previous video time.
    example:
    Video 1 plays,  10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.
    This is the codes I been using so far:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
    function timer(e:VideoEvent):void {
        var newTime = video1.playheadTime;
    nextFrame_btn.addEventListener( MouseEvent.MOUSE_UP, nextFrame);
    function nextFrame (MouseEvent):void
                gotoAndStop(2);
          video2.playheadTime = newTime;
    This doesn't work and I do not know what I am doing wrong.
    many thanks if you can help.

    yes there is another layer with codes but that is for the buttons.. that can work throughout the flash (in all frames). Sorry I forgot about that. Those buttons are just basic home, end buttons. In the other layer is the switch code for the button I am trying to make.
    This button/code for some reason does not like being in the main code layer. So I added it in another layer, which seem to make it work. (The part where I want it to gotoAndStop in another frame.)
    var newTime:int;
    switch_btn.addEventListener(MouseEvent.MOUSE_UP, switch1);
    function switch1 (MouseEvent):void // Function to turn on 3D mode
                        newTime = video1.playheadTime;     
                        this.addEventListener(Event.RENDER,renderF);
    trace("stage:",stage);
                        stage.invalidate();     <= that use to be line 15 before the trace was added.
            gotoAndStop(2);  
                        trace (newTime);
    function renderF(e:Event):void{
      video1.seek(newTime);
    the other layer has this code:
    cha1_btn.addEventListener(MouseEvent.MOUSE_UP, cha1);
    chan2_btn.addEventListener(MouseEvent.MOUSE_UP, chan2);
    function cha1 (MouseEvent):void
              gotoAndStop(10);
    function chan2 (MouseEvent):void
              gotoAndStop(11);
    They are on seperate layers because the switch function is used in all the frames, but to gotoAndStop in different frames.
    aka this one: is in frame 10, which goes to frame 2
    and there will be another one in frame 2 to go to frame 10.
    then there is another in frame 11, which goes to frame 3
    and then the same for frame 3 to goto frame 11.
    so thats why there were in seperate layers, to be able to change that. (sorry if this is getting confusing)

  • How to recognize FLVPlayback Component

    Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.
    We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
    findCurrent = function (obj)
    // RECURSIVE SEARCH FOR MOVIECLIPS
    for (var i in obj) {
      if (typeof (obj[i]) == "movieclip" && obj[i] != obj) {
       if (obj[i]._name == "pauser"{
        continue;
       var m = obj[i];
       m.frameWas = m._currentFrame;
       isCurrent.push(m);
       findCurrent(m);
    The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
    I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
    Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."
    So does anybody else have any suggestions?

    if you don't have other components/movieclips (that use boundingBox_mc):
    findCurrent = function (obj) {
        // RECURSIVE SEARCH FOR MOVIECLIPS
        for (var i in obj) {
            if (typeof (obj[i]) == "movieclip" && obj[i]._parent==obj) {
                if(i=="boundingBox_mc"){
                    findPauseF(obj);
                    abortSearch=true;
                if(!abortSearch){
                    findCurrent(obj[i]);
    function findPauseF(flv:MovieClip){
        // do whatever with flv

  • Loading a swf with FLVPlayback component, and the flv restarts playing by itself......

    Hi.
    i have an fla file with 5 keyframes. Each keyframe navigates forward to the following keyframe. On the fifth keyframe, a Loader loads an external swf. The external swf has an flv playback component with sound.
    The fifth keyframe, other than having a button to click to load the swf, has a movie clip that navigates you back to the first keyframe.
    The loaded swf, once loaded, may be removed using removeThis function which has removeChild code as well as a  _flv.stop(); which makes the flv stop when the swf is removed. So u're back on keyframe 5, no sound - good!.
    ASo, all is well and the user can navigate back to the first keyframe (from keyframe 5), and from there continue on to the 2nd, 3rd, 4th and 5th keyframes again,  problems start though, when you get to that 5th keyframe again: that keyframe has an FLVPlayback component playing an flv, which at that point becomes very sluggish as all the mc animations on that 5th frame. And worse, i realize, the flv in the external swf that was previously loaded, starts playing by itself, which i know, because i hear its sound track.
    I tried putting a conditional statement to tell the _flv to stop on keyframes 1 and 5, but that causes errors, considering that the flv is an undefined property from the perspective of those keyframes.
    Any help would be very appreciated:)
    thanks.

    var loader:Loader = new Loader();
    loader.load(new URLRequest("_.swf"));
    house.addEventListener(MouseEvent.CLICK, loadswf1);
    function loadswf1(event:MouseEvent):void
        addChild(loader);
    this is how i'm loading the swf. I tried using   Loader.unloadAndStop() inside that loadswf function but get an error -
    Scene 1, Layer 'a', Frame 75, Line 83
    1061: Call to a possibly undefined method unloadAndStop through a reference with static type Class.

  • [svn:cairngorm3:] 16694: Adding a custom IconButton component.

    Revision: 16694
    Revision: 16694
    Author:   [email protected]
    Date:     2010-06-28 05:20:58 -0700 (Mon, 28 Jun 2010)
    Log Message:
    Adding a custom IconButton component.
    Using the ErrorPolicy.RETHROW flag for unhandled exceptions
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncBasic.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncContext.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/assets/contactsStyles.css
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SearchContactsCommand .as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/infrastructure/AlertHandler.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/PictureInput.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/Toolbar.mxml
    Added Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/components/
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/components/IconButto n.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/components/skins/
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/components/skins/Ico nButtonSkin.mxml
    Removed Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/skins/button/

  • How do I access flvplayback skin buttons?

    I am using a .swf that contains a flvplayback component with
    a skin set. How do I access the skin buttons and their events
    through actionscript? I see no reference to them as individual
    buttons.
    Thank You in advance for your help

    You need CC2014 for these masks.

  • FF on FLVPlayback component

    Hi,
    how can I get the current time of a FLVPlayback component to
    call a seek
    for fast forward and rewind?
    Or is there a better way instead of the seek function to do
    this?
    TIA

    GVSJSM wrote:
    > I have 2 versions of a set of FLV movies -- one designed
    for visitors with
    > broadband and one designed for visitors with dial-up. I
    want to offer visitors
    > a choice of which version of the movie to view by
    putting a radio button group
    > or dropdown menu on the FLVPlayback control. (See, e.g.,
    the NYT homepage
    > control.) How do I customize the control for this
    behavior?
    Why not just make button on top of it ? Sound like trying to
    totally overkill.
    No one knows where the buttons are in complied movie, make it
    look like it's within
    the component while its on top of it.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Changing custom AWT component to Swing component

    I created my own AWT component. I'd like to change it to Swing component.
    Does anyone know how to change or create a custom Swing component?
    Please also provide some framework to develop a custom Swing component.

    First try to know the difference between SWING & AWT. You can either adopt to SWING or AWT but be specific of what you want to do !
    If you like to migrate from AWT to SWING ,then make the necessary changes in your coding.(ie, re frame things like , Frame to JFrame , Button to JButton ,JTextField to JTextField etc..)
    For creating custom components ,say a component called MyLabel and you should design a class which extends JLabel and do whatever you like...
    eg import javax.swing.*;
    public class MyLabel extends JLabel
      MyLabel(String title)
         this.setTitle(title);
         this.setBackground(Color.white);
         this.setForeground(Color.blue);
    }For more details go to java tutorials.

Maybe you are looking for