IPB
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Shake Controlled Wallpaper Tutorial, Sony Ericsson K850i and W910i compatible
shoutout
post Feb 9 2008, 12:32 PM
Post #1





Group: Super Members
Posts: 5630
Joined: 19-August 06
Member No.: 555820



Shake (Shake it) controlled wallpaper (Sony Ericsson K850i and W910i compatible)
wallpapers that changes image to the next one when you shake your phone

tools needed Flash CS3 Professional
Used script

CODE
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.

source1.zip
result1.zip

More info for source file downloaders:
To add your own images. They must be 240x320, 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!

Tutorial by
www.trekker-reactor

How to change the theme file to include the swf wallpaper by vinnieza:

(IMG:http://img182.imageshack.us/img182/5419/swftutorialuj9.jpg)

This post has been edited by vinnieza: Apr 6 2008, 06:09 AM
Attached File(s)
Attached File  result1.zip ( 270.79K ) Number of downloads: 469
 
Go to the top of the page
 
+Quote Post
vinnieza
post Feb 9 2008, 12:56 PM
Post #2



Group Icon

Group: Admin Team
Posts: 12984
Joined: 23-October 03
From: UK
Member No.: 850



Cool, i've seen this in a theme of gseth's :)
Go to the top of the page
 
+Quote Post
shoutout
post Feb 9 2008, 01:04 PM
Post #3





Group: Super Members
Posts: 5630
Joined: 19-August 06
Member No.: 555820



they make great themes hope m9 se theme makers will take up the Challenge
Go to the top of the page
 
+Quote Post
vinnieza
post Feb 18 2008, 04:00 PM
Post #4



Group Icon

Group: Admin Team
Posts: 12984
Joined: 23-October 03
From: UK
Member No.: 850



Humm, is it possible to view the source code as just text? I don't have flash so can't view fla files. Just wondering if we can write, like in java, class files (basic text files). Guess not as you import images into the project and it generates an fla file as it's source code? :(
Go to the top of the page
 
+Quote Post
CrystalEYE
post Mar 11 2008, 03:49 AM
Post #5



Group Icon

Group: Gifted Themer
Posts: 1814
Joined: 21-February 05
From: Germany
Member No.: 95794



Have you seen what this guy LCARSD is doing by using the phones accelerometer?

Incredible!

Look here:
LCARSD`s YouTube Videos

BTW: I think we should have an "Shake it-theme" button in our gallery, too. Like eseth.net has got.

Although I think Shoutout and Tyronne are the only persons that uploaded them so far.
Go to the top of the page
 
+Quote Post
matintatu
post Mar 15 2008, 11:56 PM
Post #6





Group: Partial Members
Posts: 1
Joined: 2-October 06
Member No.: 661532



dos it work on W580 too?????
Go to the top of the page
 
+Quote Post
vinnieza
post Mar 16 2008, 06:20 AM
Post #7



Group Icon

Group: Admin Team
Posts: 12984
Joined: 23-October 03
From: UK
Member No.: 850



The W580 does have an accelerometer. However, my friend tried the K850 themes on his phone and it did not work. So If someone specifically makes a theme for that phone then yes, but the k850 versions...no
Go to the top of the page
 
+Quote Post
megican
post Apr 1 2008, 02:14 PM
Post #8





Group: Partial Members
Posts: 1
Joined: 1-April 08
Member No.: 2937221



thanks
Go to the top of the page
 
+Quote Post
kashif85
post Apr 2 2008, 03:24 AM
Post #9



Group Icon

Group: Certified Designer
Posts: 1625
Joined: 21-July 07
From: Pakistan(Faisalabad)
Member No.: 1669603



QUOTE(shoutout @ Feb 9 2008, 12:32 PM)
Shake (Shake it) controlled wallpaper (Sony Ericsson K850i and W910i compatible)
wallpapers that changes image to the next one when you shake your phone

tools needed Flash CS3 Professional
Used script

CODE
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.

source1.zip
result1.zip

More info for source file downloaders:
To add your own images. They must be 240x320, 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!

Tutorial by
www.trekker-reactor
[right][snapback]472934[/snapback][/right]




Nice work Shoutout
Go to the top of the page
 
+Quote Post
OwnK850i
post Jul 13 2008, 07:42 AM
Post #10





Group: Partial Members
Posts: 2
Joined: 13-July 08
Member No.: 3221114



[COLOR=blue][B]I have a K850i :clap2: :clap2:
Go to the top of the page
 
+Quote Post
Dinx
post Jul 13 2008, 03:42 PM
Post #11





Group: Partial Members
Posts: 7
Joined: 13-July 08
Member No.: 3222251



any chance shoutout you could save this file so it works for flash mx 6.0 I couldn't open this file
Go to the top of the page
 
+Quote Post
solankiankit16
post Jul 21 2008, 12:21 AM
Post #12





Group: Members
Posts: 132
Joined: 13-March 07
Member No.: 1161652



Cool stuff
Go to the top of the page
 
+Quote Post
moodforever
post Oct 13 2008, 12:25 AM
Post #13





Group: Partial Members
Posts: 28
Joined: 9-October 08
Member No.: 3465315



Good man! Thanks a lot!
Go to the top of the page
 
+Quote Post
bnequick
post Apr 5 2009, 01:47 AM
Post #14





Group: Partial Members
Posts: 1
Joined: 2-April 09
Member No.: 4861650



can anyone upload a .fla file to edit
Go to the top of the page
 
+Quote Post
milaneta
post Apr 13 2009, 03:07 AM
Post #15





Group: Partial Members
Posts: 3
Joined: 6-October 06
Member No.: 671529



tnx "shoutout"
but its best to use sony ericsson theme creator and attach swf flash file to your theme.first try standard way.
and 7Zip is one of the best program. extract any file like1 .thm, .jar, .nth(nokia s40 theme file) and any file with pk zip coded
tnx man
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 24th October 2014 - 12:01 PM