Hi I’m loading a long timeline into a listener and trying to use buttons on a menu to goto andplay the frame label further into the timeline.
My selling_btn has this AS and loads the .swf but no luck going to the frame label… any suggestions
[a]
selling_btn.addEventListener(MouseEvent.CLICK , clickselling)
function clickselling ( evt )
{
myLoader.unload()
myLoader.addEventListener(Event.COMPLETE, fnToAddSwfAndSeekFrame)
myLoader.load( new URLRequest(“1_tabs_heather.swf”) )
}
//untested but should put you in the right direction...
function fnToAddSwfAndSeekFrame(e:Event)
{
// assumes loaded object is a swf…
var newSWF:MovieClip = MovieClip(e.target.data);
addChild(newSWF);
newSWF.gotoAndPlay(30);
}
[/a]