How to remove all symbols within a symbol on the stage?

Hi all

I have this code located on the close button click:

var childSymbols = sym.getSymbol("mc_InnerStage").getChildSymbols ();

Alert (childSymbols.Length);

for (var i = 0; i < childSymbols.length; i ++) {}

childSymbols [i] .deleteSymbol ();

}

SYM. Stop ("Start");

which could remove all the symbols inside the symbol (mc_InnerStage), but it does not everyone knows what is wrong with this code? I had alerted the number of children, but it keep giving me 0 any number of symbols in the symbol of the mother there? ! can someone help me please?

Thanks in advance.

and I forgot to say that you can remove them by using this line:

SYM. $(". Name of your class here"). remove();

Zaxist

Tags: Edge Animate

Similar Questions

  • How to Position a symbol of the child created dynamically.

    Hi all

    I created instances of symbols on the stage of

    for (alpha = 0; alpha < 5; alpha ++)

    {

    sym.createChildSymbol ("rect", "Stage");

    }

    Now, I wanted to set the position of each symbol - the problem is that I don't know the names of the instances of symbols that has been created. so I tried the following

    childSymbols = sym.getChildSymbols ();

    for (k = 0; k < 5; k ++)

    {

    childSymbols [k].css({"position":"relative","left":k*50});)

    }

    He did not set the symbols of the child where I need to be...

    However, when I tried to apply css to an element within the symbol has worked.

    for (k = 0; k < 5; k ++)

    {

    childSymbols [k].$("Rectangle2").css ({'position':"relative","left":k*50});})

    }

    Please can someone help...

    y = 0;

    x = 30;

    $.getJSON ('slides.json', {function (data)})

    for (alpha = 0; alpha)< 5;="">

    var s = sym.createChildSymbol ("rect", "Stage");

    s.getSymbolElement (.css({))

    'top': x + 'px ';

    'position': 'absolute ',.

    'right': y * 315 + 20 + "px"

    });

    x += 100;

    y += 100;

    } //for

    });

  • How to remove all the photos from my iphone 5?

    How to remove all the photos from my iPhone 5?

    1. Open the Photos app.
    2. Click on the photo or video you want to delete.
    3. Type > delete the Photo.

    Delete several photos

    1. Open the Photos app and press Select.
    2. Click on each photo or video that you want to remove.
    3. Type > delete Photos.

    Delete photos on your iPhone, iPad and iPod touch - Apple Support

  • How to remove all the pictures imported from my I phone 6

    How to remove all the pictures imported from my I phone 6

    Imported from the place where?

    If they were imported from your computer, you remove the same way that you put on there: by syncing with iTunes. to remove them, you need to synchronize an empty folder, or simply turn off the Photo in the form of synchronization option summary pane when the iPhone is connected.

  • I sell desktop computer and need to know how to remove all of the pc?

    I sell desktop computer and need to know how to remove all of the pc?

    The most difficult part of the first paragraph is to create the boot floppies - which can be complicated and requires installation of Windows disks.

    Perhaps a third simple but effective alternative is simply to re - install Windows on your computer from the disc that came with your computer or from the recovery partition.  Resettlement will delete all files on the disc and replace them with the New Installation of Windows.  At this point, the fragments of your old files may remain on your hard drive.  So once relocation complete, download and install the freeware 'Eraser' software, run it and you want to specify the "free space" erased on your hard drive.  This will overwrite firmly all the data remains that has not already been overwritten by the Windows Installation.

    Eraser: http://eraser.heidi.ie/download.php>

    HTH,
    JW

  • How to remove all separated WinRAR files

    Original title: teach me how to remove all the separate files

    Because of the first time I use the WinRAR, I try to separate a file, but I put the wrong size of file to separate. After that, it separate for 300540 files, so can someone show me how to remove all the separate files.

    Hi Nicolas,.

    Welcome to the Microsoft community.

    I understand that you are using WinRAR and trying to separate files.

    Please see the link.

    Frequently asked questions (FAQS) for WinRAR

    http://www.win-rar.com/FAQ.html?&L=0

    I suggest also please contact the support team of WinRAR for assistance.

    http://www.win-rar.com/contact.html

    Please do not hesitate to contact us if you need help with Windows. We would be happy to help you.

  • How to remove all information from the computer so I can sell it?

    How to remove all information from the computer so I can sell it?

    Hello

    You will want to format the hard disk:

    1. you can use DBAN - http://www.dban.org/

    or

    2. you can follow this tutorial to clean install up to the step where you format the disk, in which you would then STOP (because you just want to get rid of the files on the hard drive, do not install Windows) - http://www.sevenforums.com/tutorials/1649-clean-install-windows-7-a.html

    Kind regards

    Patrick

  • Smartphones blackBerry how to remove all my texts received

    Can someone tell me please how to remove all my texts received rather than make them one by one.

    Welcome to the forums

    It is possible to do. Before do you, backup phone data: http://www.blackberry.com/btsc/KB12487

    1. Access your sms/messages folder
    2. Press menu, and then click on "view file".
    3. Go to 'SMS Inbox.
    4. Scroll to the top most sms and click the date above it and "delete prior".

    Voila!

  • How to remove all the exhibitors?

    How to remove all the exhibitors of large document?

    I tried to use find/replace and then find format, but I couldn't find the Exhibitor box.

    In find/replace, in Format to find, go to the basic character Formats section and it is in the drop Position down to the right.

  • How to remove all the transitions?

    I used the automate to sequence with the default transition. A few tens of transitions have been added to the sequence.
    How to remove all transitions without deleting the sequence and starting from scratch, please?

    Thanks in advance.

    Shift + select them and delete them.

    / Roger

  • How to remove all members starting with a particular letter of the outline?

    Hi all

    We need to remove all members from any letter of the Essbase outline.
    All members are members of level 0.

    Essbase version - 11.1.1.3

    Please let me know if it is possible and if so someone can help!

    Published by: Sidharth62065 on September 8, 2010 09:36

    Published by: Sidharth62065 on September 8, 2010 09:38

    One way to do this would be:
    (1) the dimension on the export in a flat file with outline Extractor. I suppose that a view of level/gen would be preferable.
    (2) create a rules file that rejects all the level zero members starting with E.
    (3) check the box "Delete" unspecified on the reconstruction of the dimension.

    Level e. zero members are not in the rules file, so they are removed.

    I have questions about the data ghosts (level 1s who had all the Es and is now data members of level 0 with the data that you probably don't want) but I'm overthinking it, I suspect.

    Kind regards

    Cameron Lackpour

  • JSON content - click here to see another symbol on the stage

    Hello

    Thanks Zaxist, I have a code of work similar to that below:

    $.getJSON ("content.json",

    {function (Data)}

    for (var i = 0; i < data.length; i ++) {}

    var s = sym.createChildSymbol ('template', 'content');

    s.$("title").html (Data [i] .title);

    s.$("description").html (Data [i]. Description);

    s.$("Seira").html (Data [i]. Seira);

    s. $("imageholder") .css ({'background-image': "url ('" + data [i].) "}) (image_+_«_'_»)});

    .data s. $("imageholder") ("Great", data [i] .largeimage);

    s.. Click$ ("imageholder") ("click", Function {}

    sym.getComposition () .getStage ().$("finte").css ({'background-image': ' url ("+ .data ('l arge') $ (this) + ') '});

    });

    }

    });

    Now, I'm trying on the click function to show the display symbols on the stage, for example during the click on the first point, the red symbol will appear, so cliked the second element of the (previous symbols which appeared will be hidden) and the new blue symbol will appear. So on with all the other ellements with JSON files.

    I tried this on the code, but nothing:

    $.getJSON ("content.json",

    {function (Data)}

    for (var i = 0; i < data.length; i ++) {}

    var s = sym.createChildSymbol ('template', 'content');

    s.$("title").html (Data [i] .title);

    s.$("description").html (Data [i]. Description);

    s.$("Seira").html (Data [i]. Seira);

    s. $("imageholder") .css ({'background-image': "url ('" + data [i].) "}) (image_+_«_'_»)});

    .data s. $("imageholder") ("Great", data [i] .largeimage);

    s.. Click$ ("imageholder") ("click", Function {}

    sym.getComposition () .getStage ().$("finte").css ({'background-image': ' url ("+ .data ('l arge') $ (this) + ') '});

    If (data [i] = 3) {}

    sym.getComposition () .getStage ().$("red").show ();

    }

    else {}

    sym.getComposition () .getStage ().$("red").hide ();

    }

    If (data [i] = 5) {}

    sym.getComposition () .getStage ().$("blue").show ();

    }

    else {}

    sym.getComposition () .getStage ().$("blue").hide ();

    }

    });

    }

    });

    Could you help me?

    Thanks in advance!

    Well, if I have understood correctly, you want to check your image index, and the index was 3 or 5 show you a symbol appropriate for this...

    I want to tell you something before I tell you how you can do this:

    data [i] is your index of json files that return data from your json file not a number, and if your json file is something like this:

    [

    {"image": "images/toy - B.jpg",}

    "title": "1st Image."

    'Names': 'toy-B '.

    }

    ]

    (I'm looking for purpose of json that have index 0) means of data [0]

    Well in this address, we have an object, but no data! because it has not itself data say witch we want, so it just return a data unreadable (just object), so if we say

    Image Data [0] (now we have image data and this will return us Images/toy - B.jpg )

    so we cannot simply say that [i] data

    you need to do this way:

    .data s. $("imageholder") ("Great", data [i] .largeimage);

    s. $("imageholder") .data ('myIndex', i); We need another variable to save our index

    s.. Click$ ("imageholder") ("click", Function {}

    sym.getComposition () .getStage ().$("finte").css ({'background-image': "u rl (" + $(this).data('Large') + ")"});

    If ($(this) .data ("myIndex") == 3) {/ / read value right and check}

    sym.getComposi () .getStage ().$("blue").hide () ing;

    sym.getComposition () .getStage ().$("red").show ();

    }

    ElseIf ($(this) .data ("myIndex") == 5) {}

    sym.getComposi () .getStage ().$("red").hide () ing;

    sym.getComposition () .getStage ().$("blue").show ();

    }

    });

    }

    });

    also, you wrote your statement if and else in an improper way, learn the right way at the top for future use

    If you have any question do not hesitate to ask

    Zaxist



  • Make subtle tweaks to the similar symbols on the stage

    Let's say I have create a symbol of a stick figure holding a shield.

    Symbol 1: The Stick man

    Side 2: The shield

    Side 3: the Stick man holding the shield.

    Now, how would it be possible to place multiple copies of a symbol on the stage 3 while making subtle tweaks for EACH symbol on the stage 3.

    Is this possible?

    Let's say I want to make each stickman slightly a different color, without each unique stickman taking the same color.

    So I want to side 2 (the shield) a slightly different color in each of the stickman.

    How could I do all of this subtle adjustment without making each symbol instance 1 and 2 on the scene. Is this possible in flash? It seems that flash has so much power, but I still have to figure out how to use it, and I really hope that something like this is possible.

    If I need to explain what I mean, of course I will take the time to do it, but if someone could help me here, that would be much appreciated.

    Here is an example of what I was trying to describe you: http://www.ddg-designs.com/downloads/stick.zip . I have two instances of the same figure on the stage. I put a value of color transformation for the shield of one of these bodies. Shield of the other figure remains unchanged.

    If you double-click any figure given on the stage and then double-click on the shield of this figure and change the color, you change the color of the original symbol, and if all instances of this shield in each figure on the stage will be changed. Leaning on the transformation of color to an individual instance in an instance unique figure on the stage, you are able to change one and not all of the shields.

  • How to remove warnings in quarantine similar trojam; on the essentials of security

    How to remove warnings in quarantine as trojam; on the essentials of security

    Hello

    I suggest you follow the steps mentioned below.

    a. open Microsoft Security Essentials, then click on the history tab.

    b. Select the quarantined items and place a check on all the points that have been quarantined.

    c. click on delete or click on remove everything that should remove the quarantined files.

    If this does not help you then, I suggest you to post your query in the forums Microsoft Security Essential. Click on the link below.

    http://social.answers.Microsoft.com/forums/en-us/category/MSE

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Find the number of symbols on the stage

    Hello

    I'm trying to find out how much of symbols with a certain naming convention is on the scene. The name of these symbols are incremented by 1, if for example I have symbols "drag_1" & "drag_2" currently on the stage and I want to go back to how many symbols "drag_" is on the scene. This can change depending on how much of these symbols that the user adds to the scene.

    I have included some pseudo-code below to help understand what I'm talking about!

    for (var i = 0; i < 100; i ++) {}

    If (SYMBOL_ON_STAGE = "drag_" + i) {}

    number_of_symbols = number_of_symbols + 1

    }

    }

    Thanks for any help!

    You can use

    var childSymbols = sym.getChildSymbols ();

    var num = 0

    for (var i = 0; i)<>

    var reg = new RegExp(/Stage_drag_*/);

    {if (Reg.test (childSymbols [i] .getSymbolElementNode (USER.USER)))}

    NUM ++;

    }

    }

    Alert (num);

Maybe you are looking for

  • Bookmark

    Hello, when I bookmark on a page he bookmarkes in slot bookmark unsorted. I have to go to point culminating the history file that all bookmarks then send it to the location of the main bookmark.He never used to do this. Are there and where do I go to

  • How to disable what makes automatically open Foxfire

    Whenever I click on a part of the internet, Foxfire opens. I want to use Safari and don't want Foxfire opens automatically.

  • Clear.fi reading Blu - ray?

    I thought Clear.fi would play bllu-ray discs but mine own can't.  Clear.fi can see the disk of the comic and the title, but he won't play.  I tried to update, but it says that no update is available.  My office not came originally with the BD but I a

  • Help me choose a good graphics card for my laptop

    Hello guys, first of all let me say I'm glad I found this forum, it's been some time that I wanted to choose and buy a new graphics card for my laptop, but I guess it's time and I'll start by asking help from you. My laptop is HP Pavilion g6, the spe

  • Cannot view event viewer, Event Viewer cannot display the snap in Windows 7

    I have a problem, it may not display the observer of events and olso, I have a problem with windows update when I install an update I can't show desktop and when I want to use the network diagnostics that there is an error * original title - help I'm