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

});

Tags: Edge Animate

Similar Questions

  • Obtain and hide all symbols of the child

    I would like to identify all instances of symbols of child of my symbol mT and hide.

    Something like this (except that it does not work):

    childsymbols_d1 = sym.getSymbol("holder").getSymbol("d1").getSymbol("mT").getChildSymbols();
    
    for(var i=0; i<childsymbols_d1.length; i++){ 
              childsymbols_d1[i].hide();
    };
    

    I don't want to use the timeline, because I have many symbols of the child and would like to make this operation on several other symbols.

    I tried and it works.

    I grouped the symbols in your in a div called Rect.

    sym.getSymbol("holder") .getSymbol ("d1").getSymbol("mT"). $('rect') .children () .hide ();

  • Create the symbol of the child at the top of the list.

    Hello

    Is it possible to create a child element that is added to the top of the list instead of down?

    for example.

    (1) create a #1 childSymbol

    (2) create a #2 childSymbol above childSymbol #1

    Thanks in advance

    The second argument should be the selector for the element 'parent '. For example, if you want to prepend the child created in the list of children of a div with id = "myContainer", then your code should look like this:

    sym.composition.createSymbolChild ("element", "#myContainer", 0);

    DIA-

  • TweenMax a symbol of the child

    Hello everyone,

    It's my last test, so I'm going back to a good interpolation Designer.

    I have never asked a few times there, but unforunately no solution at the end:

    I placed a symol on stage with a trigger on the first image:

    SYM. Stop();

    Eins var = sym.createChildSymbol ("eins", "Stage");

    eins.getSymbolElement (.css({))

    'position': 'absolute ',.

    'left': 100,.

    'top': 0

    });

    Now I know (thanks BigMucho) I can move the symbol with code you the following:

    Eins var = sym.createChildSymbol ("eins", "Stage");

    var moveEins = eins.getSymbolElement ();

    TweenMax.set (moveEins, {position: 'absolute', left: 100, top: 0});

    TweenMax.to (moveEins, 2, {y: 120, scale: 1, opacity: 1, delay: 0, ease:Expo.easeOut});})

    Whith this code I placed the symbol in the library and move it in a single step.

    But I want to spend the (eins) symbol which is already placed on the stage (with a trigger).

    whith a button afterwards.

    For better anderstanding:

    http://go-motion.NET//upload/examples/04/test.zip

    Maybe there is someone who can imagine what I want.

    Greetings form Germany

    Oliver

    Hi, Oliver.

    This is your project which has animations using jQuery animate().  I know that this is not quite what you are looking for, but your TweenMax library is not loaded into your project.  For more information on how to get this included, check out this post on the forum:

    http://forums.Adobe.com/message/5092621#5092621

    If you load your symbol element dynamically, you need save the reference somewhere and then refer to it later.  You can see at least what I made using your project files here:

    https://creative.Adobe.com/share/edac5fb5-7f14-448C-9f3f-b13fbc774ad5

    As you can see, I did save a variable with the symbol instance reference, and then when I went to use it later, responsible for the variable in the current scope, then seizes the DOM using getSymbolElement().

    I hope this shows you in the right direction.

    Thank you

    -Elaine

  • Remove the symbol of the child of the stadium

    Hi all

    I need help to remove a symbol of the scene.  I have a list of symbols that are called to the scene at a time in a simulation. When the user leaves a symbol, it is supposed to remove itself and call one another symol (specific).  For example.  I called the 'AR-HistAims' symbol to the scene to help

    var mySymbolObject = sym.createChildSymbol ("AR-HistAims", "Stage");

    mySymbolObject.getSymbolElement () .css ({'position': 'absolute', 'left': (mouseX - offset.left) / sx, 'top': (mouseY - offset.top) /sy});

    mySymbolObject.play ();

    It works very well.  I have put an invisible button in the timeline of symbols and when clicked I want to do two things.

    1. call "AR-percPass" (using the same code as before with a percPass instead of HistAims)
    2. delete "AR-HistAims" of the scene.

    I can't get #2 to work.  I tried the codes below and above the code # 1.  When it is placed above, it removes the current symbol, but does not call the new.  When it is placed underneath, the new symbol appears at the top of the old.  The codes I used are:

    var childSymbols is sym.getComposition (.getSymbols("AR-HistAims"));.

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

    childSymbols [i] .deleteSymbol ();

    and

    var mySymbolObject = sym.getParentSymbol ().getSymbol("mySymbol").getVariable ("AR HistAims");

    stage.deleteSymbol ();

    and

    1. sym.getParentSymbol () .deleteSymbol ();

    Any advice would be appreciated.

    Thank you

    Randy

    Hi Randy,

    There are a few corrections, you must perform in the index_edgeAction.js as file as follows:

    1 in, click Manager, you do not have access to mouseX, offset, sx, sy etc.

    mySymbolObject.getSymbolElement () .css ({'position': 'absolute', 'left': (mouseX - offset.left) / sx, 'top': (mouseY - offset.top) /sy});

    So, do like this:

    mySymbolObject.getSymbolElement () .css ({'position': 'absolute', 'left': 0, 'top': 0});

    Do this kind of changes for each click handler where you used mouseX, offset, sx, sy, etc., with values of left and top.

    2. just search sym.getSymbolElement () .deleteSymbol (); and replace it by sym.deleteSymbol ();

    3 comment out the line #1366 with the instruction sym.deleteSymbol ();

    4. search for the sym.getSymbol (home) .deleteSymbol (); and replace all occurrences of these sym.getSymbol("home").deleteSymbol ();

    With the changes mentioned above, things will work.

    HTH,

    Vivekuma

  • How should I enter symbols like the Euro symbol or e with a top colon?

    Is it possible to allocate sequences of shortcut to the symbol as the symbol of the Euro or e with tilda or 2 points above?

    Found!
    Use 'enter' buttons 'characters and symbols' to find the required symbols.

  • How to add a symbol at the beginning of a project?

    I have a pretty complex Animate composition.  I want to add a simple symbol/Animation at the beginning.  I tried to insert time and it did nothing.  Basically, I want to just move everything with a couple of images.  I thought to transform the balance of the composition into a symbol, but a lot of interactivity is based on the labels on the main timeline of the scene, and it breaks when I try to convert it to a symbol.  I don't know what I'm missing here?  Any help would be really appreciated!

    Thank you!

    Jon

    If you select everything on the timeline you can transfer all right. Make sure everything is orange in the mounting area before moving it. You can then add your symbol at the beginning. You may have to disable everything you just move a 0 and then when you want the rest to appear.

  • Creation of a logic of the function of the buttons created dynamically XML

    Hello!

    It's me...! Now, I created some buttons using XML dynamically. They are spread around the stage, and I modified it a tooltip script to give each key a ToolTip on Mouse_Over. But is the logic and make it work using AS3 is hard (for me). I want a function that take parameters: Tooltip text and ToolTip object.

    In my code, I get this error msg on cast the function on dynamically created buttons:

    1118: constraint implied a value with flash.display:Sprite of static type of a type may be unrelated to flash.display:MovieClip.

    In my view, there is more than one thing here that need a fix.

    Can someone take a look and give me a pointer?

    Thank you

    function contentTooltip(ttt:String,_ttclip:MovieClip):void {}
    ttclip.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
    function mouseOverHandler(e:MouseEvent):void {}
    //
    ttip. Descr.Text = TTT;
    ttip.x = internship. MouseX;
    ttip.y = internship. MouseY-15;
    ttclip.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
    ttclip.addEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);
    ttip. Visible = true;
    }
    function mouseOutHandler(e:MouseEvent):void {}
    ttip. Visible = false;
    ttclip.removeEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
    ttclip.removeEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);
    }
    function mouseMoveHandler(e:MouseEvent):void {}
    ttip.x = internship. MouseX;
    ttip.y = internship. MouseY-15;
    }
    }
    contentTooltip ("Button", scale_btn);
    contentTooltip ("hide" button, hide_btn);

    The created two buttons dynamically MovieClips or Sprites?  Your contentTooltip function seeks a MovieClip.  When you get this error message from the compiler must point to a line to indicate the source (or something related to the source) of the problem.

    Additive... it is not advisable to place named functions within other functions.  It will be a good habit to break, if someone taught you to do.

  • How to play a symbol on the main timeline timeline

    Ive created a box, turned into a symbol called box,

    Inside the box, I have a left to right of animation with AutoPlay disabled.

    I went back to the main scene, click on the box, action, added click here to play, but it does nothing.

    How to play the sequence of symbols?

    In, click handler for the use of the symbol

    sym.getComposition () .getStage ().getSymbol("__nameofsymbol__").play();

    or

    sym.getSymbol("__nameofsymbol__").play();

    Replace the italics by the literal of the symbol name as it appears in the components Panel.

    A few details of the API are here (http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html) in the section work with symbols .

    Darrell

  • How to type a symbol of the British pound since my keyboard does not have this sign?

    I have a report in an e-mail message that needs a pound sterling sign a password to open it, but my keyboard does not have this sign. I suspect there is somewhere a list of signs, that I could choose. How can I find?

    Hold down the Alt key on the keypad press 0163, then release the ALT key.

    The character table of launch and copy characters to the Clipboard.

    Use an extension like Zombie Keys.

  • How to position an image in the middle of a paragraph?

    Hi all


    I'm looking for a way to have an image appear somewhere in the middle of a paragraph and still have text flow around it.  I am familiar with float a left or right image and putting it on at the beginning of a paragraph, and of course, that works very well.  But I would appear to be more "magazine-style", so that you have a title and then a few lines the text of the story, then an image that is flush on the side with text flowed around it.  I tried with quite the image positioning, but it does not seem to flow text around it.  Am I missing something obvious, or is - not possible?

    Thank you.

    "The problem with the fact that you have to position the image at the beginning of the paragraph of text."

    This is not true. Here is an example:

    http://www.Projectseven.com/csslab/floats/image-basic/

    --

    Al Sparber - PVII

    http://www.Projectseven.com

    Menus in Dreamweaver | Galleries | Widgets

    http://www.Projectseven.com/go/HGM

    The Ultimate Web 2.0 carousel

  • How to add an icon to the application created by the user to the e-mail toolbar

    I have a new Mac Mini, Mac Mail and El Capitan 10.11.4. I would like to add an icon to the mail toolbar to trigger an application I wrote. I tried the steps for "Finder" and who works for "Finder", but I want it on the toolbar "Mail". Can it be done? If so, how?

    BTW, I'm a professional programmer.

    I requisted you post be moved here:

    Developer forums

  • How to give a name to the new (created as an extension) actionset in a vSphere of existing objects (say HostSystem)?

    Hello world

    I am trying to create the new context menu for vCenter Web Client Plugin under HostSystem object. I created actionset extension according to the lines form guidelines here.

    I had the context menu under the name of "All the Actions of noGroup" (see the following image):

    Actionset-Extension.png

    I want to change 'All the Actions noGroup' to the ' stock My_Plug-in_Name. Is this possible? and if so, how?

    -Thanks in advance.

    Lee.

    Received the response here form:

    Re: A question about the creation of extensions of the action

    > The node is always displayed "all the Actions of noGroup".

    This is because you are running in mode of development, and not with a packaged plugin.

    There is an explanation in the FAQ that comes with the SDK documentation, see "Menu shows"All the Actions of noGroup"

    Documentation of the FAQ:

  • How do you attribute the click event of the object created dynamically?

    This is probably an easy question to answer:

    I'm iteration in an XML list, I created via a HTTP Service to load the XML file.  For each object, I want to create a LinkButton which will link to a URL.

    However, since I created the LinkButton object in ActionScript instead of MXML, I can't understand how to assign a click event, for example navigateToURL()

    How to assign as the LinkButton should do the mouse click?

    I know that someone will be able to answer this, then... Thanks in advance!

    myLinkButton.addEventListener(MouseEvent.CLICK,myClickFunction);
    

    and your event listener function

    private function myClickFunction(e:MouseEvent):void{
                        //do something
                   }
    
  • Change of the style of the button created dynamically another button click

    Hi all

    I worked on a small project at home, learning Flex and Actionscript I'll (he is great, BTW) and have hit a block.

    I'm building a screen with nested containers (HBox, VBox, tiles, etc.) eventually hold a number of dynamically created buttons. It all comes from a file of XML data using loops For. Each button is assigned a unique ID.

    My problem is that I have a set of buttons in an Accordion component. Each button accordion relates to a dynamically created button already on the screen. Thus, 'Step 1' on the accordion can refer to "part 5". This info is organized as a string in the .data step button. If a user clicks on the 'Step 1' button, I want to change the style of "part 5", so I need to be able to reference these buttons according to XML in step 1 data.»

    I tried to use the normal setStyle, but appears not to work because I can not convert a 'Part 5' representation to the real dynamically created "5" the component button.»

    So my question you fine people is: " How to change a button dynamically created on the other only a string that represents the ID of the button?'." "

    If all goes well, there is a simple way to do this (without having to navigate a tree of components). Any help would be appreciated to a new learner in Flex. If you need more info on the problem, please let me know.

    Thank you...

    Thush

    Edit: I think that the answer is perhaps in this thread here. That said to use a table associative to contain the ID of the components during the creation time and to use the table to make reference to them later. I will try that and see if it works. Fingers crossed!

    Edit 2: I cracked! First of all, I used a dictionary to store the array of objects. This used the Dictionary package (imported) and the creation of the Dictionary object.

    Then I added my dictionary objects when they are created.

    Finally, I have the buttons using the object dictionary based on a known ID string of the reference.

    Hi all

    I worked on a small project at home, learning Flex and Actionscript I'll (he is great, BTW) and have hit a block.

    I'm building a screen with nested containers (HBox, VBox, tiles, etc.) eventually hold a number of dynamically created buttons. It all comes from a file of XML data using loops For. Each button is assigned a unique ID.

    My problem is that I have a set of buttons in an Accordion component. Each button accordion relates to a dynamically created button already on the screen. Thus, 'Step 1' on the accordion can refer to "part 5". This info is organized as a string in the .data step button. If a user clicks on the 'Step 1' button, I want to change the style of "part 5", so I need to be able to reference these buttons according to XML in step 1 data.»

    I tried to use the normal setStyle, but appears not to work because I can not convert a 'Part 5' representation to the real dynamically created "5" the component button.»

    So my question you fine people is: " How to change a button dynamically created on the other only a string that represents the ID of the button?'." "

    If all goes well, there is a simple way to do this (without having to navigate a tree of components). Any help would be appreciated to a new learner in Flex. If you need more info on the problem, please let me know.

    Thank you...

    Thush

    Edit: I think that the answer is perhaps in this thread here. That said to use a table associative to contain the ID of the components during the creation time and to use the table to make reference to them later. I will try that and see if it works. Fingers crossed!

    Edit 2: I cracked! First of all, I used a dictionary to store the array of objects. This used the Dictionary package (imported) and the creation of the Dictionary object.

    Then I added my dictionary objects when they are created.

    Finally, I have the buttons using the object dictionary based on a known ID string of the reference.

Maybe you are looking for

  • Complications of FaceTime

    Why my FaceTime keep hung up by himself a few minutes after that, I've been on this subject?

  • Satellite P100-240: keyboard in Microsoft Outlook errors

    When I try to insert a symbol £ when you use Microsoft Outlook I get a symbol #- and can not find the symbol £ anywhere - the keyboard is very well in other packages - is there a simple way to fix the keyboard for Outlook only?

  • What drive should I OS Mini G4

    I recently bought an old Apple Mac Mini Desktop - M9686LL/B - 1.25 GHz G4 processor, 512 MB memory, 40 GB HARD drive to use as a storage of iTunes It came with no OS installed, or all records. As far as I can find, it seems I need 10.4 Tiger BONES, b

  • binary passage replaces the State after commits

    I have a binary switch unique control of four similar processes.  I use an EVENT_COMMIT to trap the change in his condition. However, I notice that because of hardware lag on the side of the output, the State of the binary switch (off to ON) takes a

  • Where is the Bluetooth Remote Control AV Profile?

    I just noticed on 1.3.1 the Blueooth AV Remote Control Profile disappeared from my pre. He was there in the previous editions of WebOS, but now I notice it is no longer available.  Anyone else notice this?  It was kinda cool to have my phone at work