|
|||
|
Hi fellow swfkit users.
I want to make a colorpicker / eyedropper desktop app. using swfkit. Is it possible to get the color of an area of the Windows Desktop using FFish scripting? I only see things like this : FlashPlayer.bgColor in the help. thanks, hope anyone can help me out |
|
|||
|
You must call system API.
The sample shows how to do this. Activating the main window and pressing "CTRL+SHIFT+Z", you can get the desktop color at the cursor position in the trace window. Please test it in SWFKit Pro. |
|
|||
|
Thank you, so it can be done,..i think
Nothing happens in the example you showed me. But, i actually mean that i got an swf with just a litle colorpicker icon. movie size 20x20 In swfkit i select application , transpanrent. I want to use the colorpicker as tool to get the color of a pixel anywhere on the desktop. Can this be done ? thanks |
|
|||
|
Please open the sample in SWFKit Pro and Press F9 to preview it.
1. open the trace window 2. activate the main window 3. press "CTRL+SHIFT+Z" The color value will be displayed in the trace window. |
|
|||
|
WOW It's working in the Trace Window! very cool!
But where can i get that value exported to flash (main Window) is that possible? I guess i have to actionscript it in some way ? here's is my example. It would be great if you can help me again :-\ www.sense4design.com/colorpicker.zip I also mentioned a differnce while dragging the color picker in flash player and when previewed in SWFkit, In flash player it's very smooth and fast, but in SWFkit it does not drag smooth and it stops sometimes and if i move the mouse fast it stops dragging. Many thanks Vidal |
|
|||
|
Hi, you cannot move the color picker out of the flash movie. It can be done by the following method
1. When the left mouse button is pressed, change the cursor to the coloe picker and capture mouse(so even if the cursor is moving out of the flash movie, the app can still be notified with mouse move messages) 2. When the cursor is moving, get the desktop color 3. When the left mouse button is released, stop getting desktop color and restore the cursor to an arrow We will make a sample for you in a few days |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|