Where is this actionscript code?

Dear All,
I am getting the message below which does make sense but I
cannot find any actionscript on Scene 1, layer=Layer 1,
frame=1:Line 2.
I get the ststement on three different frames. None of them
have actionscript. I believe the fla file was previously an older
version (possibly 5) and now I am working with 2004 MX.
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2:
Statement must appear within on/onClipEvent handler
Thanks again. I am getting so confused over this one.
Alastair MacFarlane

I have found the code!
Thanks for both your help.
Alastair
"evanton" <[email protected]> wrote in
message
news:fjtrfo$qdu$[email protected]..
> Dear All,
>
> I am getting the message below which does make sense but
I cannot find any
> actionscript on Scene 1, layer=Layer 1, frame=1:Line 2.
>
> I get the ststement on three different frames. None of
them have
> actionscript.
> I believe the fla file was previously an older version
(possibly 5) and
> now I
> am working with 2004 MX.
>
> **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2:
Statement must
> appear
> within on/onClipEvent handler
> {
>
> Thanks again. I am getting so confused over this one.
>
> Alastair MacFarlane
>

Similar Messages

  • HT201303 Where is this security code you need????

    Where is the security code you need from my c.c?

    Cheese it wrote:
    I am furious!!!!!!
    You and I. Are not on the same page :(
    I put in my code on the back of the card and they said its incorrect, and nothing on my card has changed for years except the expiration date.
    So what do I need to do??????
    Well, first, the security code changes every time that the expiration date changes.  Second, who is "they?"  I can not read minds.  Third, take this up with your credit card carrier.

  • Please! help me with this wrong code, where is mistake

    please! help me with this wrong code, where is mistake?
    import java.util.Stack;
    public class KnightsTour {
    Vars locs[];
    private int size, max=1, d=0, board[][];
    public KnightsTour(int x,int y, int newSize)
         size=newSize;
         locs=new Vars[size*size+1];
         for(int n=1;n<=size*size;n++)
              locs[n]=new Vars();
         board=new int[size+1][size+1];
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   board[n][n2]=0;
         locs[max].x=x;
         locs[max].y=y;
         locs[max].d=1;
         board[x][y]=max;
         max++;
    class Vars{
         int x;
         int y;
         int d;
    public void GO()
         int n=0;
         while(max<=size*size)
              n++;
              d++;
              if(d>8)
                   max--;
                   board[locs[max].x][locs[max].y]=0;
                   d=locs[max].d+1;
              move();
         printBoard();
    public void move()
         int x=locs[max-1].x, y=locs[max-1].y;
         switch(d)
         case 1:x--;y-=2;break;
         case 2:x++;y-=2;break;
         case 3:x+=2;y--;break;
         case 4:x+=2;y++;break;
         case 5:x++;y+=2;break;
         case 6:x--;y+=2;break;
         case 7:x-=2;y++;break;
         case 8:x-=2;y--;break;
         //System.out.println(" X: "+x+" Y: "+y+" |"+max);
         if((x<1)||(x>size)||(y<1)||(y>size)){}
         else if(board[x][y]!=0){}
         else
              locs[max].x=x;
              locs[max].y=y;
              locs[max].d=d;
              board[x][y]=max;
              max++;
              d=0;
              //printBoard();
    public void printBoard()
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   if(board[n2][n]<10)
                        System.out.print(board[n2][n]+" ");
                   else
                        System.out.print(board[n2][n]+" ");
              System.out.println();
         //System.out.println();
         System.out.println();
         public static void main (String[]args){
              KnightsTour k = new KnightsTour(1,1,8);
         }

    public class KnightsTour {
        Vars locs[];
        private int size,  max = 1,  d = 0,  board[][];
        public static void main (String[] args) {
            KnightsTour k = new KnightsTour (1, 1, 8);
            k.GO ();
        public KnightsTour (int x, int y, int newSize) {
            size = newSize;
            locs = new Vars[size * size + 1];
            for (int n = 1; n <= size * size; n++) {
                locs[n] = new Vars ();
            board = new int[size + 1][size + 1];
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    board[n][n2] = 0;
            locs[max].x = x;
            locs[max].y = y;
            locs[max].d = 1;
            board[x][y] = max;
            max++;
        class Vars {
            int x;
            int y;
            int d;
        public void GO () {
            int n = 0;
            while (max <= size * size) {
                n++;
                d++;
                if (d > 8) {
                    max--;
                    board[locs[max].x][locs[max].y] = 0;
                    d = locs[max].d + 1;
                move ();
            printBoard ();
        public void move () {
            int x = locs[max - 1].x, y = locs[max - 1].y;
            switch (d) {
                case 1:
                    x--;
                    y -= 2;
                    break;
                case 2:
                    x++;
                    y -= 2;
                    break;
                case 3:
                    x += 2;
                    y--;
                    break;
                case 4:
                    x += 2;
                    y++;
                    break;
                case 5:
                    x++;
                    y += 2;
                    break;
                case 6:
                    x--;
                    y += 2;
                    break;
                case 7:
                    x -= 2;
                    y++;
                    break;
                case 8:
                    x -= 2;
                    y--;
                    break;
    //System.out.println(" X: "x" Y: "y" |"+max);
            if ((x < 1) || (x > size) || (y < 1) || (y > size)) {
            } else if (board[x][y] != 0) {
            } else {
                locs[max].x = x;
                locs[max].y = y;
                locs[max].d = d;
                board[x][y] = max;
                max++;
                d = 0;
    //printBoard();
        public void printBoard () {
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    if (board[n2][n] < 10) {
                        System.out.print (board[n2][n] + " ");
                    } else {
                        System.out.print (board[n2][n] + " ");
                System.out.println ();
    //System.out.println();
            System.out.println ();
    }formatting ftw.
    If you call GO () you get in an infinite loop. max gets decreased, and it loops while max is smaller then or equal to size * size. Is your looping logic correct ?

  • Where is this: " / in the code?

    http://www.simplyorganicskincare.com/ContactUs.html
    I transfered this site from Yahoo to Host Gator and fell into a pile of mush. None of the links were right, I think about 10,000 had to be changed. Anyway...
    Where is this in the code? " /> it's right above the form on the visible page.
    I've looked and looked and must be blind. It all looks pretty cluttered to me, but I'm not being paid, so am not going to do a big redo at this time. Oh, Host Gator is paying for getting the site transfered to them.
    Thanks for your help.
    Kath

    Run your page through the vaildator:
    http://validator.w3.org/
    Typically when that is showing it's an improperly closed tag.  The validator will tell you the line numbers to look at to fix the code.

  • I want to start using the creative cloud programs but it has forced me to "start a trial" and looks like I need a redemption code to "license" the products on my computer for the next year. Where do I find or get this redemption code?

    I want to start using the creative cloud programs but it has forced me to "start a trial" and looks like I need a redemption code to "license" the products on my computer for the next year. Where do I find or get this redemption code?

    If you bought your subscription direct from Adobe, you should not need any codes, only your Adobe ID and password
    -Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    -Install, update or UNinstall, and launch after installing
    If you bought your subscription from some other vendor, ask that vendor for help
    -Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Where is this path Admin- Setup- Financial- Tax- Tax code setup

    Hi All,
    Please tell me where i will get below path
    Admin->Setup->Financial->Tax->Tax code setup
    Regards,
    Nandkishor Nachane

    Hi,
    Check in below path,
    It will not be possible to change the TAX CODE or TAX CODE NAME. You will need to remove the TAX CODE.
    But, It there are transaction against the TAX code you will need to create a new TAX CODE.
    Admin> setup> financial>tax>tax code set up.
    and u find there LOCK FOR USE option on ur right side on document.
    chk the option and u never find this tax code in tax code list when u make marketing document
    SAM

  • How to succsefully insert a "stop on this frame" code in ActionScript 3

    I am attempting to modify an FLV video file to have it stop looping. I  launched FlashPro in Action Script 3, imported the file to be modified,  applied the "stop on this frame" code on the last frame, but it still  loops or goes back to the first frame. Perhaps I am using the wrong  approach. Any help/suggestion would be greatly appreciated.
    Thanks,
    Stephen

    Ok,.. it keeps crashing while debugging. I could not move the curser to the last frame (5,255 or so) so I selected a frame in the range I could see under the movie (frame 625) and made it a key frame, them edited it with the stop(); command. then I ran the debug to see if it stops at the designated frame.
    It keeps crashing while trying to debug. Incidentally, if I do -nothing- after importing the movie and just "test movie", it stops on the last frame and shows that last frame. The reason I am doing this is because web browsers apparently default to "loop" unless the user viewing the website intentionally deselects "loop" to cause it to stop looping. I was told that flash would be a solution. I believe it likely is/will be, but it may be unreasonable to assume that could do it that easily having little knowledge of the flash program. I plan to learn how to really use it (read the docs, go through tutorials, etc., but I needed a "quick fix" for something that is already uploaded to a website and only needs to have the "loop" feature disabled or forced to stop via flash code etc. This was thoroughly explained before optioning the $1,500.00 package (I needed to upgrade all my cs3 anyway) - I'll try again tomorrow after reinstalling in case that is the problem.
    Thanks again for your much appreciated help.
    Stephen

  • Where dose this code go?

    I'm making a App to quickly tweet how Im feeling about something and im not sure where the set of code below gose.
    I know somewhere in "InstatwitViewController.m", but my book dosnt show where in the file I'm suppost to put it?
    - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)
    pickerView {
           return 2;
    - (NSInteger)PickerView:(UIPickerView *)
    pickerViewnumberOfRowsInComponent :(NSInteger)component {
              if (component == 0) {
             return [activities count];
      else {
             return [feelings count];
    I'm sorry im so dumb and can't figure it out, but help WILL be greatly appreciated!

    Those are UIPickerViewDataSource protocol methods.
    https://developer.apple.com/library/ios/#documentation/iPhone/Reference/UIPicker ViewDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UIPickerVi ewDataSource
    Generally the view controller containing the UIPickerView adopts the UIPickerViewDataSource protocol and includes the appropriate methods. If you have dropped the UIPickerView on a storyboard scene, the dataSource outlet should reference the same view controller.
    Same thing applies to UIPickerViewDelegate protocol.
    It doesn't matter where in the module the methods are placed. To make them easy to find, consider adding these lines immediately above each group of methods.
    #pragma mark - Picker view datasource
    #pragma mark - Picker view delegate

  • THIS IS DRIVING ME CRAZY - WHERE IS THE PRINTER CODE

    I cant find the printer code????
    I cant set up eprint  ((
    Help - where is the printer code!!!!

    Which printer do you have? Were you able to enable web services on your printer? The reason I asked is because once Web Services is activated, ePrint for your printer also gets activated. When ePrint gets activated it will assign an email address to your printer. The printer code is actually the email address minus "@hpeprint.com".
    Let me know if it works.
    Binary_Zen (worked at HP )
    Click the white Kudos star to say thanks
    Please mark Accept As Solution if it solves your problem

  • Buttons and ActionScript Code

    Hi everyone just signed up to this forum today, really need help, would appreciate your help.
    Basically I have created 5 buttons on one single layer. I am now trying to link each button to a website, but to no success as of yet.
    I realised that maybe in order to make it easier for myself I need to put each button in its own layer and insert the following actionscript code I've inserted for one of my buttons:
    stop()
    home_btn.addEventListener(MouseEvent.CLICK, mouseClick);
    function mouseClick(event:MouseEvent):void
    var request = new URLRequest("http://www.sign-technologies.net/");
    navigateToURL(request,"_blank");
    This code links my first button "home_btn" to my site, which is still underconstruction. When I run it in flash it works, but when I click the button in the actual web browser it will not go to the webpage, so I'm stuck.
    Another question: For convience sake is there a way I can have all the buttons in one layer, but insert code that can seperate one button from the other? Anyone have that code?

    You can place all of your buttons in one layer and all of your code preferably in another layer.  What you will need to do is have differently named functions for each button.  You can not name them all "mouseClick"... I'll suggest you name the function in relation to the button, as in....
    home_btn.addEventListener(MouseEvent.CLICK, homeClick);
    function homeClick(event:MouseEvent):void
         var request = new URLRequest("http://www.sign-technologies.net/");
         navigateToURL(request,"_blank");
    As far as the file not working when testing in a browser, it should.  There is nothing wrong with the code.
    There are other ways of coding where you can have the same function shared by all the buttons, but that might be a better lesson for another day.

  • Will app store approve an app to load external swf containing actionscript code in it?

    Will app store approve an app to load external swf containing actionscript code in it?

    Hi...It is not in the application bundle...it will be hosted on a server and from there it will be loaded in the application. I had created one sample application where it is loading a swf which is hosted on different server. This swf contained some actionscript code on its timeline. This app was working on ipad. I just wanted to know whether App Store will approve this.

  • [svn] 1967: * Fixed issue where -keep-generated-actionscript would not work

    Revision: 1967
    Author: [email protected]
    Date: 2008-06-05 08:12:21 -0700 (Thu, 05 Jun 2008)
    Log Message:
    * Fixed issue where -keep-generated-actionscript would not work
    properly when -generate-abstract-syntax-tree was enabled, which is
    now the default.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    API Change: NO
    Reviewer: clucier
    Code-level description of changes:
    CompilerConfiguration.java
    Modified setKeepGeneratedActionScript() to force AST generation
    off when the value is true.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Same 4MEM/9/40000000 , but different aka (hopefully) the complete guide to this error code and changing RAM

    Hello world,
    finally, after having been reading here for years I decided to break silence and join the most venerable Apple discussions community!
    First of all, I'm no native speaker, so if I at one point don't express myself correctly, I'm sorry. If you don't understand please ask what exactly I meant since it's very important that we know exactly what each one of us is talking about, thank you.
    Important, too:
    I know there are a lot of posts with this topic and I sifted through a lot of them but none of them captures exactly what my problem or rather my questions are and unfortunately in a lot of them there is no real feedback from the original poster how it all worked out or not. So, I intend this thread to be that one helpful thread which more or less concentrates the knowledge of the other threads, where people with similar problems can go to in future.
    I ask one thing of you: Please DON'T answer with just one phrase à la "U got bad RAM, send it back" or "Contact Apple Customer Support Service whatever thingy" without explaining why this would be the only viable option (because I think it is not, at least at the moment).
    All the questions I 'd like answered are green, for you to not lose track. I hope this becomes a good discussion so everyone of us can learn a lot!
    Following problem:
    Initial situation:       
    My Computer: MacBookPro 8.2, early 2011, 15", 2,2 GHz i7; Mavericks 10.9.5    (yet without this bash fix but ¯\_(ツ)_/¯ )
           - Upgraded RAM from onboard 4 (2 x 2) GB to the "unofficially" possible 16 (2 x 8) GB 
    Ordered RAM on Amazon.de with the right Specs: 204 pin DDR3 SO-DIMM (1333 MHz, PC3-10600S, CL9),
    Manufacturer: CSX (http://www.csx-memory.com , while it's maybe not the most renown seller, it was described on another website as reliable )
        HERE (hope the link doesn't  change):               http://www.amazon.de/gp/product/B0084SH6WA/ref=oh_aui_detailpage_o01_s00?ie=UTF8 &psc=1
           - Installed it, booted Mac without problem, what does System Profiler say? I have full 16 GB   1600 MHz   Memory installed
    - Obviously sent me the "wrong" RAM (or can System Profiler be wrong??), funny thing: It works,
         --> after a LOT of research checked here http://guides.macrumors.com/Buying_RAM      my i7 is 2720QM, so supports it, lucky me
       Btw, if i go to About this Mac > more information > memory,  the Text there even says it can hold 1600 MHz, has this been written there like this all along?!
    - Which RAM do I have installed exactly now? since the sticker on it showed the originally ordered Specs.., moreover how do I determine the CAS latency of my installed RAM?
    Crashes:
    Didn't really have any, except..... well,  
    - In some instances Firefox (I think 32.02. or sth., the latest Version at this moment) reproduceably keeps crashing, for example right now, can't even start it,  that's why I can't tell you the exact version, maybe I edit that later. Safari so far hasn't crashed.
    - Once I had a System Crash, but it happened when I wanted to reboot after updating the firmware of a hooked on external WD drive to be usable again as time machine backup volume under mavericks (without endangering my data).
    The RAM seems to work fine; for example when I was doing a long overdue backup of 77GB on said drive, Activity Monitor showed a RAM Usage of  15,99 GB and nothing crashed. Only the fans were powering at some point but i thought that normal..
    - Actually produced two more Crashes when trying to run Apple Hardware Test (AHT), the one on the second disc that originally came with my Computer (probably made for OS 10.6.x    x= 6 or sth., don't remember which version my MBP was shipped with), which leads to
    Tests:
    Memtest86
    - I put Memtest86 v.5.01 on a USB Stick and bootet from that and let it test "the whole" RAM 
    (btw Do you know how you can put the bootable USB image of Memtest only to one (of a few) partition of my 32 GB USB Stick? The instructions (command line stuff) only let me put it on the whole Stick which makes it otherwise useless as a volume; ok here I'm not sure if I'm using the correct technical terms....)
    - I let Memtest86 do 3 and a half passes with one pass consisting of 10 different tests, so it took over 8 hours! 
    --> RESULT:   0   (in words: zero)  ERRORS,         
    --> That is why I think my RAM is ok, because I think (think NB, don't know) Memtest86 does good testing,or do you know      better?
    AHT
    - After that, out of curiosity, I tried to run AHT from the DVD with said results, then I ran AHT (also called Apple Diagnostics under Mavericks) from the Internet, this worked, but produced the famous 4MEM/9/40000000 Error Code,
    first one for example was: 4MEM/9/40000000: 0x8477df98, the last part after the colon is variable, but stays the same in one instance, i.e. if you repeat the AHT directly. If you restart the Computer an rerun the test then it changes, e.g. some other it showed 0x84770a18
    - I did the short and the extended version, it took ca. 2-3  and 16 min respectively till producing the Error Code (only 1 at a time)
    - Did it 4 times or so; once in short/simple version it showed no error, the rest the 4MEM/9 s.
    some example of a simple test, results taken out of the System Profiler Window (fehlgeschlagen= failed):
    Apple Diagnostics:
    The usual self test on start up is always passed (bestanden), see for example:
    What other than bad RAM can 4MEM/9/40000000 mean? I hope there are a few tech and computer savvy people around this place who know what they are talking about and can give me a good answer, or at least help to narrow it down. Actually I also think, the RAM sticks are not loose, but before I screw open my MBP again I would like to explore the other possibilities.
    Is it probable that this Error Code has got sth. to do with me installing a) 16 GB of b) 1600 MHz RAM, or maybe with CAS Latency (i don't know the actual CL of this RAM)? and if so, is it only because some Apple Programmer/Developer/Technician wrote some values in a list on the System Level, so it doesn't accept RAM it would normally work with?? If it works fine and is faster, why change it?
    Final Words:
    I repeat, apart from the Firefox crashes, my Mac seems to be working fine, at least I don't notice anything, (well, that disk utility and System Profiler (or whatever it's called nowadays) sometimes take time to start up is nothing special i think, is it?)
    But now I'm scared that perhaps there could be a future danger for my computer I do not foresee...I hope you can at least exclude that.
    So I'd rather spend my time starting a discussion here with people who don't have to abide by some corporate policy (right?) than having the hassle of repeatedly screwing my Mac open and shut  and doing expensive calls with all the companies involved who won't tell me anything more in depth than "we have to send it there, do more tests and you get it back then".
    I hope that this thread won't rot in the wastelands of unanswered posts and that maybe all the people who take part in it learn sth. and all the people seeking help in future will find it here.
    Thanks for your patience!
    Waiting for your greatly appreciated answers,
    MuddyMic
    PS: Why is there no category Hardware, Components, RAM or sth similar? Not sure if it fits in Ports and Interfaces so I put it under Using a MBP

    Hello world,
    finally, after having been reading here for years I decided to break silence and join the most venerable Apple discussions community!
    First of all, I'm no native speaker, so if I at one point don't express myself correctly, I'm sorry. If you don't understand please ask what exactly I meant since it's very important that we know exactly what each one of us is talking about, thank you.
    Important, too:
    I know there are a lot of posts with this topic and I sifted through a lot of them but none of them captures exactly what my problem or rather my questions are and unfortunately in a lot of them there is no real feedback from the original poster how it all worked out or not. So, I intend this thread to be that one helpful thread which more or less concentrates the knowledge of the other threads, where people with similar problems can go to in future.
    I ask one thing of you: Please DON'T answer with just one phrase à la "U got bad RAM, send it back" or "Contact Apple Customer Support Service whatever thingy" without explaining why this would be the only viable option (because I think it is not, at least at the moment).
    All the questions I 'd like answered are green, for you to not lose track. I hope this becomes a good discussion so everyone of us can learn a lot!
    Following problem:
    Initial situation:       
    My Computer: MacBookPro 8.2, early 2011, 15", 2,2 GHz i7; Mavericks 10.9.5    (yet without this bash fix but ¯\_(ツ)_/¯ )
           - Upgraded RAM from onboard 4 (2 x 2) GB to the "unofficially" possible 16 (2 x 8) GB 
    Ordered RAM on Amazon.de with the right Specs: 204 pin DDR3 SO-DIMM (1333 MHz, PC3-10600S, CL9),
    Manufacturer: CSX (http://www.csx-memory.com , while it's maybe not the most renown seller, it was described on another website as reliable )
        HERE (hope the link doesn't  change):               http://www.amazon.de/gp/product/B0084SH6WA/ref=oh_aui_detailpage_o01_s00?ie=UTF8 &psc=1
           - Installed it, booted Mac without problem, what does System Profiler say? I have full 16 GB   1600 MHz   Memory installed
    - Obviously sent me the "wrong" RAM (or can System Profiler be wrong??), funny thing: It works,
         --> after a LOT of research checked here http://guides.macrumors.com/Buying_RAM      my i7 is 2720QM, so supports it, lucky me
       Btw, if i go to About this Mac > more information > memory,  the Text there even says it can hold 1600 MHz, has this been written there like this all along?!
    - Which RAM do I have installed exactly now? since the sticker on it showed the originally ordered Specs.., moreover how do I determine the CAS latency of my installed RAM?
    Crashes:
    Didn't really have any, except..... well,  
    - In some instances Firefox (I think 32.02. or sth., the latest Version at this moment) reproduceably keeps crashing, for example right now, can't even start it,  that's why I can't tell you the exact version, maybe I edit that later. Safari so far hasn't crashed.
    - Once I had a System Crash, but it happened when I wanted to reboot after updating the firmware of a hooked on external WD drive to be usable again as time machine backup volume under mavericks (without endangering my data).
    The RAM seems to work fine; for example when I was doing a long overdue backup of 77GB on said drive, Activity Monitor showed a RAM Usage of  15,99 GB and nothing crashed. Only the fans were powering at some point but i thought that normal..
    - Actually produced two more Crashes when trying to run Apple Hardware Test (AHT), the one on the second disc that originally came with my Computer (probably made for OS 10.6.x    x= 6 or sth., don't remember which version my MBP was shipped with), which leads to
    Tests:
    Memtest86
    - I put Memtest86 v.5.01 on a USB Stick and bootet from that and let it test "the whole" RAM 
    (btw Do you know how you can put the bootable USB image of Memtest only to one (of a few) partition of my 32 GB USB Stick? The instructions (command line stuff) only let me put it on the whole Stick which makes it otherwise useless as a volume; ok here I'm not sure if I'm using the correct technical terms....)
    - I let Memtest86 do 3 and a half passes with one pass consisting of 10 different tests, so it took over 8 hours! 
    --> RESULT:   0   (in words: zero)  ERRORS,         
    --> That is why I think my RAM is ok, because I think (think NB, don't know) Memtest86 does good testing,or do you know      better?
    AHT
    - After that, out of curiosity, I tried to run AHT from the DVD with said results, then I ran AHT (also called Apple Diagnostics under Mavericks) from the Internet, this worked, but produced the famous 4MEM/9/40000000 Error Code,
    first one for example was: 4MEM/9/40000000: 0x8477df98, the last part after the colon is variable, but stays the same in one instance, i.e. if you repeat the AHT directly. If you restart the Computer an rerun the test then it changes, e.g. some other it showed 0x84770a18
    - I did the short and the extended version, it took ca. 2-3  and 16 min respectively till producing the Error Code (only 1 at a time)
    - Did it 4 times or so; once in short/simple version it showed no error, the rest the 4MEM/9 s.
    some example of a simple test, results taken out of the System Profiler Window (fehlgeschlagen= failed):
    Apple Diagnostics:
    The usual self test on start up is always passed (bestanden), see for example:
    What other than bad RAM can 4MEM/9/40000000 mean? I hope there are a few tech and computer savvy people around this place who know what they are talking about and can give me a good answer, or at least help to narrow it down. Actually I also think, the RAM sticks are not loose, but before I screw open my MBP again I would like to explore the other possibilities.
    Is it probable that this Error Code has got sth. to do with me installing a) 16 GB of b) 1600 MHz RAM, or maybe with CAS Latency (i don't know the actual CL of this RAM)? and if so, is it only because some Apple Programmer/Developer/Technician wrote some values in a list on the System Level, so it doesn't accept RAM it would normally work with?? If it works fine and is faster, why change it?
    Final Words:
    I repeat, apart from the Firefox crashes, my Mac seems to be working fine, at least I don't notice anything, (well, that disk utility and System Profiler (or whatever it's called nowadays) sometimes take time to start up is nothing special i think, is it?)
    But now I'm scared that perhaps there could be a future danger for my computer I do not foresee...I hope you can at least exclude that.
    So I'd rather spend my time starting a discussion here with people who don't have to abide by some corporate policy (right?) than having the hassle of repeatedly screwing my Mac open and shut  and doing expensive calls with all the companies involved who won't tell me anything more in depth than "we have to send it there, do more tests and you get it back then".
    I hope that this thread won't rot in the wastelands of unanswered posts and that maybe all the people who take part in it learn sth. and all the people seeking help in future will find it here.
    Thanks for your patience!
    Waiting for your greatly appreciated answers,
    MuddyMic
    PS: Why is there no category Hardware, Components, RAM or sth similar? Not sure if it fits in Ports and Interfaces so I put it under Using a MBP

  • Where to put javascript code?

    Hello,
    I am trying to set some columns in a list as "read-only" and is using the following code:
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById(’4_ctl00_ctl00_TextField’);
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push(“SetReadOnly()”);
    </script>
    But I am not sure where to put the code in. Should I put it in the space in Content Editor Web Part,
    or through a link to a txt file, or in "Edit HTML"? I've tried them but none works.
    Thanks a lot!
    Patrick

    You can try this:
    1) Open your Sharepoint List. Go to List edit view.
    2) On right side of Ribbon you will find "Form Web Parts" option as shown in figure.
    3) Choose your List form which you want to edit.
    4) Now you can add web part in new window.
    5) Add Content Editor Web part.
    6) In content editor web part add the path of your "txt" file in which you have written your script, for eg.
    <!DOCTYPE html>
    <html>
    <body>
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById('4_ctl00_ctl00_TextField');
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push("SetReadOnly()");
    </script>
    </body>
    </html>
    I haven't tried this method so I am not sure but hope it works...:D
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote***

  • Please help me transform this C++ code to java code....

    guys...please help me transform this C++ code to java code....please try to explain the code..thanks
    [program]
    #include <stdio.h>
    #define ALIVE 1
    #define DEAD 0
    #define SZ 33
    int stschk (int ,int );
    main()
    int s[SZ][SZ], i, j;
    for (i=0; i<sz; i++ ) s[0] = DEAD;
    for (j=0; j<sz; j++ ) s[0][j] = DEAD;
    s[0][1] = ALIVE;
    for (i=0; i<sz-1; i++) {
    for ( j=1;j<sz;j++ ) {
    s[i][j] = stschk(s[i][j-1],s[i+1][j];
    if(s[i][j-1]==ALIVE) printf("*");
    else printf(" ");
    printf("\n");
    int stschk(int s1,int s2)
    if(((s1==DEAD)&&(s2==ALIVE))||
    ((s1==ALIVE)&&(s2==DEAD))) return ALIVE;
    else return DEAD;

    Being picky, that's not C++, that's C. Standard headers in C++ dont' have .h after them, loop variables are scoped with the for, you use constants rather than #defines, etc..
    C and C++ both don't initialise arrays by default; you'd have to write an initialiser to get it to zero out the array:
        int s[sz][sz] = {};gcc will insert a call to memset to zero the array.
    If the author was assuming that the array was zeroed out, there would be no point zeroing the first row and column.
    The code reads values which haven't been initialised. If you mark such values explicitly undefined, and change the program to report an error when undefined, then you get several cases where the program makes such report.
    So either it' s a primitive random number generator (some random number generators use uninitialised memory as a source of randomness), or it's buggy, or it's processing undefined data and throwing away the result. Either way, it cannot be directly be ported to Java if the undefined values (which are limited to a small area of the ouput) are significant.

Maybe you are looking for