I am coverting a Flex3 project to Flex 4 by going line by line and 
converting a majority of it from Halo to Spark components. Problem is, 
seems like everytime I go to test a module or component, I am getting 
this: ArgumentError: Error #2004: One of the parameters is invalid.

First, if Adobe is reading, this error is completely useless. There is 
no hint on WHAT has the invalid parameter. Googling the issue comes up 
with a dozen or so people with 'the answer' which does not pertain to my 
project at all. After commenting out almost everything I seem to find 
that Buttons are the issue (after reading all the error jargon under the 
error code). That worked for one of my views, however I commented out 
all the buttons in a new view and it threw the error still. Anyone out 
there found a good way to find out what has an invalid parameter? Here 
is the full error.

ArgumentError: Error #2004: One of the parameters is invalid.
     at flash.display::Graphics/drawRoundRect()
     at 
spark.primitives::Rect/draw()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\Rect.as:459]
     at 
spark.primitives.supportClasses::StrokedElement/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\StrokedElement.as:143]
     at 
spark.primitives.supportClasses::GraphicElement/http://www.adobe.com/2006/flex/mx/internal::doUpdateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3828]
     at 
spark.primitives.supportClasses::GraphicElement/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3812]
     at 
spark.components::Group/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:956]
     at 
spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]
     at 
spark.skins.spark::ButtonSkin/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml:77]
     at 
mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531]
     at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
     at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
     at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

It mentions button skins, but I already commented out all the buttons on 
the view. Also, does this mean the skin is always required? What other 
parameters are invalid. Here are all my buttons in the view and their 
parameters (also keep in mind it all worked perfectly in Flex3):

<s:Button label="Go!" click="joinRoom(roomsCB.selectedItem.roomID);" 
enabled="{roomsCB.selectedIndex!=-1}" />
<s:Button label="View Profile" 
click="viewProfile(chatterList.selectedItem.username)" 
enabled="{chatterList.selectedIndex!=-1}" /> <s:Button label="Report" 
click="reportAbuse(chatterList.selectedItem.username)" 
enabled="{chatterList.selectedIndex!=-1}" />
<s:Button label="Send" click="sendMessage(chat_txt.text);" 
id="chatSend_btn" enabled="false" />

Help...this is annoying :)

Reply via email to