Can't get color picker tutorial to work

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: xbytor, DavideBarranca, Paul MR

kpt

Can't get color picker tutorial to work

Postby kpt » Mon Oct 31, 2011 2:15 pm

I've just bought Adobe's Flash Builder and started with the samples included in the CS5 SDK.

If I copy ColorPicker.jsx and ColorPicker.swf to the Plug-ins/Panel, everything works fine.

If I try to build the same with Flash Builder, it does not work: the color is not propagated from the Photoshop foreground/background areas to the Flash panel and vice versa. Seems like events are not registered.

I'm using Flex 3.6, have copied the CSXSLibrary-2.0-sdk-3.4.swc to the libs folder before generating the SWF-file.

My ColorPicker.swf is 402246 bytes. Adobe's SWF-file included in the SDK is 400657.

Does anyone know what could be the problem? Being able to register events seems to be the only way of communicating from Javascript back into Action Script...



kpt

Can't get color picker tutorial to work

Postby kpt » Mon Oct 31, 2011 7:30 pm

Hm, just noticed that I got the error message "Design mode: Cannot load CSXSLibrary.swc (reason: ERROR: Load Verify). It may require classes (such as Adobe AIR components) that are not supported by design mode. Check the Eclipse error log for more details."

Can't remember if that was there before - will have to investigate.


Return to “Flex, Flash & CS SDK: General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest