Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex ArgumentError: Error #2015: Invalid BitmapData
    primarykey
    data
    text
    <p>There is no problem when I complied a Flex project with Flex SDK 4.0 or 4.1. But when I switch to SDK 4.5 (Because our group begins to use flash builder 4.5), I got the error when open a window ( pop up a widget window). I searched online for several days, but still have no clue what caused the problem.</p> <p>Please help.</p> <p>Here is the error message: </p> <pre><code>ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData/ctor() at flash.display::BitmapData() at spark.effects.supportClasses::AnimateTransitionShaderInstance/play() at spark.effects.supportClasses::AnimateInstance/startEffect() at mx.effects::Effect/play() at mx.core::UIComponent/commitCurrentState() at mx.core::UIComponent/commitProperties() at spark.components.supportClasses::GroupBase/commitProperties() at spark.components::Group/commitProperties() at mx.core::UIComponent/validateProperties() at spark.components::Group/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback() </code></pre> <p>Here is the mxml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"&gt; &lt;!-- host component --&gt; &lt;fx:Metadata&gt; [HostComponent("widgets.BatchGeocoder.components.AddressMapper")] &lt;/fx:Metadata&gt; &lt;!-- SkinParts name=ddlCityField, type=spark.components.DropDownList, required=true name=ddlCountryField, type=spark.components.DropDownList, required=true name=ddlAddressField, type=spark.components.DropDownList, required=true name=ddlStateField, type=spark.components.DropDownList, required=true name=ddlZipField, type=spark.components.DropDownList, required=true name=btnSubmit, type=spark.components.Button, required=true --&gt; &lt;s:layout&gt; &lt;s:VerticalLayout gap="5" horizontalAlign="center" /&gt; &lt;/s:layout&gt; &lt;s:Group width="100%" height="100%"&gt; &lt;s:Label x="5" y="10" text="Address: " /&gt; &lt;s:DropDownList x="100" y="5" id="ddlAddressField"/&gt; &lt;s:Button x="250" y="5" label="x" fontSize="4" width="22" height="22" toolTip="Reset Address Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlAddressField.selectedIndex = -1" /&gt; &lt;s:Label x="5" y="40" text="City: " /&gt; &lt;s:DropDownList x="100" y="35" id="ddlCityField"/&gt; &lt;s:Button x="250" y="35" label="x" fontSize="4" width="22" height="22" toolTip="Reset City Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlCityField.selectedIndex = -1"/&gt; &lt;s:Label x="5" y="70" text="State: " /&gt; &lt;s:DropDownList x="100" y="65" id="ddlStateField"/&gt; &lt;s:Button x="250" y="65" label="x" fontSize="4" width="22" height="22" toolTip="Reset State Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlStateField.selectedIndex = -1" /&gt; &lt;s:Label x="5" y="100" text="Zip: " /&gt; &lt;s:DropDownList x="100" y="95" id="ddlZipField"/&gt; &lt;s:Button x="250" y="95" label="x" fontSize="4" width="22" height="22" toolTip="Reset Zip Code Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlZipField.selectedIndex = -1" /&gt; &lt;s:Label x="5" y="130" text="Country: " /&gt; &lt;s:DropDownList x="100" y="125" id="ddlCountryField"/&gt; &lt;s:Button x="250" y="125" label="x" fontSize="4" width="22" height="22" toolTip="Reset Country Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlCountryField.selectedIndex = -1" /&gt; &lt;s:Label x="5" y="160" text="Label: " /&gt; &lt;s:DropDownList x="100" y="155" id="ddlLabelField"/&gt; &lt;s:Button x="250" y="155" label="x" fontSize="4" width="22" height="22" toolTip="Reset Label Field" skinClass="widgets.BatchGeocoder.components.skins.RefreshButtonSkin" click="ddlLabelField.selectedIndex = -1" /&gt; &lt;/s:Group&gt; &lt;s:Button id="btnSubmit" label="Done" /&gt; &lt;/s:Skin&gt; </code></pre> <p><strong>---------------------------------------------</strong> Thanks. I do have the skin. the problem is why it works with SDK 4.1, not with SDK 4.5. Here is the skin definition:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"&gt; &lt;!-- host component --&gt; &lt;fx:Metadata&gt; [HostComponent("spark.components.Button")] &lt;/fx:Metadata&gt; &lt;!-- states --&gt; &lt;s:states&gt; &lt;s:State name="disabled" /&gt; &lt;s:State name="down" /&gt; &lt;s:State name="over" /&gt; &lt;s:State name="up" /&gt; &lt;/s:states&gt; &lt;!-- SkinParts name=labelDisplay, type=spark.components.supportClasses.TextBase, required=false --&gt; &lt;s:Group id="holder"&gt; &lt;s:BitmapImage source="@Embed('../../assets/images/GenericRefresh16.png')" source.over="@Embed('../../assets/images/GenericRefresh16_active.png')" /&gt; &lt;/s:Group&gt; &lt;s:transitions&gt; &lt;s:Transition&gt; &lt;s:CrossFade target="{holder}" /&gt; &lt;/s:Transition&gt; &lt;/s:transitions&gt; &lt;/s:Skin&gt; </code></pre> <hr> <p>Thanks. Unfortunately, it does not work. But you are right, the crossfade effect caused the problem.I removed the following piece code, and it works. </p> <pre><code>&lt;s:transitions&gt; &lt;s:Transition autoReverse="true"&gt; &lt;s:CrossFade target="{holder}"/&gt; &lt;/s:Transition&gt; &lt;/s:transitions&gt; </code></pre> <p>Any idea. Please help. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload