[Extendflash] Exploring XMLUI's colorchip in Flash 8
Chris Fourney
c-y-d at rogers.com
Wed May 17 19:10:33 BST 2006
I cheated that and just appended it to the string after I've gotten the color from the swatch.
_root.huechange1 = MMExecute('fl.getDocumentDOM().xmlPanel(fl.configURI + "/XULControls/ColSwatch.xml").swatch');
//MMExecute("alert(" + _root.huechange1 + ")");
_root.huehex1 = "0x"+(_root.huechange1.slice(1,7));
So the last line removes the # from the hex value, and appends the 0x to it.
It then works in all colour fields ive used it in.
-Chris
Jarrad Hope <jhope at lungshrimp.com> wrote:
Yeh I tried that...and 0x, still doesnt show up.
=/ lemme check my inbox
On Wed, 17 May 2006 19:57:41 +0800, Chris Fourney wrote:
> When I call up the colorswatch, I use:
> -- 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 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
>
_______________________________________________
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/c6fe9968/attachment.htm
More information about the Extendflash
mailing list