Help! text is not defined error :(

Hi,
I'm a student working on a flash actionscript project for school, and I need to learn how to make objects drag and drop. I have no problem getting the shapes to move and all but I cannot figure out how to make the text change when the shape is dropped off of the target and when it is on the target. The tutorial i'm using gave me the code but i keep coming up with this:
ReferenceError: Error #1065: Variable reply_txt is not defined.
at draganddrop2_fla::MainTimeline/pickUp()
ReferenceError: Error #1065: Variable reply_txt is not defined.
at draganddrop2_fla::MainTimeline/dropIt()
Right now this is what the code looks like:
square_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
square_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
event.target.startDrag(true);
reply_txt.text = "jghcvhvc";
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget !=null && event.target.dropTarget.parent == myTarget){
  reply_txt.text = "Good Job!";
} else {
  reply_txt.text = "Try Again!";
square_mc.buttonMode = true;
I dont know what I'm doing wrong! Please Help!

Thank you! I swear i thought i put reply_txt as the instance name but i must
not have saved it or something! haha Thank you so much!

Similar Messages

  • Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE

    While executing BAPI_PO_CREATE1 by using Adaptive RFC Model in Webdynpro
    I was facing the following Error
    Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE
    But while trying to create BAPI_SALEORDER_CREATE is working properly with the same configuration.
    If anyone come accross this issue please help me out

    This is beacuase of some issues in the parameters that are passed and is rectified.
    krishna

  • Handler not defined error message

    Hello - I'm having difficulty with a custom handler I've
    created. Everything works well in authoring mode, but as soon as I
    try to create a projector and run it, I get a "Handler not defined"
    error message. The handler is used to query an sqlite database.
    Here's the code which sits in a linked cast movie script
    on startmovie
    set gDBInstance = new(xtra"sqlite")
    on mDBQuery gSqlstring
    gDBInstance.sqlite_open(the moviepath&"halloffame.db")
    gQuery_fetch_data = gDBInstance.sqlite_fetch(gSqlstring)
    gDBInstance.sqlite_close()
    end
    end startmovie
    The handler is called from a frame script as below:
    on enterframe
    gSqlstring = "SELECT file_location FROM mediaitem NATURAL
    JOIN category WHERE category = 'Equipment' ORDER BY mediaitem.name
    ASC"
    mDBQuery(gSqlstring)
    end enterframe
    I'm using Director 11 on Windows XP. I do have all of the
    sqlite xtras in an xtras folder next to the executable. Any
    thoughts on what I'm doing wrong??
    THX!
    Mike M

    I ran a couple test that were interesting, but first I need
    to address some bad coding practices.
    miken75,
    I see no reason to open and close a database with each query.
    Open it at the beginning of the program and close it at the end.
    You should always check for errors with every interaction
    with a database, including opening it.
    In your function "mDBQuery " you pass in a variable called
    "gSqlstring" and assign the returned data from the query to
    "gQuery_fetch_data". Neither one of these variables should be a
    Global. The whole point of the function is to pass in a temporary
    string and the function Returns query results. Do not use Globals
    in this situation.
    This is a bit nit-picky, but your function names should be
    verbs - some sort of action. "mDBQuery " is a noun. Something like
    queryDatabase, doQuery, fetchData, etc. would be better.
    A basic re-write of your startup code would be:
    global gDB
    on prepareMovie
    gDB = new(xtra"sqlite")
    Okay = gDB.sqlite_open(the moviepath&"halloffame.db")
    if Not Okay then
    alert("There was an error opening the Database")
    end if
    end prepareMovie
    on queryDB SqlString
    return gDB.sqlite_fetch(SqlString)
    end queryDB
    on stopMovie
    gDB.sqlite_close()
    end stopMovie
    Finally, "EnterFrame" is a really poor choice for an event
    that queries a database. "EnterFrame" is used when you need to do
    something many times a second, such as an animation. For a singular
    event like querying a database I suggest "prepareMovie",
    "startMovie", "beginSprite", "mouseDown", and "mouseUp".
    I'm just trying to improve your coding practices. Better
    code, means less bugs and going home early.
    To your problem:
    I tried a couple things. I placed some startup code and a
    function in an internal cast movie script and an "enterframe"
    behavior that calls the function in an external cast. I saved and
    published, and the executable comes up and gives the handler not
    defined error. This error is a Director thing. It has nothing to do
    with your code.
    If, however, you shut Director down and run the executable,
    then there is no error. This fact implies that when you try to run
    Director and the executable at the same time, then Director all
    ready has ownership of the external cast file and the executable
    therefore can not open it. Although, generally under that kind of
    circumstance you get an error message indicating that the file is
    in use by a different program. So, I don't know exactly what is
    happening here.
    I then moved the "startup" code into the external cast with
    the "enterframe" script and published. No error. Director and the
    executable run side by side just fine. Weird.
    Hope that helps.
    Randal.

  • "Limits not Defined " error while saving IT0008 in sap hr

    Hi Experts
    While trying to Hiring an employee, infotype0008 showing Limits not defined error and not allowing to save the record. I checked table V_T510 and V_T510N. All the limits defined in right way. Please check and advice. I attached copy of screen shot for your reference.
    Regards
    Prakash Bhave

    Hi Remi
    Thanks for your reply. As per your reply I followed procedure and it allowed me to save Basic Pay Infotype (0008)
    Thanks a ton.
    Regards
    Prakash Bhave

  • Namespace not define Error in IR when activate object..

    Hi,
    I am getting the name space not defined error when I try to activate the object in the IR even though I have defined the above namespace in this software component version.
    Could some body point me where I am missing.This might be a basic setting that I am missing.
    Thanks
    Steve

    Shravan,
    I do not see the namespace in the chang lists tab, but I have all the other objects which were under the name space.
    Thanks
    Steve

  • Billing type F2 not defined error vf 007

    in Billing transaction this error happend
    Billing type F2 not defined error Vf 007
    and the billing type f2 is deleted from the system and it's not assigned in the sales order type
    why the system determined billing type F2 for this sales order ??

    you mean delivery relevant billing field is blank in transaction code VOV8 for your sales doc type?
    if that's the case..I think system always defaults F2 for invoices, based on some parameters like sales doc type, screen sequence group etc..
    Regards,
    Raghu.

  • Sales organization 0000 is not defined (Error Message: VF 009)

    Dear All,
    While creating the intercompany invoice, I am getting the following error.
    Sales organization 0000 is not defined (Error Message: VF 009).
    I was able to create till commercial invoice. I am not able to create "Intercompany Invoice".
    Am I missed out any configuration?
    So far I have completed Plant assignment and Internal customer assignement required for Intercompany billing.
    Kindly suggest.
    Regards,
    Mullairaja

    Hellow Mullairaja,
    We are encountering the same problem, and my assumption is that the customer not being extended to the appropriate sales area prior to delivery creation is causing the problem.  Is there an OSS note or process to resolve this issue.  We have extended the customer now and the only thing I can think of to resolve is to reverse the PGI and delivery.  Is there a better way to correct this?  What was your solution?
    Thanks,
    Jordan
    Edited by: Jordan Simons on Nov 23, 2010 3:17 PM

  • "Content account is not defined" error while trying to checkin a document

    Hi, all
    I am running ECM integration samples included on SDK (included on file ContentIntegrationSuite_10gR3_20081218.zip, folder "oracle-cis-10g\samples\CodeExamples\src\java\com\stellent\cis\sdk\samples"), and I got the error "Content account is not defined. Unable to validate user security." when running the ChekinFile.java sample.
    I could successfully run the ServerInfo.java with no problems, and I expected to run the other example as easily as that.
    Is there any configuration I must change on ECM to run this sample?
    The stack trace follows. Thanks in advance.
    com.stellent.cis.client.command.CommandException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:338)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.execute(SCSCommand.java:222)
         at com.stellent.cis.client.command.impl.services.CommandExecutorService.executeCommand(CommandExecutorService.java:57)
         at com.stellent.cis.client.command.impl.CommandFacade.executeCommand(CommandFacade.java:158)
         at com.stellent.cis.client.command.impl.BaseCommandAPI.invokeCommand(BaseCommandAPI.java:84)
         at com.stellent.cis.client.api.scs.document.checkin.impl.SCSDocumentCheckinAPI.checkinFileStream(SCSDocumentCheckinAPI.java:707)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.execute(CheckinFile.java:87)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.main(CheckinFile.java:64)
    Caused by: com.stellent.cis.server.api.scs.request.SCSRequestException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.checkBinderForErrors(SCSRequestProcessor.java:357)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.validateResponse(SCSRequestProcessor.java:273)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.processRequest(SCSRequestProcessor.java:118)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:61)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedPublishFilter.handleRequest(SCSOptimizedPublishFilter.java:128)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedRetrieveFilter.handleRequest(SCSOptimizedRetrieveFilter.java:250)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.rewrite.SCSRewriteURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.cache.impl.SCSServiceCacheFilter.handleRequest(SCSServiceCacheFilter.java:104)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestExecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeViaProxy(SCSCommand.java:353)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:335)
         ... 7 more

    Hi
    Issue is caused with the way parameters are passed from CIS 8.x onwards where when not giving a parameter that is a required one then it has to be set to blank. Like in the case for dDocAccount setting the value to blank string (i.e. "") would successfully check in the document.
    dDocAccount is a required additional paramter that needs to be supplied when checking in contents when UseAccounts=true is set in the config.cfg of the CS.
    From the CS checkin page when not specifying the Account it is set as blank which is why the the checkin goes through fine.
    This was not the case with CIS 7.6.1 where dDocAccount was not required to pass as parameter even if UseAccounts=true is set in the config.
    In case checkins have to be done without giving the Account then add the code for setting the dDocAccount to a blank string (i.e. "") and then recompile the java code and execute the it.
    Reason why CIS 7.6.1 did not show this behaviour is since CIS would set that (the value for account parameter) in the binder and pass it to the CS.
    Hope this helps
    Srinath

  • Output device not defined error while saving the quotation

    Hi all,
    We have some custom output types (ZGEN, ZSSO, ZQTO, ZJT)configured in the nace transaction for Application V1.  Whenever i am creating / saving a quotation one of the output type(ZQTO) is not processing for mail (External Send) and it is displaying an error as 'Output device not defined'.  If i remove all the output types while changing the quotation in VA22 from header, it is processing.
    I checked with all other output types combination.  The error is trigerred only when we  have ZJT output type along with ZQTO.
    We are not able to recognise the error.  Please help out to solve this issue.  Its very urgent.
    Thanks.

    Hi Remi
    Thanks for your reply. As per your reply I followed procedure and it allowed me to save Basic Pay Infotype (0008)
    Thanks a ton.
    Regards
    Prakash Bhave

  • MM_preloadImages is not defined error

    Everything works fine in Firefox and Opera, but IE will not
    load the flash file on the main page. If you click on the link to
    "service page" in the Latest Projects section everything loads fine
    once you get off the main page.
    In FireBug, I get MM_preloadImages is not defined
    The url is
    http://test2.mediamore.net

    Gad - turn that sound off!
    Your page throws the error you describe -
    MM_preloadImages is not defined
    http://test2.mediamore.net/
    Line 1
    Here's the code -
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xml:lang="en" lang="en">
    <head>
    <title>Home</title>
    <link href="style.css" rel="stylesheet" type="text/css"
    />
    <style type="text/css">
    <!--
    .style2 {color: #AABDCC}
    -->
    </style>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body id="page_1"
    onload="MM_preloadImages('images/p2_sel.jpg','images/p3_sel.jpg','images/p4_sel.jpg','ima ges/p5_sel.jpg','images/p6_sel.jpg')">
    First thing to do is to REMOVE the XML declaration at the top
    of the page.
    Not only is it unnecessary, it will throw IE into quirks
    mode, which is VERY
    BAD.
    Next, note that the body tag is calling MM_preloadImages, yet
    that function
    is not defined on the page. You can fix this by opening the
    page in DW,
    clicking in Design view, and then selecting <body> on
    the Tag selector bar,
    looking at the "Preload Images" behavior listed in the
    Behaviors panel, and
    then double clicking it to open the behavior's dialog pane.
    Now just click
    OK, which will force DW to write that behavior's function
    definition to the
    head of the page.
    Alternatively, you can find the javascript function
    definition in the
    Snippets > Javascript folder, and just insert it in script
    tags in the head.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "KeithFawcett" <[email protected]> wrote in
    message
    news:[email protected]...
    > Everything works fine in Firefox and Opera, but IE will
    not load the flash
    > file
    > on the main page. If you click on the link to "service
    page" in the Latest
    > Projects section everything loads fine once you get off
    the main page.
    >
    > In FireBug, I get MM_preloadImages is not defined
    >
    > The url is
    http://test2.mediamore.nethttp://test2.mediamore.net
    >

  • Problem Running ADF page in Tomcat 6 (AdfPage is not defined error)

    I'm using JDEV 11.1.1.5
    Tomcat 6.0.24
    I have the JSPX page below deployed on Tomcat.
    At runtime I get an error: AdfPage is not defined
    On this line of code:
    var passwordTextField = AdfPage.PAGE.findComponentByAbsoluteId('password');
    Any suggestion on why it does not recognize AdfPage in the javascript function?
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:trh="http://myfaces.apache.org/trinidad/html">
      <c:set var="bundle"
             value="#{adfBundle['oracle.apps.grc.ui.landing.GRCLandingPFBundle']}"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
      <af:document id="loginPage">
            <af:group>
            <af:resource type="javascript" source="/oracle.apps.grc.ui.cryptoclient.CryptoClient.nocache.js"/>          
            <af:resource type="javascript">
                function login(event) {
                    try {
                        var grcCrypto = new window.grc.Crypto();
                        var passwordTextField = AdfPage.PAGE.findComponentByAbsoluteId('password');
                        passwordTextField.setValue(grcCrypto.encrypt(passwordTextField.getValue()));
                        var submitLoginButton = AdfPage.PAGE.findComponentByAbsoluteId('submit_login');
                  AdfActionEvent.queue(submitLoginButton, submitLoginButton.getPartialSubmit());
                        event.cancel();
                    catch (e) {
                        alert(e.message);
            </af:resource>
            </af:group>

    Hi.
    as Raphael says, check your libraries.
    I think that adfpage is in adf-richclient-api-11.jar, check if this library is in your %CATALINA_HOME%/lib folder.
    Anyway I will inform you that Tomcat is not a certificate server,http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html#Application_Servers

  • ContainerFoundation_JS is not defined error

    Hi All,
    I got the SAP standard help on interactive form. It was working fine.
    but when today i tested, i found the following error
    ContainerFoundation_JS is not defined
    17:XFA:KUNNR:[0]:#subform[0]:valueHelp1[0]:click
    Plz help
    Thanks & Regards,
    Arvind

    Hi Chris,
    thanks for ur reply.
    i added ContainerFoundation_JS, but after activating the form again its not there.
    still i am getting the same error.
    it was working fine before
    dont know what the issue is.
    is it related to some patch updation of ADS.
    plz help..
    Thanks & Regards,

  • Bidder Indicator 03 Not Defined Error

    Hi Gurus,
    While trying to modify Bidder Information through Manage Business partner we are getting the error Bidder Indicator 03 not defined.
    We are trying to make particular Bidder to allow Surrogate Bidding. Thus checking box "Permit Proxy Bidding" and then hitting Save. During that time we get this error message and thus, Bidder does not get updated.
    Could you please advise what could be the issue?
    Thanks
    Ritesh

    Hi,
    While creating the SC, under basic data there will be check box with " bid invitation required". Check this indicater and try to proceed further.
    Hope this may help you in overcoming the issue
    BR
    Sundar

  • Help! 'Page not found error' when use the word 'account' on my web page!

    I have encountered the weirdest problem when making some changes to my website.
    When adding text within the <p></p> tags  everything is fine until I type the word 'account' or 'accounts' then I get a 'page not found' error.
    Any other text can go between those tags, only the word 'account' causes the problem.
    Any ideas?
    (I am using Dreamweaver MX 2004 and its a PHP page)
    I am so confused on this one, so any help would be much appreciated!
    Thanks.

    http://www.reformationassociates.com/ - This is the website, the weirdest part is, it is only happening on pages after they have been opened through Dreamweaver, so it's only once I access them that the problem occurs, I dont have to make any changes, just open them and they suddenly show up as 'page not found'.  
    http://www.reformationassociates.com/archive/Pinnacle.php is one of the pages that was accessed yesterday via Dreamweaver and we have had to change the word to 'acct' to stop the 'page not found' error.
    Afriad I dont know what SSI files are? sorry....
    Thanks.

  • DoSubmit is not defined, error after upgrade to 2.0

    Hi,
    When I try to log into my workspace I get the following javascript error:
    Error: doSubmit is not defined
    I have just upgraded from 16. to 2.0. Any ideas?

    The source looks like this:
    <script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    When I paste the below url into the browser,
    http://wmsi001370:7778/i/javascript/htmldb_html_elements.js
    The javascript code is displayed fine. So it looks like the code is where is should be?
    But doSubmit is not defined in that file. But there are other includes som maybe it is defined in those.
    Message was edited by:
    wmpelor

Maybe you are looking for

  • VI01 as delivery costs in MIGO

    Hi all, We have to change de Automatic PO generated in Shipment costs for Shipment costs as delivery costs during goods receipt. We have applied de SAP Note 427944. . M/06 Condition type: 'B' delivery costs (T685A-KNTYP field) Accrual: 'X' (T685A-KRU

  • Anyone else having issues writting string "memo" fields to Access 2007-2010 or SQL Server Express 2008-2012?

    I have a data cluster that I am working to write to either Access 2007 thru 2010 and/or SQL Server Express 2008 thru 2012 all on a Windows 7 64 bit OS. Some of the elements are long strings that I put delimited data for the raw trace data. The fields

  • How can I get my MPEG-2 video imported?

    I just bought LR4 and intended to begin incorporating all of my video with my photos for a complete gallery.  I am unable to import mpeg-2 video.  I can import avi, but anything that is MPEG appears to be an issue.  Are there any codecs or plug-ins t

  • Airtunes "skips" during "multiple speakers" mode...

    The problem is when I play in the new "multiple speakers" mode my local PC skips, and remote signal plays fine. If I select local by itself, my PC plays fine, or if I select remote by itself, it also plays fine. No other issues with Itunes, ever! Jus

  • Change External Editor in LR 1.0

    Hi, I am using a Mac and LR 1.0. My default external editor is set to Photoshop Elements 4.0, however I do have PSE 6.0 and I would like to use this as the default editor. Right now I have 6.0 set up as the other external editor, but it would be nice