Well guys thanks for all the help! Everything is starting to work besides one step. Which makes me wonder why Macromedia had it possible to give a jpg a linkage id and it won't even work. I had all this going all the scope in place and guess what it still didn't work. So then I went back though all 106 images I had already given linkage ids to and had to delete the linkage id and then make the image a movie clip and give that one the correct linkage id. Anyway you guys rock! Thanks again!
But why won't linkage id's work on jpgs and they give you the option? //cb -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, February 02, 2006 7:48 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] scope of function... undefined? Dude - you didn't anger me - I was just trying to help calm you down - sometimes (and I speak from first hand experience) frustration with code will compound and effect your ability to solve problems with logic - sorry if I gave the wrong impression. e-mail is a strange medium. glad you got it working. Jason Merrill ICF Consulting E-learning Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Corban >>Baxter >>Sent: Thursday, February 02, 2006 6:16 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] scope of function... undefined? >> >> >>Anyone? Sorry Jason I didn't mean to anger you. I have been looking at >>this for almost 10hours now and I can't take it anymore! >> >>//cb >> >> >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf Of Corban >>Baxter >>Sent: Thursday, February 02, 2006 3:50 PM >>To: [email protected] >>Subject: [Flashcoders] scope of function... undefined? >> >>Hey all this is kind of a repost but I have a weird >>problem... Ok I have >>a function I am calling on the root timeline and when I trace(this) >>inside of it I am getting a return of undefined. What would >>cause this? >>Here is the function. >> >>[code] >> >>function loadImages(imagesToGrab:Number) { >> if (imagesToGrab == 0) { >> //stop loading images >> clearInterval(loadImgInterval); >> trace("hitting the clear"); >> } else { >> var randomPos:Number = random(imagesToGrab)+1; >> var rfcClip:MovieClip = rfcsArray[randomPos]; >> var imgID:String = imgArray[randomPos]; >> >> //delete from array to keep from running one more than >>once >> rfcsArray.splice(randomPos, 1); >> imgArray.splice(randomPos, 1); >> >> //trying to decipher wtf is going on.... >> trace("imgID: "+imgID); //returns layout5_set3_img10 >> trace("rfcClip: "+rfcClip); //returns lay5_img10 >> trace(this[rfcClip]); //returns undefined - WHY! >> trace(this); //returns undefined - WHY! >> >> //ALL ISSUES ARE OCCURING IN THIS LINE OF CODE FROM WHAT >>I UNDERSTAND >> this[rfcClip].container.attachMovie(imgID, imgID, >>this.getNextHighestDepth()); >> >> >> imagesToGrab--; >> clearInterval(loadImgInterval); >> loadImgInterval = setInterval(loadImages, 2000, >>imagesToGrab); >> } >> trace("imagesLeftToLoad: "+imagesToGrab); >> trace(" "); >>} >> >>[/code] >> >>if you want to look at my FLA be my guest... >>http://webdev.funimation.com/fun2004/coders/s3.zip >> >> >>//cb >> >> >>_______________________________________________ >>Flashcoders mailing list >>[email protected] >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>_______________________________________________ >>Flashcoders mailing list >>[email protected] >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

