PDA

View Full Version : Mass name changing


ykaerflila
10-14-2002, 04:33 PM
I'm just looking for a simpler way to handle a problem I've ran into before.


I got a movie I made several months ago. when I first made it I had no intention of using it else where. Recently that changed and i needed to incorprate that movie into another I am currently making.

Problem is Inside the old movie we'll call it professional.fla there is only one frame on the main time line containing a movie clip called "prof mov" inside that is all of the content. piticulary four buttons that are the menu. these four buttons controll the the movement of text. ie bascialy when you click one of the buttons it moves one peice of text out of the way and another one in. through motion tweening. also those four buttons move out of the way of the text so there is aobut a 120 frames and about 10 lines of code on every 10th frame. so when you click a button the instance name is something like _level0.profmov.Emotion now I want to add this into another movie and I cannot duplicate the same instance about I need to convert the above instance to _level0.resume.profmov.Emotion.

Just so you know I did actually find a way to take care of my prob I was just wondering if there is a way to change the name of that one instance that occures probably 100 times in 120 different frames. without just finding the frames and pasteing.

any idears

Thanks

Billy T
10-14-2002, 11:51 PM
don't really understand your problem

if you use paths like this and _parent you are less likely to have problems when you load that movie into another

cheers

ykaerflila
10-15-2002, 04:27 AM
sorry if I was a litle vague in the first post

I really had no time to put some thought into it and I had to come back to finish it two or three times. thats what i get for trying to post something at work:p :p


I think you might be onto what I need to be doing but let me restate my problem.

to put it simply I'm looking for a way around having to change an instance name i've got in say a hundred or so places. for the sake of an example say I have a movie clip and it has a hundred frames in it each frame does something to the instance _level0.MovieCiip.somethingelse Now I need that to be changed to _level0.MyMovie.MovieClip.somethingelse with out going through all one hundred frames and changeing it manualy


So I'm looking for one or two things
1. Away to access and change the names in one centrilized location

2. A different approach so that regardless of where I put them the names would work.


Just wondering for future refrence. thank for you input

Billy T
10-15-2002, 07:28 AM
nah sorry I can't think of way to prevent doing them one by one

in future, i might be better to put something like this at the start

thePath=_root.movie1.movie2;

and then each button or whatever can target thePath

then if you have you change it you just do it once

cheers

ykaerflila
10-16-2002, 04:52 AM
yeah I had thought of using a viarable as the name of the instance but have not had a chance to try it out to see if it works. but hay thanks man I am greatful for you input



I'll try what u said and maby I can keep myself out of a major mess in the future:D :D

thanks again