Calling a Function from Inside a MovieClip

Maybe I am dumb, but I cant get this to work …

I have an MC, inside this MC is a Button which calles a function declared in the Main Timeline … I dont get it, i always got errors … Any help much appreciated

cheers

ChromeD

What is your error exactly ?

On a first view, my guess will be that you are trying parent.parent.MyFct(). The problem is that parent is a DisplayObjectContainer and there is no MyFct in that class. So if you want to make an elegant solution you can instanciates your document to a class (In the publish settings) let’s says “Main”. Then you can cast your parent.parent in Main. : Main(parent.parent).MyFct().

But if you don’T want for any reason and your lazy you can make parent.parent"MyFct".

Hope that it help

Lachhh