[thelist] Actionscript problem

John Corry webshot at members.evolt.org
Mon Jul 1 17:39:01 CDT 2002

I'm building a little Flash app and have a question for

I have a movie clip on the stage. On frame one (of that movie clip's
timeline), I define a function which I want to use on 4 other labeled
frames in the mc's timeline:

function add_prop_labels(prop_name, prop_x, prop_y, level)
	_root.attachMovie("property label", "label_mc"+prop_name,
	thisClip = eval("label_mc"+prop_name);
		// set the x position
		thisClip._x = prop_x;
		// set the y position
		thisClip._y = prop_y;
		// set the text field
		thisClip.prop_label_text = prop_name;


So...on one of my 4 frames where I want to trigger the function...how do
I trigger it?

I have:
onload = add_prop_labels(name, x, y, level);

or just
add_prop_labels(name, x, y, level);

And neither of those work.
When I view outpu variables, I see that _level0.instance1.thisClip =
undefined, but it seems like it should be 'label_mcPropertyName'.

John Corry

More information about the thelist mailing list