[Extendflash] Exploring XMLUI's colorchip in Flash 8
Chris Fourney
c-y-d at rogers.com
Wed May 17 08:57:41 BST 2006
When I call up the colorswatch, I use:
<colorchip id="swatch" color="000000"/> -- and it seems to work just fine, with 000000 being the default color. Maybe its just a case that you should get rid of the # sign and it will start working?
I call the control with fl.getDocumentDOM().xmlPanel(fl.configURI + "/XULControls/ColSwatch.xml").swatch and it returns the value of the color swatch, but also includes the # sign with this value. Just slice that number sign away if you need to , and yur all set.
Lemme know if this helps, (and if you got my other email)
-Chris
Jarrad Hope <jhope at lungshrimp.com> wrote:
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" , #000000
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20060517/f07668b7/attachment.htm
More information about the Extendflash
mailing list