Code problem, making Mc play

Hi, im having problems executing correct action script. Im using movie clips and when using buttons under them everything works fine. Im putting the script in the maintimeline: code below:

e.g
_root.mainMenu.floor1_btn.onRelease = function () {
loadMovie (“comingsoon.swf” , “membersOnly”);
};

Now what i want to do is when the timeline gets to say frame 200, ive an action waiting to play a movie clip (instance “liftMc”) but i can’t seem to get it to play?

i’ve tried writing a function as well as modifying the script above but i can never get it to play? hope someone can help please, i know this is basic stuff but i’ve been on it for hours. Beginners Eh!

cheers dave

First of all; why make functions when you dont need them?
first code can be changed to:
(_root.mainMenu.floor1_btn.**)**onRelease {
loadMovie (“comingsoon.swf”, “membersOnly”);
}

in the main timeline; put a frameaction:
liftMc.play();
stop();

Please post your code. Also, which timeline is supposed to get the frame 200, where’s liftMc? What’s the connection with the code you posted?

[Edit]Oups, crosspost :slight_smile:


i hope you don’t mind me contacting you,

The only reason i made a function was because i couldnt make it work any other way, (but that didnt work either). basically i think the problem is my code structure when coding with movie clips. when coding in timelines im fine, but when i start trying to control from the main timeline i come accross difficulties. i’m trying to learn action script, its just at the stage where things havent clicked.

i tried your code but this didnt work either.
liftMc.play();
stop();

ill explain in a little more detail basically im trying to make the liftMc play when i reach frame 180 (main timeline). inside the 1st frame of liftMc is a stop(); action so i figured a goto and play frame 2 of lift mc would be the obvious coding result. but putting the line of code together is causing me more problem than expected.

dave

sorry the posted code in the first post, has no reference to my problem, its just how i was controlling buttons in a movie clip.