First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Becky Fryer | Website: http://www.beckysg1.34sp.com/

First create your window.

The first step is to draw a simple rectangle shape on the main stage to the dimensions that you wish your window to be. Select the rectangle and click F8, save it as a movie clip and give it a relevant name "window" will do, also give it an instance name in the Instance dialogue box [Ctrl + I] once again make it relevant, like "window_mc" for example.

Now we'll make the window's objects.

In the window's movie clip level select the rectangle and click F8 again, call this object "screen" and save as a movie clip, remember to give this object an Instance name [Ctrl + I] something like "screen_mc".

Stay in the window's movie clip level and create a new layer calling it "dragbar layer" then create a rectangle object that will serve as your top bar to your window. make sure the rectangle has the same width as your window object and a height to suit your tastes. Select this object and press F8, call it "dragbar" save as a movie clip and give it a relevant instance name like "dragbar_mc".

Go to the dragbar's movie clip level and select the object click F8 call it "dragbar_button" save as a button object. Within the dragbar's level set the dragbar's x,y coordinates to 0, then go to the window's level and reorient the dragbar movie clip to the x,y coordinates to 0. Do the same for the screen object's level and again reorient it's x,y in the windows level.

Orientation of the objects is crucial as the objects must scale to the same coordinate points.

In the window's level create another layer calling it "resizer layer" and draw a right-angle triangle that will go over the bottom right hand corner of the screen object, keep this object small about 20 x 20 pixels. Select the triangle and press F8 call it "resizer" and save as movie clip. It isn't necessary to give this object an instance name as you won't be calling it directly in the actionscript.

Go to the resizer's level, select the object and press F8 call this object "resizer_button" and save as a button. Set the x,y coordinates for the object so that the right hand corner of the object is at the crosshairs - the easiest way to do this is to enter the coordinates of the width and height of the object into the x and y coordinates respectively, and place a minus sign in front of the values (i.e. if the object is 20 pixels wide and 20 pixels high then the x coordinates is -20 and the y coordinates is also -20). Then go into the window's movie clip level and reposition the resizer object to that it's over the bottom right hand corner of the screen object.

» Level Basic

Added: 2002-02-28
Rating: 8 Votes: 23
(10 being the highest)
» Author
FK ID: BeckySG1 Name: Becky Fryer Age: n.o.y.b. Interests: Flash, Photoshop, Digital & Chemical Photgraphy, CorelDraw, Dreamweaver, Web-Site design, Art & Design.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.