[Extendflash] Exploring XMLUI's colorchip in Flash 8
Dave Wolfe
dave at ironwagon.com
Wed May 17 21:00:12 BST 2006
This is a bug in Flash 8, it works in 7.2. I reported it a while ago
with no response from Macromedia/Adobe. I got around it in my extension
by adding a default color variable to use if the xml panel returns "".
var defClr = "#0066FF";
if (result.color == "")
{
clr = defClr;
}
else
{
clr = result.color;
}
-Dave
Jarrad Hope wrote:
>
> <colorchip id="mycolor" color="#000000" />
>
> sets the color chips identify to mycolor and in theory should show black
> as its default.
>
> However, it does not.
>
> I have tried as many things as I could think of including
> value="#000000" , <colorchip>#000000</colorchip>
>
> If this isnt the case, lets see what the colorchip really contains...
> Note: it does not return anything if the chip is not set, even with value
> or color defined in the xml.
>
> fl.trace(myXML.mycolor+' '+typeof(myXML.mycolor));
>
> for(var i in myXML.mycolor) {
> fl.trace(i+' '+typeof(i)+' 'myXML.mycolor[i]);
> }
>
> //Output
>
> #3300CC string
> 0 string #
> 1 string 3
> 2 string 3
> 3 string 0
> 4 string 0
> 5 string C
> 6 string C
>
> //
>
> ... 0_0 !! What the nelly?!
>
> Where do we go from here? You cant set 0="" 1="" in the tag =/
> _______________________________________________
> Extendflash mailing list
> Extendflash at flashguru.co.uk
> http://lists.flashguru.co.uk/mailman/listinfo/extendflash
>
>
More information about the Extendflash
mailing list