do a trace (_root.tempRegionCopy.currentShortName ) an check or
you get a *_level0*.pathToMy.mc back
maybe you want something like this (untested, but should work)
var currentShortName:MovieClip = _root.tempRegionCopy.nameOfMovieClip
// trace("MC exists? : "+currentShortName)
var colTran:ColorTransform = new flash.geom.ColorTransform();
root.listItem1.onRollOver = function(){
// trace ("hitme")
colTran.rgb(0xff9966);
currentShortName.transform.colorTransform = colTran
}
cheers,
Latcho
Should this:
_root.tempRegionCopy.currentShortName
not be this:
_root.currentShortName
or visa versa?
Ade
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of dls
Sent: 27 January 2006 09:14
To: Flash Coders
Subject: [Flashcoders] using variable in new color target
Trying to get the following to work, sure my logic is a mess, but I
would appreciate any help.
Have an early deadline today...
_root.listItem1.onRollOver = function(){
_root.currentShortName = nameOfMovieClip;
myColor = new Color (_root.tempRegionCopy.currentShortName);
myColor.setRGB(0xff9966);
}
-dan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders