Putting background in flash

From this previous question:
How do I put a background in? I can't just drag an image from my library, it blocks everything.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
what about if you add a layer at the bottom of your timeline, select it and then drag in your image?
894359Author Commented:
I get the text showing but not the images fading in and out!
Put background image on a separate layer (Insert > Timeline > Layer) and drag the layer to the bottom of all layers.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

894359Author Commented:
I did that but still don't see the images fading in and out.
894359Author Commented:
Here's the as involved.
	import caurina.transitions.Tweener;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.net.URLLoader;
	import flash.net.URLLoaderDataFormat;
	import flash.net.URLRequest;
	import flash.net.URLVariables;
	import flash.text.Font;
	import flash.text.TextField;
	import flash.text.TextFormat;
	public class SlideShowText extends Sprite{
		private var images:XMLList;
		private var texts:XMLList;
		private var delay:Number = 0;
		private var currentIndex:int = 0;
		private var loader:Loader;
		//private var text:TextField;
		private var xml:XML;
		private var uloader:URLLoader;
		public function SlideShowText(){
			uloader = new URLLoader();
			//First we load the xml
			uloader.load(new URLRequest("images.xml"));
			//And set the loader for the images
			loader = new Loader();
			loader.alpha = 0;
			//Text was created on stage
			text.alpha = 0;
			//Must embed fonts so it accepts alpha
			//Look at the library there is a font item there to, exported for actionscript
			text.embedFonts = true;
			//add the loader to stage in depth 0, below the text that was already there
		private function onComplete(e:Event):void{
			//On complete xml download
			xml = new XML(uloader.data as String);
			//fill properties with xmllists - like arrays
			images = xml..image;
			texts = xml..text;
			delay = Number(xml.@delay);
			//Then we can start the slideshow
		private function onError(e:IOErrorEvent):void{
		private function loadImage(index:int):void{
			var url:String = images[index].toString();
			loader.load(new URLRequest(url));
		private function initSlideShow():void{
			//First step - load first image
		public function imageComplete(e:Event):void{
			//when download is complete
			text.text = texts[currentIndex];
			//set its size to stage size 200x200
			loader.width = stage.stageWidth;
			loader.height = stage.stageHeight;
			//then fadeIn image
		public function imageIn():void{
			//fades image in
			//after fadein complete: textIn
		public function textIn():void{
			//fades text in
			//fades text out
		public function textOut():void{
			//fades text out but wait for the delay - 3000/1000 = 3 seconds
		public function imageOut():void{
			//fades image out
		public function nextImage():void{
			//increase index
			//if index greater than number of images, back to image 0
			if(currentIndex >= images.length())currentIndex = 0;
			//load next image based on the index

Open in new window

The background should be put in the FLA document, in a layer below the text layer. Also you should change the line 42 in the .AS file for this:


This will add the image loaded below the text, but above your custom background. I'm sorry for taking so long to respond, I was not home for th weekend

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
894359Author Commented:
Thanks for the response! Much appreciated again! :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.