troubleshooting Question

How do I set the bgcolor through xml

Avatar of SimonAdrian
SimonAdrian asked on
Adobe Flash
8 Comments1 Solution601 ViewsLast Modified:
I want to set the background color of a movie through xml.

Im using the flash.geom classes to colorize the bg color:

import flash.geom.ColorTransform;
import flash.geom.Transform;

var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(car_mc);

    colorTrans.rgb = 0xFF0000;
    trans.colorTransform = colorTrans;

The xml should be something like beyond (shortversion) and it's deliberately not CDATA, because I'm goin' to update the xml through an asp solution and have no idea how that should be done with CDATA:

<item>
<bgcolor>#990000</bgcolor>
</item>

Which means that I need a solution that can change the '#' to '0x' and also a practice for the xml-node to replace the colorTrans.rgb

ASKER CERTIFIED SOLUTION
rascalpants

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros