dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] AS2.. Load Movie and referencing.. woes

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Location
    I'm a brumie, currently in London working for the man
    Posts
    147

    [F8] AS2.. Load Movie and referencing.. woes

    Hi I can't for the life of me remember if this is possible.. if not I'm barking up the wrong tree but I remember doing something similar in the past..

    I'm trying to reference a mc in an externally loaded swf.. here's the code i've got.

    Code:
    function Starter(){
    	
    	var bgimg = "stbg"
    	
    	//Load in BG Stored in Folder game/img/bg/
    	var sBg:MovieClip = this.createEmptyMovieClip("bgi", this.getNextHighestDepth());
    	sBg.loadMovie(iPath+bgimg+".jpg");
    	//
    	sBg._y = 0;
    	
    	//Animate Scene
    	TweenLite.to(sBg,20,{delay:0,_y:-250});
    	
    	//Load In Start Scene.
    	intro = this.createEmptyMovieClip("intro",this.getNextHighestDepth());
    	intro.loadMovie(sPath+stArt+".swf",start_mc);
    	//
    	intro._y = 0;
    	intro._x = 50;
    	
    	//Buttons
    	var inst_btn =  intro.A_btn;
    	var start_btn = intro.B_btn; 
    	
    	butStats(start_btn);
    	butStats(inst_btn);
    	
    	inst_btn.onRelease = instuction();
    	start_mc.onRelease = game();
    	
    };
    I've tried a few things.. but they don't seem to work.... any ideas or will I have to go back to the drawing board.. I'm loading elements in to save on file size but I want to control all my actions from one central file..

    Mucho Thanks

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Need to use a movie clip loader and loadClip, rather than loadMovie.

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