Welcome To MyFreeWebTemplates.info Flash Tutorials Area - Read _droptarget property
Drag blue rectangle over the yellow. If you drop the blue one on the yellow, the script will align blue rectangle inside the yellow.
NOTE: Minimum Flash Designer version 5.0.17 (verify revision number under "Help" > "About...", download update if required)
Follow the steps below:
Launch Flash Designer and choose "blank".
Set the frame delay to "Stop" ("Frame" > "Frame Delay").
Size the frame at about 300x300. ("Frame" > "Frame Size")
Create 1 small and 1 larger shapes with the rectangle tool and give them different fill colors.
Select smaller shape and click Edit > Convert to Sprite.
Right-click it and click "Placement Properties".
Check the "Action-Script Target" checkbox and click OK.
Click the other shape and repeat the process.
Smaller shape (blue) should appear as "Sprite3" and larger (yellow) as "Sprite4". If necessary rename the sprite: select it and choose "Item" > "Placement Properties"
Choose "Frame" > "ActionScript" and paste the code:
Welcome to MyFreeWebTemplates.info we have a collection of Free Templates available for download created by designers from around the globe. Our collection is growing daily so be sure to check back often for more Free Templates. If you can't find a Free Template that suits your needs, we may offer you many professional web templates and flash web templates.
Website templates are pre-made website designs that you can customize and personalize to suit your company's image.You can save time and money by using website templates for your design project.