How to Change the selection color of flashpaper document
Put selectionColor as your color variable reference (i.e. _root. selectionColor) in the function below
and override the FP.document_mc.selectRange with selectRange function below (function with your refernce var) after the full document is loaded
function selectRange(startmc_i, startIdx_i, endmc_i, endIdx_i, select_b)
{
if (endmc_i < startmc_i)
{
this.selectRange(endmc_i, endIdx_i, startmc_i, startIdx_i, select_b);
return;
} // end if
var _loc3 = startIdx_i;
var end_i = FlashPaper.DocumentView.MAX_CHARS_PER_PAGE;
for (var _loc2 = startmc_i; _loc2 <= endmc_i; ++_loc2)
{
if (_loc2 == endmc_i)
{
end_i = endIdx_i;
} // end if
var text_mc = this.getNthTextMC(_loc2);
if (text_mc != null)
{
var _loc1 = text_mc.getTS(select_b);
if (_loc1 != null)
{
_loc1.setSelectColor(selectionColor);
if (_loc3 <= end_i)
{
_loc1.setSelected(_loc3, end_i + 1, select_b);
}
else
{
_loc1.setSelected(end_i, _loc3 + 1, select_b);
} // end if
} // end if
} // end else if
_loc3 = 0;
_loc3 = 0;
} // end of for
} // End of the function

Mr WordPress said,
January 30, 2008 at 7:37 am
Hi, this is a comment.
To delete a comment, just log in, and view the posts’ comments, there you will have the option to edit or delete them.