Recreate action url in code

I have a very weird query.
When we use netui:form tag , we just simple specify action="<actionName>" right. Lets say that the jpf to which this jsp belongs to is made a portlet and added to a portal say A.portal. Now when you run this portal, and then in IE do a view source.
Find the form which is a part of the jpf. You will find that the url for action doesnot simply contain the action name but a new URL is dynamically generated.
I want to create this url dynamically in my code. Can anyone tell me how you can do this. Even if you can shed light on how BEA weblogic creates this url will also be good enough
Thanks a lot !!!!!!!!
Can anyone help me

hey buddy can you explain more on the render tag yah !!!
i want to know is what exactly happens when a jpf is converted in to an html page .. I mean how does the netui:form get converted to a normal html form ...how is the action urlk made ...
can you help me here

Similar Messages

  • SSRS Action URL via javascript:void(window.open doesn't work in IE

    Hi,
    I am using the following code to open "google.com.au"
    in a pop-up window through SSRS Report -> Action -> URL 
    ="javascript:void(window.open('"+
    "http://www.google.com.au/" +
    "','_blank','scrollbars=true,status=true'))"
    The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
    ( When we click on it ; Nothing appear in IE )
    Thanks.

    Hi Yu,
    1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
    2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?     
        i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))" 
    3. All reports are having the same phenomenon.
    4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't  POP UP window ).
    5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
    target="_top" to
    target="_self" then the problem gone.
        BUT... how to set target="_self" in SSRS? 
    Regards,
    Frank

  • netui:form how do i create Action URL in JavaScript

    hi,
    i want to submit the <netui:form> along with action form data to JPF from the
    java script,
    i can call the action method from the java script but actionForm is not passing
    to JPF....
    pls guide me....
    vijay

    The javascript that you suggested is similar to what we're using. When the onChange
    message is fired, both bits of javascript produce the following url;
    http://localhost:7001/mpsportal/getVersion.do?product_id=1
    This works fine in the weblogic browser but not in portal. If you use an anchor
    to fire the action, portal creates the following url;
    http://localhost:7001/mpsportal/mpsportal.portal?_nfpb=true&portlet_1_1_actionOverride=/portlets/task/getVersion
    So I've tried to put the 'extra bits', namely 'mpsportal.portal?_nfpb=true&portlet_1_1_actionOverride=/portlets/task/'
    into the javascript as below;
    javascript:window.location='mpsportal.portal?_nfpb=true&portlet_1_1_actionOverride=/portlets/task/getVersion.do?product_id='+document.forms[0][getNetuiTagName('product_id')].value;
    When this is run in portal it produces exactly the same url that portal produces
    except it has the parameter tagged onto the end;
    http://localhost:7001/mpsportal/mpsportal.portal?_nfpb=true&portlet_1_1_actionOverride=/portlets/task/getVersion.do?product_id=1
    Unfortunately portal doesn't like the parameter on the end and gives an error
    message 'Unable to find action getVersion.do?product_id=1'. The problem is that
    the value on the form, the product id in this case is not stored when the javascript
    jumps back to the server so it has to be sent in the url.
    If we can find a way of sending these values through in the url without portal
    complaining OR forcing the form to submit its values then its problem solved.
    Thomas Cook <[email protected]> wrote:
    Does this work?
    onChange="javascript:window.location='getVersion.do?product_id='+document.getElementById(getNetuiTagName('product_id',
    this)).value;"
    When you say the problem is in the onChange() method in the NetUI tag,
    can you elaborate on what you think might be happening?
    Thomas
    Steve Hicks wrote:
    Thomas
    We want to get java script to work with a netui:select tag so that whenthe user
    selects it, we populate a different netui:select tag (this requiresa call back
    to weblogic). Nothing to do with forms in Vijay's post!
    Here is a portion of our JSP:
    <td>
    <netui:select dataSource="{actionForm.product_id}"
    optionsDataSource="{pageFlow.taskProduct.taskProductSL}" nullable="false"multiple="false"
    onChange="javascript:window.location='getVersion.do?product_id='+document.forms[0][getNetuiTagName('product_id')].value;"
    tagId="product_id"></netui:select>
    </td>
    This works in the workshop debugger but NOT when we use it via portal(where nothing
    happens). The problem is in the javascript 'onChange' method in thenetui tag...
    Regards
    Steve H
    Thomas Cook <[email protected]> wrote:
    Getting back to Vijay's original post - something like the following
    should work (I can't confirm this code works since I'm in the middle
    of
    a build), but I have done this before. Does this not work? It should
    submit the form from javascript, as Vijay requests, passing the field
    value to the JPF via the action form.
    <netui:form tagId="myForm" action="doSomething">
    <netui:textBox dataSource="{actionForm.doSomethingValue}"/>
    <netui:button value="Submit" onClick="return doSubmit()"/>
    <script language="javascript">
    function doSubmit()
    var form = document.getElementById( getNetuiTagName( "myForm",
    this ) );
    form.method = "post";
    form.submit();
    return true;
    </script>
    </netui:form>
    Steve Hicks wrote:
    We have this problem and it seems quite sad that you can not perform
    this (typical)
    function using portal. Anyone from BEA watching? Could they do something
    about
    this in sp3?
    "Anant Kadiyala" <[email protected]> wrote:
    Beware that it is not entirely good idea to have action url in the
    Javascript.
    I had some problems with it. It works fine when you test it at the
    pageflow
    level.
    But when you pull the pageflow into a portlet, it starts acting strange.
    The urls
    that the portal generates behind the scenes dynamically, get messed
    up
    and you
    will notice that the new acion opens in a new browser window and
    will
    not have
    the context of the portal.
    Although the docs say we could use action urls in Javascript, youmight
    want to
    make sure it works in the portal context.
    Anant
    "julie" <[email protected]> wrote:
    do you still need help making an action url in javascript?
    "vijay patel" <[email protected]> wrote:
    hi,
    i want to submit the <netui:form> along with action form data to
    JPF
    from the
    java script,
    i can call the action method from the java script but actionForm
    is
    not
    passing
    to JPF....
    pls guide me....
    vijay
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
    <title></title>
    </head>
    <body>
    Getting back to Vijay's original post - something like the following
    should work (I can't confirm this code works since I'm in the middle
    of
    a build), but I have done this before. Does this not work?
    It should
    submit the form from javascript, as Vijay requests, passing the field
    value to the JPF via the action form.<br>
    <br>
    <tt><nobr><netui:form tagId="myForm" action="doSomething"></nobr><br>
    <nobr> <netui:textBox
    dataSource="{actionForm.doSomethingValue}"/></nobr></tt><br>
    <tt><nobr> <</nobr><nobr>netui:button value="Submit"
    onClick="return doSubmit()"/></nobr><br>
    <nobr> <script language="javascript"></nobr><br>
    <nobr> function </nobr></tt><tt><nobr>doSubmit</nobr></tt><nobr></nobr><tt><nobr>()</nobr><br>
    <nobr> {</nobr><br>
    <nobr> var form = document.getElementById(
    getNetuiTagName(
    "myForm", this ) );<br>
    form.method = "post";<br>
    form.submit();</nobr><nobr></nobr></tt><tt><nobr></nobr><br>
    <nobr> return true;</nobr><br>
    <nobr> }</nobr><br>
    <nobr> </script></nobr><br>
    <nobr></netui:form></nobr></tt><br>
    <br>
    Steve Hicks wrote:<br>
    <blockquote cite="[email protected]" type="cite">
    <pre wrap="">We have this problem and it seems quite sad that youcan
    not perform this (typical)
    function using portal. Anyone from BEA watching? Could they do something
    about
    this in sp3?
    "Anant Kadiyala" <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
    wrote:
    </pre>
    <blockquote type="cite">
    <pre wrap="">Beware that it is not entirely good idea to have action
    url in the Javascript.
    I had some problems with it. It works fine when you test it at thepageflow
    level.
    But when you pull the pageflow into a portlet, it starts acting strange.
    The urls
    that the portal generates behind the scenes dynamically, get messedup
    and you
    will notice that the new acion opens in a new browser window and will
    not have
    the context of the portal.
    Although the docs say we could use action urls in Javascript, you might
    want to
    make sure it works in the portal context.
    Anant
    "julie" <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
    wrote:
    </pre>
    <blockquote type="cite">
    <pre wrap="">do you still need help making an action url in javascript?
    "vijay patel" <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
    wrote:
    </pre>
    <blockquote type="cite">
    <pre wrap="">hi,
    i want to submit the <netui:form> along with action form data to
    JPF
    </pre>
    </blockquote>
    <pre wrap="">>from the
    </pre>
    <blockquote type="cite">
    <pre wrap="">java script,
    i can call the action method from the java script but actionForm is
    </pre>
    </blockquote>
    <pre wrap="">not
    </pre>
    <blockquote type="cite">
    <pre wrap="">passing
    to JPF....
    pls guide me....
    vijay
    </pre>
    </blockquote>
    </blockquote>
    </blockquote>
    <pre wrap=""><!---->
    </pre>
    </blockquote>
    </body>
    </html>

  • Appending param value to the netui:form action URL

    Hi there,
    I have got very simple problem.
    I want to add 'dummyParam=dummyVaule' as a query string to the 'URL' whenever
    NETUI form data is posted using submit button.
    I have tried <netui:parameter> but it did not work.
    I have the following snippet of code
    <netui:from action="updateDetails">
    <netui:imagebutton value="submit" >
    </netui:imageButton>
    </netui:form>
    Thanks for your help
    Regards
    Charan

    Hello Jonathan,
    How are you generating the form action URL for the Struts portlet now? You should be able to include any parameters you want in the URL at that time.
    Kevin

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii
    can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Struts portlet: generating rewritten action URL inside javascript

    I'm migrating a standalone struts application written for WL 8.1 to WL 10.3 portal environment. The idea is to make a portlet out of the struts app. I've got the application almost working, url rewriting works beautifully by using *<html:link action=...>* in jsps with the weblogic struts-adapter taglibs. But now I have a problem with the incorporated javascripts... For example I'm using a script to submit a html:form and in the script I'm trying to call an action like so:
    *function submit() {*
    document.myForm.action = "action_string";
    document.myForm.submit();
    return true;
    The problem is that I can't use the struts action name as usual (action.do) since that would lead to a standalone page instead of the portal desktop view. WL portal has a rewriter that translates the individual application action URLs to portal URLs so that the uniform view remains as the user interact with the applications. Now my question is: Is there a way to invoke this URL rewriter somehow to do the rewriting for action for me or alternatively, is there a way to get all the URL blocks so I can build the line myself?
    The trick is that I need to get this URL dynamically, so that if I rename the struts module or the portlet, I don't have to update all my javascripts as well. The portal URI that I need is of form (dynamic parts with bold):
    / contextPath / portalDescriptionFile.portal ?_nfpb=true& _windowLabel= portlet_x & portlet_x _actionOverride=%2F moduleName %2FactionName& portlet_x method=methodName
    So far I've been able to get the portlet label (portlet_x) with a scriptlet:
    *<%*
    PortletPresentationContext portletPresentationContext = PortletPresentationContext.getPortletPresentationContext(request);
    portletPresentationContext.getInstanceLabel();
    *%>*
    I can also get the moduleName and contextPath, but not the the rest. So at minimum I would need a way to dynamically get the "+path+" before the "+query+" as in "+/contextPath/path?query+". The "+query+" I can construct with the info I have if necessary.
    Can anyone help me with this?
    If someone knows a good API page for WL 10.3 portal/portlets where I could look for more internal objects (like PortletPresentationContext) containing the data I need, that would also be a great help!
    Edited by: karikko84 on 28.8.2009 3:44

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

  • Struts 1.2 blank page on putting action URL

    Hi ,
    I have a application using struts 1.2. When we type a action url like http://localhost:8080/app/SomeAction.do on the browser then I get blank page with no error in console or log file, on hiting referesh on the browser the corresponding action is executed and mapped jsp page come up.
    Trying same thing on struts 1.1 , I get the mapped jsp page without hitting the refresh button again.
    Is there any know issue with this version of struts , please advice.
    thanks

    Did you try changing the xml parser to use Xerces instead of Oracle?
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    It is a pretty long article.
    Pat

  • XML Loader action URL via global properties with no drive letter

    Trying to use the XML Loader action. If we hard code the URL as "c:\Inetpub\wwwroot\Camstar\Errors\logDetails.xml" it works fine. We want to use several global properties to construct the URL as follows.
    Resulting in:
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml.
    This does not work in the XML Loader action configuration but will work in IE every time. The XML Loader action throws the following errors.
    [ERROR]: Unable to complete requested action on XML document.
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml (Access is denied)
    [ERROR]: ACTION FAILED: End Action XmlLoader_LogDetails : ()
    Does anyone know how to resolve this issue?

    Tim,
    Ron is right about IE using the Microsoft magic of switching between Windows Explorer and Internet Explorer to locate the file.
    Your best bet would be to construct a true http formatted string such as:  http://localhost/Camstar/Errors/logDetails.xml
    This would of course be only good for files on the local server, but would also be very upgrade friendly for version 12.0 migration.  UNC paths would not work to other servers or network shares either.
    If the xml files are in the IllumDoc Rowsets/Rowset/Row format you could just as easily use and XMLQuery action block instead of the XMLLoader, which might make it easier you to use the [Param.x] tokens in the template, etc.
    Regards,
    Jeremy

  • Submit Infopath form to a dynamic URL without code

    I trying to submit an Infopath form to a Document set, the document set will be a different one for each instance of the form. How can the form be submitted to a dynamic location without using code behind? I am in SharePoint online and this is
    a limitation.
    Thank you
    ITGirl

    Hi,
    If you want to submit an InfoPath form to different locations dynamically, there is no OOB approach without code, since submit option needs static URL value.
    Here is a similar issue for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1588a8d2-cb43-4090-b2c1-8835d3e8fbe3/dynamically-submit-for-document-library-using-infopath-2010
    Without code, to submit form to different locations, you need to manually add submit rules per the Document Sets in your library, such as create a new column for Document sets name, then create submit rules to separately specify destination in submit options.
    Here are the steps for your convenience:
    1.Insert a text box named “field1” to type the names of the document sets in the InfoPath form.
    2.Add a button to submit in the InfoPath form.
    3.Add rules in the submit button: Add condition: “field1” is equal to “01”(the name of the document set in my environment) -> Add Submit Data in Run these actions field -> Add Data connection -> Type the URL of the document set “01” and type the
    file name you want.
    4.According to the different document sets you want to submit to, you could add more rules in the submit button to repeat the step 3.
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Attach BP Url via Code

    Hi experts!!
    I am using cl_crm_documents=>create_with_url to create attachments via URL, in BPs. The problem is that the attachments are uploaded as application/octet-stream, hence i cannot open . When i manually attach URLs to BP they are displayed fine.
    Any ideas?????
    Here's the code i've written.. Am i missing something??
      ls_url-line = 'http://www.google.com'.
      APPEND ls_url TO url.
      unpack businesspartner to ls_part.
      SELECT SINGLE * FROM but000 INTO ls_but000
                      WHERE partner = ls_part.
      BREAK-POINT.
      ls_bus_obj-instid = ls_but000-partner_guid.
      ls_bus_obj-typeid = 'BUS1006'. "(for business partner)
      ls_bus_obj-catid = 'BO'. "(for business object)
      pro_LS-NAME = 'CONTENT_URL'.
      PRO_LS-VALUE = 'http://www.google.com'.
      APPEND PRO_LS TO PRO.
      pro_LS-NAME = 'KW_RELATIVE_URL'.
      PRO_LS-VALUE = 'Application_form'.
      APPEND PRO_LS TO PRO.
      pro_LS-NAME = 'DESCRIPTION'.
      PRO_LS-VALUE = 'Description'.
      APPEND PRO_LS TO PRO.
      pro_LS-NAME = 'LOIO_CLASS'.
      PRO_LS-VALUE = 'CRM_L_URL'.
      APPEND PRO_LS TO PRO.
      pro_LS-NAME = 'PHIO_CLASS'.
      PRO_LS-VALUE = 'CRM_L_URL'.
      APPEND PRO_LS TO PRO.
      CALL METHOD cl_crm_documents=>create_with_url
        EXPORTING
          url             = url
       properties      =
        properties = pro
          business_object = ls_bus_obj
       parent_folder   =
        IMPORTING
          loio            = lt_loio
        phio            = lt_phio
        error           = lt_error

    Actually Problem is now Solved!!
    Insted of using method CREATE_WITH_URL i used CREATE_URL.
    Here's the code..
      ls_url-line = 'http://www.google.com'.
      APPEND ls_url TO url.
      unpack businesspartner to ls_part.
      SELECT SINGLE * FROM but000 INTO ls_but000
                      WHERE partner = ls_part.
      BREAK-POINT.
      ls_bus_obj-instid = ls_but000-partner_guid.
      ls_bus_obj-typeid = 'BUS1006'. "(for business partner)
      ls_bus_obj-catid = 'BO'. "(for business object)
      pro_LS-NAME = 'CONTENT_URL'.
      PRO_LS-VALUE = 'http://www.google.com'.
      APPEND PRO_LS TO PRO.
      pro_LS-NAME = 'DESCRIPTION'.
      PRO_LS-VALUE = 'Description'.
      APPEND PRO_LS TO PRO.
      CALL METHOD cl_crm_documents=>create_url
        EXPORTING
          url             = url
       properties      =
        properties = pro
          business_object = ls_bus_obj
       parent_folder   =
        IMPORTING
          loio            = lt_loio
        phio            = lt_phio
        error           = lt_error
    BREAK-POINT.
    CALL METHOD cl_crm_documents=>rename_object
      EXPORTING
        is_io             = lt_loio
        iv_name           = 'Application'
      IMPORTING
        es_error          = lt_error
      EXCEPTIONS
        io_not_renameable = 1
        name_error        = 2
        others            = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Define the WebService action URL as a parameter

    Hi there,
    I would like to ask a question related to the use of the WebService action block.
    I've been using this action with no major issues, but would like to set the WSDL URL to be defined by a parameter. It could be in the shared memory, in the global properties, or somewhere else that is centralized. I've done some testing on  this, but had no success...
    Every real world project will have at least three different environments (DEV, QA and PRD), each with different settings for the web services that it must connect to, so I believe that a lot of people have dealt with this kind of problem.
    Please give me your insight on how to do that.
    I'm hoping not to get the answer: go to each action block and change the URL manually....
    Thanks!

    Sorry Jamie,
    which is exactly the action parameter to which i can link dinamically different soap address?
    I'm using 12.0.11 build (21) and I can see in the action these parameters:
    WSDLBaseUrl
    WSDLURL
    Username
    Password ecc..
    Should I pass the link to the WSDL or what?
    For example I have 3 web services on different machine (web services are identical), only deployed in different machines
    Should I pass to WSDLBaseUrl, after importing the structure
    "http://hostname:port/SapImport/WebService.asmx?WSDL"
    or something else?
    Thanks
    Mauro

  • Dreamweaver: double click to select url in code view

    I constantly select and replace a url (paste into) in the code: <a href=""> or <img src>. I'm thinking it would be very helpful to be able to double click to select url while in code view. Does anyone know if i can set that up to behave this way?
    using CS3 on Mac OSX

    I don't know of any way to make that happen.  Sorry.
    It will happen using the Property inspector, however.  Click in a link in Code view, then click on the link field in the Property inspector and the entire link is selected.

  • Action Script and Codes

    Dear Flash Experts,
    I know we can place codes within "Actions", but where do we
    go to view the actual codes? You know behind
    the scene. Is there a way to do so. I can not believe Adobe
    would design a software program such as "Flash" and
    not allow the Designer to view the codes that have been
    placed within the website.
    Can anyone help?
    Thanks!

    in flash help docs, open Actionscript Language
    Reference-->Actionscript Classes-->XML.. then read

  • Setting different action urls to different buttons

    Hello everyone
    I have 2 buttons on my jsp page, 'submit' and 'reset'. I need to link each button to different urls when user clicks on it. For example, when user clicks on submit button, it should go to confirmation.jsp and when the user clicks on reset button, it should go to registration.jsp. I dont want to use javascript or any other programming language but rely only on jsp and html. Is there a way to do it? Thanks. I need to solve this for an assignment. Much appreciated.
    Bawa

    hope you use struts, put these action mapping in the struts-config file.
    Call submitaction.do in 'submit' button click.
    and call resetAction in 'reset' button click. You action class will forward the page.
           <action path="/submitAction"
                type="com.admin.manage.action.SubmitAction"
                name="manageForm"
                scope="request">
         <forward name="success" path="/jsp/confirmation.jsp" />     
           </action>                                       
           <action path="/resetAction"
                type="com.admin.manage.action.ResetAction"
                name="manageForm"
                scope="request">
         <forward name="error" path="/jsp/registration.jsp" />          
           </action>  If you don't use struts, call corressponding jsp's in each button click directly.

  • Action Script 3 code not working for start and stop button?

    Ok so I have this simple animation I created of a circle that moves from one side of the stage to the other. I have added a new layer and called it buttons. On this layer I have added 2 buttons. One for start and another one for stop. The purpose is to get my circle to move from one side of the stage to the other but be able to use my buttons so that I can start and stop the animations at random times during playback. I fixed all my compiler errors now the problem lies in that everytime I click the start or the stop button I get an output error. I have a 3rd layer in which is titled actions and this is where all my code is posted. I removed that layer and placed my code in the first frame of the buttons layer to see if this would change anything but I still get the same output errors. So I just added back my actions layer. What could I be doing wrong? I have made sure to name all my movie clips and buttons correctly and I even added an instance name to them.
    Here is my code and the errors I am getting when I press the play and stop button on test-
    start_btn.addEventListener(MouseEvent.CLICK, startCircle);
    stop_btn.addEventListener(MouseEvent.CLICK, stopCircle);
    function startCircle(e:MouseEvent):void{
        circle.play();
    function stopCircle(e:MouseEvent):void{
        circle.stop();
    green_btn.addEventListener(MouseEvent.CLICK, greenCircle);
    red_btn.addEventListener(MouseEvent.CLICK, redCircle);
    function greenCircle(e:MouseEvent):void{
        circle.play();
    function redCircle(e:MouseEvent):void{
        circle.stop();
    Here are my output errors-
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/greenCircle()

    ok so my circle is my movie clip and it is titled circle and the instance name is circle. Am I supposed to change MovieClip to circle? I put the code at the top of my actions script but for some reason it did not work. I did change play to stop and it got the movie clip to stop when I do test movie but my buttons still do not work. So I changed stop back to play. Strange.
    I did try changing MovieClip to circle but that did not work so I did Circle with a capital C and that did me no good eigther.
    I meant to add that I did get an error that said- 1180 Call to a possibly undefined method circle.

Maybe you are looking for

  • Borders That Won't Go Away

    I am using Captivate 4 on a computer running Windows XP. My projects begin as blanks in a 640x480 size. In the Skin Editor, I select "Show Borders" so that a black border (56 pixels) appears at the bottom of my project. When I preview it in the web b

  • Removing plu-ins after usuing track automation

    so I have a vocal track automated the volume and some other effects. But at the end of day I don't like it. I understand that you can turn "off" or bypass a plug-in either in the arrange area or in the inspector, but how do you clear everything-- get

  • Dummy G/L a/c

    Hi, hi, 1. Can any one please explain me “At the time of transactional data uploading do we need to create dummy G/L a/c”. What is dummy G/L a/c. 2. If yes how many dummy G/L a/c do need to create. 3. Please provide me what are all prerequisites for

  • Quotation Approval error

    Hi , As for my Client Requirement after quotation we need to give the Approval for Quotation then only we will raise the Sale order I have Done the Status Profile every things But i heard that Basis person will do authorization for that please any on

  • Forms 10g hangs while running a procedure which has got lot of loops

    Hi, When executing a procedure in Forms 10g which fetches millions of records, application getting stuck. What parameter is required to be changed in forms configuration? Can any1 help me out??? Thanks in advance, Natz.