Run a function in flash when click a button on HTML page

dear friends,
i have loaded my swf in an html/ aspx page. when i click a button in html page, i want to pause my swf movie. Actually swf has another movie clip i want to stop that. any option pls help me. possible send me some sample coadings.. i tried with externalInterface but no result..
or if i click a button in html page, i want to run a function existing in loaded swf....
thanks in advance...
Thanks and Regards,
Syed Abdul Rahim

Dear Mr.ned,
Greetings! i tried to put the id also, still its not working.. any ideas? find below my codings:
flash code:
import flash.external.ExternalInterface;
ExternalInterface.addCallback("methodName", method );
function method() {
    mytxt.text = "call from java script";
    trace("called from javascript");
HTML code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jscr_rd</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<p>
  <!--url's used in the movie-->
  <!--text used in the movie-->
  <!--
<p align="left"></p>
-->
  <!-- saved from url=(0013)about:internet -->
  </script>
  <script language="javascript" type="text" >
function methodName() {
   jscr_rd.method();
   window.alert("hi.. u clicked me?");
</script>
  <script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','550','height','400','id','jscr_rd','align','middle','src','jscr_rd','quality','high',' bgcolor','#ffffff','name','jscr_rd','allowscriptaccess','sameDomain','allowfullscreen','fa lse','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','jscr_rd' ); //end AC code
</script>
  <noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="jscr_rd" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="jscr_rd.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#ffffff" />   
      <embed src="jscr_rd.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="jscr_rd" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />   
  </object>
  </noscript>
</p>
<form name="form1" method="post" action="">
<input name="but" type="button" value="click me" onClick="methodName()">
</form>
<p> </p>
</body>
</html>
pls check advice me
Thanks and Regards,
Syed Abdul Rahim

Similar Messages

  • How to hide a TextField when clicking another button

    Hello!
    I've been able to generate a TextField to appear when clicking a button, but when I click on another button, to display some more information, I still have the first TextField displayed.  I've had a look around, but not been able to find anything to help me with getting the first to disappear.  Can anyone provide any ideas for this?
    The code I'm using for displaying the TextField is:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    var fl_TF:TextField;
    var fl_TextToDisplay:String = "Send disply to the right screen/projector";
    function fl_ClickToPosition(event:MouseEvent):void
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = fl_TextToDisplay;
    addChild(fl_TF);
    Many thanks in advance

    all your buttons should call the same function. 
    because each button probably triggers different text to be displayed, you can use an object or dictionary to associate the buttons and their text:
    // execute these two lines and your function once at the start of your app
    var dictionary:Dictionary=new Dictionary(true);
    var fl_TF:TextField;
    function fl_ClickToPosition(event:MouseEvent):void
    if(fl_TF&&fl_TF.parent){  /
    fl_TF.parent.removeChild(fl_TF);
    fl_TF=null
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = dictionary[e.currentTarget];
    addChild(fl_TF);
    ////////// and for each button use something like:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    dictionary[button10] = "Send disply to the right screen/projector";

  • How to switch to another page when clicking a button

    I have a main frame consits of many button.What I need to do when click
    a button,it switch to another page?
    Thanx....

    Try this, it should work.
    // not tested
    JButton linkButton = new JButton("<html><a href=\"http://forum.java.sun.com\">link to<br>forum</a></html>");

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012

    Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012, I've got the following error. Can anyone help me with this? Thanks in advance!
    Nombre del evento de problema:    CLR20r3
      Firma del problema 01:    encoder.exe
      Firma del problema 02:    4.0.4276.0
      Firma del problema 03:    4eafa0d7
      Firma del problema 04:    mscorlib
      Firma del problema 05:    4.0.30319.18408
      Firma del problema 06:    52310b91
      Firma del problema 07:    3e69
      Firma del problema 08:    0
      Firma del problema 09:    System.InvalidCastException
      Versión del sistema operativo:    6.2.9200.2.0.0.272.7
      Id. de configuración regional:    3082
      Información adicional 1:    5861
      Información adicional 2:    5861822e1919d7c014bbb064c64908b2
      Información adicional 3:    dac6
      Información adicional 4:    dac6c2650fa14dd558bd9f448e23afd1
    Lea nuestra declaración de privacidad en línea:
      http://go.microsoft.com/fwlink/?linkid=190175
    Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
      C:\Windows\system32\es-ES\erofflps.txt

    2014-12-17 16:05:41  Msg 5170, Level 16, State 1, Server \\.\pipe\Microsoft##WID\tsql\query,  Line 2
    Cannot create file 'C:\Windows\WID\Data\SUSDB.mdf' because it already exists
    Looks like somebody forgot to remove the database from the last time WSUS was installed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • Photoshop CS6 Extended (via creative cloud) Flashes when clicking on canvas and ..

    photoshop cs6 extended (64bit) flashes black when clicking on canvas or on a layer. I can't get anything done, I have already uninstalled and reinstalled...  all other Creative Cloud apps work fine.
    I';m using windows 8.
    If anyone has any idea of what is going on or can help in any way, please let me know. 
    thanks!
    Kelly

    That is a known bug in Windows 8. We're working with the GPU vendors and Microsoft to get it fixed.
    In the meantime you can set the Photoshop GPU mode to "Basic".
    If you have an AMD GPU, you probably want their 13.2 beta drivers.

  • Trying to makea report run when clicking a button on a form

    I am trying to run a report by clicking a button on a form (Forms 9i)
    I have modified the registry settings for FORMS90_PATH and REPORTS_PATH to include my development directory, and now at last the report is generating. However the command to display the form in a window is not doing anything at all - no error even. Can someone please help, the trigger code for my button is displayed below:
    DECLARE
         rep_result VARCHAR2(30);
    BEGIN
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_FILENAME, :GLOBAL.project_path || 'Inventory.rdf');
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_DESNAME, :GLOBAL.project_path || 'Inventory.htm');
         rep_result := RUN_REPORT_OBJECT('INVENTORY_REPORT');
         --MESSAGE('Rep result: ' || rep_result);
         WEB.SHOW_DOCUMENT('file:///' || :GLOBAL.project_path || 'Inventory.htm', '_blank');
         --WEB.SHOW_DOCUMENT('file:///C:\Temp\Dev\Inventory.htm', '_blank');
    END;
    thx
    adam

    Hi,
    may be this could be helpful for you:
    You have to include the following code to execute a report:
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    BEGIN
    repid := find_report_object(report_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,report_server_name);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    if rep_status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    else
    error report not exists
    end if;
    END;
    Also you have to create the report server with the command:
    "rwserver - install service_name autostart=yes
    report server name must be the same that appears in the code above
    You must add the report to run in the REPORT object type in your .fmb and put there with the same name
    The report server to install ought to be the one and only in you network to avoid mistakes...

  • Why image background is not at center desktop when click fullsceen button

    hi. I'm building fullscreen button. and when i click to run fullscreen image it in left not center.
    background image in application i make it by skinclass. it run normal and at center desktop when run but when click fullsreen it not
    and fullscreen:
        private function init():void {
                    fullScreenState = stage.displayState;
                private function btn_click(evt:MouseEvent):void {
                    if (btn.selected) {
                        fullScreenState = StageDisplayState.FULL_SCREEN;
                    } else     {
                        fullScreenState = StageDisplayState.NORMAL;
                    try {
                        stage.displayState = fullScreenState;
                    } catch (any:*) {
    and button:
    <s:ToggleButton id="btn"            
                            click="btn_click(event);"
                            width.trangchu="121" x.trangchu="401" y.trangchu="-27" height.trangchu="95" />
    Can u help me please?

    I don't know how to fix your problem, but just wanted to say
    that I wholeheartedly agree with kglad.
    I am working on a project now that needs to have a custom
    scroll bar that I can incorporate with dynamic text fields that
    need to be scrolled.
    Four days ago, I decided to save some time and just use and
    modify the UIScrollBar Component.
    ALL SORTS OF LITTLE BUGS EVERYWERE.
    After messing with it for an entire weekend, I decided to
    just bite the bullet and write my own scrollbar class.
    Here is what happened for me when I decided to write my own
    class.
    own class --------------------vs------------------- component
    took 4 hours ------------------------- took 3 days until quit
    3 mc's in the library to modify if you want
    ------------------------ I don't even want to count the
    to change the look --------------------------- amout of mcs u
    gotta change
    can change width of scrollbar on the fly -------------------
    can't change width of a vertical sb
    added an autoscroll function that starts
    ------------------------------ no such function
    scrolling down slowly upon page load
    increase file size by a few kilobytes ---------------------
    increase filesize by like 30kb
    NO BUGS -------------------- BUGS EVERYWERE.
    Lesson I had to learn: Components waste more time than I did
    on my World of Warcraft phase.
    They are good for designers who have limited scripting
    knowledge, just be aware that they can be very buggy. There are
    lots of third party developers that sell menu components and the
    like. You may want to look in that direction if you absolutely must
    use components and the included ones aren't working for you.

  • Calling URL when click on buttons using web dynpro - ABAP

    Hi All,
    I am new to web dynpro application development and i am facing issue when i try to test my application.
    simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
    The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
    Note
    The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
    The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Thanks,
    Parab

    Hi ,
    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
    Sample code for your reference :
    METHOD onactionget_url .
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    ENDMETHOD.

  • Call an ABAP Function module on click of Button in BSP page

    Hello ,
    i would like to run a ABAP function module on click of a button in BSP page.
    or in other words i want a Funtion module ex: 'test1' to run after clicking this button ex: 'button1'
    and how to pass the values for a function module after clicking the button.
    i an new to bsp application .
    Can anyone help me on this .

    Hi Shalaxy,
    Triggering a URL to WDJ:
    I suppose the URL of WDJ app. is also a portal URL. I assume that from a BSP application inside portal you need to trigger the WDJ url.
    But the catch is that you cannot hotcode this URL, since it varies for a development, quality and production systems(diff. portal environments).
    To solve this issue, ABAP provides a system variable named sy-sysid, which says want system your ABAP system is, normally a development R/3 system will be associated to development portal system and quality R/3 to quality portal ans so forth.
    So you could have a internal table/db table/ variable for dev, quality or prod portal urls and from the bsp on button click based on the value in the sy-sysid you can trigger the url accordingly.
    Creating a URL in WDJ
    The above is about triggering a WDJ from BSP. But if you dynamically want to create a link in WDJ on a button click, then apparently you could not do that from BSP, since the applications are different. All you could do is to pass some URL parameters to WDJ application from BSP app. Then based on the URL parameters the WDJ application has to dynamically create a link and add it to its application.
    Hope it helps.
    Regards,
    Maheswaran
    Edited by: Maheswaran B on Mar 1, 2010 4:17 PM

  • Quiting when clicking a button.

    One of my clients is having a strange issue. I've created a lesson for them and each slide has a button at the bottom labled "Resources".  When the "Resources" button is clicked it opens a document and makes a "Click To Contuine" button visible.  The "Click To Contuine" button is programed to pause the lesson until the user clicks it. I've tested it a thousand time and it work perfectly. When they run it under their LMS (SAP Learning Solution 602) they click the link and open the doc, then they close the doc and click the "Click To Contuine" button it closes the lesson.
    Any ideas on what's going on?
    Thanks!

    One of my clients is having a strange issue. I've created a lesson for them and each slide has a button at the bottom labled "Resources".  When the "Resources" button is clicked it opens a document and makes a "Click To Contuine" button visible.  The "Click To Contuine" button is programed to pause the lesson until the user clicks it. I've tested it a thousand time and it work perfectly. When they run it under their LMS (SAP Learning Solution 602) they click the link and open the doc, then they close the doc and click the "Click To Contuine" button it closes the lesson.
    Any ideas on what's going on?
    Thanks!

  • Importing data from excel  ... when clicking finish button nothing happens

    Version 3.1/32bit version ... I am trying to import data from excel but when i clicki finish button nothing happens. any idea. this used to work fine on the older version?

    Hi,
    Generally speaking, the data import from an xls or xlsx format Excel file works. You need to provide more information about your environment and the Excel file itself -- size, data types of the columns, number of worksheets, etc.
    I recommend running sqldeveloper.exe (not sqldeveloperW.exe) from a command line window. Repeat your import test and see if any stack trace appears in the console. For example, trying to open a 0 byte xls file results in a stack trace like this:
    java.lang.NullPointerException
            at oracle.dbtools.raptor.data.readers.XLSReader.openFile(XLSReader.java: 524)
    ...Regards,
    Gary
    SQL Developer Team

  • Skip validation when clicking cancel button in Applications panel

    Validation skipping can be done by making 'immediete' property to 'true'. But in fnd ApplicationsPanel, cancel button don't have an 'immediete' property. Only revert button has that property. So how can I skip validation when the cancel button is pressed?

    Hi Shaik,
    <li> You need to set Function type E to Application toolbar button.
    <li> Go to PF Status of the screen -> Click on application toolbar->Double click on button->It takes you to Function attributes Popup->There , u will see Function code after that Function type. Select or give type to E.
    <li> Write this piece of code in PAI.
    PROCESS BEFORE OUTPUT.
      MODULE status_2200.
    PROCESS AFTER INPUT.
      MODULE skip_mandatory AT EXIT-COMMAND.
    *&      Module  SKIP_MANDATORY  INPUT
    MODULE skip_mandatory INPUT.
      IF sy-ucomm = 'TEST'.
        LEAVE TO SCREEN 2000.
      ENDIF.
    ENDMODULE.                 " SKIP_MANDATORY  INPUT
    I hope that it solves your problem.
    Thanks
    Venkat.O

  • ICal Crashes when clicking "calendar" button to show available calendars

    After doing the Lion upgrade I've troupbe with iCal. iCal just opens fine - but when trying to access "calendar" button it shows no reaction at all. In some cases a popout callout appears which is empty (and does not show one single calendar out of my existing 10). If I repeat clicking the button iCal crashes.
    Any help is highly appreciated.

    BusyCal is not at the root cause - it has s.th to do with the user account. As described in an other post you can fix it by deleting the prefs of iCal:
    https://discussions.apple.com/message/15709996#15709996
    When it comes to BusyCal there is only one thing with Lion that might be unexpected. Lion fires off iCal each time iCal receives a Push from Mobile Me. In practice you may add an event to BusyCal and iCal will be started immediately. Same for notification. The only way to get rid of this is to change iCal update interval from push to s.th. different. Unfortunately Apple limited Mobile Me Push to iCal only. Other Apps have no access to..
    Almi

Maybe you are looking for

  • Call forward to unity connection call handler

    have  the following setup: cucm 8.6 cuc 8.6 a cti route point (DN 1000 )with forward all to unity connection call handler. phone users who choose to have some quiet time can forward all their calls to the cti rp. 1. i need to allow only specfic DNs t

  • Erros while loading data from SAP R/3

    Hi Friends.,                I'm going to load data from SAP R/3 all FI Modules to SAP BW in SAND BOX, before going to load master and tran data i would like to know, what are the errors might usualy be occurred while loading master & tran data using

  • How to know when loaded ??

    Hi all, I'm using the attached code in frame 1 to load the first picture picture of a series. VERY similar code on the "next and previous" buttons to load more pictures one by one from an array called "photos". Images are held locally on the server a

  • FX 5200 nview??? HELP! black & white

    I just bought the FX 5200 128MB graphic , but I´m having problem with the dualview or nview. My TV screen is black and white. I have the latest driver 45.xx, but still I can´t get the TV showing color.. Im not sure if my s-video cable is broken or no

  • OIM 11g R1 - Uploading photo

    Hello, is it possible to upload photo for the users inside OIM 11g R1? I didn't find an attribute for that.