Current Position:Home > Targetting a button in flv skin

Targetting a button in flv skin

Update:11-30Source: network consolidation
Advertisement
Hi
I want to be able to target a button that is within the skin for a flvplayback component. This is my first real adventure with AS3 and..... (feel like I want to scream!)
In the library for the skin I get "fl.video.skin.FullScreenButtonOnOver" and paste this into the main timeline with some code like this.
stop();
function edward(event:MouseEvent):void{
trace ("the button was pressed");
fl.video.skin.FullScreenButtonOnOver.addEventListener(MouseEvent.CLICK, edward);
which comes back with the error "Access of undefined property fl" - which doesn't surprise me really.
What do I do to target taht button
Thanks

The Best Answer

Advertisement
Thanks for reply
My instance is called myVideo.
so I do this:
stop();
function edward(event:MouseEvent):void{
     trace ("the button was pressed");
myVideo.fullScreenButton.addEventListener(MouseEvent.CLICK, edward);
... lots more code...
and still get an error. Is it something to do with the "delay" you mentioned?
TypeError: Error #1009: Cannot access a property or method of a null object reference.
     at index002_fla::MainTimeline/frame1()[index002_fla.MainTimeline::frame1:10]
  • Targetting a button in flv skin Update:11-30

    Hi I want to be able to target a button that is within the skin for a flvplayback component. This is my first real adventure with AS3 and..... (feel like I want to scream!) In the library for the skin I get "fl.video.skin.FullScreenButtonOnOver"

  • How to I get an FLV Skin to display on external sites? Update:10-11

    This is thee most frustrating thing! I've been trying to get my FLV skin to display on other sites when embedded, but the video is the only thing that shows up. There are no play back controls; nothing! I can view things just fine on my site (so that

  • Target a button inside of a Movie Clip Update:11-30

    I am trying to target a button inside a dynamically loaded movieclip, such as the following (but is not working): clipAnswerYesNo: Movieclip testbutton: embeded button Script is on main timeline. _root.clipAnswerYesNo.testbutton.onRelease = function(

  • Can you adjust the height of the toolbar button in the skin file? Update:11-30

    Can I manually adjust the height of the toolbar navigation buttons in the skin file? It seems no matter how tall I make the nav panel, the buttons adjust size accordingly. Can I tell it to be 50% or something like that? For example, this is what I se

  • Targetting a button in a component Update:11-30

    I'm familiar with outerDocument as a way to get out of the scope of a Component, but how do I target a button that is embedded in a Component. For example, in the following function how do I change the label of the button? public function onButtonCli

  • Custom Buttons in WebHelp Skin Update:11-30

    Hi all, I am trying to add a button to my WebHelp version of my project to enable readers to print the current topic. In my skin editor, I managed to add a custom button, Print, with an image entered window.print() in the JavaScript onClick field tha

  • "Information" button on the skin bar Update:11-30

    Hi, it's the first time that I post a maessae here. I'd like to remove an information button from the skin bar. Is it possible? The Captivate menu allows me to disarm all the buttons except this one... Thanks in advance!Hello and welcome to the Capti

  • Cap 6:  Issue when publish to PDF.  The exit button on the skin does not seem to work. Update:11-30

    All,  I attemped same using Cap 6:  Issue when publish to PDF.  The exit button on the skin does not seem to work.  I switched out skins and same issue.  I am using IE8.  When published as swf, exit button on skin works fine.  Any ideas on solve for

  • E.target on buttons Update:11-30

    Still learning after all of these years. I would like some help on this code section. It seems that only the last generated button can trace out. import fl.controls.Button; for (var i:int; i<5; i++) { var aButton:Button = new Button(); addChild(aButt

  • Button intefering with skin ? Update:11-30

    I've created my own button, active/rollover/down states. The user has to click on this button but i always have problems (bug ?) with this one button. It sits 'near' the the skin which is CpPlaybar in the bottom right hand corner, only Play/Pause, Ba