View Full Version : Calling a function within a MC
gregmax
May 20th, 2008, 09:03 AM
Quick question, and hopefully someone has a quick answer. Is it possible to call a function that is sitting on he MainTimeline from inside a MC that is sitting on the stage? I have looked on the web and found that AS3 doesn't use globals anymore :( . So I was hoping that someone here could help me think of a workaround. Thanks
gregmax
May 20th, 2008, 09:12 AM
Many apologizes.... it must be too early or something, probably just me. I did some more googling and found the solution. You need to pass the MainTimeline/stage as a MovieClip
MovieClip(parent).function_to_execute();
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.