-
ActionScript to change Registration Point of Movie Clip for Dynamically loaded Movie
Below is the code I found on some forum that help in changing the registration point of dynamically loaded Images, that help in rotation of movieclip. Basically it only create new _xreg and _yreg points that need to be adjust to change coordinate system before you rotate image/movieclip using _rotation2 variable. It works for Action…
-
Calling Path in ActionScript
var kLastSlash:Number = _root._url.lastIndexOf(‘/’); var baseUrl:String = _root._url.substr(0, kLastSlash+1);
-
Replace Function for ActionScript 2.0
function searchAndReplace(holder, searchfor, replacement) { temparray = holder.split(searchfor); holder = temparray.join(replacement); return (holder); } Do I need to say anything else ?