Skip to main content
Participant
December 23, 2011
Question

Serious movieclip linking problems

  • December 23, 2011
  • 1 reply
  • 446 views

Is it possible on flash to access inside a movie clip of an external swf file?

im trying to link this button which is currently inside a movieclip to the frame inside this movieclip of an external swf.

this is what i got so far:-

footie.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);

function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void

{

    navigateToURL(new URLRequest("olympic_sports.swf"), "_parent")

    _root.olympic_content.gotoAndStop(football_info);       //football info is the frame label

}

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 23, 2011

yes.

but first you must load the external swf (using the loader class).  you can then reference the main timeline of the loaded swf using the loader's content property (cast as a movieclip).  from there you reference nested movieclips in the typical way.

if you don't understand the above, copy and paste the code you're using to load your external swf and explain the relationshipt between the movieclip you want to reference and the external swf's main timeline.