Through some trials I think I'll figure out a another way. I have written a function to reset the movie clip however it seems to stop all interaction that happens to be within the SWF file itself. This code may not work for me just yet but may be helpful for someone trying to do the something similar.
This block of code will get the movieclip object, x, y positions, height, width and the Instance names for a movieclip and all nested movieclips within the original movieclip
// Import the required classes
import flash.display.DisplayObject;
// Array - This will hold the position and scale info for the movieclip
var movieclip_info:Array = new Array();
// This function will read and get all position and scale info of the skin
function read_movieclip(movie_clip) {
// Loop through the children
for(var i:int = 0; i < movie_clip.numChildren; i++) {
// Make sure we are working with a movieclip
if(movie_clip.getChildAt(i) is MovieClip) {
// Make an object to hold our info
var temp_object:Object = new Object();
// Set the info
temp_object.movie = movie_clip.getChildAt(i);
temp_object.height = movie_clip.getChildAt(i).height;
temp_object.width = movie_clip.getChildAt(i).width;
temp_object.x = movie_clip.getChildAt(i).x;
temp_object.y = movie_clip.getChildAt(i).y;
temp_object.name = movie_clip.getChildAt(i).name;
// Add to the movieclip info array
movieclip_info.push(temp_object);
// Check for nested movieclips
read_skin(movie_clip.getChildAt(i));
}
}
}
// NOTE: I ADDED THIS JUST TO SHOW SOME RESULTS. I was using it to try to reset the movie clip but was having some weirdness going on.
function trace_info() {
// Loop through the array
for each(var mc:Object in movieclip_info) {
// Do something here
trace('Movieclip = ' + mc.movie + '\nInstance Name = ' + mc.name + '\nHeight = ' + mc.height + '\nWidth = ' + mc.width + '\nXpos = ' + mc.x + '\nXpos = ' + mc.y + '\n\n');
}
}
-
- // Import the required classes
- import flash.display.DisplayObject;
-
- // Array - This will hold the position and scale info for the movieclip
- var movieclip_info:Array = new Array();
-
- // This function will read and get all position and scale info of the skin
- function read_movieclip(movie_clip) {
-
- // Loop through the children
- for(var i:int = 0; i < movie_clip.numChildren; i++) {
-
- // Make sure we are working with a movieclip
- if(movie_clip.getChildAt(i) is MovieClip) {
-
- // Make an object to hold our info
- var temp_object:Object = new Object();
-
- // Set the info
- temp_object.movie = movie_clip.getChildAt(i);
- temp_object.height = movie_clip.getChildAt(i).height;
- temp_object.width = movie_clip.getChildAt(i).width;
- temp_object.x = movie_clip.getChildAt(i).x;
- temp_object.y = movie_clip.getChildAt(i).y;
- temp_object.name = movie_clip.getChildAt(i).name;
-
- // Add to the movieclip info array
- movieclip_info.push(temp_object);
-
- // Check for nested movieclips
- read_skin(movie_clip.getChildAt(i));
-
- }
-
- }
-
- }
-
- // NOTE: I ADDED THIS JUST TO SHOW SOME RESULTS. I was using it to try to reset the movie clip but was having some weirdness going on.
- function trace_info() {
-
- // Loop through the array
- for each(var mc:Object in movieclip_info) {
-
- // Do something here
- trace('Movieclip = ' + mc.movie + '\nInstance Name = ' + mc.name + '\nHeight = ' + mc.height + '\nWidth = ' + mc.width + '\nXpos = ' + mc.x + '\nXpos = ' + mc.y + '\n\n');
-
- }
-
- }
-
If this helps anyone that's great, use it

. I'll mess around with it for a bit but if it doesn't seem like it will work for me I will be moving on to different ideas.