View Full Version : Controlling another swf
Laslett
February 1st, 2004, 06:45 PM
I've done the search on tuts.
Is there a tut kirupa or other on controlling one swf from another.
so clsic example having a loaded playback bar then loading vid or mucis and the universal playback bar can control it.
Could this be done either way of loading swfs
(Into a movie on the main swf or loaded by levels?)
kill.robot.kill
February 1st, 2004, 06:53 PM
well you can load a swf into another swf and control it using the proper targeting. Or you can control a second completely seperate swf on an html page via localConnection. Depends on what you need, but it sounds like the first way what you will need.
Laslett
February 1st, 2004, 06:54 PM
proper targeting?
kill.robot.kill
February 1st, 2004, 10:46 PM
look for information on loadMovie, what you'll want to do is in your base swf, just make an empty movieclip, use the loadMovie command to load a new swf into that movieclip, then you can control the loaded swf using buttons in your base swf.
so if you were to load the swf into a movieclip called "holder" and you wanted to stop that movie you could attach this code to a button.
on (release) {
holder.stop();
}
if this doesn't make any sense look for a tutorial on loadmovie and one one paths or scope.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.