New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
twolf
Old
(Last edited by twolf; 26th October 2009 at 02:50 PM.)
#1  
twolf's Avatar
Senior Member - OP
Thanks Meter 7
Posts: 2,669
Join Date: Mar 2006
Location: LX
Default FlashLight v7 FINAL - Multi-lamp in flash (4/2/2009)



I wanted to make a flashlight in flash for some time now... The idea to use the pocket as a light is very useful and sometimes even necessary, either not to wake up someone, see in some dark stairs, getting late to the movies, etc etc...

But since in reality its just a blank image on the screen, I never worried about it, all I needed was a lighter theme on the today to use it as a light for most cases.

Recently I "saw the light" with this great example, that has many more practical uses:
http://forum.xda-developers.com/showthread.php?t=456908

The software on the link above shows a application that uses the camera flash on WM machines, but most Pocket PC's don't have that hardware.
So I though of making something similar, but only for the screen, for all those that don't have a camera flash, but have Adobe flash! ^_º

The idea of this software is not only a quick flashlight (that you can have on a hardware key or icon, so that you have an easy access), but also many other uses.

So I made a semi-hidden touchscreen menu that gives access to all these light applications:
- LAMP, a simple white screen.
- Strobe, to call for attention (or hypnotize someone º_o).
- Fader, with fade-in/fade-out light, like a lighthouse.
- SOS, that spells s.o.s in morse code.
- Disco, random bright colorful lights, like a disco.
- PEN, in which you can draw temporary light forms.
- Starlight animation (heavy on CPU).
- LOVELYGHT, just a visual test, also good for the loved ones.
- LIGHTER , for fun on a concert, as you can see on the picture.
- Match, pretty much like lighter.
- Candle, pretty much like match, with a twist.
- Eye of mordor, for geeks like me.
- LightSaber with sounds. Press top, middle or bottom of the screen for diferent effects, or use your keypad.
- Android boot animation
- Knight rider fade.
- Evil eyes on the dark.
- Firefly, click for interaction.
- Bicycle light, click to brake.
- Customize, only for some models that dont light up on the opening, still with bugs.
- Exit, obviously to leave the application, you can also use the ENTER (in the middle of the keypad) at any moment.

To use:
As you enter the app, it places you pocket's screen on full bright mode and removes any fade-out and stand-by option. As you exit it restores your previous settings.
If you click on the screen while on the LAMP area, it changes between 8 colors.
If you click on the FADER screen, it changes between 5 colors.
If you click on the SOS screen, it allows you to create your own morse code, just click and hold your finger on the screen for it to remain white (still with bugs), if you don't click it for a while it goes back to the automatic SOS.

To use you just need FLASH 7, place the EXE anywhere on your pocket pc and create a shortcut to the start menu (you can use Resco Explorer for that).

For non-VGA/QVGA screens:
Unfortunatly the tool I use to make the EXE files only allows qvga and vga screen sizes... If you know another SWF>EXE tool that fixes this, let me know.

New version 4:
Interactive lighter (open/close on click), with sound.
SOS interactivity works now (just need to drag the finger across the screen to make it white).
Better exit (for flash lite 3, not tested).



New version 5:

Fixed a exit sound bug
Added a "show taskbar" on exit, for those ppl having problems exiting the app.
Added android boot animation
Added star light animation (heavy on CPU).
Added LightSaber with sounds. Press top, middle or bottom of the screen for diferent effects, or use your keypad.

Was going to add a christmas music to the star light area, but it sounded corny.



---//---

Final version 7 (v6 was mainly bugfixes):
- More stuff
- New customizable regkeys values (if you need them).
- Source code released (flash 8 FLA)

Compatibility: WM5/6 (it also works on WM2003, but I dont know if it places the screen on maximum brightness)
Tested in: HTC Touch Dual
Attached Files
File Type: zip FlashLIGHT7.zip - [Click for QR Code] (284.0 KB, 17796 views)
File Type: zip sourcecode.zip - [Click for QR Code] (604.1 KB, 4491 views)
 
Mikulec
Old
#2  
Mikulec's Avatar
Senior Member
Thanks Meter 102
Posts: 2,627
Join Date: Oct 2007
Location: Sereď
I will try it when I get home. It looks very interesting.

Thanks.
HTC TYTN II --> HTC HD2 --> HTC Desire --> Samsung Galaxy S --> Samsung Galaxy S II --> Samsung Galaxy S III
 
nir36
Old
#3  
nir36's Avatar
Retired Moderator
Thanks Meter 207
Posts: 3,844
Join Date: Dec 2007
Location: Jerusalem
lol. so cool
 
Genius2000
Old
(Last edited by Genius2000; 12th December 2008 at 12:00 PM.)
#4  
Genius2000's Avatar
Senior Member
Thanks Meter 0
Posts: 443
Join Date: Apr 2008
Location: Italy
Thanks for sharing, but in my diamond doesn't work, I get an error related to a missed certificate.

