Jump to content
Search Community

instance names overwritten!? haaalp!

suparkrunch test
Moderator Tag

Recommended Posts

Hey guys, new to the forum but have been using the green sock products for a while.

So here's my problem, I'm making small internet ads, i made one in a certain dimension and it worked fine. I then saved a new version, re-sized it and modified it for the new dimension. at the end i have about 10 symbols labeled s1- s10. im using the allFrom tween for every one which works fine. but then afterwords i need the symbols to act as buttons. in the first animation i made everything worked fine. but this time with this new size their s1-s10 instance name becomes overwritten. I traced the event.target.name for these symbols and they have changed from s1 to "instance52" or something along those lines. whats weird is that the instance names stayed the same when i first ran the ad. the problem occurred when i changed the allfrom code to have the symbols slide in from a different direction.

 

Is there a way to make sure that my instance names don't change? I'm not the best at as3 so it might be something simple that i've overlooked, but iv never had this problem before so I'm stumped.

 

Thanks in advance!

Link to comment
Share on other sites

i'm not familiar with this issue. i assume you've checked a bunch of times that the instance names are on the symbols in ALL keyframes that they reside.

 

 

if you upload a cs4 or lower fla that is simplified to only illustrate this behavior, i'll take a look at it

 

Carl

Link to comment
Share on other sites

Yeah, there's absolutely, positively no way that TweenLite/Max would have changed the instance names. It definitely sounds like your instances don't have names, that's all (Flash will automatically create names like instance32 when it compiles your swf if you don't provide names yourself). Like Carl suggested, posting an FLA would definitely help identify the issue. But I'm 99.999% sure you just need to make sure you've got instance names on there properly (and remember, each keyframe could potentially apply a different instance name, so check all your keyframes and make sure you didn't miss any).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...