How To Make Shake Controlled Wallpaper(W910 & K850)

Published: Jan 18th, 2008 | Author: sefanboy 3 Comments




Parano!d, lasyk forum member has post a great tutorial to make Shake Controlled Wallpaper for Sony Ericsson W910 and K850. You can read completed tutorial here

Used script:
Quote:

fscommand2(“ExtendBacklightDuration”, 30);
fscommand2(“FullScreen”);
onEnterFrame = function () {
loadVariables(“accelerometer://data”, _root);
if (accX>1500) {
imager.play();
}
}
displayDevice = substring(eval(“/:$version”), 0, 2) == “FL” ? “phone” : “pc”;
if (displayDevice == “phone”) {nextButton._visible=false;}

Code explanation:
As every other animation that goes on a mobile phone this one has Extend Backlight Duration (to 30 seconds) and Full Screen fscommands. onEnterFrame makes sure that the following function will be repeated all the time though the movie has only one frame. The function is to read accelerometer data, in this case only the accX is of interest. The maximum it can react with Earth’s gravity is 990. When shaking the phone it can reach over 2000 but I find 1500 enough to initiate the wallpaper change which happens with simple play function for the “imager”. Imager is a movie clip that changes the picture to next one when it plays. It can be animated whatever way you like. The last 2 lines of the script are for those who want to preview the animation on PC. It unloads the next button if animation is open on the phone; on PC that button is visible and can be used.

Preview:
Shake controlled wallpaper v2:
http://www.youtube.com/watch?v=5l05kI205t4

More info for source file downloaders:
I suppose you will want to add your own images. They must be 240×320, jpg, png, or gif.
To add them open the source file “Shake control.fla”, import your images (File, Import > Import to Library…). Double click the movie clip “Holder (add images here)”. Now you can delete all frames if you don’t want these images in the movie. What you have to do is add enough frames (blank keyframes) and put your images in them (coordinates of each image have to be (0,0)). Make sure that the first frame and the last frame have the same image. Frame 1 should have stop(); script in it and the last frame should have gotoAndStop(1); script in it. Otherwise the images won’t loop. Now close that movie clip and publish the movie. Enjoy!

search terms: shake controlled wallpaper v2 (26), w910 shake themes (25), how to make shake it themes (22), how to make shake it theme (20), sony ericsson w910 shake themes (18), shake control wallpaper (17), how to make a shake it theme (14), w910 shake it themes (13), how to make shake themes (12), shake controlled wallpaper (12)
3 Comments to this entry | Add Comment
1

from where can i download those shake control applications, the one for changing pictures b shaking the phone, thanks

2

search for “shake it themes” in this blog

3

Excelente post! Agora só falta mesmo arranjar um post igual mas, para os menus em flash ! :D

Add Comment
Name (required)
E-mail address (required, will not be published)
Website