button controlling loaded swf
I have started to make my own website in Flash (while teaching myself flash) with actionscript 2 and originally made it all load as one movie - this takes 2 minutes to load so now realise i need to split it into a main movie with buttons which then load separate swf!
I need to make the buttons in the main movie control the what frames are shown in the loaded swf but can't!......I have this....
(BSc_Button.onRelease = function() {
loadMovie("BSc_Movie.swf", Section_Flash);
gotoAndStop(35);
This button loads the movie, then the following buttons (in the main movie) I want to go to particular frames of the loaded swf, or tween elements in the swf.
(Childrens_Hospice_Button.onRelease=function() {
_root.Main.Section_Flash.gotoAndStop(36);
(Opt_1_Button.onRelease = function (){
var Childrens_Hospice_Tween:Tween = new Tween
(Childrens_Hospice_Moving,"_x",Strong.easeOut,20,2 0,2,true);})
This code all worked when I had it as one but im struggling to know what to do when splitting the movies. As you can see I have started to add root information but could do with somebody telling me if im heading down the right path. If it would help I can send the link to the original which loads in two minutes! Any comments on how to make it work would be appreciated, thank you in advance.
|