PDA

View Full Version : Set Properties - Get Properties



Dave
September 14th, 2005, 02:33 AM
Hey Guys,

Just been playing around with the tutorials, on the Set properties/Get properties. Everything is all cool, except the "instance name" aspect. I dnt really understand that too well.

Is it possible to change an Mc Name dynamically?
If you look at my FLA when you hit the top left red button you will get a trace of the mcName as "square".

Now if you input a new mc Name on the right hand side, you will see it change on the left hand side. But i want to know why it doesnt remain as the new mc Name, it still goes back to square.

Any suggestions would be great thankyou. :worried:

TheCanadian
September 14th, 2005, 03:12 AM
On the button which updates the movie clips name, replace the old code with this:


on (release) {
setProperty(_root.square, _name, mcName);
}

You need to give the path to the square movie clip. In this case it's on root timeline so the path would be _root.square. Hope this helps :).

Dave
September 14th, 2005, 03:41 AM
kool, i will give it a go, thankyou :)

TheCanadian
September 14th, 2005, 03:44 AM
No problem :thumb:.