-
1. Re: Can Edge animation scale/resize like Flash and Canvas
dominicosavio Oct 18, 2012 6:20 AM (in response to dominicosavio)Hello, any Edge experts out there?
-
2. Re: Can Edge animation scale/resize like Flash and Canvas
wesleybrownuk Oct 19, 2012 3:58 AM (in response to dominicosavio)Im just about to try and use Edge for a responsive design, not sure if it will even work.. I have noticed you can set widths to %.. so ill shall report back
-
3. Re: Can Edge animation scale/resize like Flash and Canvas
dominicosavio Oct 19, 2012 9:58 AM (in response to wesleybrownuk)Thank you wesley,
I have already tried it with responsive design, using % on every element's properties (x, y, scale, ...) and it only works in some simple animation case. For complex animation it fails badly. I think I have enough reasons to convince my clients to go with Canvas instead of CSS3
-
4. Re: Can Edge animation scale/resize like Flash and Canvas
Jerry Witt Oct 19, 2012 10:04 AM (in response to wesleybrownuk)I just posted this on another thread, but this seems to be a good responsive design tutorial: http://www.youtube.com/watch?v=RixCX7COepk.
I'm not sure how much zoom the original poster was looking for. If one wanted to zoom in beyond 100%, this isn't supported as well as it was in Flash. Probably easiest to see a sample page and then determine if EA can do it.
-
5. Re: Can Edge animation scale/resize like Flash and Canvas
elainefinnell Oct 19, 2012 11:32 AM (in response to dominicosavio)Hi, Dominico-
What specifically are you trying to accomplish? I'm curious what "zoom in and out" effect you're looking for.
-Elaine
-
6. Re: Can Edge animation scale/resize like Flash and Canvas
dominicosavio Oct 21, 2012 7:31 PM (in response to elainefinnell)Our animation/simulation will be loaded into an iframe with unknown dimension, our animation/simulation have to scale/resize itself to fit that iframe proportionally. We also provide user a way to increase/decrease the size of that iframe at anytime, and the animation/simulation must adjust itself to the new size.
Before HTML5 madness, we can achieve this with Flash very easily, and now we can use Canvas to get this same effect. So the question is, can Edge do this?
-
7. Re: Can Edge animation scale/resize like Flash and Canvas
dominicosavio Oct 21, 2012 7:39 PM (in response to dominicosavio)By the way, like I said before, for simple animation/simulation we can make it works, but for complex one, like drawing a bezier curve or a complex path based on an array of point from users' input and during the animation, users can increase/decrease the size of iframe and this is where Edge fail badly. If we do this in Canvas, we just have to do a simple canvas resize and everything works fine.
-
8. Re: Can Edge animation scale/resize like Flash and Canvas
wesleybrownuk Oct 22, 2012 12:06 AM (in response to dominicosavio)I have not got it to work using % either, the problem is that what ever the Edge outputs, it stays at a fixed width no matter what size its viewed on! The only thing I can come up with is to create multiple sized animations and use media queires to load / hide them as needed!
-
9. Re: Can Edge animation scale/resize like Flash and Canvas
elainefinnell Oct 22, 2012 11:01 AM (in response to dominicosavio)Hi, Dominico-
It sounds like you're trying to get your motion paths are resized when you resize the stage, right? This will only work if your elements and paths are also described in percentage format. If your logic can handle it - say, if your array describes a path and you keep a variable that is a multiplier based on the size of the stage - you can use the resize event to reset the multiplier and make it move correctly that way. Otherwise, you'll have pixel-based animation over a responsive stage.
-Elaine
-
10. Re: Can Edge animation scale/resize like Flash and Canvas
elainefinnell Oct 22, 2012 11:01 AM (in response to wesleybrownuk)Wesley-
It's possible you might have set something up incorrectly to get responsive layout working. Can you post your file for us to look at?
Thanks,
-Elaine
-
11. Re: Can Edge animation scale/resize like Flash and Canvas
wesleybrownuk Oct 22, 2012 11:09 AM (in response to elainefinnell)I do, but its still very rough.. http://vane.vanillasoftware.co.uk/
But the text from Edge wont resize (the big text, I do have a media query in place for it though), now im wondering if the project text itself is set to a px size, I bet it is! Ill look into that next
-
12. Re: Can Edge animation scale/resize like Flash and Canvas
dominicosavio Oct 23, 2012 5:17 AM (in response to elainefinnell)Like I said, it works only when the path is not so complex. when the path is so complex it doesn't work. That's why we have to go with Canvas, everything is pixel based, and we just have to scale/resize the Canvas only and everything works perfect.
If Edge wants to replace Flash, it should look into Canvas instead of CSS
-
13. Re: Can Edge animation scale/resize like Flash and Canvas
Dylan Cromwell Nov 1, 2012 6:05 AM (in response to dominicosavio)The best solution I've found is to override the width of your stage div in CSS to auto!important. Then, use media queries to resize your div, using the CSS zoom property (and scale transform for Firefox).
/* Example CSS for an Edge stage div of 800px width */
#MY-EDGE-STAGE-DIV{width:auto!important;max-width:800px;}
@media screen and (min-width: 1px) and (max-width: 480px)
{
#MY-EDGE-STAGE-DIV{zoom:0.5;-moz-transform: scale(0.5);}
}
@media screen and (min-width: 481px) and (max-width: 600px)
{
#MY-EDGE-STAGE-DIV{zoom:0.6;-moz-transform: scale(0.6);}
}
@media screen and (min-width: 601px) and (max-width: 800px)
{
#MY-EDGE-STAGE-DIV{zoom:0.8;-moz-transform: scale(0.8);}
}
@media screen and (min-width: 801px) and (max-width: 50000px)
{
#MY-EDGE-STAGE-DIV{zoom:1;-moz-transform: scale(1);}
}
-
14. Re: Can Edge animation scale/resize like Flash and Canvas
RalphDCW Mar 24, 2013 10:27 AM (in response to elainefinnell)I've got no answers - but there seems to be a lot of confusion on this forum about what dominicosavio is talking about.
If anyone wants to see an example of the way Flash sites can scale to fit the browser window, here is a Flash only site that I created several years ago:
http://www.skippingschool.co.uk
- try changing the browser size and you'll see the whole frame (graphics and images) scales to fit.
Hope this helps!
-
15. Re: Can Edge animation scale/resize like Flash and Canvas
basparmak Apr 6, 2013 3:39 AM (in response to Dylan Cromwell)and how do you use scale with a variable? Fx. I have a variable defined "thisAmount" and I want to apply that for scaling. When I write:
#MY-EDGE-STAGE-DIV{zoom:0.8;-moz-transform: scale(thisAmount);}
it doesn't work.
-
16. Re: Can Edge animation scale/resize like Flash and Canvas
sarhunt Apr 8, 2013 10:14 AM (in response to basparmak)Ah might as well post here as well - I have a tutorial for how to go about this here http://www.youtube.com/watch?feature=player_embedded&v=hrLt0Y9QAY8
Sarah
-
17. Re: Can Edge animation scale/resize like Flash and Canvas
basparmak Apr 8, 2013 11:51 AM (in response to sarhunt)Thanx very much sarhunt.
-
18. Re: Can Edge animation scale/resize like Flash and Canvas
PandaHg Apr 9, 2013 2:42 AM (in response to sarhunt)Thanks Sarhunt, I have been looking for these quite long already!
-
19. Re: Can Edge animation scale/resize like Flash and Canvas
ChipNow May 4, 2014 8:34 AM (in response to dominicosavio)Upgrade to Edge Animate 3. It's in there.




