Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-02-2007, 12:00 AM   PM User | #1
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
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?
tomyknoker is offline   Reply With Quote
Old 04-02-2007, 12:18 AM   PM User | #2
iLLin
Regular Coder

 
Join Date: Oct 2005
Location: Right Here
Posts: 654
Thanks: 1
Thanked 0 Times in 0 Posts
iLLin is an unknown quantity at this point
Externally use XML.
iLLin is offline   Reply With Quote
Old 04-02-2007, 12:22 AM   PM User | #3
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
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);
tomyknoker is offline   Reply With Quote
Old 04-02-2007, 12:22 AM   PM User | #4
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
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);
tomyknoker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:18 AM.


Advertisement
Log in to turn off these ads.