Losing AS function after a button skin is applied

11-30  Source: Network gathering  Views:0 

I am charged with skinning an existing Flex app that works...
prior to my application of skins. I am a novice at this, so please
forgive code that is sloppy.
There are two types of buttons and they require different
skins. I have put one skin in the button class, and one in the
styleName "bSearch". When skinned with Embedded jpgs, the buttons
(both Button class and bSearch) appear properly skinned, and they
change appropriately up, over, down, etc. I know, therefore, that
the app is accessing the image files and applying them correctly.
However, the application stops and does not call the function
for either the button class or the bSearch styled buttons when the
button is clicked. It works fine with a css that does not use a
style name, only button class.
Does anyone have any idea why skinning will interfere with
please help.
"Podzol" <[email protected]> wrote in
news:ghoodi$2ct$[email protected]..
> Hi Amy, Thanks.
> I wish I could do that, but the project is a
discombobulated assembly of
> things that our programmer made and hasn't sorted yet. I
am a graphics
> person,
> so I am limited in my abilities to work with the code. I
did just install
> the
> Flex 3.2 update last night and now a more specific error
comes up. Perhaps
> this
> will be more informative?
> ArgumentError: Error #2004: One of the parameters is
> at flash.display::Graphics/drawRect()
> at
> mx.skins.halo::HaloBorder/
> ()
> at mx.skins.halo::HaloBorder/updateDisplayList()
> at mx.skins::ProgrammaticSkin/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
Try making a small basic example that exhibits the problem. A
lot of times,
in the process of doing so you'll also find the answer.
Related articles