That's probably it. If I force my way through the errors and then the app runs perfectly after that, even if I change the styles again.
Now I'm trying to figure out which buttons are causing the problem, but I can't get the debugger to step into the code at the call stack location. It always says source not found, even if I set the source path. Is there a reason for this? Thanks again, Shaun P.S. It appears that using the backward compatibility flag resolves this issue for me, but I can't use it due to the bug with datagridheaders and the backward compatibility flag. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Could be timing where the Button doesn't have a valid size yet. > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Shaun > Sent: Monday, August 27, 2007 9:10 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Flex 3 Runtime Error > > > > I'm trying to get a flex 2 app I wrote working as an AIR app, but I'm > getting an error that appears to occur when the styles are changed > for buttons in my app: > > I'm hoping someone else has run into this issue (and resolved it :)) > or have an idea of what might be causing it. > > Many thanks, > Shaun > > The full call stack: > > ArgumentError: Error #2004: One of the parameters is invalid. > at flash.display::Graphics/drawRoundRect() > at > mx.skins::ProgrammaticSkin/mx.skins:ProgrammaticSkin::drawRoundRect () > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:74 > 3] > at > mx.skins.halo::ButtonSkin/mx.skins.halo:ButtonSkin::updateDisplayList > ()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:215 > ] > at mx.skins::ProgrammaticSkin/validateDisplayList() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:41 > 9] > at mx.skins::ProgrammaticSkin/validateNow() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:50 > 7] > at > mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk > <http://www.adobe.com/2006/flex/mx/internal::viewSk> > inForPhase()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1684] > at > mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk > <http://www.adobe.com/2006/flex/mx/internal::viewSk> > in()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1616] > at mx.controls::Button/styleChanged()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1550] > at mx.core::UIComponent/notifyStyleChangeInChildren() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7361] > at mx.core::Container/mx.core:Container::commitProperties() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\Container.as:2610] > at mx.core::UIComponent/validateProperties() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5386] > at mx.managers::LayoutManager/validateClient() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:78 > 9] > at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5304] > at > mx.core::UIComponent/mx.core:UIComponent::creationCompleteHandler() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8128] > at > flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv > entFunction() > at flash.events::EventDispatcher/dispatchEvent()[C:\Documents > and Settings\acrorel\Local Settings\Temp\aslibc-28157 > \EventDispatcher.as:209] > at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8530] > at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:1097] > at > mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti > ation()[E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:69 > 6] > at Function/http://adobe.com/AS3/2006/builtin::apply > <http://adobe.com/AS3/2006/builtin::apply> () > at > mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8102] > at > mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() > [E:\dev\flex_3_beta1 > \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8045] >