EDIT: I made a mistake creating the shortcut, now works fine, very nice!

Ciao, Andrea
************************************
* HTC P3700 Diamond
* Diamond - ROM ETO.X 2.1 ITA
* Radio: 1.17.25.9
************************************
 
twolf
Old
#5  
twolf's Avatar
Senior Member - OP
Thanks Meter 7
Posts: 2,669
Join Date: Mar 2006
Location: LX
Quote:
Originally Posted by Genius2000 View Post
Thanks for sharing, but in my diamond doesn't work, I get an error related to a missed certificate.

Ciao, Andrea
Do you have flash 7?
Can you post a printscreen of the error?
I am no longer developing for the Windows Mobile, sorry...
-----------------------------------
My apps & skins | My website: http://TWolf.sytes.net
 
tito12
Old
(Last edited by tito12; 12th December 2008 at 12:07 PM.)
#6  
tito12's Avatar
Senior Member
Thanks Meter 83
Posts: 1,536
Join Date: Feb 2008
Location: Tel Aviv
Default Thanks

Twolf
Great and funny app!!! Especially the lighter to incite people to quit smoking
Now thinking of it, there's endless opportunities, ppl are going to ask you personnal mods for the rest of your life !!!!
Htc Uk Wifi Flyer - HC 3.2.1
iPhone 4S - IOS 5.0.1 JB
Htc Touch Elfin - (retired) WM 6.5.5 - Onyx 6 rom

 
sathya
Old
#7  
Senior Member
Thanks Meter 1
Posts: 122
Join Date: Sep 2006
AWESOME APPLICATION!!!!!!

Quote:
As you enter the app, it places you pocket's screen on full bright mode and removes any fade-out and stand-by option. As you exit it restores your previous settings.
This is not working for me.When i open the application the backlight remains the same...It dosent change..I have HTC P3400i running on WM6 n i have flash 7 installed.
Can u plz make the option work...I want my backlight to be max when i open this app n when i close it....my backlight should be back to normal.
 
twolf
Old
(Last edited by twolf; 12th December 2008 at 12:30 PM.)
#8  
twolf's Avatar
Senior Member - OP
Thanks Meter 7
Posts: 2,669
Join Date: Mar 2006
Location: LX
Quote:
Originally Posted by tito12 View Post
Twolf
Great and funny app!!! Especially the lighter to incite people to quit smoking
I see what you ment, lol....




Quote:
Originally Posted by sathya View Post
This is not working for me.When i open the application the backlight remains the same...It dosent change..I have HTC P3400i running on WM6 n i have flash 7 installed.
Can u plz make the option work...I want my backlight to be max when i open this app n when i close it....my backlight should be back to normal.
Hmmm, is it not already in the max brightess?
Can you export and send me your regkey settings in...
HKEY_CURRENT_USER\ControlPanel\Backlight
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\Timeouts
I am no longer developing for the Windows Mobile, sorry...
-----------------------------------
My apps & skins | My website: http://TWolf.sytes.net
 
Genius2000
Old
#9  
Genius2000's Avatar
Senior Member
Thanks Meter 0
Posts: 443
Join Date: Apr 2008
Location: Italy
Quote:
Originally Posted by twolf View Post
Do you have flash 7?
Can you post a printscreen of the error?
Solved thanks, I made a mistake creating the shortcut

Ciao, Andrea
************************************
* HTC P3700 Diamond
* Diamond - ROM ETO.X 2.1 ITA
* Radio: 1.17.25.9
************************************
 
tito12
Old
#10  
tito12's Avatar
Senior Member
Thanks Meter 83
Posts: 1,536
Join Date: Feb 2008
Location: Tel Aviv
Quote:
Originally Posted by twolf View Post
I see what you ment, lol....






Hmmm, is it not already in the max brightess?
Can you export and send me your regkey settings in...
HKEY_CURRENT_USER\ControlPanel\Backlight
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Power\Timeouts
You read my mind!!!! I think your strobe is guilty
BTW same prob as sathia
Htc Uk Wifi Flyer - HC 3.2.1
iPhone 4S - IOS 5.0.1 JB
Htc Touch Elfin - (retired) WM 6.5.5 - Onyx 6 rom



XDA PORTAL POSTS

Responses From Ubuntu Pouring Into Ubuntu Touch Q&A Thread

Ubuntu has become the most successful *nix distribution for a number of reasons, … more

Heimdall Suite 1.4.0 Released

The release version of Heimdall Suite 1.4.0 is now available after an epic wait. You may remember hearing about … more

A Guide to Paid Work on XDA-Developers

For the longest time, XDA has been a bastion, a pillar in the world of development. This is … more