to remove this symbol created dynamically

Hello

I dynamically create a symbol:

vid var = sym.createChildSymbol ("video_holder", "Stage");

vid.getSymbolElement () .html ("< iframe src='//player.vimeo.com/video/44150607" width = "500" height = "281" frameborder = '0' webkitallowfullscreen mozallowfullscreen allowfullscreen > < / iframe > "");

vid.getSymbolElement () .css ({"margin": "auto", "top": "100px"});

the I want another button to remove this symbol of scene:

vid.deleteSymbol (); or sym.getSymbol("video_holder").deleteSymbol ();

How to do?

Thanks for always!

s.

Hello

For example, you create a button with a click event:

vid var = sym.getComposition () .getSymbols ("video_holder");

vid [0] .deleteSymbol ();

Here, the first symbol is deleted. I guess you have to remove one and only child.

sym.getComposition (.getSymbols("")) returns a collection.

Therefore, a loop (regarding or each) will remove the symbols.

Demo file: videoHolder.zip - Box

Tags: Edge Animate

Similar Questions

  • What is the best way to remove the symbols generated dynamically from another symbol?

    in the onClick for 1 symbol handler, I have:

    var sandwhichQty1 = sym.createChildSymbol ("sandQty1", "Stage");

    another symbol inside the sandQty1 has the onClick method:

    this.deleteSymbol ();

    that works well, delete sandQty1. I would like to delete and others, another button, in which case users close this way.

    I noticed that the id and class are assigned dynamically to the symbol of the child, which makes it difficult for me.

    any ideas?

    Hi, Lloydie-

    What I would do in this situation is to save a reference to the object as a variable in the symbol on the creation, then reference the variable when you want to destroy.

    So:

    var foo = sym.createChildSymbol (blahblahblah);

    sym.setVariable ("bar", foo);

    In the other symbol (assuming the two symbol instances are at the same level with regard to step):

    var foo = sym.getParentSymbol ().getSymbol("mySymbol").getVariable ("bar");

    foo.deleteSymbol ();

    Hope that helps,

    -Elaine

  • Play a label in a symbol, then remove this symbol

    Hi you.

    I'm unable to fulfill the order above.

    I have some symbols (in a table) with fade in and fade-out animations. These symbols do not exist in the stage - they have implemented, on stage, click a few buttons, in the sym.createChildSymbol () and the output through deleteSymbol(). The problem is that it's supposed to play the animation melted before the deleteSymbol() - removes, before he can do. I tried a setTimeout, but it did not work. Any suggestions?

    Code:

    // Setting variables/arrays
    var currentSection = null; // Index in array_sections: 0=a, 1=b, 2=c, 3=d 4=a
    var requestSection = null; // Index in array_sections: 0=a, 1=b, 2=c, 3=d 4=a
    var array_sections = ["nosContigo", "nosSomos", "nosAoVivo", "nosTemos", "nosVivemos"];
    var array_sectionsBtns = ["section_Btn_nosContigo", "section_Btn_nosSomos", "section_Btn_nosAoVivo",
                              "section_Btn_nosTemos", "section_Btn_nosVivemos"];
    var dynamicSymbol;
    sym.$('.section_Btn').css({"z-index":1});
    
    // Called by timeline.complete/location event inside each section_Btn
    sym.playRequest_section = function(){
      dynamicSymbol = sym.createChildSymbol(array_sections[requestSection], "Stage"); // array_sections symbols are created
      dynamicSymbol.getSymbolElement().css({"left":0, "top":0}); // z-index of array_sections symbols are set
      dynamicSymbol.play('section_lead_in'); // Requested section leads in
      currentSection = requestSection;
    }
    
    // Called on button click
    sym.btnClick_section = function(request) {
      requestSection = request;
      if(currentSection != null){
        dynamicSymbol.play('section_lead_out'); // Current section leads out
        dynamicSymbol.deleteSymbol(); // Symbols are deleted (array_sections)
    //  setTimeout(function(){ dynamicSymbol.deleteSymbol(); }, 1000); // Symbols are deleted (array_sections) - delayed
        sym.getSymbol(array_sectionsBtns[currentSection]).play('section_deactivate'); // Current button deactivates
      }
      else{
        sym.playRequest_section();
      }
    }
    

    My edge files.

    PMFR

    Hi, Clayton.

    What you need to do is to define another trigger in the scenario where you want to hide, and then add the following code:

    If (sym.isPlayDirectionReverse ()) {}

    SYM.$("ask"). Hide();

    }

    Hope that helps,

    -Elaine

  • Bought an ipad at a reseller on ebay but the previous owner of the ipad has not removed its link to ID apple for ipad. How can I remove this link to create my own link ID apple now?

    Hi all

    I'm looking for emergency one-handed helpig on this:

    Bought an ipad at a reseller on ebay but the previous owner of the ipad has not removed its link to ID apple for ipad.

    What should I do to remove this link and create my own link to apple to my account alle ID now?

    Bright ideas?

    Thanks in advance.

    BR,

    Bodo

    Sorry, but the only option is to return the iPad.

  • I accidentally loaded a .iso file on my PC and can not get rid of it. When I try to delete the file it says that the file is opened by the system. Also the file created 3 virtual drives like E:, F: and G: __Please let me know how I can remove this .iso

    I accidentally loaded a .iso file on my PC and can not get rid of it.  When I try to delete the file it says that the file is opened by the system.  Also the file created 3 virtual drives like E:, F: and G:
    Please let me know how I can remove this .iso file.

    Try Safe Mode. Repeatedly press the F8 key as the computer starts getting the menu diagnosis. Use the arrow key to select Mode without failure. MS - MVP - Elephant Boy computers - don't panic!

  • I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I don't understand. You use vo and eo for you to use business components.

    Again, this kind of code call in trouble.

    You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.

    In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.

    My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.

    Timo

  • How to create dynamic Services based on VMware files

    Hello

    We would like to create as many services as VMware folders in VMware, so whenever we will be add/remove any computer file VMware virtual of the service components will also be day/follow-up...

    We check the option "Create a rule to include a group of components" in the function Builder, and adding the conditions of rule as:

    ! VFolder where name like ''.

    But the result is not successful, because we are unable to choose the right component that inherites the VFolder type components...

    The same works of query in the "Script Console" and the children of the property spreads with all virtual machines...

    Any ideas?

    Thank you.

    Hi Eneko

    One of our systems Consultants found a carton of community that creates dynamic records VMWare-based services. I have attached the cartridge and I included some comments from the author, Thomas Bryant.

    I am pleased to announce the release of version 1.0 of a cartridge personalized for VMware files.  I had a lot of customers ask me to automatically build services in vFoglight based on the structure of folders in vCenter, and that is exactly what will make this cartridge!  This cartridge contains a rule that runs once per hour and will create a category called files VMware services and then for each vCenter, the data center and the series of records, create services and add virtual machines to each, as in vCenter.  Simply load the cartridge and wait about 30 to 60 seconds depending on the number of files you have, and then services will be created.  Please let me know if things work, good or bad.

     

    Updated - Version 1.0.1 released

    The update fixes a problem with the sort order of the structure "Virtual Machines and templates" vs "Hosts and Clusters" and the following files which were not created properly.

     

    Known issues - currently will not remove a service based on a folder that has been deleted from vCenter.  I'll look to add this in the next version.

    One last thing. After you install the cartridge, a new rule, named Custom - create/update records VMware will be added under VMware_Folders cartridge. If edit you it and look at the Conditions & Actions tab, you should be able to see the groovy script that is used to create and populate the services. Here, you should be able to edit the prefix added to each folder in Foglight. By default, the prefix is "Folder_.

    I hope that this solution is satisfactory for you,

    Kind regards

    Gaston.

  • Error [PLS-00103: encountered the symbol "CREATE"] using PACKAGE

    Hi guys!
    When I compile this package, I get this error:
    PLS-00103: encountered the symbol "CREATE".

    How can I solve this problem?
    The compiled code is below:


    CREATE OR REPLACE
    PACKAGE CAMPO_PACK AS

    TYPE T_CURSOR IS REF CURSOR;

    PROCEDURE DeleteCode (OSDP NUMBER);

    END CAMPO_PACK;
    -body-
    CREATE or REPLACE PACKAGE BODY CAMPO_PACK as

    PROCEDURE DeleteCode(pCod NUMBER) AS
    BEGIN
    DELETE FROM campo
    WHERE cod = OSDP;
    END DeleteCode;

    END CAMPO_PACK;


    Thanks for the help,
    Anderson



    Published by: user8723300 on 08/13/2009 17:03

    Published by: user8723300 on 08/13/2009 17:04

    I use Oracle SQL Developer

    I know very well of this tool.

    The packet header and body are two separate objects and must be compiled separately. I suspect that the package body is somehow have included in package header and Developer SQL tries to compile all of these at once. You must understand how to compile the header first, then the body. Your code compiles if I use sqlplus. I had to first create the table, so I have included a slash (/) after the packet header and the other after that body. The slash tells sql more to run the buffer (in this case, to compile the object).

    SQL> create table campo (cod number);
    
    Table created.
    
    SQL> CREATE OR REPLACE
      2  PACKAGE CAMPO_PACK AS
      3
      4  TYPE T_CURSOR IS REF CURSOR;
      5
      6  PROCEDURE DeleteCode(pCod NUMBER);
      7
      8  END CAMPO_PACK;
      9  /
    
    Package created.
    
    SQL> CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS
      2
      3  PROCEDURE DeleteCode(pCod NUMBER) AS
      4  BEGIN
      5  DELETE FROM campo
      6  WHERE cod = pcod;
      7  END DeleteCode;
      8
      9  END CAMPO_PACK;
     10  /
    
    Package body created.
    

    If I remove the slash after the package header, sql more trying to compile all this at once, and I get the same error you get:

    SQL> CREATE OR REPLACE
      2  PACKAGE CAMPO_PACK AS
      3
      4  TYPE T_CURSOR IS REF CURSOR;
      5
      6  PROCEDURE DeleteCode(pCod NUMBER);
      7
      8  END CAMPO_PACK;
      9
     10  CREATE OR REPLACE PACKAGE BODY CAMPO_PACK AS
     11
     12  PROCEDURE DeleteCode(pCod NUMBER) AS
     13  BEGIN
     14  DELETE FROM campo
     15  WHERE cod = pcod;
     16  END DeleteCode;
     17
     18  END CAMPO_PACK;
     19  /
    
    Warning: Package created with compilation errors.
    
    SQL> sho err
    Errors for PACKAGE CAMPO_PACK:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    9/1      PLS-00103: Encountered the symbol "CREATE"
    
  • How can I remove the tones created in garageband that have been uninstalled? I also installed but I can't remove it either please help thanks

    How can I remove the tones created in garageband that have been uninstalled? I also installed but I can't remove it either please help thanks

    Hello Michael,

    Welcome to Apple Support communities.

    I see that you need assistance, removal of GarageBand ringtones that were uninstalled. I know it's nice to be able to properly manage your tones. I can help you with this.

    Use the article for iOS (iPad) 2.0.x GarageBand: GarageBand share songs, more precisely, this section:

    To remove the existing ringtones follow these steps:

    • Press to select, then press the button Delete for any ringtone you want to delete.

    • Drag a ringtone in the list, and then press delete.

    Have a great day!

  • Since the new updates I can't convert my tracks, I downloaded in mp3. have they remove this feature?

    Since the new update I can't convert my tracks, I downloaded in mp3. have they remove this feature? I used to be able to right click on a leaflet and create mp3 version of a wav file.

    It is moved to the file > create a new Version.

  • When firefox load it also load another tab for the search engine. How can I remove this where it will load only my start page?

    When firefox load it also load another tab for the search engine. How can I remove this where it will load only my start page?

    You can check the setting of the home page and make sure that it doesn't have a leak ' |'.

    Firefox supports several home pages separated by ' |' symbol.

  • How can I remove this add-in Add to Android mobile?

    At startup, a second tab opens on an advertisement for a mobile phone Android app. I don't need and want to stop the opening announcement whenever I use FireFox. How can I remove this? 12.

    You can check the setting of the home page.

    Firefox supports several home pages separated by ' |' symbol

    If you don't keep changes after a reboot then see:

  • I blocked some photos in facebook by accident, the toddler got click happy. How can I remove this block in some photos?

    I blocked some photos in facebook by accident, the toddler got click happy. How can I remove this block in some photos?

    With Facebook on display, click the button to the site identity (for more details on what is, see https://support.mozilla.com/kb/Site+Identity+Button) and then on more information. This will open the page info dialog box.

    First, select the permissions tab, make sure that 'Load the Images' is set to allow (default selection should work as well)

    Then select the media tab, and then click the first item in the list. Use the down arrow key to scroll the list. If any element has the option 'Images of block of (field name)' selected, deselect the option.

    This should hopefully solve your problem, but see also https://support.mozilla.com/kb/Images+or+animations+do+not+show

    Some add-ons can also block images, for example, if you have AdBlock Plus installed, make sure that you have not accidentally created a filter to block images.

  • When you perform a system recovery - it removes all partitions created?

    Model number: HP Pavilion p6795
    Operating system: A Windows 7 Home Premium 64-bit, now Windows 8 Pro 64-bit

    I'm looking to do a system restore to return my system to the default settings. I usually share my records in particular, D: data separate operating system and program files.

    Could you please confirm it removes all partitions created on the main hard drive (for example, the D: drive) data?

    Thanks a lot for your help.

    Hello

    Yes, remember the day you bought the unit it will be taken back to this parameter.

  • How to drag the apps? to force no click trackpad... I think they remove this features for elcapitan

    How to drag the apps? for a force not click trackpad...
    I think that they remove this features for elcapitan

    Select the application, and then hold down the trackpad (click), pressed with the left hand, while you use your right hand to drag the app.

    Note: This creates an alias to the place where you drag where you want to move , you also need the CMD key at the same time.

Maybe you are looking for

  • stop synchronization

    Deletion is very slow as it seems to be deleting on the server and pc. Can I place the synchronization process in order to quickly clear on PC and then leave the server and Pc sync later

  • Field has been redirected correctly but only Firefox go to the old site

    I built a new website for a client whose domain is registered with GoDaddy. The URL has been updated in GoDaddy and verified with one of their technicians. All other browsers I've tried going on the new site, but Firefox displays always the old site.

  • Why can't I get RoboForm appears on FireFox Version 7?

    I am running Windows 7 Professional on my laptop. I've always had RoboForm works on my other previous versions of FireFox. I can't even RoboFom icon. I went to view then toolbars and still it has not shown in section toolbar. I even uninstalled FireF

  • Safari crashes when the addressfield selection

    When I launch Safari on my iPhone5s and try to select the address field, type a url or search word Safari crashes. I tried to kill all applications and restart the iPone but I always get the same result. Can anyone help? iPhone5s with iOS 9.2.1

  • cannot start.hardware unit-(Code 19)

    Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19) Model: HP Pavilion Elite e9120y Desktop PC - System Diagnostics report - warnings-errors g = compact flash Failur