umm this is annoying… 
Why can’t I get pass this stupid error? It’s not making sense to me.
I have a MovieClip from the library being brought in another MovieClip and I’m trying to trigger a button to communicate with a movieclip on the stage gotoAndPlay(2);
When I hit the button I’m getting this error.
TypeError: Error #1034: Type Coercion failed: cannot convert Main@277a0041 to flash.display.MovieClip.
at controlsTicker/saveTickerXML()
Any help?
I thought doing this would be the correct way?MovieClip(root).ticker_mc.gotoAndPlay(2);
Thanks
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Why dont you use stage.getChildByName?
Try this ? :
(root as MovieClip).ticker_mc.gotoAndPlay(2);
or change your Main.as
public class Main extends MovieClip
(instead of exetnds Sprite)
if can’t not access to ticker_mc
public var myTickerMC;
public function Main(){
myTickerMC=ticker_mc;
}
MovieClip(root).myTickerMC.gotoAndPlay(2);
Thank you both!
@FlashTang
This worked like a charm 
public class Main extends MovieClip
Thanks again!
