Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Load External Images Into A Mask

    I have 6 frame labels on my stage and on each one I have a mask animation, it's the same animation but on each frame label loads a different image, basicaly the image just fade's into the mask. I was hoping to try and do this with actionscript, just not sure how. Would also like to load the images externally too if possible... Anyone have any ideas?

  • #2
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Externally use XML.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    riiiiiiight.... so i am able to lad an image from a folder no problem and have it fade in, but can i make it fade into an mc which contains a mask? this is what i've got so far

    Code:
    var myNewClip = this.createEmptyMovieClip("mclsub", this.getNextHighestDepth());
    var myNewLoader = new MovieClipLoader();
    var myNewListener = new Object();
    var myNewTest = "images" + 2 + ".jpg";
    
    myNewListener.onLoadInit = function (mclsub) { // Create fade in function
    trace("load init");
    mclsub._alpha=0; // Make mc 'mcl' _alpha 0
    mclsub.onEnterFrame=function(){ // Create new function
    mclsub._alpha +=15; // Speed 15
     
    if(mclsub._alpha >=100){
    delete mclsub.onEnterFrame;
    }
    }
    };
    
    Stage.addListener(myNewListener);
    myNewLoader.addListener(myNewListener);
    myNewLoader.loadClip(myNewTest,myNewClip);

  • #4
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    so i am able to lad an image from a folder no problem and have it fade in, but can i make it fade into an mc which contains a mask? this is what i've got so far

    Code:
    var myNewClip = this.createEmptyMovieClip("mclsub", this.getNextHighestDepth());
    var myNewLoader = new MovieClipLoader();
    var myNewListener = new Object();
    var myNewTest = "images" + 2 + ".jpg";
    
    myNewListener.onLoadInit = function (mclsub) { // Create fade in function
    trace("load init");
    mclsub._alpha=0; // Make mc 'mcl' _alpha 0
    mclsub.onEnterFrame=function(){ // Create new function
    mclsub._alpha +=15; // Speed 15
     
    if(mclsub._alpha >=100){
    delete mclsub.onEnterFrame;
    }
    }
    };
    
    Stage.addListener(myNewListener);
    myNewLoader.addListener(myNewListener);
    myNewLoader.loadClip(myNewTest,myNewClip);


  •  

    Posting Permissions

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