Error message using ActionScript 2.0

Hi I am Flash newbie trying to get a Flash quiz to pass a
score to my Plateau LMS. I was told I could enter the following
code below in Action Script 2.0 to get it to work.
btnComplete.onRelease = function(){
   fscommand("CMISetStatus","passed");
   fscommand("CMIFinish");
   getURL("javascript:self.close();", "_top");
When I test the movie I get the following errors:
Line 2: Operator '=' must be followed by an operand
Line 3: Syntax error.
Any help to fix these errors would be greatly appreciated!
Thanks!

Thanks for the reply! I do not have any other code above or
below this. I am using the Flash quiz template - I am assuming this
has hidden code. And I posted this code on the quiz results page -
it shows your final score on the quiz.

Similar Messages

  • To display a continuos Error Message using BADI

    Hi Everybody,
                        There's a transaction that makes use of classes and interfaces to display an ALV grid with input enabled frames and fields. There's a need to display an error message using a specified BADI method, which gets triggered after the user enters the input. The error message is working fine for the first time.<b>But when i'm trying to enter the same input and press enter after the error message, the transaction is getting closed. How can i display the same error message, until and unless the user enters the correct input ?</b>  I've tried to trace the control using the debugger after the enter is pressed, but the debugger is also getting closed and the control is coming out of the transaction. Help me out in displaying the error message.

    Hi,
    Open the interface and go to the Methods tab.
    Select the Method and click on Parameters.
    In the method parameters, declare a variable
    RETURN      Changing      Type     ALM_ME_BAPIRET2_T.
    Now, inside your code, declare   DATA : ls_return TYPE bapiret2.
    and populate this RETURN table, something like:
            if not ( wa_mara-mtart eq 'SPAR'  or wa_mara-mtart eq 'ZMRO' ).
        CLEAR ls_return.
        MOVE 'E' TO ls_return-type.
        MOVE 'ERR_MESSAGE' TO ls_return-id.
        MOVE '999' TO ls_return-number.
        MOVE 'Enter proper error message here' TO ls_return-message.
        INSERT ls_return INTO TABLE return.
        endif.
    Then, back in your program, check if this table is empty proceed otherwise, STOP or EXIT.
    Regards
    Subramanian

  • Send custom error message using IDoc conversion rule?

    Hello,
    I am using an Idoc conversion rule in BD79 to load cost centers.  In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field.  This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits. 
    Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
    Thank you,
    Rhonda

    Hi Rhonda,
    Any luck on the below.. i have a similar issue...
    Sorry to hijack your thread...

  • Getting Error Message using Formatted Search

    Hi,
    I am using formatted search for validating a particular field, and that happens fine.  Kindly let me know if I can also display error messages using the same formatted search.
    If yes, what am I to include in the formatted search, and if No, please let me know the alternative.
    Thanks in advance.
    Satish.

    Hi Satish,
    if you validate the value of a field and intend to rise an error message on detection of invalid values in a separate window or in the status line there is no way to do it with Formatted Searches (as far as I know)!
    You could use the following methods as simple workarounds if you don't want to program a solution with the SDK:
    1. Solution
    You can display the text of an error message in the field you validate; of course, the invalid data then is overwritten with your error message, but you could construct the message from fixed text parts concatenated with the data found in the field.
    Be sure to save the original data of the field in your query before you do anything else. This way you sustain the field data in case the data is valid!
    Example:
    DECLARE @save AS ....
    SET @save = $[xxxxx]
    IF $[xxxxx] test on invalid data
      SELECT 'Error: Invalid data: ' + $[xxxxx] -- in case of error
    ELSE
      SELECT $[xxxxx] -- no error - sustain valid data
    END
    2. Solution:
    You define a sepate User Defined Field (UDF) for potential error messages - that's the way I often programmed it for our own applications. Suppose that the Formatted Search is connected to this UDF and the field to validate is field 'xxxxx'. The Formatted Search is triggered (auto-refresh) on change of field 'xxxxx':
    IF $[xxxxx] test on invalid data
      SELECT 'Error: Invalid data: ' + $[xxxxx] -- in case of error
    END
    May be that there are minor syntactical errors or missing type conversions in the code above - but I hope it gives you an idea on how to solve your problem without SDK programming!
    Good luck!
    Frank Romeni

  • How to show error message using java.awt?

    How to show error message using java.awt?
    Which is the class corresponding to the JOptionPane?
    Or I need to use Frame ?

    No, JOptionPane is swing!
    You would have to create your own frame, put your message in it, then show it.

  • Why do I receive "4.3.2 connection rate limit exceeded" error message using the mail merge extension and what can be done about it?

    I am using TB 31.3.0 with Mail Merge 3.9.1. I routinely send an email to 435 members of an volunteer emergency responders group that I coordinate. I do so using a .csv list with mail merge. While there were no problems in the past, more recently the mail merge function will hang after sending a varied number of messages successfully and I get the following error message:
    "An error occurred sending mail. The mail server sent an incorrect greeting: 4.3.2 connection rate exceeded.."
    There is an "OK" button in the error message pop up that can be clicked to resume the mail merge process. It would appear that if I click the "OK" button immediately whenever the error message is received I must do so frequently and some members do not receive their email. If I delay clicking the "OK" button, I found that I only needed to click the "OK" button twice to send to all the members.
    An on line search suggests this is the result of some sort of throttling by my ISP, Sonic.net. There is also this comment: "If you are receiving this error, you are likely using mailing list software which cannot decipher the temporary fail codes. If so, you will need to set your software to slow down its delivery rate and/or reduce the number of active connections per remote host."
    I am not super technical. Is it realistic to think that I can tweak mail merge to that I do not have to babysit my email to this group?

    then I suggest you send using a mail provider that is not actively trying to block your outgoing mail. Or use a yahoo / google groups mailing list feature so you only send a single mail.
    Or use a free account from the likes of http://www.ymlp.com/ who limit free account mailing lists to 1000 subscribers. ( Googled them this morning)

  • "Cannot play video - The Connected display is not supported" error message using Netflix 5.0.2 on my iPad

    I'm running iOS 7.0.3 on my iPhone 4S and iPad (3rd gen) and have just upgraded to the current version of the Neflix app available in the Canadian App Store (5.0.2).
    Although all other apps I've tried (e.g. Podcast, VLC) are able to properly output video & audio directly to my TV using the HDMI adapter (i.e. NOT via an Apple TV), the Netflix app pops up the error message "Cannot play video - The connected display is not supported".  If I start a video and then plug the HDMI cable in, it will play for a few seconds and then halt with the same error message.
    Netflix & Apple were supposed to have been working together to fix the previous issue with this scenario which was causing audio to be output but no video.  The current Netflix app update was released yesterday and seems to have taken a step backward.
    When I contacted Netflix support, they indicated that they have done whatever can be done from their side and this is now Apple's issue.
    Any ideas?
    Thanks!
    Kiron

    Hello all,
    I have an iPad 2 16GB with iOS 7.0.3 and Netflix version 5.0.2. I cannot watch netflix on an External LCD monitor that I have through VGA out. I use bluetooth speakers, so the AirPlay is going to that for Audio. Before this update, this combo worked without an issue.
    So as of Friday Nov. 8/2013, I contacted Netflix support, and they said they fixed the problem on their end, and the fix is on the Apple side of things, and to contact Apple support.
    So, I contacted Apple support, and the first person I spoke to said I would have to agree to pay a $35 fee for 30 days of support to this problem since my unit is out of warranty. I said this isn't a hardware issue, it's a software issue, and I'm not willing to pay to fix a problem you created. So I got a Senior Level advisor on the line, and she was helpful, and she's looking into the issue for me and said she'll contact me sometime on Tuesday or Wednesday (Nov. 12 or 13) to let me know of the issue.
    Here's the thing: this is a combination of Netflix and iOS not working correctly with any of the Apple Authorized Dongles. This is truly a code error that some hot shot programmer had major oversight on, and their management didn't catch it either. There was no reason for Netflix to rush to get this Netflix update going until Apple sorted out the bugs in iOS 7.
    Anyway, if I hear anything from Donna (the advisor), I'll post it and let you guys know. In the mean time, good luck!

  • Weird error message using phone as iPod

    When I plug my iPhone into my car's iPod connection cord (which works fine with regular iPods and does not cause regular iPods to display any weird error messages), the iPhone says something about how "...that accessory does not work with the iPhone..." and asks me whether I want to switch to airplane mode. In spite of this weird message, I am able to play my music via the usual method in my car. Weird. Remedy?

    Actually Human,
    Many iPod accesories were not designed to operate in close proximity to a GSM phone. The iPhone is a GSM phone. There is a program for iPod accessory manufacturers to test and certify their accesories for use with the iPhone. This article contains more information:
    http://docs.info.apple.com/article.html?artnum=305766
    That being said, many will work without going into airplane mode, some will get interference from the GSM signal that will come through as a hum or sometimes popping noise. Since sending and receiving the GSM signal is needed to make calls, the iPhone can't be shielded to prevent interfering, the accessory needs to be.
    This article contains more information on potential interference:
    http://docs.info.apple.com/article.html?artnum=305662
    The short answer is the car adapter may work without going into Airplane Mode, or it may have interference from the GSM signal at times.
    Hope this helps,
    Nathan C.

  • Error message using Disk Utility

    Okay, my System Preferences is not showing up, so I ran the Disk Utility and this is the error message I got:
    Volume Macintosh HD was corrupt and needs to be repaired.
    Error: This disk needs to be repaired...then use Disk Utility to repair the disk.
    What do I do? Do I reinstall Mac OS X Snow Leopard or is this a whole other issue? Do I take it in to get checked out? Can I fix this without taking it in? HELP!

    What you need to do is repair the disk using your install disk (after you make sure that you've backed up your important data or have a current Time Machine backup):
    insert install disk and hold down C key while restarting
    once booted from the install disk, go past the languages, and then up to Menu bar - Utilities. Open Disk Utility and run repair disk. If it says "repaired", you're done. If not, run it again until you get the repaired dialog. You can then restart from your internal disk, eject the install CD and you're all set.
    If Disk Utility can't repair it, you'd need a more powerful application or it could be other things - we'll wait with that until after you've run the repair function.

  • Script Alert: "Sorry I could not process the following files" (Error Message using Image Processor)

    I'm a seasoned Photoshop/Bridge CS5 user who recently upgraded to CS6.  In Bridge I just ran my first Image Processor batch, trying to convert a set of RAW .NEF files to .PSD files with a basic editing action I created applied to them.  Photoshop CS6 opens the files from Bridge and applies the actions, but then I get the "Script alert" error message "Sorry I could not process the following files" and a list of all of the files in the batch I was trying to run the script on.  The files all remain open and are saved on my hard drive in a folder created by the Image Processor script, but do not close unless I manually close them.  I never had this problem in CS5 where the image processor would apply the desired actions to the batch of photos one at a time, then save and close.  Thoughts on how I can fix this bug?

    Hey Jeff--
    No specific action steps to make the image safe - no flattening, etc. Had problems narrowing down the specific action step causing the problem. So I ran the Image Processor script in the ExtendScript ToolKit and debugged in. (I'm using the version that shipped with CS4.)
    Turns out what was happening is that the app.activeDocument.close() command on line 1490 was never getting called, because the this.SaveFile() above it was throwing an exception. More debugging got me to the problem - SaveFile() tries to restore the history state after making a doc safe for saving as a JPEG. This causes an exception. So I commented out line 1571:
    // app.activeDocument.ativeHistoryState = historyState;
    The script runs just fine after this. I commented out the close to see what history states got added to the doc, but no new states are recorded, so commenting out the restore line should not cause any problems.
    Of course, my solution does not solve the problem and I may need to comment out all the saveFile() lines that does this. Not sure why some actions have this problem and others don't. The actions I am running have about 25 steps. Perhaps PS is not catching up quick enough. I added a $.sleep(2500) after the restore history but that didn't help.
    So, not sure where this gets us. I will check about posting an action set with just one of the actions that cause the problem. But I may also have our customer comment out that line of the Image Processor script.
    Hope this helps. May post more next week.

  • Equium A60: I get error message using explorer.exe

    Everytime I try to open an image file using Paint or Fax/Image viewer, or I try to drag a file into a folder I get the following error message:
    "Windows Explorer has encountered a problem and needs to close. We are sorry for the inconvenience"
    The error report says:
    "AppName: explorer.exe AppVer: 6.0.2900.2180 ModName: rpcrt4.dll
    ModVer: 5.1.2600.2180 Offset: 000847a6"
    Also I cannot open webpages that open in new IE windows. Norton Internet Security 2005 also would not open, but did claim to be active in the background.
    Does anyone have any advice for me?
    I've tried all the help for explorer.exe problems on helpwithwindows.com but nothing they suggested worked - such as spyware, malaware removal. I've run a few online virus checks - since Norton won't work I had to try the online scans.
    The laptop was bought last year, and we've lost the recovery CDs - so if we need them, then where can we get replacements?
    Many thanks,
    Jonathan

    Hi
    Well, this sound like a OS software malfunction. It's possible that some registry entries or/and data files are corrupted and damage.
    However, the best solution is to recover the OS.
    The other possibility is to use the "system restore" tool of Win XP.
    Then you can try to roll back the OS to the early point. But if it doesnt work so the new installation is needed.
    regards

  • Photo Editing Error Messages Using Actions in PSE8

    Hello I am currently using pse8 to edit photos and I recently installed a few actions. My actions are in my photo effects folder and I can clearly see them, however when I try to use them it gives me error messages such as "could not complete action as part of a program error", "the command color balance is not currently available" and "the command make is not currently available".
    Please help.

    Any time you see "the command Make is not currently available", it generally means there's a step in the action that PSE doesn't understand. Not all photoshop actions are fully compatible with PSE--are you sure these actions work in Elements? And they need to be compatible with PS CS4, which is the underlying code for PSE 8.

  • Populate Error Message using  MB_MIGO_BADI

    Hi Friends,
      My requirement is whenever the user does a goods receipt using transaction "MIGO" I need to check whether the item selected has an indicator "Delivery Completed" at the PO level and if this indicator is set for this PO item I need to throw an Error message and should not allow the user to create a GR against that item. I have implemented the BADI "MB_MIGO_BADI" for this purpose and I am using the method "POST_DOCUMENT" to check the PO item and throw an error message, bu the issue is afterI  throw an error message and when the user tries to exit from the transaction MIGO using the exit button, the system throws an short dump " Screen: Illegal message" because the program attempted to issue a " " message during "Exit Command" processing. In order to avoid this i tried the method "CHECK_ITEM" to populate the error message to application log, it works fine but I am not able to get the line item details inside this method. I even tried to import the line item details from the method "LINE_MODIFY" and then use it in "CHECK_ITEM" method, but the issue here is CHECK_ITEM is called only once for all the line item, ""LINE_MODIFY" was called every time i change the line item, so I was not able to use it. Can you please let me know if there is any other better way to achieve this.
    As per the below weblog, this scenario is available as part of the standard in ECC Ehp4, but unfortunately we are on Ehp1.
    Delivery Complete Indicator of PO and Goods Receipt

    Dear Imran,
       To achieve the best possible solution you have to use two methods of this BADI in combination with each other. These two methods are 'LINE_MODIFY' and 'CHECK_ITEM'.
       The method 'LINE_MODIFY' will be called every time there is some activity on the MIGO screen. In this method you will have both the item line id and the item structure available in the interface. You will need to create a class attribute which is an internal table of a locally defined structure. The first field of this  structure will be the line_item_id and the second will be the item structure itself. The first time when this method is called for a line item a new entry is inserted into this class level attribute. For each subsequent time this structure needs to be updated with the new values comparing the line item id.
      The method 'CHECK_ITEM' will be called when you press the 'CHECK' or the 'POST' buttons. In this method based on the line item id the corresponding item structure will be obtained from the class level attribute. Using the data of the structure you can then perform your validations and populate the BAPIRET2_TAB parameter with the message details which will then be dispayed in the popup message box in MIGO.
      Hope this helps.
    Best regards,
    Pradip

  • How to customize error message using oraus.msg file?

    Hi,
    Is there a way to modify the oracle error message (for example: instead of ORA-01481: invalid number.. we modify it to "hello ! use a valid format.." ), is it possible using the oraus.msg file if not is there a solution?
    Many thanks

    968420 wrote:
    Hi Gauyav and Keith,
    i thak you for your quick responses , but i want the customized message to be displayed wherever the oracle error appears (in oracle forms screens , sql tool requests, ) not only in pl/sql code,That is a really bad idea
    {message:id=1007020}
    It would render the database completely unsupportable by anyone, and based on the quality of exception handling that is generally seen on these forums would result in databases that simply don't work.
    SQL> declare l_dummy number;
      2  begin
      3    select null into l_dummy from dual
      4    where 0 = 1;
      5  exception when others then
      6    raise_application_error(-20666, 'It doesn''t work!');
      7  end;
      8  /
    declare l_dummy number;
    ERROR at line 1:
    ORA-20666: It doesn't work!
    ORA-06512: at line 6
    as we've a lot of forms screens and it's not possible to modify all of them.These are strange kinds of forms that it is possible to create a lot of them but not possible to modify them.
    Is there a solution for this?Fix the forms.

  • Error message using SQL import and Export Wizard with Excel spread sheet

    I am trying to import an Excel spreadsheet using the Import export wizard that is provided with SQL 2014.  
    Everything seems to set up OK but then when I go to do the transfer "error message" comes up saying:
    External Table is not in the expected format.(Microsoft Jet Database Engine).   
    This is a spreadsheet and there is no database, that is why I want to import it into a database!!  So the reference to JET is a tad disappointing.
    So why the error and how do I fix the problem?
    As there are over 100 variables in the spread sheet rows, it would be great to have this automatically create the database and populate the fields.
    I am using SQL 2014  Express and Office Excel 2013.
    Thank you in  advance for taking the time to read this, and hopefully sheading some light on the issue.

    Hi AWlcurrent,
    When import a .xlsx file to SQL Server using SQL Server Import and Export Wizard, you see a “External Table is not in the expected format.(Microsoft Jet Database Engine).” error message. This error message seems that the Microsoft JET Database Engine is
    unable to handle something that is contained in the file.
    So please make sure there is no unsupported content in the Excel file. Alternatively, we can use ‘Microsoft Excel’ as the Data Source, then Select ‘Microsoft Excel 2007’ as the Excel version to import the excel file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for