Official website for Web Designer - defining the internet through beautiful design
FOLLOW US ON:
Author: Steve Jenkins
3rd February 2010

Flash Week Day #3 – Gesture-based navigation

19 Add the drawZone

19 Add the drawZone
Flash Week Day #3 - Gesture-based navigation
You should now be working on the main stage, but if for some reason you’re not, make sure you head back there. Next you will need to add a new layer and from the library drag in the symbol ‘drawZone’. Position this at 0 pixels in both the x and y axis and name the instance ‘drawZone_ mc’. Now add another layer and select the Rectangle tool from the toolbar.

20 Add a rectangle
Flash Week Day #3 - Gesture-based navigation
Make sure the object drawing icon is selected in the toolbar, then copy the corner settings from the screenshot and add a rectangle. Add a gradient to it as shown and add another rectangle with a highlight gradient. Select these rectangles and choose Modify> Convert to Symbol. Name the symbol ‘badge’ and make it a Movie Clip.

21 Finishing touches
step-21
In the Properties panel add a drop shadow filter to the rectangle and change the colour style to ‘alpha’ with a value of 90%. Switch to the Text tool and add an icon using the font Webdings, then add a name for your project next to this. Now save your project before you add the ActionScript.

22 Copy the ActionScript
Flash Week Day #3 - Gesture-based navigation
Minimise Flash and with your operating system, browse the cover CD to the tutorial folder and in the start folder drag the file ‘GestureNav.AS’ into the folder that you unzipped in step one. Once you have done this you can return to Flash again so that you can point the Flash file to read the ActionScript file.

23 Publish and test
Flash Week Day #3 - Gesture-based navigation
Make sure that nothing is selected on the stage, then look over to the Properties panel. Click inside the class field and add the class ‘GestureNav’. Notice that you do not need to have the ‘.AS’ on the end. Now press Ctrl/Cmd+Enter to test the project. You should be able to draw arrows to navigate around the photo gallery.

Pages: 1 2 3

  • Tell a Friend
  • Follow our Twitter to find out about all the latest web development, news, reviews, previews, interviews, features and a whole more.

    5 Comments »

    • henry said:

      How do you get the files for this tutorial (images, GestureNav.AS etc…) ?

    • henry said:

      I found them using your search, thanks

    • toM said:

      where can I find the source files?

    • Brent said:

      I’m getting a problem with the matchHandler function at runtime.

    • Sarah said:

      where can I find the source files?

    What's your opinion?

    Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

    Be nice. Keep it clean. Stay on topic. No spam.

    * Required fields