A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Controlling one .swf movie from another?

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    2
    Is there any way of doing this? For instance, I would like to be able to do something like:

    on (press) {
    [/directory/anothermovie.swf].movieclipName.play ();
    }

    (the bit in square brackets represents the path through the directory structure to the other movie clip).

    Any help on this would be much appreciated!

    D

  2. #2
    Member
    Join Date
    Apr 2002
    Posts
    76
    hi,
    for your requirement you have to load the movie i.e the swf you want to control in a movie clip through load movie action and then you can control it with the instance name

    for eg

    you have a movie by name test.swf in a folder and in the same folder you have a movie by the loader .fla

    now in loader.fla you have to place a new blank movieclip by an instance name say testLoader drag it on to the stage and then in the action for that instance of the clip

    onClipEvent(load){
    this.loadMovie("test.swf");
    }

    now this instance of movieclip can be controlled as a normal movie clip .

    like
    on(press){
    _root.testLoader.gotoAndStop(10);
    }



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center