a symbol in the Middle AND back of the stage

Hello

Maybe it's a simple question, I hope...

I need to place a symbol in the Middle AND the bottom of a sensitive site (stage height/width = 100%). the size of the symbol is fixed and does NOT change when resizing the browser window.

for a better understanding, I created this fantastic visual:

example.jpg

Thanks for your help!

OK, I found how to do, it's pretty simple... so anyone who needs a sticky footer may need this...

project files:

https://www.dropbox.com/s/f53kpr808ofmsr6/footer.zip

best wishes to you all

Tags: Edge Animate

Similar Questions

  • 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



  • Dynamically set the order of the symbols on the stage?

    Is it possible to change the order of the symbols on the stage dynamically via the coding?

    While clicking on a button would be a symbol on the back?

    The reason why I ask is because even if one of my symbols is set to invisible, it still hinders my ability to click on the buttons that are technically below.

    Any help would be appreciated.

    Thank you

    You can use the z-index with this basic format:

    SYM. $('NomSymbole') .css ({' z-index': 100 '});

  • 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.

  • Add the symbol to the stage based on string of symbols

    Hello

    I am the string to add a symbol on the stage based on a string value in an existing symbol which is on the stage. I get no error when the game turns, but the symbol just reproduce on stage. I have no idea why

    This is the code:

    Variables used

    var score: int = 0

    var startX:int = stage.stageWidth = 920

    var startY: int = stage.stageWidth = 475

    Check to see if the "partition" amounts to 350 in ScoreBoardDisplay.txtScore.text

    If (ScoreBoardDisplay.txtScore.Text == String (350))

    {

    var HD1 = new HealthDrop();

    HD1.x = stage.stageWidth = startX

    HD1.y = stage.stageHeight = startY

    stage.addChild (HD1);

    HealthDrops.push (HD1)

    }

    Assuming you do not penetrate into this framework, when you check the score, but are always there, or at least hang out for a while, the problem is that the conditional code that you show only will run once, immediately entering into this framework.  He is not sitting it monitor any changes in the value of the text field.  You must specify the code to run.

    In this case what you could do is to place this code in a function that runs whenever the textfield value is changed.

    This code that you have to change the value of the TextField?

  • 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);

  • Count the number of symbols on the stage

    It is possible to count the number of symbol on the composition and store it in a variable?

    symbolCount = 0;

    var childSymbols = sym.getChildSymbols (); for (var i = 0; i)

    symbolCount ++;

    Alert (symbolCount);

    Add to the compositionReady, loops through the child symbols and alerts and how they are.

  • Reset button for all the chronologies of symbol on the stage

    I have several slideshows in my animated document, and I have three buttons at the top of the document that a user can click. Each button calls some slide shows (which are symbols) and brings them to animate using sym.getComposition () .getStage ().getSymbol("mySymbol").play. It works fine, but as soon as I click a different button, the symbols that the other button activated keep animating.

    I know that I can reset the timelines for symbols referencing each slide show by name individually, but y at - it an easier way? I have so many symbols!

    Thanks in advance!

    Erik

    You can also use getChildSymbols(), which gives you a table of references of the symbols of your scene.  Here is a brief sample, which uses the same code of sample of the API to animate:

    https://creative.Adobe.com/share/b2c57450-5bc6-41d7-ACF6-8aac9a84456a

    This code would be a bit more generic and would not involve to maintain a list of objects.  Please note that this applies only to symbols that are currently on your scene, dynamically declared or not.

    I hope this helps!

    -Elaine

  • 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

  • Animate a symbol on the stage using a JS function

    Lets say I want to animate SampleSymbol to the right, the following code is placed in the CLICK trigger for a button, my understanding is the best way to liven things up is to write JS functions in Action panels, is - this?

    The following line fails animate the SampleSymbol placed on stage...

    moveToRight();

    function moveToRight() {}

    SYM. $("SampleSymbol").style.left = (sym. $("SampleSymbol").style.left + 1) + 'px ';

    This code supposed to move the object 1px right

    setTimeout(moveToRight,20); / / call function() in 20 msec

    }

    Hi, check-

    In fact, I would say that the best practice is to animate on the timeline and code to call the animations of the reserve.  Personally, I only animate with code, when there is absolutely no other way to get what I want.  In regards to your code, some of the syntax is incorrect, but instead of doing things in this way, you can use jQuery to animation method of:

    SYM. $("SampleSymbol") .animate ({left: ' 20px +='}, 20);

    http://API.jQuery.com/animate/

    -Elaine

  • call a symbol on the stage of the nested symbol

    sym.getComposition () .getStage ().getSymbol("mySymbol").hide ();

    and it does not work!

    What I am doing wrong?

    Try this:

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

  • Symbol of the visible region set - I can't 'get' it

    I use edge animate for a short period, but still can not find how to set the 'visible' area of a symbol. Here's what I'm trying to do - create a box on the stage that displays images and text which can be the object of a scroll with a scroll bar.

    I create elements on the stage and convert to symbol. It seems that I should be able now edit this symbol and reduce the amount of 'height' to cause scrollbars to appear. But this has no effect on the symbol. I placed the symbol on the stage and all of that the display 'scroll' or 'auto' and it doesn't care the new height adjustment.  What Miss me?

    scrolling.PNG

    I think that there is a bug in the latest version, which prevents you from re - size after creation.

  • Start time set for the symbols on the timeline?

    Hello

    I've built several buttons - like symbols - that animate on screen and wants to shift departure times a little effect.

    I thought I'd be able to simply drag the symbols on the stage and set hours of departure by clicking on and dragging them on the timeline, but that doesn't seem to work. I see the 'read' and a + button but regardless of what I try, I can't seem to delay the start of the symbol.

    Any ideas?

    Thank you very much, I am stuck between the old Flash programming, development of Captivate and After Effects... Phew!

    Rich

    Hi Richard,

    I created a simple example for you. Check if it's how you want to play the animation.

    Thank you and best regards,

    Roger Simon

  • How to read a label on the stage of in a symbol

    Hi Edgefriends,

    I'm working on a side project lead, but I have zero experience with JavaScript and I can't seem to get this to work without him so I hope someone can help me to achieve this.

    Below you see the code that I need help. It is part of a symbol on the stage. What I need to do is to play a label ("subFontsTitels") located on the level of the stage. I tried a lot of posibilities but without (good) results. Could you please help me?

    Part of the code:

    Symbol.bindElementAction (compId, NomSymbole, "${_Button} ', 'click', function (sym, e) {})

    read the chronology of the given position (ms or label)

    sym.getComposition () .getStage ().sym.play ('subFontsTitels');

    Insert the code for the mouse, click here

    });

    End of binding edge

    Hi, Rangata01-

    You're close enough.  Tell him in your symbol:

    useful only if your symbol is a level down

    sym.getParentSymbol () ("myLabel") .play;

    can be used any level

    sym.getComposition () .getStage () ("myLabel") .play;

    Hope that helps,

    -Elaine

  • How I have "show" a symbol in the symbols Panel, then 'hide' again?

    So. I think that this should be easier that I am making but I can't seem to do things, any help would be greatly appreciated.

    I need to create a bunch of strong symbols and import all of them, but I like to leave it inside the symbols Panel if possible (for simplicity in the main timeline and because there will be many, many of them with a ton of interactivity in each).

    When I'm on the main timeline (which is basically just a slideshow of the files static .png) I would have a click event 'open' a symbol called from the symbols Panel and then be able to 'hide' again by clicking a close within this symbol button.

    Is this possible? I'm sure it is, but sym.$("symbol").show (); and () sym.$("symbol").hide; do not work for me - unless I'm placing them on the wrong elements. He is . toggle();

    So basically, the scenario is: I'm on an individual "slide" (png) on the stage, I clicked, opens in a symbol, I click autour and play animations etc, close with a close button and continue with the slide show where I was before, I opened the bunk symbol. "»

    Once again, any help would be greatly appreciated.

    See you soon.

    Well,.

    (1) you can drag and drop a symbol from the symbols to stage panel Panel.

    (2) you can use the code ( sym.createChildSymbol ("NomSymbole", "Stage"); ) "insertion" your symbol on the stage. Your "call", I guess.

    Attached file ("call").

    Note: You can replace 'Stage' with a container: "myContainer". This container can be another symbol.

Maybe you are looking for