Error 1009 for preloader and fullscreen method

hi all..
ı am working on a web site project and there is a problem.. I use flash cs4. I tried to use a fullscreen method, which is I learned at internet, and make a preloader. I can't explain this problem because of my english but ı attach the fla file ( www.simgeyazilim.com/index3_4.rar ). This is a very simple fla but ı failed. anybody help me to fix this problem?
Thanks...

the problem is on the second scene where you add the eventlistener to but1.
if you remove that then the error doesn't appear anymore.

Similar Messages

  • Need to fix Error 1009 for very simple task!

    Hi to all,
    I'm learning AS3 for the first time so that I can make a game, but I'm stuck on the most basic of tasks!
    What I want to do is be able to click on a button to take me to the next frame of the main timeline, which I've called "gameboard". The button is called "storymode".
    In the first frame of the main timeline, I have a movie clip that runs a short animation before the menu appears. My button that I want to click on is nested in this movie clip.
    This is the code I'm using on frame 95 of the movie clip (exactly where the button appears):
    stop();
    storymode.addEventListener(MouseEvent.MOUSE_UP, gotoGame);
    function gotoGame(evt:MouseEvent):void {
    evt.target.parent.gotoAndStop("gameboard");
    ...but it just gives me Error 1009 every time and won't work!
    I've read a few other forums for help on this error already and tried a few potential solutions, but nothing works - so I'm asking my own question! Also, I ran the debugging tool in Flash, and it tells me the error is specifically on Line 3 (beginning with the word 'storymode'). I've made sure that everything has a name, and double and triple-checked that I'm referring to the right names in the right places, so "storymode" does indeed refer to my button!
    One cause I read about was that the button may not have been loaded yet, but I've made sure that the code is on the same frame as the button. It appears in the exported file and changes colour when hovered over like a functional button, so it's definitely loaded! It just doesn't work when clicked! What could the problem be?!
    I am utterly bewildered by this and desperately need help, otherwise I will never be able to progress to more difficult tasks!

    Kglad, I did as you suggested, and that gives me not only another error (1120: Access of undefined property titlemenu (that's the name of the movieclip)), but it also negates all the "stop" commands I've put in the timeline actions, resulting in the export flickering uncontrollably between the first and second frames on the main timeline.
    I had this problem before I had the 1009 error, and managed to fix it on my own. Back then, it was Error 1061, and was caused by me using the wrong target in my code. I had:
    this.parent.gotoAndStop("gameboard")
    instead of
    evt.target.parent.gotoAndStop("gameboard")
    ...and changing it to the latter fixed Error 1061. However, this error 1120 causes the same problem again, so it's a targeting issue I'm not very willing to change, I think.
    I've tried about a dozen different targeting options as well, and none of them solve Error 1009.

  • Customizing order for setter and getter methods in ViewRowImpl

    I have problem to calculate value for one attribute of my viewObjectRow which depends on values of other attributes in my row and result of stored function. I menaged to do all of this except getting value one of attributes that i need. Order of calling getter methods doesn't fit me. I tried lot of things, but nothig worked! Is there some way to customize calling order for getter and setter methods in ViewRowImpl and How?
    Thanks!

    but why addign javadoc to a getter/setter anywhy?Oracle [url http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17483/oracle/jbo/common/AccTravDefImpl.html#getAccTravQualifiers()]does, so it must be OK :)
    But as Timo says, there's no automatic way that I know of. I suppose you could do something like that by making your own code template.
    John

  • Error 1009 keeps appearing and i don't know how to fix it?

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      ::MainTimeline/my_guess()
    how can i fix this?

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • Error 1009  at Drag and Drop

    Hello,
    iam loading an Flex app into an Flash App. In the Flex App is an Drag an Drop with a List. Its crazy , but when the Flash App loads the Flex app for the fist time the Drag and Drop works fine. But when i unload it and load it for the second time it throws this Error:
    TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
         at mx.managers.dragClasses::DragProxy()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:74]
         at mx.managers::DragManagerImpl/doDrag()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\DragManagerImpl.as:264]
         at mx.managers::DragManager$/doDrag()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\DragManager.as:243]
         at mx.controls.listClasses::ListBase/dragStartHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:9182]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:9408]
         at mx.controls.listClasses::ListBase/mouseMoveHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:8919]
    I can't figure out what kind of Error this is!? Can someone help me? How can i solve this Problem!?

    Ihre Objekte sind zu mir gehören!!! LOL I took a year of German, stayed in Berlin for a month and all I can remember is... Scheiße!
    Ok, so about this problem of yours... it's been brought up in this forum before -- Error 1009 on drag/drop events within lists when those lists are not in the main application domain (whether it's a pop up or some module). See the post here:
    http://forums.adobe.com/message/2354888#2354888
    A bug was supposed to have been created for this issue. If not, I recommend you submit a new bug and reference yours and the other post's test case. Also worth asking the other poster if they came up with a workaround.
    My hunch is that whatever is tripping you up is internal and non trivial (i.e. I have no idea why this is happening and have no obvious workaround for you ). Best o luck,
    - e

  • Error in CALL TRANSACTION and SESSION Method

    I have 8 records (1,2,3,4,5,6,7,8) to update into SAP database using CALL TRANSACTION and SESSION Method. If there is a error in 6th record. What happens in both call transaction and session method.
    Please let me know which records will process and what about the error record. How to process only the error record if all other records have updated into database.

    Hi Patil_sumeet,
    if your code for this is not protected secret of some federal agency, you may read [How to post code in SCN, and some things NOT to do...|How to post code in SCN, and some things NOT to do...; and then post relevant lines here.
    According to the facts presented until know it may have been better to ask Radio Eriwan
    Regards
    Clemens

  • Error 1009 for end-user

    Hello,
    "It is unlikely that an end-user would ever experience Flash player error 1009" - but I do when trying to look some videos (youtube is no problem, but babelgum.com and videos on flickr don't work, for instance)  I used the uninstaller and reinstalled the player, but the problem persists (Mac Os 10.5.8, safari 4.0.3 / firefox 3.5.2)
    maybe someone can help me?
    thanks a lot

    Lucas,
    As far as I now, there is no possibility to differenciate users in a group.
    This means that if you can't differenciate users belonging to a group, you will not be able to identify if he is administrator or not of the group. So it will not be possible to assign him a specific role that will allow him to populate users in that group only.
    For your information, you can use the role "pcd:portal_content/administrator/user_admin/delegated_user_admin_role" to allow user to :
      - create other users
      - top grant roles for with they have the "Role Assigment" permissions
      - but not to populate groups (what could lead to security problem, ie you can make your self member of Administrators group, and so have the SuperAdmin role)
    Hope this help
    Vincent

  • Error msg for UIComponent and correct style/icons for associated label

    I am using the "error(UIComponent component, String summary)" method on a page bean to set an error message for a specific UI component from a submit event handler, which is great because that shows an error message next to the component that caused the problem in the first place. For instance, if I get a data integrity error such as duplicate key from the data layer, I can use this approach to tell the user which UI component is causing the problem.
    However, the "error" method does not set the error icon and the correct style (e.g. bold and red) for any associated labels in the same way a validator does. Does anyone know a way to achieve this from an action event handler. Keep in mind that I am referring to errors such as data integrity errors which can only be detected when you are already running the action event handler, which means the validation phase has already been done.

    Error(), fatal(), info() and warn() issue FacesMessages that get picked up by the MessageGroup component.
    By adding in the uicomponent you can target the facesMessage so that it gets picked up by the Message component associated with the field causing the error.
    But, to get the label to show the error as well, you need to throw a validationError. See this tutorial for more informaiton:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html
    Lark

  • Error 1009 when dragging and dropping

    Hello All,
    I have a problem in a large application with dragging and dropping between datagrids. I created a simple example of the issue below. Basically, when I press the button I get a pop-up with 2 datagrids. When Initially try to drag an item from the source grid to the destination grid I get a serious of errors:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    ..etc
    If I then try and drag and drop again, it works without error. Can anyone shed light on this? Code below:
    The Main App:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
        <fx:Script>
            <![CDATA[
                import mx.core.FlexGlobals;
                import mx.core.IFlexDisplayObject;
                import mx.managers.PopUpManager;
                import mx.managers.DragManager;
                private var popUpManager:PopUpManager;
                private var dragManager:DragManager;
                protected function button1_clickHandler(event:MouseEvent):void
                        var largePanelWindow:IFlexDisplayObject = PopUpManager.createPopUp(FlexGlobals.topLevelApplication as DisplayObject, testDrop, true);
                        var largeSimPanelInstance:testDrop = largePanelWindow as testDrop;
                        PopUpManager.centerPopUp(largeSimPanelInstance);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Button x="546" y="59" label="Button" click="button1_clickHandler(event)"/>
    </s:Application>
    The Component:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300" creationComplete="creationCompleteHandler()">
        <fx:Script>
            <![CDATA[
            private function creationCompleteHandler():void
                srcGrid.dataProvider = ['cat','dog','bird'];
                destGrid.dataProvider =[];
            ]]>
        </fx:Script>
        <s:Panel x="10" y="0" width="380" height="290">
            <mx:DataGrid id="srcGrid" dragEnabled="true" dragMoveEnabled="true" x="58" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
            <mx:DataGrid id="destGrid" dragEnabled="false" dropEnabled="true" x="226" y="44">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
        </s:Panel>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    </s:Group>

    I can confirm this error. I'm using Firefox, Windows Vista, Flash Player 10, SDK build 11250. There are two error boxes that appear when you try to drag an item on the first attempt and on successive attempts (but only if you drag over the destgrid, then back to the srcgrid and then back again to the destgrid). It's gotta be a bug, here are the stack traces:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.controls.listClasses::ListBase/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:8548]
         at mx.controls::DataGrid/hideDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5670]
         at mx.controls.listClasses::ListBase/dragDropHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10428]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/mouseUpHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:580]
         at mx.managers.dragClasses::DragProxy/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:530]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.managers::SystemManager/mouseLeaveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\SystemManager.as:3314]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    and
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at mx.core::UIComponent/drawFocus()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:9008]
         at mx.controls.dataGridClasses::DataGridBase/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:2954]
         at mx.controls::DataGrid/showDropFeedback()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\DataGrid.as:5640]
         at mx.controls.listClasses::ListBase/dragEnterHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10337]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:11826]
         at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:355]
         at mx.managers.dragClasses::DragProxy/dispatchDragEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:342]
         at mx.managers.dragClasses::DragProxy/mouseMoveHandler()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:509]
    - e

  • Error lights for paper and cartridge

    The error lights for paper feeding problems and cartridge jams are both on. I have checked both the paper feeding and the movement of the cartridge. There are no problems in either area (no paper is jammed anywhere and the cartridge can move freely). Yet, I cannot get the two error lights to go away, even when I unplugged the printer, disconnect the power cord and press the cancel button. I've tried everything in the step-by-step troubleshooting on the HP website, and I also downloaded the complete software package from HP and checked for driver updates. What else is there to do? Is this printer compatible with MacOS "Yosemite"?
    Thanks!
    John

    HI John,
    You can try 1 more step.Unplug the printer cable while the printer is turned ON.Wait for 60 seconds.Connect the power cable back to the printer.Remove the ink cartridges and place them back again.If this step does not work,then it is a hardware issue with printer and needs to be replaced.
    Please call HP customer care on 1800 474 6836 for the support.
    Regards,
    Ronnie_N
    If the issue is resolved,Please Click on Kudos.
    If you acccept the solution,Please click on Accepted as Solution.
    Distinguised Professor

  • Errors in Call transaction and Session method.

    Hi all
    Please explain me in detail with example how to handle errors in call transaction method and session method.
    Thanks in advance
    Manu.

    Hi,
    In Session Method Datawill be stored in session.In that session u can find error recods.
    In CALL Transation useing 'FORMAT_MESSAGE' Function Module u can catch the errors.
    ex:
    LOOP AT it_messtab.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id     = it_messtab-msgid
          lang   = it_messtab-msgspra
          no     = it_messtab-msgnr
          v1     = it_messtab-msgv1
          v2     = it_messtab-msgv2
        IMPORTING
        msg    =  g_msg
      EXCEPTIONS
          OTHERS = 0.
      IF it_messtab-msgtyp = 'S'.
        it_sucess-sucess_rec = g_msg.
        it_sucess-lifnr = it_header-lifnr." Based on your field
        it_sucess-tabix = v_lines.
        APPEND it_sucess.
      ELSEIF it_messtab-msgtyp = 'E'.
        it_error-error_rec = g_msg.
        it_error-lifnr = it_header-lifnr.
        it_error-tabix = v_lines.
        APPEND it_error.
      ELSE.
        it_info-info_rec = g_msg.
        it_info-lifnr    = it_header-lifnr.
        it_info-tabix    = v_lines.
        APPEND it_info.
      ENDIF.
    ENDLOOP.
      LOOP AT IT_BDC_MESSAGES.
        IF IT_BDC_MESSAGES-msgtyp = 'E'.
       SELECT single  * FROM t100  WHERE
                                    sprsl = it_BDC_MESSAGES-msgspra
                                    AND   arbgb = IT_BDC_MESSAGES-msgid
                                    AND   msgnr = IT_BDC_MESSAGES-msgnr.
          IF sy-subrc = 0.
            l_mstring = t100-text.
            IF l_mstring CS '&1'.
              REPLACE '&1' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
              REPLACE '&2' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
              REPLACE '&3' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
              REPLACE '&4' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
            ELSE.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
            ENDIF.
            CONDENSE l_mstring.
            it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
            it_mess-lms = l_mstring.
            it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
            APPEND it_mess.
          ELSE.
            it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
            it_mess-lms = l_mstring.
            it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
            APPEND it_mess.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.
    Reward if useful.
    Regards,
    Narasimha

  • Error codes for install and uninstall

    Hello I have Adobe reader 10.1.6 on my computer but it will not load I get 2 error codes a 2503 and 2502 if I try to uninstall the programe i get the same codes can you help

    Use the Acrobat Removal Tool http://labs.adobe.com/downloads/acrobatcleaner.html
    Note that this will also remove Acrobat, if you have it installed.

  • For Loop and Void Method Questions

    Question 1: How would I write a for loop that repeats the according to the number entered, to prompt the user to enter a number (double) between 1 and 100. If the number is outside this range it is not accepted.
    Question: 2 Also how would I write a for loop to do sum and find the average of the array numbers in a seperate void method( does not return anything to the main method)?
    Question: 3 (first code snippet) With my for loop that is used to process each number in the array and square it and cube it and display the results to 2 decimal places. How do I make it so say I want the array to allow me to enter 2 numbers (so I enter 2 numbers) then it asks me to enter a number between 1 -100 (which will prompt 2 times) that it shows me the results for the entered numbers between 1-100 after one another instead of number then result number then result like I how it now.
    for (int index = 0; index < howNum; index++) // process each number in the array
              enterYourNumbers = JOptionPane.showInputDialog   
                            ("Enter a number between 1 and 100");                       
              numArray = new double[howNum]; 
            try
                numArray[index] = Double.parseDouble(enterYourNumbers);
            catch (NumberFormatException e)
                    enterYourNumbers = JOptionPane.showInputDialog
                              ("Enter a number between 1 and 100");                          
                DecimalFormat fmt = new DecimalFormat ("###,###.00");
                JOptionPane.showMessageDialog(null, enterYourNumbers + " "  + "squared is "  + fmt.format(calcSquare(numArray[index]))
                                              + "\n" + enterYourNumbers + " " +  "cubed is " + fmt.format(calcCube(numArray[index])));                                                                           
                wantToContinue = JOptionPane.showInputDialog ("Do you want to continue(y/n)? ");
      while (wantToContinue.equalsIgnoreCase("y"));
    import javax.swing.*;
    import java.text.DecimalFormat;
    public class Array
        public static void main(String[] args)
            int howNum = 0;
            int whichNum = 0;     
            double[] numArray;
            boolean invalidInput = true;
            String howManyNumbers, enterYourNumbers, wantToContinue;
      do // repeat program while "y"
          do // repeat if invalid input
            howManyNumbers = JOptionPane.showInputDialog
                        ("How many numbers do you want to enter");                     
            try
                 howNum = Integer.parseInt(howManyNumbers);
                 invalidInput =  false;
            catch (NumberFormatException e )
                howManyNumbers = JOptionPane.showInputDialog
                            ("How many numbers do you want to enter");
          while (invalidInput);
          for (int index = 0; index < howNum; index++) // process each number in the array
              enterYourNumbers = JOptionPane.showInputDialog   
                            ("Enter a number between 1 and 100");                       
              numArray = new double[howNum]; 
            try
                numArray[index] = Double.parseDouble(enterYourNumbers);
            catch (NumberFormatException e)
                    enterYourNumbers = JOptionPane.showInputDialog
                              ("Enter a number between 1 and 100");                          
                DecimalFormat fmt = new DecimalFormat ("###,###.00");
                JOptionPane.showMessageDialog(null, enterYourNumbers + " "  + "squared is "  + fmt.format(calcSquare(numArray[index]))
                                              + "\n" + enterYourNumbers + " " +  "cubed is " + fmt.format(calcCube(numArray[index])));                                                                           
                wantToContinue = JOptionPane.showInputDialog ("Do you want to continue(y/n)? ");
      while (wantToContinue.equalsIgnoreCase("y"));
        public static double calcSquare(double yourNumberSquared)
            return yourNumberSquared * yourNumberSquared;       
        public static double calcCube(double yourNumberCubed)
           return yourNumberCubed * yourNumberCubed * yourNumberCubed;              
        public static void calcAverage(double yourNumberAverage)
    }

    DeafBox wrote:
    Question 1: How would I write a for loop that repeats the according to the number entered, to prompt the user to enter a number (double) between 1 and 100. If the number is outside this range it is not accepted. Use a while loop instead.
    Question: 2 Also how would I write a for loop to do sum and find the average of the array numbers in a seperate void method( does not return anything to the main method)? Why would you want to use 2 methods. Use the loop to sum the numbers. Then after the loop a single line of code calculates the average.
    Question: 3 (first code snippet) With my for loop that is used to process each number in the array and square it and cube it and display the results to 2 decimal places. How do I make it so say I want the array to allow me to enter 2 numbers (so I enter 2 numbers) then it asks me to enter a number between 1 -100 (which will prompt 2 times) that it shows me the results for the entered numbers between 1-100 after one another instead of number then result number then result like I how it now. If I understand you correctly, use 2 loops. One gathers user inputs and stores them in an array/List. The second loop iterates over the array/List and does calculations.

  • Error Messages for iTunes and Quicktime, what do I do?

    Hello, I'm in need of some help.
    Let me walk you all through what I did for the last 4 hours:
    (important note: I suck at far too much computer stuff, so I am fully aware that as you read the following, at certain points I probably made the problem much worse than it needed to be, I am not proud of this, but everything you read did happen, stupid as it probably was for me to pursue the problems in the particular way that I did. Hindsight is 20/20.)
    I updated my iTunes v7.7 to v8.0 today, and after trying it out for a while decided that I didn't like it and wanted to go back to what I was using before.
    So, because I didn't know what else to do, I tried to re-install the original iTunes software that came with my iPod (a 20gig classic I bought in 2004). That version of iTunes was v6.0 (again, 3 years ago).
    Part way through the installation process, I got a message that said that, because I had a newer version of iTunes on the computer already, it wouldn't install the version on the disk.
    So I uninstalled v8.0, restarted my computer, and installed the v6.0 from the CD-ROM I had.
    It was then that I found I had NONE of the 6000+ songs in my iTunes window. I checked my computers files to find that they were still in the library, but my iTunes screen was completely devoid of all my music.
    So I tried to get it all back on the player. I discovered that by right-clicking "Play" for the individual files from the folders in my iTunes that they would come up on the player, but that meant that I'd be clicking in 6000+ songs, one by one, till they were all back. I didn't want to do that.
    So I tried a system restore (again, read "important note" at top of post). After that happened and I was looking at my desktop again, tried opening iTunes, and it gave me a message that said:
    "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience."
    And it asks if I wanna send an error report. I decline, then try opening Quicktime. Same message. So I try to uninstall both programs (i know, i know, "important note"), and iTunes uninstalls, Quicktime does not, because, as my computer puts it, "a fatal error occurs."
    But since I have iTunes uninstalled, I go to apples site and download iTunes v8.0 again. After waiting for all that to get done, I get the same error message.
    So I peruse this very discussion forum, and after looking for a good while at what is being recommended I go to a site and download v7.7 again.
    Again, I get the same error message.
    So here I am. I've tried working it out myself for the last 4 hours, and I seem to have made things worse.
    So please, please, PLEASE, I ask for any help you can provide.
    Can I get my iTunes back?
    Is my Quicktime corrupted now?
    Am I totally screwed?

    I had the same problem when I went to upgrade to 8 and then downgrade back to 7.7. To fix this is a little involved, but you can do it. Let me put it this way, I talked my mother through it on the phone, and she has a hard time finding the power button So no worries, I'll help you get back up and running. I am running Vista now, so I am going off of memory for Vista, so bear with me.
    I would do the following:
    1. Uninstall both iTunes and Quicktime by going to Control Panel-Add Remove Programs, and choosing first Quicktime then iTunes.
    2. Clean your registry. Easy now, it is not that hard. To do it, go to http://www.ccleaner.com/download and download CCleaner. It is free and has NO spyware. Install it and run the registry cleaner. It will remove any trace of both programs from the registry. Now you have 2 choices.
    3a. Now I would install iTunes 8. Because you already installed it once, it converted its database file that it uses to track the library and play lists up to the iTunes 8 standard.
    3b. If you have no problem loosing your playlists and library settings, you can go back to iTunes 7.7. To do this, first search for "itunes.ttl". To do this, go to Start-Search Files and Folders- and type in "iTunes.ttl" Once the search finishes, it will tell you where it is located. Navigate there using Windows Explorer or My Computer and delete it. Now you can install iTunes 7.7 with out any errors. You will not loose any files! just your playlists and it will not remember what is in your library.
    As far as adding your songs again, did you try to re-importing your music? If you go to the file menu-add folder to library. It will bring up a dialogue box that will allow you to browse to the folder with your music.
    Let me know if this works. I will help in anyway I can.
    Good Luck,
    linesma

  • WHAT  ARE THE SYNTAXES FOR CALLTRANSACTION AND SESSION METHODS

    hi
    experts
    can u help me plzzzzzzzzzzzzzzzzzzzzzz
    for this

    Check oout this sample program ...
    REPORT  ztest_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *                 Internal Table Declarations                          *
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    *          Selection screen                                            *
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    *          Start-of-selection                                          *
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    *        TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    *          End of Selection                                            *
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    *&      Form  form_uploadff
    *     Form to upload flatfile data into the internal table.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
    *     FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
      IF SY-SUBRC = 0.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    *&      Form  Form_bdcgenerate
    *     Form to Generate a BDC from the Uploaded Internal table
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    *&      Form  populatebdc
    *       FOrm to Populate the BDC table.
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
    *       Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    *  IMPORTING
    *    QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
    *       fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
    *     POST_LOCAL             = NOVBLOCAL
    *     PRINTING               = NOPRINT
    *     SIMUBATCH              = ' '
    *     CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
    *       Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
    *       Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
    *       To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.
    ENDFORM.                    " form_writeop

