This content has been marked as final. Show 8 replies
Have you tried:
_parent.btn_selected._x = 325.2;
Thanks for the suggestion - I tried that and it didn't seem to work either.
Do you have the child movie's behavior set to "Movie Clip" or "Button"?
I'm sorry that I don't understand your question. I'm trying to add the code to a swf movie timeline (child) that's being loaded into the parent swf movie. The target object in the parent movie has a movie clip behavior. Hope that clarifies.
Did you name the button in the property window?
_parent.selected_btn._x = 325.2;
should work every time but you will need to name the button and then use that name where selected_btn is in the line above...capitalization is important the name must be exact
Thanks. Yes, I did name the instance. The clip I want to control is in a nested MC within the main swf timeline. Do you think I need to specify the path more completely, or should _parent.mcclipname work? Do I need some sort of handler/event maybe too?
Do you mean that "btn_selected" is located inside another movie clip on the main time line? If that is true then you will need to refer to that movie clip's name in the road map you give Flash to find "btn_selected".
For example, if "btn_selected" is located in "myNested_mc" and "myNested_mc" is located on the main timeline. You would have to refer to "btn_selected" within the newly loaded swf as:
_parent.myNested_mc.btn_selected._x = 325.2;
Thanks again. I must be doing something really stupid, because that's not working either. Here's all of the script that I have in the frame 1 on the timeline of the external swf:
stop(); // keeps the embedded movie clip in the external swf from looping //
setProperty("", _x, "0"); // sets the x position of the external swf in the main swf //
setProperty("", _y, "59"); // sets the y position of the external swf in the main swf //
_parent.interface.btn_selected._x = 325.2; // should set the position of the mc btn_selected in the interface mc on the main swf timeline? //
_parent.interface.btn_selected._y = 29; // "" //
_parent.interface.btn_selected._width = 111.5; // "" //
_parent.interface.btn_selected._height = 42; // "" //
????? am I doing something moronic?