bgreen88 Posted November 21, 2007 Report Share Posted November 21, 2007 if i have this: level0.mc1.mc2 is the value of this.my actionscript is in frame1, of level0 movieClipi want to access only mc2, imean the string "mc2", coz i only need "mc2"how can i do that.when i assign this to String str1, it was traced: level0.mc1.mc2 but, i can't do a substring method, and str1.length is undefined.how can i solve this problem? Link to comment Share on other sites More sharing options...
Ingolme Posted November 21, 2007 Report Share Posted November 21, 2007 I think you can use the toString() method to turn the MovieClip reference to a string. Then it should have a .length property. Link to comment Share on other sites More sharing options...
bgreen88 Posted December 1, 2007 Author Report Share Posted December 1, 2007 I think you can use the toString() method to turn the MovieClip reference to a string. Then it should have a .length property.thnx.....it was solved already.i just concantenated an empty string to the variable holding the path, so that it would be treated as string.:)like:var1 = mcLevelpath+"";thanks anyway.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now