FlvPlayback Skin Custom Button calling external function

Hi,
I have a custom movie clip in the flvplayback skin and I am looking for a way to call an external js function. This is what I got inside the skin
my_object.addEventListener(MouseEvent.CLICK, externalFunction);
function externalFunction(){
    ExternalInterface.call("ExternalFunction");
Unfortunately, the ExternalFunction is not being called at all. What am I missing here?
Any help is highly appreciated. Thanks

Here you go.
<div id="customEngine_Container" style="z-index: 10001; border: 0px none; width: 400px; height: 550px; position: fixed; bottom: 100px; right: 100px;">
<object width="400px" height="550px" id="customEngine_Container_o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="customEngine.swf"><param name="quality" value="high">
<param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
<param name="menu" value="false"><param name="wmode" value="transparent">
<object width="400px" height="550px" id="customEngine_Container_o" type="application/x-shockwave-flash" data="customEngine.swf">
<param name="movie" value="customEngine.swf">
<param name="quality" value="high">
<param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
<param name="menu" value="false"><param name="wmode" value="transparent">
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
</a>
</object>
</object>
</div>
May I ask, how is it relevant to AS skin calling JS?

Similar Messages

  • How to call external functions without a .DLL (just using a .H and .LIB file)?

    Hello everyone,
    actually I'm facing little difficulties on how to get an external function getting called from within CVI (Version 2009).
    I was supplied with a .H file and a .LIB file to call an external function from within my CVI project. The .H file looks like this:
    void exportedFunction(double *parameter);
    As far as I know, the external function was written with MS Visual C++ 6.
    So I tried to statically link to the extern al function like this:
    - Add the .H file and the .LIB file to the CVI project
    - #include the .H file where I needed to call the external function
    - do the external function call
    When building I get an unresolved external function call error from CVI so this seems not to be working.
    I made some searches around and got up with two possible issues. Maybe one of you can help me get a bit further and get things working.
    1) The "real" function code is located in the DLL file which was not delivered to me. Or is there a way to get things done (call external functions) just with a .H and a .LIB file (without any .DLL file included)?
    2) The external function does not export according to "C-Style" rules. The function signature in the .H file shows no things like
    extern "C" __declspec(dllexport) void __stdcall ...
     Or maybe it's a combination of both issues (missing .DLL + wrong export style of function)?
    I guess I could get around the wrong export style of the function when I manage to write a wrapper around the original function that actually uses C-Style exporting. But I guess I need the .DLL file for this try as well.
    Thank you for your answers.
    Best regards,
    Bernd
    Solved!
    Go to Solution.

    There is no need  for the dllexport stuff. There is also the option for a static library without any DLL.  But the 'extern "C"' is essential, because it forces the C++  compiler, which was probably used to compile the library , to use C calling convention.
    If you can't ask the provider of the library to provide a version which was compiled using C calling convention the way to go is to write a wrapper with VC++6 around that library which reexports the functions using C calling convertion. Something like
    extern "C" type0 myfunc1(type1 arg1, ...) {
           return func1( arg1,...);
    for every function , you need to use.
    BTW. "unresolved symbol" is the linker error message, you can expect if you try to link C code against a library build with C++ calling convention.

  • Custom button sizes and function

    I've read a lot of posts on custom buttons, but none address how to make my .psd pen button move from selection to selection. Also, for some reason, the pen appears, but it is very tiny. I made the pen a size of 720x480, used a mask and made it transparent. I just want the pen to move to whatever link I have on my main menu screen. And I can't get the pen to appear at each line link. Any ideas?

    The tutorial link in the previous post is what you want. Here's another one: http://forums.macrumors.com/showthread.php?t=134402 Scroll down a few posts and you'll see the steps.
    Basically, you've got to make another file, called an overlay in Photoshop (or GIMP). There ARE some buttons in DVDSP that will do what you want, but not all of them. You're looking for the buttons to be invisible until you select something.
    The "simple button" (I think it's called) will do this. Most of the buttons in DVDSP that look white in the shapes tab can be set to 0 opacity for the normal state, meaning invisible. There are others that aren't white colored as well, but you need to test them out.
    To test, I'd just do ahead and drag a button over, start with the square simple button. Drag it over to the menu. It should say button 1. Add text if you want and then click the button with the mouse so it's selected.
    Cycle through the various states, normal, selected, and activated, and note the color changes. Change the "normal" state colors in the button inspector so that it has a setting of 0 for opacity. If the button disappears then you're good to go. If it doesn't, then you need to use a different button then.
    You should really learn the photoshop overlay method though as it allows you to really customize your buttons and use any shape in the exact way you want. For one of my last menus, I had a menu overlay where the buttons where little martini glasses that moved from menu item to menu item. It is a very valuable skill to learn for DVDSP!
    Look in the zip file the previous poster uploaded. In there is an overlay file. Use that on your menu (but not the other files) and you'll see football shaped buttons appear whenever you select a button. This is what you want to do. Create an overlay with arrows in the appropriate locations. Even though you'll have many black arrows together, only one at a time will appear in DVDSP *** you select them.
    I hope I managed to clear it up a little and didn't confuse further!

  • How can a custom class call a function in "parent" class?

    Say I have an application (ultrasimplified):
    public class myApp {
    myClass mc;
    boolean foo=false;
    public static void main(String[] args) {
    mc = new myClass();
    public static void myFunc(boolean blah) {
    foo=blah;
    in a separate .java file where my questions lie:
    public class myClass {
    boolean bar=true;
    public void myClass() {
    // this is wrong, but how would I do this:
    foo = bar; // foo in myApp set to true
    // or how would I call "myFunc()" in myApp from this class:
    myFunc(bar);
    my problem is that I've created a new class that I share between two applications so I could share the code. However, I want this class I created to call a function in the application class that instanciated it. Or alternatively, I would like to set a variable in the class that instanciated myClass.
    How would go about this? I've used the "this" parameter in applets to pass the parent class to an inner class, but main() in applications doesn't allow the non-static "this":
    myClass my = new myClass(this);
    Is there something similar I can do?

    You can let MyApp implement an interface and refer to that object in MyClass:
    class MyApp implements Something {
    main() {
    MyApp app = new MyApp();
    MyClass mc = new MyClass(app);
    public void foo() { }
    class MyClass {
    Something app;
    MyClass(Something app) {
    this.app = app;
    app.foo();
    interface Something {
    public void foo();
    Better yet, you can let MyApp extend an abstract class that defines foo(). Then MyApp can override the foo() method. If later on, the abstract class needs to add a bar() method then default implementation can be done in the abstract class. If you make it an interface then all implementing classes will have to be updated to implement the new method.

  • Calling extern functions in a c library

    Hi I am new to JNI and I am trying to use an existing c library that I have in a java application.
    I have written a c function which is called from java class, this works fine, the problem is when i try to call functions located in my c library from this function the code wont compile, giving a linker error. Specifically it wont compile the functions marked as being extern in the header file.
    I tried removing extern, but had the same error, I am not a c programmer.
    Any help would be really appreciated

    Hi,
    I doubt you will get a response since this thread is 7 years old. You are better off looking up the documentation for your compiler as this is not really a JNI question.
    With gcc you would use -L<lib_dir> -l<lib>
    Cheers,
    Shane

  • Flash CS3 FlvPlayback Skin Stop Button is working as pause

    Hi,
         I am using the skin for FlvPlayback player I have selected the sking from given list of skin.
         The issue is When I select the skin which is having Stop Button, Stop Button is not stopping the video is it just pause the video and after click of play button it should start from begining of the video which is expected bevhaviour of Stop button.
        any one can help me to resolve this issue.
    Thanks in advance.
    Sangati

    Yup, that is how it works. You can't control which state a button is in. So when you click on it, it will go to the down state and when you let go it will go back to over (or up if you release outside).
    Not sure exactly what the "fix" is. It depends upon what you are trying to do. Generally you would need to use MovieClips instead of buttons with event handlers to tell you "button" what to do. Very few people I know actually use buttons.

  • Call external function from SQL query

    Hi,
    I am new to PL/SQL programming.I don't think this is possible but please let me know if there is a way to achieve this. I have a function written in VB.net and I would want to call from the query.
    create table temp as select id, callvbfunction(note_text) from temp2
    Here callvbfunction is the vb.net function.I need to pass note_text field value to the function.
    Thanks..

    Yes it is possible.
    No idea how to specifically call a .Net function (from Oracle) as I do not do Windows (except for playing games ;-) ). But external procedures (extproc) and Java stored procs can be wrapped by PL/SQL wrapper functions and used in SQL statements.

  • Custom RH9 WebHelp skin: Problem opening PDF file from custom button

    Hi, I've been troubleshooting and checking forums trying to figure out how to get a PDF file to open from a custom button on my WebHelp skin. It worked for me once upon a time, but I changed something in the document and tried to upload the new version and it has errored out ever since.
    I want to have the ability to open the PDF in a new window from the custom button (called 'Printable PDF' on my skin), so I am using the following custom JavaScript in the 'Click On' field of the the custom button's components: window.open('print_test.pdf','printWindow','menubar=0,resizable=0,width=900,height=500,scr ollbars=1');  I know the script is good because I have the same script for the Support custom button and it works great. The only difference between those scripts is the Support script calls an .html file instead of a PDF and the window names says 'supportWindow' instead of 'printWindow'.
    I've tried deleting and recreating the custom button, changing the JavaScript with a developer's help, generating the help on another machine thinking it was a glitch with my browser (using IE8) or RoboHelp license, and combing the help files numerous times. I've also ensured that the PDF file is stored in the skin and project folders along with the other project files/folders. I've used previous versions of RoboHelp and had no problems attaching a Word document and PDF, so I'm wondering if this is a bug in RH9?? Especially since it worked for me initially. Any assistance and/or fresh ideas are welcomed! Thank you!

    Hello again
    Happy I was able to help.
    MOTW is only present and affects things when you are running content off your local C drive. It's value is in preventing that Yellow Information Bar and all that from appearing when you are using IE. Once you publish content to a server and access it that way you are in a different security zone and MOTW has no influence either way. So there would be no adantage to enabling it before publishing to a server. The only reason you might want to consider enabling it would be if you were copying the WebHelp to everyone's hard drive and having them run it from their hard drives.
    Make sense?
    Hope so... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Calling external C-functions in DLLs with struct as parameters

    Hi all PL/SQL Gurus !
    Is it possible to call external functions in a DLL written in C
    wich has pointers to C-structs as parameter. Can you point me to
    an example or extended documentation about this. I had a look at
    the Oracle doc's but found no examples about structs.
    Thank you very much,
    Stefan.
    P.S.: Konfiguration: Oracle 8.1.7.0.0 Client and Server on W2K-
    SP2 machines.

    Hi,
    I have the same problem with you.Now,have you resolve the problem?
    I want to know how to do.if you resolve it ,could you give me a example.
    thanks .
    best regards!
    Liyf

  • Adding custom button in standard toolbar in ALV

    Hello All,
    I need to add a customized button called "Copy" on ALV. The following code is giving me few standard buttons like "Append" "Delete" "Insert" etc. So, how can I add "Copy" button besides one of these standard buttons.
    data: l_value type ref to cl_salv_wd_config_table.
    data: lr_table_settings type ref to if_salv_wd_table_settings.
    lr_table_settings ?= l_value.
    lr_table_settings->set_read_only( abap_false ).
    Appreciate help.
    Thks & Rgds,
    Hemal

    Create One method
    And inside that method write the below code
    (Here i  am creating delete button you can create any name button you want just replace the name
      DATA lV_EDITBTN TYPE REF TO cl_salv_wd_fe_button.
      DATA lr_buttonui TYPE REF TO cl_salv_wd_fe_button.
      CREATE OBJECT lr_buttonui.
      lr_buttonui->set_text( 'Details' ).
      lr_buttonui->set_tooltip(
      'Shows Detail Screen as per the View selected' ).
    Generating Function Object for Button.*
      DATA btn_button TYPE REF TO cl_salv_wd_function.
      btn_button = lo_value->if_salv_wd_function_settings~create_function(
                              id = 'DETAILS' ).
      btn_button->set_editor( lr_buttonui ).
      DATA lr_buttonui1 TYPE REF TO cl_salv_wd_fe_button.
    After that create another method  and make it as a event ( it means now it become event )
    select event ON FUNCTION FROM THE LIST
    Inside that event   write
    CASE LV_FCODE.
        WHEN 'DETAILS'.
           wd_this->fire_OP_TODEATILS_plg( ).
    endcase.
    May be it may help

  • Addition of CUSTOM button in SRM SUS PO page - SRM702

    Hi All,
    Scenario Used : MM - SRM SUS.
    Requirements :  Need to add a custom field  in SRM SUS PO ,click on which will communicate to ECC vai SRM and bring the DMS related information .
    As am new to BSP , do we have any enhancement facility such we have in Webdynpro ? if not what will be the best approch we can follow in this case.
    Thanks
    Channa

    HI Zoltan,
    Yes  you got my requirement,  I have already added  several customer field in the same page  as per guidance by  SAP Note  762984 , mentioned by Anil.
      Now I want to add a custom button called "Fetch ECC DIR"  and when user click on that ,need to call ECC RFC Module.
      Thanks for your inputs, as am very new to BSP ,can you kindly provide some more details how can I achieve this,it would be of great help.
    thanks
    Channa

  • UI class for custom Button

    Hey frineds can any one tell me how can i make a UI class for my custom component?
    Let me explain this is detail
    I have a custom button called MyButton extended From JButton. I can change its appearance at runtime if i define my own UIClass called MyButtonUI which is extended from Basic ButtonUI.
    One way to apply the ui to Mybutton is using method setUI().
    But the much better way is to define our own look and feel class and setting defining buttonUI in it. This is done as follows
    protected void initClassDefaults(UIDefaults table)
            super.initClassDefaults(table);
            table.put ("ButtonUI", "MyButtonUI");
    }But this method sets the newly created UI to every swing button including the button used in comboBox !!
    Can Any one tell me how can i set the ui that is applicable only to MyButton.
    Thans in Advanced

    You should override the method getUIClassID() in your MyButton class which returns something like MyButtonUI. Then you put this in the default table:
    protected void initClassDefaults(UIDefaults table) {
            super.initClassDefaults(table);
            String pkg = ...;
            table.put ("MyButtonUI", pkg + "MyButtonUI");
    }Then you apply the UI only to your custom buttons.

  • How to set default custom button in af:popup

    Hi,
    I am using JDeveloper 11.1.2. I have popup. In that there are two input fields and one custom button called "Login". At runtime after the popup is been launched , while pressing Enter key it needs to trigger the "Login" button. If I use *<af:subForm>* in jsff file, the default is getting triggered. Apart from <af:subform> Is there any way to trigger default button at runitime?
    Thanks & Regards,
    Praveen.

    You can use an af:dialog of type ok/cancel for your popup. If you hit enter it'll work like the OK button is clicked. In a dialoglistener you can destinguage all other buttons or ESC.
    Check out http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html and http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf for a sample.
    Timo

  • 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.

  • Non-Standard Buttons in FLVPlayback skin

    I posted this before but I don't think I explained it very
    well. I'm trying to add a non-standard button to my FLVPlayback
    skin, but it's not showing up. Can you add new buttons (with new
    functionality) to FLVPlayback skins or can you only edit the
    existing ones? This should be similar to adding a logo, does anyone
    have a tutorial or anything on adding a logo to an FLVPlayback
    skin?

    Look
    Here Edit the bar at the bottom of the Skin FLA, and add what
    you want to that... unlock all layers, select all, then resize, add
    a layer and put what you want. Then when selecting a skin for your
    FLVPlayback component, select Custom Skin, and target it.

Maybe you are looking for

  • Contract target value

    Dear guru. I have a contract with release strategy. I change target value and the release strategy is reset. I have created a purchase order before change contract target value. If i change the purchase order value the system check if this change exc

  • Mupen64Plus 2.0 hg in AUR; HOW TO install & configure controllers

    With version 2.0 Mupen64Plus has undergone large changes "under the hood". Mupen64Plus is now modular, and as such the standard plugins has been split into several different packages/repositories. At the moment there exists the following modules: * m

  • Problem identifying complex type

    Hi, I have a WSDL in which the schema is defined as below: <schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.test.org/CrSer" xmlns:mysch="http://www.test.org/mysch" xmlns="http://www.w3.org/2001/XML

  • IS CS3 Production Premium incompatible with Win7 Home Premium 64bit?

    I installed CS3 on my new machine with Windows7 Home Premium 64bit on it and it appeared to install correctly. So when I click the photoshop.exe file it opens a window and freezes.... (not responding) I have sat for an extended amount of time and not

  • What is in the weekly/monthly backups?

    I can understand the hourly backups, but what is in the weekly/monthly backups? Is it the most recent of the hourly/weekly? If I restore a file that's a month old, what is the effective date of the data? Does this question make sense? JD