Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2004, 02:00 PM
Junior Member
 
Join Date: Sep 2004
Posts: 4
Send a message via MSN to vidal
Default Flash Colorpicker / Eyedropper

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
Reply With Quote
  #2 (permalink)  
Old 09-10-2004, 06:40 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Flash Colorpicker / Eyedropper

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.
Reply With Quote
  #3 (permalink)  
Old 09-10-2004, 07:48 AM
Junior Member
 
Join Date: Sep 2004
Posts: 4
Send a message via MSN to vidal
Default Re:Flash Colorpicker / Eyedropper

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
Reply With Quote
  #4 (permalink)  
Old 09-10-2004, 08:07 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Flash Colorpicker / Eyedropper

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.

Reply With Quote
  #5 (permalink)  
Old 09-10-2004, 01:49 PM
Junior Member
 
Join Date: Sep 2004
Posts: 4
Send a message via MSN to vidal
Default Re:Flash Colorpicker / Eyedropper

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
Reply With Quote
  #6 (permalink)  
Old 09-14-2004, 08:01 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Flash Colorpicker / Eyedropper

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
Reply With Quote
  #7 (permalink)  
Old 09-15-2004, 07:49 PM
Junior Member
 
Join Date: Sep 2004
Posts: 4
Send a message via MSN to vidal
Default Re:Flash Colorpicker / Eyedropper

Ok many thanks!

It will be great if you could send me a sample here, cause i havný figured it out yet.

Vidal
Reply With Quote
  #8 (permalink)  
Old 09-17-2004, 02:33 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Flash Colorpicker / Eyedropper

Sorry, the methods I listed cannot work. However, we made it to work in another way.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:40 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.