FLV custom UI buttons help needed

Hello everyone,
I have been searching Google for a few hours trying to find a
good tutorial for a beginner(myself) on how to add Custom UI
components and control and FLV file in AS 3.0. (I am running across
plenty of AS 2.0 tutorials) The reason being I want to play an FLV
in my SWF with only a Play/Pause button and a Mute button and do
not want to be limited to the positions of the flvPlayback
component skins.. I would use the flvPlayback component with the
custom skins but the controls get in the way of my reflection (I am
using the Pixelfumes AS 3.0 reflection class) and autohide is not
an option for me right now.
So what I have done so far is created my FLV
Created my .FLA
Within the .FLA I dragged the flvPlayback component to the
stage and gave it an instance name of video
I chose "none" for the skin
I then converted this into a MC with an instance name of
video_mc.
I created a new layer and added a PlayPause button from the
components panel
I created a new layer and added a Mute button from the
components panel
I created a new actionscript layer and added the following
(this is for the reflection)
(See attached code)
Now I am stuck. I don't know how to get the buttons to
control the flv in AS 3 to play, pause and mute. Can someone help
me out and point me to a AS 3 tutorial or perhaps give me the code
I need to input?
Thank you very much,
Mark

Hello everyone,
I have been searching Google for a few hours trying to find a
good tutorial for a beginner(myself) on how to add Custom UI
components and control and FLV file in AS 3.0. (I am running across
plenty of AS 2.0 tutorials) The reason being I want to play an FLV
in my SWF with only a Play/Pause button and a Mute button and do
not want to be limited to the positions of the flvPlayback
component skins.. I would use the flvPlayback component with the
custom skins but the controls get in the way of my reflection (I am
using the Pixelfumes AS 3.0 reflection class) and autohide is not
an option for me right now.
So what I have done so far is created my FLV
Created my .FLA
Within the .FLA I dragged the flvPlayback component to the
stage and gave it an instance name of video
I chose "none" for the skin
I then converted this into a MC with an instance name of
video_mc.
I created a new layer and added a PlayPause button from the
components panel
I created a new layer and added a Mute button from the
components panel
I created a new actionscript layer and added the following
(this is for the reflection)
(See attached code)
Now I am stuck. I don't know how to get the buttons to
control the flv in AS 3 to play, pause and mute. Can someone help
me out and point me to a AS 3 tutorial or perhaps give me the code
I need to input?
Thank you very much,
Mark

