Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
In this movie I provide you some additional tips for working with behaviors in Director 11. Now behaviors included with Director do have brief descriptions and you'll want to read these descriptions ot learn about the various behaviors but their alittle bit hidden and round about to get them. You'll want to use the Behavior Inspector to display the information about a behavior that's attached to a Sprite or a frame. So here in the Library Panel or the Code:Library you don't get these descriptions, you only get the descriptions if you've already applied the behavior to a Sprite or a frame. So go ahead and click on the Sprite or the frame that does contain the behavior and then click on the Behavior Inspector here and then you get notice, a short description of that behavior as well as tips on using the behavior. Notice that there's for this particular Sprite a range of actually four behaviors attached to it, so click on the behavior and then you get the description underneath. You may need to expand the panel that shows you these descriptions, notice that if you don't have the Panel expanded you won't see these descriptions, so their pretty hidden there but you'll also find these descriptions in the Help area. So what I recommend that you do is go ahead and drag and drop a behavior that you're interested in learning more about onto a Sprite or a frame and then open up the Behavior Inspector, expand the Behavior Inspector and then read through the description. Now you can attach as many behaviors as you want to a Sprite but you can attach only one behavior to a frame. If you do attach a behavior to a frame that already has a behavior the new behavior replaces the old one, you'll attach a behavior to multiple Sprites by holding down the Shift Key, Select all the Sprites on the Stage, open up your Code:Library and then go ahead and drage and drop that behavior to all those selected Sprites, choose your parameters. Click OK. Now you'll notice, if done correctly all of those Sprites now avoid my mouse since I attached the Avoid Mouse behavior to them. Notice that also the behavior should be listed there in the list of behaviors for that Sprite, Avoid Mouse is on that one, that one to, so that one did work. Now you may have noticed that I've been using both behaviors attached to Sprites and also behaviors attached to frames. Frame based behavior are best suited to actions that affect the entire movie, for example you might attach a loop until Media in Frame is Available behavior, this will make the movie wait while the media for a particular frame downloads. When you do attach a behavior and the parameters dialog box appears, let's go ahead and demonstrate that by opening up my code library and let's drag a Drag and Toss behavior under graphics Sprite. Notice that there's a dialog box, now the parameters that you specify in these dialog boxes apply only to the behavior as its attached to the current Sprite or frame. These settings do not affect the way the behavior works when attached elsewhere. That's a very important consideration and that way you can apply the same behavior to multiple Sprites and then adjust the parameters for each one and remember that you can use the Behavior Inspector to change the parameters at any time for the attached behavior just by double clicking on it. So for example there's the parameters for the Avoid Mouse and I can change the distance, speed, active at start and limited to Stage area settings. Likewise I can double click on the cursor change and change the cursor icon that appears when I rollover that Sprite. Another tip is that once you attach a behavior to a Sprite or frame, Director copies the behavior from the behavior library to the currently selected cast in the movie. This means you don't not have to include the behavior library when you distribute the movie. This means for example that notice in this particular Director file I have been applying quite a number behaviors to it, you'll see these behaviors here as separate cast members in the Cast Window. Most of these cast members here at the bottom of the Cast Window are indeed behaviors, color cycle, rotate, pixelate, Jump Forward button, Jump to Marker button and so on. And one last tip is that if you do want to learn, start to learn how to create your own behaviors notice that there is an icon right here, if you select the behavior in the Behavior Inspector click on the Script window and you can actually see the Lingo script that comprises the behavior. Notice that they're quite complex and involved, that's really why I like these behaviors is that they are very powerful yet they are very easy to use. So this is a very good segway now to the next section of this tutorial which is all about Director's internal scripting language, Lingo. So we now move onto this section of the tutorial where I'll give you a review of Lingo fundamentals, talk about handlers and functions, global variables, script types and much, much more.
| Course: | Adobe Director 11 |
| Author: | James Gonzalez |
| SKU: | 33901 |
| ISBN: | 1-934743-84-4 |
| Release Date: | 2008-07-31 |
| Duration: | 9.5 hrs / 107 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |