This article will Describe how to reveal a picture behind the wall using Flash in Nokia 5800xm & N97.
Please follow the steps below:
1. Open Adobe Flash
2. Select Flash File (Mobile)
3.Then import any pic in library
4. Add it to the current frame
5. Then Right click on the picture to make it a movie clip
6. After Making it a movie clip right click to select actions in actions type the code given below:
onClipEvent(load)
{
_root.createEmptyMovieClip('square',0);
function drawSquare()
{
x = _root._xmouse;
y = _root._ymouse;
with(_root.square)
{
''' clear();'''
moveTo(x-50,y-50);
beginFill(0x000088)
lineTo(x+50,y-50);
lineTo(x+50,y+50);
lineTo(x-50,y+50);
endFill();
}
}
this.setMask (_root.square)
}
onClipEvent(mouseMove)
{
drawSquare();
updateAfterEvent();
}
7. Then export the movie,you can see dragging your finger across the screen reveal the picture behind it.
8.I had done square shape to reveal you can try other too..
Note:
WIth clear statement in code the square is not drawn its drawn for a instance it will show the pic if touched when the finger is taken it closes automatically
Without Clear the Drawn square is not erased
you can download the package from sirajsoft.com
--Apacheking 11:24, 4 July 2009 (EEST)A.Siraj Hassan Mohideen
No related wiki articles found