A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS3] How to talk to Dynamically Loaded Movie

  1. #1
    Member
    Join Date
    Aug 2008
    Location
    India
    Posts
    32

    Question [CS3] How to talk to Dynamically Loaded Movie

    hi Guys ,
    I have problem in getting variable from loaded movie
    Here is the problem
    I have two Map movie Movie1 , Movie2
    btn.onRelease = function(){
    mov= this.createEmptyMovieClip("movie",this.getNextHigh estDepth() );
    mov.loadMovie("Movie2.swf");
    }
    //Now when Movie2 is loaded when i click on btn2 in Movie2 it should give someoutput
    but it is nither sending any output nor it can getvalue nither to parent clip ie Movie1 nor to Output window
    The code in Movie2 is
    btn2.onRelease = function(){
    trace("IDs");
    }
    //I am working on frame 1 only no other frame

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    try this in Movie1 and see what happens;
    PHP Code:
    mov this.createEmptyMovieClip ("movie"this.getNextHighestDepth ());
    btn.onRelease = function () {
        
    mov.loadMovie ("Movie2.swf");
    }; 
    If you don't think you're going to like the answer, then don't ask the question.

  3. #3
    Member
    Join Date
    Aug 2008
    Location
    India
    Posts
    32

    Thumbs up Thanks

    EQFlash,
    Hi EqFlash It really did worked Thanks a lot

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