Hello!
I have animation I’ve put together and it is linking to an external .jpg image - I’m new to the .fl transitions so I was hoping there’s a way to add a .fl transition fade to ‘fade’ in the external jpg in the .fla!!?
I’ve googled it a few times; but all the results coming back are inconclusive; I can’t make head nor tale of them lol.
I know I could do it by setting up the .jpg with an .fl transition fade and then externally linking to the .swf but I really just want to link to the .jpg image externally and have one .fla/master .swf and then add a transition fade-in effect for 4/5 seconds to the external .jpg image?
This is the code I’m using I followed a tutorial to produce the external image setup.
Thanks for the help…
package {
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;
public class Main extends MovieClip {
public function Main() {
var imageLoader:Loader = new Loader();
var theURL:String = “images/sunflower.jpg”;
var imageRequest = new URLRequest(theURL);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
imageLoader.load(imageRequest);
function onComplete(evt:Event) {
addChild(imageLoader.content);
}
}
}
}