Trouple with FOR loop

Alright, I am wanting to make certain movie clips visible if
the _root.variable equals 'i'. The dynamic text has a instance name
on it, but am I using it correctly?
for( var i=1; i<=6; i++)
if(_root.element_fire == i) {
('fire_'+i+'_text')._visible = true;
else
('fire_'+i+'_text')._visible = false;
}

for( var i=1; i<=6; i++)
this["fire_" + i + "_text"]._visible = ( _root.element_fire
== i);
"gregmax17" <[email protected]> wrote in
message
news:e3dv3i$cqk$[email protected]..
> Alright, I am wanting to make certain movie clips
visible if the
_root.variable
> equals 'i'. The dynamic text has a instance name on it,
but am I using it
> correctly?
>
> for( var i=1; i<=6; i++)
> {
> if(_root.element_fire == i) {
> ('fire_'+i+'_text')._visible = true;
> }
> else
> {
> ('fire_'+i+'_text')._visible = false;
> }
> }
>

Similar Messages

  • Help on changing array elements with For loop

    Hi,
    I'm wondering if anyone can help me with this problem.  I'd like to be able to modify elements of an array with For loop.  In the attached VI, my goal is to have an array of [0 1 2 3 4 5], but instead what I've got is [2 2 2 2 4 5].  I initialized the array with a value of 2 to help me identify which elements are changing.  Can anyone help me pointing where my mistake is?  Thanks.
    Peter
    Attachments:
    Array test.vi ‏19 KB

    It's a classic issue for LV newbies. In this case you HAVE to use a
    shift register otherwise the modifications of previous cicles are lost.
    It's all easier than it's seems, see attached vi.
    bye,
    manga
    Attachments:
    Array test 2.vi ‏19 KB

  • Visa open and close with "for loops"

    Hello everyone
    In my program I used two "for loops" which include visa write and read for a RS32 port. it is not possible to close a devise with visa close as the out put is changed to 2D array!!! would you please help me with this error
    Attachments:
    ACU_232.png ‏108 KB

    sam009 wrote:
    Thanks for reply,
    It works for "for loop" but what about "event structure loop" still is error for that. 
    Right-click on the output tunnel and uncheck "Use Default if Unwired".  You will now be forced to wire the VISA Resource through each case.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Issue with FOR loop in Nested BEGIN and END terminals

    Hi All,
    I am trying to fetch row by row using FOR loop on CURSOR.An i am getting Error attached screen shot:
    Below is the logic:
    Create Procedure TEST1() LANGUAGE SQLSCRIPT AS
    BEGIN
    AN01 = Select * from AN.View;
    AN02 = SELECT DISTINCT F1,F2,F3 from :AN01 GROUP BY F1,F2,F3;
    BEGIN
    DECLARE CURSOR ITEM_RULE FOR select F1,F2,F3 from :AN02;
    FOR V_ITEM_RULE AS ITEM_RULE DO
    SELECT * from TABLE1 where F1 = V_ITEM_RULE.F1;
    END FOR;
    END;
    END;
    Here i an getting data from AN01..Then finding the Distinct in AN02.
    On AN02 i am applying CURSOR...and for each row i wanted to find an entry in TABLE1 and do a calculation further.
    -- But when i am using a FOR loop in the Nested BEGIN i am getting below Error.
    -- I tried to Activate successful without FOR Loop.
    Any Suggestion on the above issue.
    Thanks
    kalyan

    Hi Kalyan,
    Your procedure is incomplete.
    Why are you looping to make a select that you do not use? What is the target for ITEM_RULE_GDS selection?
    Also, like it is currently exposed a JOIN is highly recommended.
    Are you just playing around with procedure or you really have a scope to do ?
    Regards, Fernando Da Rós

  • Move MCs with for loop?

    I'm trying to figure out a way to move movie clips with a for loop
    I've got 10 dots called dt1-dt10 and I want to be able to set them all to y = 200.
    I understand i can set i=1;i<11;i++
    like
    for(i=1;i<11;i++){
    dt+i._y = 200;}
    or
    for(i=1;i<11;i++){
    String("dt"+i)._y = 200;}
    but the rest of it is a mess and either doesn't work, or glitches. I have yet to find a for loop help file for moving multiple movie clips.

    If you just want to immediately change the positions of the instances, then using a for loop will work okay, you just need to use the bracket notation [ ] to have strings be interpreted as instance names...
    for(i=1;i<11;i++){
         this["dt"+i]._y = 200;

  • Help me with for loop please...............

    hi guys i m just new bie as you know
    i gotta print these things........
    from 7 stars to 1 star........
    i did it like this but it only produce
    in this way,,,,,,
    how do we actually padding the space and print it as the example........
    help me guys whoever experts in for loops my code is........
    class triangle
         public static void main (String[] args)
              a(7);
         public static void a (int num)
              for (int j = num ; j > 0 ; j--)
                   for (int i = 0 ; i < j ; i++)
                        System.out.print("*");
                   System.out.println ();
    }

    You really need a better screen name,
    The problem is is that you want to print out a descending number of stars
    preceded by a number of spaces . the number of spaces for a line is the number of characters - number of stars so
              for (int j = num ; j > 0 ; j--)
    HERE print the required spaces!
                   for (int i = 0 ; i < j ; i++)
                        System.out.print("*");
                   System.out.println ();

  • I feel ashamed but would someone help me with for loops?

    Hello all,
    Firstly, apologies. I feel ashamed. I am not new to programming but new to Java, so imagine my frustration at my blatant stupidity why I can't get this for loop to work....
    public void initGame(String[] arrTemp) {
    for (int i = 0; i > 4; i++) {
    frmGameOptions.append("hello" + arrTemp[i] + "-" + txtBully);
    basically the above method does not work!
    arrTemp does contain elements, trust me!
    it seems at though the loop isn't even getting entered!
    please help me!!!!!!!!!!!!!!!
    poncenby

    i think you want
    for (int i = 0; i < 4; i++)
        frGameOptions.append("hello" + arrTemp[i] + "-" txtBully);
    a better way would be
    for (int i =0; i < arrTemp.length; i++){
        frGameOptions.append("hello" + arrTemp[i] + "-" txtBully);
    }

  • So close but need help comparing strings in different subforms with for loop - Livecycle ES

    For some reason I was not able to post this in the Livecycle ES forum, even though I've posted there often in the past.
    I have created a form that I almost have working and I'm hoping someone can help me.
    We have eight billing teams in our company and each team works anywhere from 1 - 4 different clients. The form is used to track, per Billing Rep, the number of items of mail that each billing r5ep works each day. What I'm needing to add at the bottom is a subform that tracks the totals by client. So I'm trying to get the form to loop through all of the existing subforms (and the subforms within them) and compare a cell int he bottom subform to a cell in the other subforms, which are dynamically added, and then total ONLY those items. My script however is not working.
    What I have now is:
    var repCount = form1.P1._rep.count
    var itemCount = form1.P1.rep._ItemSet.count
    for (x=0; x<repCount; x++)
         for (i=0; i<itemCount; i++)
              if(clientName.rawValue == P1.rep[x].ItemSet[i].client.rawValue)
              this.rawValue = this.rawValue + P1.rep[x].ItemSet[i].corresp.rawValue;
    It seems like this should work but I'm getting the following error:
    P1.rep[x] is undefined
    So what it looks like is I'm missing is the proper way to reference the objects in these subforms.
    The form is here: https://acrobat.com/#d=20gWXZ4sBm4OPV6oO76zSg
    If someone could take a look at it I would be so grateful.
    Thanks,
    Jo

    I don't know that anyone else will ever have a similar problem as what I was having, but I figured I would go ahead and post the solution, just in case....
    The error I was getting (P1.resolveNode("rep[" + j + "].ItemSet[" + i + "]") is null) was occuring because the variable itemCount needed to be referenced within the repCount For Loop. I also needed to resolve the node for the itemCount, which I wasn't doing.
    So...my old code was this:
    var repCount = P1._rep.count;
    var itemCount = P1.rep._ItemSet.count;   //this part was throwing the error. Needed to use resolveNode...and needed to not declare the variable until inside the first For Loop.
    var nTotal = 0;
    for (var j=0; j<repCount; j++) {
        for (var i=0; i<itemCount; i++)    {
            if (P1.resolveNode("rep["+ j +"].ItemSet["+ i +"]").client.rawValue == clientName.rawValue) {
                nTotal = nTotal + P1.resolveNode("rep["+ j +"].ItemSet["+ i +"]").corresp.rawValue;
    this.rawValue = nTotal;
    ...which wasn't working because it was trying to reference the count of the ItemSet right up front...but it needed to wait until it got inside the first iteration of the repCount subfields...AND it needed to have resolveNode used.
    The corrected code is:
    var repCount = P1._rep.count;
    this.rawValue = 0;
    for (var j=0; j<repCount; j++) {
        var itemCount = P1.resolveNode("rep["+j+"]")._ItemSet.count;  //corrected code...node is resolved and variable is declared within the first subform repCount.
        for (var i=0; i<itemCount; i++)    {
            if (P1.resolveNode("rep["+ j +"].ItemSet["+ i +"]").client.rawValue == clientName.rawValue) {
                this.rawValue = this.rawValue + P1.resolveNode("rep["+ j +"].ItemSet["+ i +"]").corresp.rawValue;
    ...which now works perfectly...and I'm throwing a party to celebrate! LOL
    Jo

  • Trouble with "for loop"

    Hi all,
    how can I fix this problem
    Rookie; LV 2011 on WIN 7
    Solved!
    Go to Solution.

    Jkhourigan wrote:
    Disable indexing on the right hand side of the for loop.
    Consider using shift registers instead.
    That will indeed clear the error message but then your For loop will want to know how many times to iterate and I suspect you will only want to iterate once so why use the For loop?
    Toss it.
    If you were using the For loop to ensure a delay ... after (?) the transmit ...
    THere is no guarentee the wait will happen after since the is no data flow dependencies. If wan to delay after, add another frame between Xmit and rcv. Please note that I am talking about the most basic data flow ideas that drive LabVIEW and in serious coding data flow alone should drive the program execution and seq frames are used sparingly.
    Quesion anything I said above. Since the paradigm shift for LV may be weird.
    You at least have gotten past the "how do I wire things up?" challenge that frustrated me when I got started.
    Have fun!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Populate choice box with for loop.

    I'm trying to get these choice boxes to populate using a for loop but I'm getting the error:
    NullPointerException: cannot add null item to Choice
    int i;
    String strDate;
    Choice cDay = new Choice();
    for (i=1; i<=31; i++) {
        strDate.valueOf(i);
        cDay.addItem(strDate);
    }

    Close...
    for (i=1; i<=31; i++) {
        strDate = String.valueOf(i);
        cDay.addItem(strDate);
    }

  • Using CONNECT BY LEVEL with For Loop Doesn't Work

    The procedure listed below inserts only one record in table whereas i need 10 records to be inserted in table.
    this is just a test procedure..
    CREATE OR REPLACE PROCEDURE P_TEST
    AS
    BEGIN
    FOR I IN (SELECT LEVEL num FROM dual CONNECT BY LEVEL <= 10)
    LOOP
    INSERT INTO TEMP_VMS VALUES(I.num);
    END LOOP;
    END;
    END;
    /

    Salim Chelabi  wrote:
    Or with 9ir2
    INSERT INTO TEMP_VMS
    SELECT COLUMN_VALUE
    FROM TABLE (SYS.dbms_debug_vc2coll (24, 34, 25));
    SELECT *
    FROM TABLE (SYS.dbms_debug_vc2coll (24, 34, 25));
    COLUMN_VALUE                                                                   
    24                                                                             
    34                                                                             
    25                                                                             
    3 rows selected.
    http://laurentschneider.com/wordpress/2007/12/predefined-collections.html
    That doesn't split strings...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'a,b,c,d,e' str from dual)
      2  --
      3  SELECT *
      4*   FROM t, TABLE (SYS.dbms_debug_vc2coll (t.str))
    SQL> /
    STR
    COLUMN_VALUE
    a,b,c,d,e
    a,b,c,d,e... it only defines a table of values

  • Function with for loop and parameter table/column names ... syntax help

    I'm trying to create a function that returns the distinct values and counts from a user defined schema/table/column.
    The code below defines an object type [stats_on_column_obj] and creates a single table of this type [stats_on_column_tab].
    The function is supposed to take three input variables: p_schema_name, p_table_name, p_column_name and return a table (above).
    I can hard code a SELECT statement into the () ... but once I try to convert it to parameters & exec immediate I am stuck. The red section is where the issue is (i think).
    Oracle 10g.
    CREATE TYPE stats_on_column_obj IS OBJECT(
      COL_VAL      VARCHAR2(500),
      COL_VAL_CNT  NUMBER    (7)
    CREATE TYPE stats_on_column_tab IS TABLE OF stats_on_column_obj;
    CREATE OR REPLACE FUNCTION get_STATS_ON_COLUMN
       p_schema_name IN varchar2,
       p_table_name IN varchar2,
       p_column_name IN  varchar2
       RETURN STATS_ON_COLUMN_tab
    IS
       l_STATS_ON_COLUMN_tab   STATS_ON_COLUMN_tab := STATS_ON_COLUMN_tab ();
       n                       INTEGER := 0;
       str_select_tbl          varchar2(5000);
    BEGIN
       str_select_tbl := 'SELECT '||p_column_name||' as col_val, count(*) as col_val_cnt FROM '||p_schema_name||'.'||p_table_name||' group by '||p_column_name;
       FOR r IN (str_select_tbl)
       LOOP
          l_STATS_ON_COLUMN_tab.EXTEND;
          n := n + 1;
          l_STATS_ON_COLUMN_tab (n) := STATS_ON_COLUMN_obj (r.col_val, r.col_val_cnt);
       END LOOP ;
       RETURN l_STATS_ON_COLUMN_tab;
    END;
    [Error] PLS-00103 (124: 4): PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:   * & - + / at mod remainder rem .. <an exponent (**)> ||   multiset year DAY_
    [Error] PLS-00103 (126: 9): PLS-00103: Encountered the symbol "=" when expecting one of the following:   constant exception <an identifier>   <a double-quoted delimited-identifier> table LONG_ double ref   char time timestam
    [Error] PLS-00103 (127: 29): PLS-00103: Encountered the symbol "(" when expecting one of the following:   constant exception <an identifier>   <a double-quoted delimited-identifier> table LONG_ double ref   char time timestam
    [Error] PLS-00103 (128: 4): PLS-00103: Encountered the symbol "END" when expecting one of the following:   begin function package pragma procedure subtype type use   <an identifier> <a double-quoted delimited-identifier> form
    SELECT * FROM TABLE (get_STATS_ON_COLUMN('SCHEMAS_X','TABLE_X','COLUMN_X'));

    SCOTT@orcl > CREATE OR REPLACE
      2    FUNCTION get_STATS_ON_COLUMN(
      3                                 p_schema_name IN varchar2,
      4                                 p_table_name IN varchar2,
      5                                 p_column_name IN  varchar2
      6                                )
      7      RETURN STATS_ON_COLUMN_tab
      8      IS
      9          v_STATS_ON_COLUMN_tab STATS_ON_COLUMN_tab := STATS_ON_COLUMN_tab ();
    10          v_n                   INTEGER := 0;
    11          v_str_select_tbl      VARCHAR2(5000);
    12      BEGIN
    13          v_str_select_tbl := 'SELECT stats_on_column_obj(' || p_column_name || ',count(*)) FROM ' ||
    14                              p_schema_name || '.' || p_table_name || ' group by ' || p_column_name;
    15      EXECUTE IMMEDIATE v_str_select_tbl
    16        BULK COLLECT
    17        INTO v_STATS_ON_COLUMN_tab;
    18       RETURN v_STATS_ON_COLUMN_tab;
    19  END;
    20  /
    Function created.
    SCOTT@orcl > select  *
      2            from  table(
      3                        get_STATS_ON_COLUMN(
      4                                            'SCOTT',
      5                                            'EMP',
      6                                            'JOB'
      7                                           )
      8                       )
      9  /
    COL_VAL              COL_VAL_CNT
    CLERK                          4
    SALESMAN                       4
    PRESIDENT                      1
    MANAGER                        3
    ANALYST                        2
    SCOTT@orcl >
    Or better change it to pipelined function.
    SY.

  • More trouble with for loops

    This was my attempt:
    function poor(){if(money < shopwin["prc"+$].text){shopwin["itm"+$].textColor = 0x999999;
    shopwin["prc"+$].textColor = 0x999999;}
    if(money >= shopwin["prc"+$].text){shopwin["itm"+$].textColor = 0xFFFFFF;
    shopwin["prc"+$].textColor = 0xFFFFFF;}
    for ($=1;$<9;$++){poor();}  
    at compressing this:
    function poor(){
    if(money < shopwin.prc1.text){shopwin.itm1.textColor = 0x999999;
    shopwin.prc1.textColor = 0x999999;}
    if(money < shopwin.prc2.text){shopwin.itm2.textColor = 0x999999;
    shopwin.prc2.textColor = 0x999999;}
    if(money < shopwin.prc3.text){shopwin.itm3.textColor = 0x999999;
    shopwin.prc3.textColor = 0x999999;}
    if(money < shopwin.prc4.text){shopwin.itm4.textColor = 0x999999;
    shopwin.prc4.textColor = 0x999999;}
    if(money < shopwin.prc5.text){shopwin.itm5.textColor = 0x999999;
    shopwin.prc5.textColor = 0x999999;}
    if(money < shopwin.prc6.text){shopwin.itm6.textColor = 0x999999;
    shopwin.prc6.textColor = 0x999999;}
    if(money < shopwin.prc7.text){shopwin.itm7.textColor = 0x999999;
    shopwin.prc7.textColor = 0x999999;}
    if(money < shopwin.prc8.text){shopwin.itm8.textColor = 0x999999;
    shopwin.prc8.textColor = 0x999999;}
    if(money >= shopwin.prc1.text){shopwin.itm1.textColor = 0xFFFFFF;
    shopwin.prc1.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc2.text){shopwin.itm2.textColor = 0xFFFFFF;
    shopwin.prc2.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc3.text){shopwin.itm3.textColor = 0xFFFFFF;
    shopwin.prc3.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc4.text){shopwin.itm4.textColor = 0xFFFFFF;
    shopwin.prc4.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc5.text){shopwin.itm5.textColor = 0xFFFFFF;
    shopwin.prc5.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc6.text){shopwin.itm6.textColor = 0xFFFFFF;
    shopwin.prc6.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc7.text){shopwin.itm7.textColor = 0xFFFFFF;
    shopwin.prc7.textColor = 0xFFFFFF;}
    if(money >= shopwin.prc8.text){shopwin.itm8.textColor = 0xFFFFFF;
    shopwin.prc8.textColor = 0xFFFFFF;}
    poor();
    I tried a similar code to the first (above) for the following list, but it also failed.
    shopwin.itm1.text = m_shop.inv.itm1.nm; shopwin.prc1.text = m_shop.inv.itm1.prc;
        shopwin.itm2.text = m_shop.inv.itm2.nm; shopwin.prc2.text = m_shop.inv.itm2.prc;
        shopwin.itm3.text = m_shop.inv.itm3.nm; shopwin.prc3.text = m_shop.inv.itm3.prc;
    //(I actually needed 5 more just like this for itm4 through itm8)
    I based the top code on this:
    function buy(){if(actionBox == m_shop.inv["itm"+n].nm && money >= m_shop.inv["itm"+n].prc){
        char.inv["itm"+n] = m_shop.inv["itm"+n]; money = money - m_shop.inv["itm"+n].prc;} ;}
    for (n=1;n<9;n++){buy();}
    which worked fine. I should mention this last code is nested inside an "onRelease" as are the others.

    I will second the Flash suggestion. Great a .flv file and play it on your site with a flv player. Some are more difficult than others to use.
    NOTHING is fool proof with this kind of stuff. Flash has the highest install rate on all computers and is as close as you can get to fool proof. You can also put a link on you site to download the latest flash player. The other plus is that it tends to have the best results with low file sizes. This is what YouTube and similar sites use to play their video.
    PS. I highly suggest this flv player... It's free for non-commercial use and almost free for other uses...
    http://www.jeroenwijering.com/?item=JWFLVPlayer

  • Help with for loop and remove-item command

    Hi all here is the code so far
    $a = Get-Content C:\Users\cody-horton\Desktop\test.txt
    for($i=0;$i -lt $a.Length;$i++){
    #$temp = [int32]::Parse($a[$i])
    Remove-Item '\\ceit2551202x0'$a[$i]'\C$\Program Files\MATLAB\R2013a\*' -Force
    I have a text file with a few number in it that i want to get. They are in the array $a but I'm getting an error that says a positional parameter cannot be found that accepts argument '53' (it does this for all the numbers in the array.) I know in java you
    could have something like this   string + int + string. 
    I'm not sure what to do I also tried to parse it with no luck. Thanks any help is appreciated.

    Your issue is with the path for Remove-Item, it is not complete so try this
    Remove-Item "\\ceit2551202x0$($a[$i])\C$\Program Files\MATLAB\R2013a\*" -Force
    I am unable to test, so I would add the -WhatIf switch to make sure it outputs what you expect
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Trying to make a variable with for loop

    Trying to pick up a movieClip  instance from my library and set it on stage and make it clickable, (dropdown/dropup) menu). 
    Can anyone help with what I am doing wrong?
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<MenuItem1.length; i++)
          var this["M1"+i]:TextField = new TextField();
          var this["M2"+i]:takki = new takki();
          this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
          this["M1"+i].text = MenuItem1[i];
          this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
          addChild(this["M2"+i]);
          addChild(this["M1"+i]);
          this["M2"+i].addEventListener(MouseEvent.MOUSE_OVER,clicking);
    function clicking(event:MouseEvent):void
    trace("I am clicking button"&&this["M2"]);

    Try something like this:
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<Menu1; i++) { 
        this["M1"+i] = new TextField();
        this["M2"+i] = new takki();
        this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
        this["M1"+i].text = MenuItem1[i];
        this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
        addChild(this["M2"+i]);
        addChild(this["M1"+i]);
        this["M2"+i].addEventListener(MouseEvent.CLICK,clicking);
    function clicking(event:MouseEvent):void{
    trace("I am clicking button" && event.target.name);
    Be aware, that you have to work with the positioning, and that the TextFields are overlapping the takkis, so that the clicking is only possible in a minor fraction of the takkis.

Maybe you are looking for

  • Entities from tables (JPA EJB 3.0) creation problem

    I have a problem to get all the entities created in JDev 10.1.3.3 on UBuntu Linux, JDK 1.5.11. I think that some relations missing also. When I try to connect from my Win XP machine to the same DB (Oracle XE) everything is fine. JDev on Win machine u

  • What cable to connect imac to cat5 socket

    Hi, What cable to I need to connect my imac to a cat5 socket?

  • Change value if array data is repeated

    Hello, I am trying to write a tuning algorithm that changes the calculated tune value after the program sees the same calculated value as before.  My tuning algorithm gets hung up on the extremes (5000 and 10000) and just goes back and forth and does

  • Can't see itunes store

    it shows up either as a page of 'static' or black. Internet connection is fine. Not sure what is going on.

  • I deleted some stuff and its in the trash

    I bought this Mac used, so I went in to deleting some photos and other stuff but when I was finished Some application wouldn't work Can Someone help me fix this now