Hi List, I just made a little experiment with this code...

function setMovieClipX(mc,desiredCoordX):Boolean
{
        var updated:Boolean=true;
        (desiredCoordX!=mc.x)?mc.x=desiredCoordX:updated=false;
        return updated;
}
trace(setMovieClipX(movieClip,286));

...and found to my utmost surprise that the trace command actually executed the 
function and updated the movieClip.x position instead of just tracing true or 
false.
If you check omit Trace in the Publish settings, movieClip remains at it's x 
Position.

Wonder if this could be of any use or is a potential danger when using traces 
to debug?

Regards
Thomas
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to