Maybe you are looking for

  • My iPod touch isn't recognized by my iTunes.

    What do I do from here? I have already reset all settings on the iPod itself. Restarted the AMDS and even remove and reinstall iTunes, restarting the computer in between doing all of this. but ****!! nothing works!!

  • How can you move your music and stuff to computer?

    Okay I have an iphone and a macbook. I have all my stuff synced on my iphone contacts, music, dates ect. Well i just updated my computer with leopard and didnt back-up my music on my computer. So all my stuff is on my phone. The only thing from my ph

  • Zen Vision:M's accessories that allow to play movies on TV scre

    Is there any accessories for Vision:M that will allow me to play movies from Vision:M but displayed on TV? I really would like to play movies I have on Vision:M but watch it on standard TV instead. Thanks in advanced, Nattawat

  • Print PDF Silently

    I am looking for a straight answers as to if it is possible to print a PDF silently, perhaps using Adobe SDK? The criteria are: Print from Windows 7, Using .Net/ C#. No GhostScript No Adobe Reader popup. No Printer Dialog (Printer properties will be

  • Dead MBP after attempted HD upgrade

    So I found a good deal on a 320GB WD HD at MicroCenter yesterday and thought that would be an easy nice upgrade for my MBP. So I installed the new HD and powered the MBP on and the little light came on and the CD drive would spin up but no video. So