Viewers: in countries Watching now:
Drag-and-drop functionality is perfect for any game or interactive web project. Edge Animate makes it easy to implement. Plus, the drag-and-drop interactions you add work even on smartphones and tablets. Learn how to create draggable objects, add target areas where users can drop them, create reactions to those drops, and change content and object positioning accordingly. Author Paul Trani walks you through each step of the process in this project-based course.
Now typically the first thing you want to do in Edge Animate is create or import graphics. Now obviously there are already some graphics in this project. Keep in mind this is an HTML page. And this is great because I can import or create any graphics I want right into Edge Animate. So I'm going to go to File > Import. And all these graphics that I want to import are web based file formats. I can take a look right down here, you'll see some graphic formats, some audio files, even some video files in the 2014 release of Edge Animate CC.
But I'm going to just, quickly pick this body SVG. Selecting that. Clicking open. Here's the body. I actually created it in Illustrator. I can move him right down there, and that's fairly set up but he's obviously missing a head. And for his head, I just want to quickly draw that out using the Ellipse Tool. So this is actually a div that I am creating. But I can quickly draw a big circle, kind of like that, there's my ellipse. Ok? But I'm going to go just beyond just creating it, a simple circle because I want to show you use some advanced functionality.
because right down here, in the Properties panel under Corners, I can click the four corners button right there and then I can change the radius of those corners. So I can change it down to, maybe 35 or 40, to round those even more shallow. So it kind of looks like he has a jaw, and that's what I want. So I can create what I want. I can give it a little bit of color. Making sure it kind of matches, that body there. And this flat look isn't bad. In fact, I'm going to just copy this RGB color right here.
The RGBA, because what I want to do is I actually want to add a radial gradient. So right here, adding a radial gradient, pasting in that color I just created. In fact let's change that a little more. Pasting it in for both of these color stops, and for this top color stop, I can adjust it, like that. Just to give it some depth. There we go I'd say that looks good, perfect. So I have a created graphic, an imported graphic I also want to point out. As you start manipulating and importing elements, you want to keep an eye right down here at this info area.
And it just says SVG files require the proper MIME type on the server. Don't let that scare you, it's really not that big of a deal. There's hardly a browser or server I know of that doesn't render SVGs. Don't let that scare you. But in general since I want to treat this as one unit, what I can do is I can select both of those elements, right-click. And I can convert them to assemble. In fact, I'm going to shut off auto play and I'm going to call this Monster Body. Just like that. Click OK. Now I can move this around and it's basically one unit and has it's own separate timeline.
Just like a lot of these elements. But let's import two more items. So I'm going to go to File > Import. And I'm going to show you how you can create some more efficiency. In fact, I'm going to import this IPNG file. So here's my PNG file. Move that right down here. And in this case I want to duplicate it. So rather than importing, two eyeballs or actually one graphic that has both eyeballs in, it I can duplicate it, and then transform it, in this case I'll just make the horizontal size negative 100, so I basically flipped it just like that.
Okay, so you want to be efficient with your graphics. With both of those selected, I can convert that to a symbol and we'll just call it eyes. There we are. Okay last element. And this is really cool. If you have Illustrator CC, what you can do is you can copy and paste from Illustrator into Edge Animate and that's what I'm going to do right now. Here's my Illustrator file. I'm going to just select this web right here. Copy. Minimize Illustrator. Go back into Edge Animate. In this case I'm actually going to double-click on the background because that's where I want to paste it into.
And we'll do Edit > Paste. Right here, it actually does give you a visual, but since it's white it's kind of hard to see but I can say web. If you don't have Illustrator you can always just import that web.svg that's in the assets folder, 'Kay? Paste. Reposition, maybe resize. Get this looking the way I want it to look. Nice and elegant. Right, up, there. Perfect. This is setup. I have all my graphics in place. Really my next step for this particular project is to animate some of these elements
There are currently no FAQs about Creating Drag-and-Drop Functionality with Edge Animate.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.