Jump to content

_level properties and manipulation


bgreen88
 Share

Recommended Posts

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

  • 2 weeks later...
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..:mellow:
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
 Share

×
×
  • Create New...