Edge Animate CC :: How To Refer To Label On Stage From Within Symbol
Jan 3, 2013
I'm working on a project in Edge Animate, however I have about zero experience with JavaScript and I can't seem to get this working without it.
Below you see the code. It's part of a Symbol situated on the Stage. What I need it to do is to play from a Label ('subFontsTitels') situated on the Stage-level. I've tried a lot of posibilities but with no (satisfying) results.
Part of the code:
Symbol.bindElementAction(compId, symbolName, "${_Button}", "click", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.getComposition().getStage().sym.play('subFontsTitels');
// insert code for mouse click here
});
//Edge binding end
'm trying to get the properties of the symbol and a text field on the stage. And I can get the width and the height of them by this script below.
----------------------------------------------------------- var temp = ""; temp += "Width of the symbol " + sym.getSymbol("mySym").getSymbolElement().width() + "<br />"; temp += "Height of the symbol " + sym.getSymbol("mySym").getSymbolElement().height() + "<br />";[code].....
And now, how can I get position(x,y)?
Are there any web sites that shows the list of the properties?
Because I'd like to know other properties too, like rotation , opaque , show/hide, etc.
I have a symbol on the stage: symbol1.Inside symbol1 I have an image: symbol1_image1...I have another symbol on the stage: symbol2 Inside symbol2 I have an image: symbol2_image2
in composition.ready I have an action on the mouseout for symbol1:
var theTarget = sym.getComposition().getStage().getSymbol('symbol2').$('symbol2_image2'); sym.getComposition().getStage().doMouseoutGS(theTarget);
In composition.ready i have the following function defined
sym.doMouseout = function (colorTile){ sym.$(colorTile.show()); }
I cannot get this to work and I am not understanding why.If I do an alert on the mouseout function for alert($(colorTile).attr("id")); I get the correct referenc to the element I want to show but it does not actually happen
2. On a click event, an larger image of the region is loaded with the following code. On mouseover the name of the county appears and on click a popup (symbol) shows some info.
3. In the popup symbol, I want the large image map to be remove on the click event of the button: "View another region" . I have the following code which does not work (the image is not removed) resulting in what you see below:
In trying to learn Edge, is there a way to return playback (play from) once an animation is complete within a symbol?
For instance, I have the main timeline that shows a symbol animation on creationcomplete, but when the animation is finished in the symbol and I hide the symbol, the main timeline is no longer playing. What would I need to do to return playback control to resume playback of the main timeline? I have a label I would like to play from on the main timeline, but I have not found a way to call the main timeline from within the symbol.
I have a logic problem in my code that I need solving,
here's the bit of code which is supposed to set the text, image and link for a symbol used multiple times on the Stage.
var names = ["melz", "brom", "calm", "micj", "mick", "brir", "mato", "brym", "azin", "hugh", "nicl", "bonr", "lisa"]; var name = null; for(var x = 0; x < names.length; x++){ name = names[x]; var initials = (name[0]+""+name[3]).toUpperCase(); var cursymbol = sym.getSymbol(name);
[Code]...
The text and image code work, however my problem is with setting the link. It always sets all the symbols to the last name in the names[] array. What I want it to do is to set the link to the personalised name in the array. So the HH button will link to hugh.html and the BM button will link to brym.html etc.
For now I'm going to play around a bit and see what happens.
If I have a symbol with its own timeline, I am familiar with targeting it with otehr elements and symbols and activating that timeline. But the symbol will also have a presence on the stage timeline - how does one play that?
I might be overcomplicating it, I thought it might just be play() on the main stage but that doesn't appear to work, neither does getStage.play() so I am doing something wrong somewhere
I need to insert multiple Edge Animate in the same webpage, but it’s impossibile change the id… always “Stage” and same name create problem with W3C validation.
I'm working on a small banner type ad for someone. The ad has the word "FREE" that turns on and off about every 1/8 second using opacity and placing the elements in different places on the stage - works fine.
However, is it possible to take one element (the "free" text) and have it randomly run at different places on the stage (jQuery I suppose)? My only reason for this is to learn something new and clean up the stage that currently has 30 elements, all duplicates!
Is there a way to "eval" or dynamically set a symbol name that has been parsed from XML to build a symbol path? For example, I'm trying to dynamically set a variable to the path of a sysmbol already on the stage, but it's not working correctly:
var xmlSymName = $('symName', this).text(); // where symName = "sym4" from a parsed XML node var whatPOI = sym.getComposition().getStage().getSymbol("sym1").getSymbol("sym2").getSymbol("sym3").getSymbol(xmlSymName).getSymbolElement();
Basically I have a lot of points on a map and I'd like to be able to name the points along with other data like tooltip callouts, etc populated via XML then loop through the XML to build the points of interest on the map. If I can get the above working I can place that variable path reference into an array and grab the data from it later. But the path is not working the way I have it.
The scenario is this, I have a symbol(TitlePage) on my main timeline. Inside the symbol(TitlePage) there is a play button. How can i set a click event on this symbol that access the main timeline(stage) labels?
Im trying to build a long scrolling page and i need more than a 10000 px stage but edge only allows me a 10000px max height. How can i create a longer page and are their performance issues with a stage that size?
I have built a product walk through demo using edge animate, in this demo i have set stage to percentage but when i see my demo in ipad, the text remain its original size .
play "SYMBOL_2" - "DIV_ANIMATION_1" - "ANIMATION_1_START" from within "SYMBOL1" - "DIV_PLAY" with the mouseup command
URL....I know that i can sym.getComposition().getStage().getSymbol("div_animation_1").play(); from within "div_play" but how do i access a point on the timeline and play from there...
I created a photo at the bigging of the timeline to be scaled at 0,0. As it goes down I want it to 100%, and when it reaches the bottom of my stage area I to just have the photo just disapear.
When I tried this with scale x,y it slowing shrinks as it goes down. I don't want it to slowly shrink as it goes down. I just want it to just disapear when it reaches the botton.
I'm new to edge animate but have a Flash background and I'm working in Edge Animate on a game which is structured in several scenes. Each scene I did put in a symbol. Now I wonder how to build the main timeline or the "story - controller" so to speak. I have all the scenes but I do not know how to connect them.
In Flash it was possible to add keyframes of scenes one after another (like stairs) and jump forward or backward if needed to load the movie clips. In Edge Animate all scenes (or symbols) are in place from the beginning of the timeline and I cannot move the symbol to a later keyframe. Of course I can move animations in the timeline. The only way I think is to hide the symbols first and make them visible if needed. But this does not seem to be the right way and I don't understand the concept of structuring complex animations yet.
I would like to know how to structure several scenes in Edge Animate properly. Something like a scene loader or unloader would be useful.
I can't seem to figure this out, and i'm at the end of my limited HTML and CSS knowledge. I created an animated background in Edge to use on my site, but the elements that should be hidden beyond the 1500px stage just sit there and are visible if you resize your window. i attempted to customize it with a #stage id and overflow:hidden but it did nothing.
my website is [URL] and if you resize your window past 1500px, or scroll over to the right, you can see one of the images just waiting until it is activated. i'd like to hide everything past the 1500px mark but i can't figure out how to do that.
the Edge Runtime script is in the head, including the <style> for .edgeLoad and .updateBack elelments. the <div id="stage" class="updateBack"> is the first line of code in the html, then the tag is closed and i have my main container.
I am creating a slider for a site's Home Page, and specified a Stage size of 960 x 255 pixels in my Edge Animate document. When I inserted the .oam file from Dreamweaver (Insert > Media), the dimensions grew to 980 x 275 pixels. Manually correcting the dimensions does not correct the problem. The width remains wider, and a gap exists between the bottom edge of my animate object and the border graphic that overlays the object.
How do I correctly specify the stage size so it remains at the size I specify once I insert the .oam file in my page?
I use the wp_oEmbed and the edge suite plug-in and in both cases the hidden off-stage elements are visible. This seems to only happen in WordPress. Standard HTML iframe does not have this problem, not does the simple html generated by edge. This seems to happen in all browsers. I even tried inline styling with a div and overflow hidden command.
My Stage is set to 100% w/h. I'd like to center a div, and have it scale based on a percentage of the Stage's size. The div contains animated text and images.
I've seen some similar examples but the Stage always seems to be set to pixels.
I just downloaded the current version of Animate CC and followed the tutorials.Nothing seems correct.
There are no Gradient buttons for color on stage or vector items. the keyframes do not populate even though I have keyframes on. Dragging items do not produce a transition on the timeline.the Max width button only says None and will not let me make changes. I'm on Mac Mavericks. But if this it the quality of CC, it ain't worth the price.
I have create a small Edge Animate animation that I'm trying to add to our home page. After getting everything running and working properly in IE9+, Chrome, Firefox and Safari I moved it from the development environment to our live site. Then I viewed it on an older machine running IE8 and the down level stage worked great, but it disabled a jquery image slider and a little custom jquery script I wrote to polite load an embedded youtube video. The only cusomization I did to the edge files was to remove the loader for the included version of JQuery so that it would run the on I call from Google instead. This prevent intial conflicts between already existing jquery elements on the page.
I want to display a symbol next to the cursor. It should stay there like in this example here:http:/[url]....
When using a responsive Stage (what is crucial to my project, because I need 100% width on all window sizes) the placement ot the symbol is dependent on the size of the window and the position on the screen. Here is an example of the problem: [url]....
So, gathering the coordinates within EA seems not to be the right way.. Or any solution to compensate for the responsivness?
// CompositionReady sym.createsym = function(){ var position = sym.$("box").show(); [Code].......