Similar Messages

  • Simple button help needed!

    I want to make a simple round button that glows when you
    mouse over it and depresses when you click it.
    Apparently to do this I need to use Filters to make the glow
    and bevels. But Filtersonly work on movie clips, buttons and text.
    So I make a circle and convert it into a button symbol
    (Btn1). Then I make another button symbol (Btn2) and use the first
    button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
    Assorted Filters are applied to Btn 1 on the Up Over and Down
    frames to get the effects I want.
    I test the button (Btn2) using Enable Simple Buttons. It
    works perfectly - glows on mouse over and depresses on click. Then
    I try Test Movie -- and the button doesn't work!!!
    Not does it work when exported as a SWF file!!!
    I watched a tutorial video that came with my Flash Pro 8
    Hands-On-Training (HOT) book and he used pretty much the same
    technique -- except he only tested his button with Enable Simple
    Buttons. I'll bet my house his didn't work with Test Movie either!
    The stupid thing, is I was just able to achieve exactly what
    I wanted very quickly using LiveMotion 2!
    What is wrong here? Why is it so impossible to create a glow
    button in Flash? Why has it been easy in Live Motion for years?
    All help appreciated!
    Thanks
    craig

    I thought the nesting button situation might be the problem
    BUT there is no other way to apply Filters to Up, Down, etc. Also,
    a freaking tutorial book described that as a valid method, but
    obviously it ain't.
    I tried using movieclips as well but basically had the same
    problem.
    I mentioned LiveMotion 2 because that ancient program can do
    easily what Flash Pro 8 seems incapable of.
    What is the logic behind not allowing Filters to be applied
    to simple graphics? It's absurd!
    There's got to be a way...

  • Multiple Buttons help needed

    Hey everyone,
    I am just beginning to learn the basics of creating web sites in flash.
    I have been following a tutorial and have it done pretty well, but they only cover one main button, and I am at the point where I need several more, but I am doing something wrong.
    The tutorial is at this page: http://www.flash-game-design.com/flash-tutorials/advancedWebsite-flash-tutorial-3.html
    You can skip to the end and download the .fla if you want.
    What I want to do specifically is to add probably 4 other main buttons that can also have drop down menus. Please be as specific as possible because the extent of my code knowledge isn't very far.
    Thanks in advance
    The code for the main page is as follows:
    menu = ["About", "Bio", "Contact"];
    this.createEmptyMovieClip("content", 1000);
    this.attachMovie("sectionBackground","mask",1001);
    mask._y = content._y=208;
    mask._x = target=68;
    content.setMask(mask);
    content._x = -1000;
    imageScrollSpeed = 5;
    xStart = 125;
    yStart = 51;
    bWidth = 79;
    bHeight = 17;
    interval = 50;
    countDown = menu.length;
    menuOpen = false;
    theTime = 0;
    buttonScrollSpeed = 2;
    for (var i = 0; i<menu.length; i++) {
    var section = content.attachMovie("section_"+menu[i], "section_"+menu[i], i+100);
    section._x = section._width*i;
    var b = this.attachMovie("subButton", "subButton"+i, countDown);
    countDown--;
    b.stop();
    b._x = xStart;
    b._y = ySwtart;
    b.interval = interval*i;
    b.target = yStart+(bHeight*i);
    b.txt = menu[i];
    b.pos = target+(i*-section._width);
    b.onPress = function() {
      target = this.pos;
      closeMenu();
      this.gotoAndStop(1);
    b.onRollOver = function() {
      this.gotoAndStop(2);
    b.onRollOut = function() {
      this.gotoAndStop(1);
    b._visible = false;
    function closeMenu() {
    for (var i = 0; i<menu.length; i++) {
      var b = this["subButton"+i];
      b._visible = false;
      b._x = xStart;
      b._y = yStart;
    menuOpen = false;
    mainButton.onPress = function() {
    if (!menuOpen) {
      theTime = getTimer();
      menuOpen = true;
      for (var i = 0; i<menu.length; i++) {
       _root.main["subButton"+i]._visible = true;
    } else {
      closeMenu();
    mainButtoncopy.onPress = function() {
    if (!menuOpen) {
      theTime = getTimer();
      menuOpen = true;
      for (var i = 0; i<menu.length; i++) {
       _root.main["subButton"+i]._visible = true;
    } else {
      closeMenu();
    function scrollButtons() {
    if (menuOpen) {
      for (var i = 0; i<menu.length; i++) {
       var b = this["subButton"+i];
       if ((theTime+b.interval)<getTimer()) {
        b._y += (b.target-b._y)/buttonScrollSpeed;
    this.onEnterFrame = function() {
    content._x += (target-content._x)/imageScrollSpeed;
    scrollButtons();

    I still really need help on this

  • AWT start/stop bundle buttons Help needed.

    Hello,
    I need help getting start/stop buttons on my AWT Class to take the action of methods from an other class. I will give anybody who can figure this out ALL OF MY Duke Dollars. (I shortend it up to the important stuff so that there isn't too much to read):
    MY PROBLEM: I need to have my Gui user interface to start up first. Then when somebody clicks the Gui class "start" button, it will call the start method of my Activator class and similiarly for the "stop" button. When I run the program, it starts up already in "start" mode. It should start up without getting the service (stop mode) and then get it once "start" is pressed" Hopefully somebody can help me figure this out.
    First, I have the following AWT class
    public class Gui extends Frame{
          Frame f;
          MyImage imagePanel;
          Button button_start;
          Button button_stop;
          Label statusBar;
          Panel btns;
        public Gui() {
            addWindowListener(new WinClosing());
            setLayout(new BorderLayout());
            imagePanel = new MyImage();
            btns = new Panel();
            button_start  = new Button("START");
            button_stop  = new Button("STOP");
            btns.add(button_start);
            btns.add(button_stop);
            add("North", btns);
            add("Center",imagePanel);       
            button_start.addActionListener(new ActionListener(){     
                public void actionPerformed( ActionEvent e ){
                    imagePanel.getImage();
            button_stop.addActionListener(new ActionListener(){     
                public void actionPerformed( ActionEvent e ){
                imagePanel.closeImage();}
            });          }Then I have the Activator class:
    public class Activator implements BundleActivator {
         public ServiceReference reference;
         public void start(BundleContext bc) {
             reference = bc.getServiceReference(GpsService.SERVICE_NAME);
             if (reference == null) {
             System.out.println("User could not get a service.");
              } else {
             AnyService anything = (AnyService) bc.getService(reference);
                    UserClass user = new UserClass();
                    user.startup(anything);
    public void stop(BundleContext bc) {
        if (reference != null) {
        bc.ungetService(reference);
        reference = null;
        System.out.println("User has released its Service.");
        } }}Then this previous class calls the startup method for this class:
    public class Driver {
            public void startup(AnyService any){
            double any  = any.getValue();
            System.out.println(any);
            Gui g = new Gui(any);
            g.setSize(714, 480);
            g.setVisible(true); 
          }}Thanks in advance!

    Hmm, it's quite hard to imagine what's going on without the code for MyImage. However, I guess you need to add an ActionListener to your two buttons. Are you sure you need two buttons, though? Presumably you can't stop until you've started and vice versa?
    private Activator activator;
    private Button startButton;
    private Button stopButton
    public Gui()
      startButton = new Button("Start");
      stopButton = new Button("Stop");
      stopButton.setEnabled(false);
      startButton.addActionListener(new ActionListener()
        public void actionPerformed(ActionEvent e)
          start();
      stopButton.addActionListener(new ActionListener()
        public void actionPerformed(ActionEvent e)
          stop();
    private synchronized void start()
      // Construct the Activator when we need it
      if(activator == null)
        activator = new Activator();
      activator.start(...); // Don't know where you get your BundleContext from!
      startButton.setEnabled(false);
      stopButton.setEnabled(true);
    private synchronized void stop()
      activator.stop(...); // Don't know where you get your BundleContext from!
      startButton.setEnabled(true);
      stopButton.setEnabled(false);
    }I'm assuming here that once the Activator is "started" is stays started until it is told to stop, ie, it doesn't stop itself after a finite amount of time.
    Hope this helps.

  • Custom Calculation Script Help Needed

    I need to make a script that Sums a column of fields based on whether or not information found in another column of fields is the same or specific text. Please see below screenshot of what I would like it to do.
    I would like a Sum of all Amounts that have the Code A...

    You can use this script as the custom calculation script of "SumOfA":
    var total = 0;
    for (var i=0; i<=2; i++) {
        if (this.getField("p1TC."+i).value=="Code A")
            total+=Number(this.getField("p1RecIn."+i).value);
    event.value = total;
    You can easily adjust it for the other field as well.

  • Flash project audio button help needed

    Hi,
    I am just learning Actionscript 3 and trying to create buttons that turn a previous sound off before they turn a new one on. Also I want a button on the front that turns all sound off if it is pressed. I have attached my files in a zip folder.
    The problem is all of my buttons which are inside movieclips just control the one sound. I have a couple more to do. I understand I will need an if statement but somehow I have to control all sounds and I don't quite get it.
    I would really love someone to point me in the right direction. I cannot find a tutorial anywhere and am going crazy.
    I look forward to someones reply,
    Jan

    Jay Robinson2 wrote:
    I've just upgraded to Logic 7.2 as I bought an intel Mac. However, for some reason the audio plays through the macs built in speaker. I've got into preferences>audio>drivers and changed the driver to 'built in line input' but it's still playing through the speaker itself. I never had this problem while i was running previous versions on my old mac
    When i boot up logic it does say something that i've never seen before which could be the cause...' Project Manager database on disk has got wrong version. Rescanning required'.
    Any ideas?
    G5 2.8 Quad Mac OS X (10.5.5)
    Hi,
    Try updating to 7.2.3
    As far as the Manager... try doing a new expanded scan, overnight. This will update the database.
    As far as the built in driver... you are selecting an INPUT.... and you expect it to change the OUTPUT??? Again, you are selecting an INPUT, while expecting the OUTPUT to change.
    The Built in drivers have only 1 output available, And in your case, that is working as expected. When you want to RECORD via either input, that is when you change the driver. You should have two choices : Mic, and Line.
    Cheers

  • PayPal button help needed

    I have inserted the PayPal code as an HTML snippet in my website and the buttons look fine. When I click on them on the published site, Safari quits. Is there something I'm doing wrong?

    Your problem may be with Safari. A lot of people are experiencing random crashes...
    http://www.macfixit.com/article.php?story=20071221101855547
    The latest security update - yesterday - is supposed to fix it....
    http://www.macfixit.com/article.php?story=20071222105253236

  • Can't register on MSI customer support page, help needed!

    Hi there,
    My MSI GTX 560 TI is faulty and I am trying to get it replaced by MSI, however whenever I try to register and then login on the support page on the MSI site I receive an error saying "incorrect account name or password."
    I have tried making several different accounts with no luck, any help would be greatly appreciated.
    Cheers!
    EDIT : SOLVED by using another email address

    Gåve your printer printed the instruction mail? You get ut when you activate webservices safter you press print. Repport in The status screen for eprint

  • Technical help needed  for button click

    Hi All,
    Im new to abap, just  now started working in my first project. I need some help and start from you.
    In my webdynpro component FPM_OIF_COMPONENT  : CNR_VIEW, Participate button  is there,
    so by default u201CCreate Responseu201C button is grayed out. By clicking the participate button, I need to enable the create response button. For this requirement, I need to create a custom class with two static methods : setvalue and getvalue methods. In that methods I need to set the variable = X, if participate button is pressed. And when loading WDDOMODIFY VIEW method, I need to check the value of the variable, if the value is X, then create response button will be enabled.
    For this logic, Can you please frame some sample code.
    Or please guide me throug some materials.
    Please help me in this regard.
    Regards,
    Rani.
    Moderator message: moved from ABAP forums.
    Edited by: Thomas Zloch on Jun 29, 2011 11:14 PM

    Hi Rani,
    I understand you are new to ABAP basically the webdynpro questions are posted in webdynpro-ABAP, Forums going forward you should adapt the same practice to get a better response.
    As you said u201CCreate Responseu201C button  is already grayed out it must be already linked to attribute of type wdy_boolean
    check the "enable property" of the button.
    Coming to your question :
    In the "OnAction" event of Participate button write a method for example  get value
    "Make the attribute" linked to create response button as abap_true hence whenever participate button is pressed it
    will make your create response button enabled.
    Regards
    Bhanu Malik

  • Help needed in creating a Customer in SD

    Hi,
    I am trying to create a customer using the FM  'BAPI_CUSOTMERCREATEFROMDATA1'. Without Providing Reference Customer nbr, i am not able to create. Is there no means to create a customer without giving Reference Customer.
    All helpful answers will be rewarded.
    Regards,
    Udaya

    Hi Udaya,
    I have checked for the FM you have mentioned. That does not exist in my system. Anyway I could successfully create a customer using the FM BAPI_CUSTOMER_CREATE.
    This is the FM which lets you create a customer without the need of any reference. If it is configured in XDN1 that your account group has external number, please provide a number to your customer in the initial screen after you execute your BAPI.
    Let me know if you have any further concerns,
    Regards,
    Ramakanth

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • Help needed in Customer exit variable

    Hi Experts,
    We have a scenario as below.
    User enters fiscal year period.Based on the fiscal year period,entire year will be selected.
    Row would contains
    0fiscper3(Fiscal months from Jan to Dec)
    Column contains Amount(Actual or Forecast)--There is a restricted keyfigure on amount.If value type=60 then forecast
    and value type=10 then actual amount
    If the user enters 002.2010 then it should give Actual values ie value type=10 for 001.2010 and 002.2010.For all values greater than 002.2010, it should give forecast values(value type=60)
    Report Format.
    Jan----
    Actual Value(value type=10 in the column for amount)
    Feb----
    Actual Value(value type=10 in the column for amount)
    Mar----
    Forecast Value(value type=60 in the column for amount)
    Apr----
    Forecast Value(value type=60 in the column for amount)
    May----
    Forecast Value(value type=60 in the column for amount)
    Jun----
    Forecast Value(value type=60 in the column for amount)
    Jul----
    Forecast Value(value type=60 in the column for amount)
    Aug----
    Forecast Value(value type=60 in the column for amount)
    Sep----
    Forecast Value(value type=60 in the column for amount)
    Oct----
    Forecast Value(value type=60 in the column for amount)
    Nov----
    Forecast Value(value type=60 in the column for amount)
    Dec----
    Forecast Value(value type=60 in the column for amount)
    I know that i have to create a customer exit variable for value type
    But in this scenario.the value for value type may change in each row based on fisper3(month).
    How can i obtain such a scenario in the customer exit
    Your help will be appreciated.
    Thanks,
    Senoy
    Edited by: senoy laxman on Feb 15, 2010 6:42 AM

    Hi Senoy,
    you have to create two customer exit variables for fiscal year period(0fiscper) as given below.
    1. for actual values (value type=10), coding in cmod such that showing values less than and equal to user input values.
    2. for forecasting values(value type=60,)coding such that showing values greating than user input values.
    use the first varible in the first selction and the second varible in the second selection in the given below structure(use the structure in rows)
    use the fiscal period user input varible in the third selection in the given structure below.
    structure
    selection - (Actual)-restrict with value 20 and first customer exit variable .
    selection -(Forecast)-restrict with value type 60 and second customer exit variable.
    Selection - 0fiscper
    Add the key figure 0Amount in the columns or in rows(in the selection of second structure) as per your requirment.
    hope this helps you.

  • Error while saving general customer data....Help needed...!!!

    Hi all,
    I am testing peoplesoft 9.0 version for an upgrade project. When i try to save the general customer information using Home>Customer>generalinformation . i got the following error. *"Invalid parameter 1 for function currentrownumber (2.116) TABLENAME.FIELDNAME.savePostChange*"* . this is custom people code in a custom table. plz help me to solve this.

    One reason could be that the blocks that you are trying to save are locked either through excel-addin or someone else might be updating the same combinations. I have encountered such issues earlier and got the same error. Check if there are any locks in essbase while you are saving the planning data.

  • Custom Push button on CAT2 t-code

    Hi Experts,
    There is a requirement in my project, where we need to add a custom push button in the application tool bar of CAT2 transaction.(This push button must be placed right next to the additional fields push button). When this push button is pressed, a pop up must be displayed with some details on fields.
    There are three screen exits available for this screen.They are as follows:
    CATS0005
    CATS0007
    CATS0012
    Is it possible to add a custom push button in this standard application tool bar? If so, can you please help me in identifying the appropriate screen exit that can be used to achieve this requirement.
    Also, the current system is in 4.6c version and the above requirement is to be implemented in 4.6c. In near future, there will be an upgrade to ECC 6.0 version. So it will be helpful if you can give me suggestion that is applicable in 4.6c and ECC 6.0 verison.
    Thanks a lot in advance,
    Regards,
    Deepa

    Dear Sreekanth,
    In SAPLMEGUI program you suggested me that do SHD0 and add GUIXT to add new button.
    What is SHD0 and GUIXT ?
    How can i do this ? please explain me step by step ?
    Regards,
    K.Chinna

  • Custom Toolbar button in Adobe Acrobat Reader

    Hello Everyone,
    I need to add a custom toolbar button in Adobe Reader using C# 2.0 and performed some custom tasks by clicking on this button.
    Could anyone guide me, how to add a custom toolbar button in Adobe Reader application?
    PS: I have create a Shared Addin for adding Custom Toolbar for office applications but have no idea how to start for Adobe Reader application.
    Your instant reply will be highly appreciated. Thanks in advance.
    Best Regards,
    Malik Irfan

    I'm ok with just using Javascript to make the toolbar button, instead of C/C++.
    I assume you mean by your second point that I actually have to own Acrobat professional, which I do.
    I tried looking at the documentation, but it keeps crashing my browser.
    However, from my experience with all other Adobe products (Studio MX, Authorware, etc), I do not expect a detailed walkthrough from start to finish, with pictures saying "click here" and such.  Does this help manual actually contain this sort of thing?
    I really appreciate the fast replies!

Maybe you are looking for