Create a zoom image into a flash movie navigable by keyboard

Today I am programmer and I have prepared a nice Actionscript keyboard to navigate and zoom in an image.

1. Create a layer and the matter mmagine to use.

2. Press the F8 key and convert the image into movie clips.

3. Assign the instance name 'image'

4. Add a new layer, create a rectangle and convert it into a button.

5. Double click on the button and drag the contents of the frame in the frame and hold UP. The button will work perfectly even if not visible.

6. Place the button outside the area of the document to associate following a .

7. Select the Clear button and type in the action panel:

on (keyPress "+") {
if (_root.immagine._xscale <150) {
setProperty (_root.immagine, _xscale, _root.immagine._xscale +3);
setProperty (_root.immagine, _yscale, _root.immagine._yscale +3);
}
}
on (keyPress "-") {
if (_root.immagine._xscale> 50) {
setProperty (_root.immagine, _xscale, _root.immagine._xscale-3);
setProperty (_root.immagine, _yscale, _root.immagine._yscale-3);
}
}
on (keyPress "+") {
if (_root.immagine._yscale <150) {
setProperty (_root.immagine, _xscale, _root.immagine._xscale +3);
setProperty (_root.immagine, _yscale, _root.immagine._yscale +3);
}
}
on (keyPress "-") {
if (_root.immagine._yscale> 50) {

setProperty (_root.immagine, _xscale, _root.immagine._xscale-3);
setProperty (_root.immagine, _yscale, _root.immagine._yscale-3);
}
}
on (keyPress "<Down>") {
if (_root.immagine._y <400) {
setProperty (_root.immagine, _y, _root.immagine._y +3);
}
}
on (keyPress "<Up>") {
if (_root.immagine._y> -400) {
setProperty (_root.immagine, _y, _root.immagine._y-3);
}
}
on (keyPress "<Right>") {
if (_root.immagine._x <450) {
setProperty (_root.immagine, _x, _root.immagine._x +3);
}
}
on (keyPress "<Left>") {
if (_root.immagine._x> -450) {
setProperty (_root.immagine, _x, _root.immagine._x-3);
}
}

8. Create a new layer above the map and rename it 'mask'

9. Draw a rectangle.

10. Click on the layer mask with the right mouse button, and select Mask from the context menu.

11. Finally, providing an additional level for the background to be placed under all the others that will contain directions for use of the movie.

I hope to be helpful for any problem please feel free to comment. Thanks icon smile Creare lo zoom di un immagine in un filmato flash navigabile da tastiera




Similar Articles

Comments

There are no comments.

Leave a comment.

(required)

(required)