Very strange problem indeed!

This is a discussion on "Very strange problem indeed!" within the Flash & Multimedia Forum section. This forum, and the thread "Very strange problem indeed! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 2nd, 2005, 18:45
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Question Very strange problem indeed!

I've got a couple of flash movies that load images dynamically from a folder at the root level. I've named them pic1, pic2 and so on. And it was fine. The coding made them load and loop over and over. But now, for some reason, when i place another image in the folder the flash doesn't display it. Very weird. Any ideas? Thanks.
Reply With Quote

  #2 (permalink)  
Old Dec 2nd, 2005, 19:35
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Very strange problem indeed!

Your best posting it in the flash forums as its not really a graphics problem.
Reply With Quote
  #3 (permalink)  
Old Dec 2nd, 2005, 22:56
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: Very strange problem indeed!

this post realy should have been moved by sypher...

can you show us any actionscript regarding the loading of images?
Reply With Quote
  #4 (permalink)  
Old Dec 2nd, 2005, 23:14
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Very strange problem indeed!

I'm sure it's got nothing to do with what's within Flash because I've tried putting different images in the folder and they are fine, they load. But it's in regard to the latest images i've stuck in there, which i screen grabbed, took into PS then exported as .jpg. One image which loads fine was done throughe xactly the same method. As I say, it's very weird!
Reply With Quote
  #5 (permalink)  
Old Dec 3rd, 2005, 17:15
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: Very strange problem indeed!

well by posting the code we can maybe trouble shoot the request....
it might be the way the script loads the images....we cant really help much if you dont show us what your using...
Reply With Quote
  #6 (permalink)  
Old Dec 3rd, 2005, 17:26
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Very strange problem indeed!

Well here it is then. But as I say there doesn't seem to be any possible reason it would have anything to do with the code. I thought it must be more to do with the system cache or something or the way I've done the images but no.
Code: Select all
stop();


numberOfImages = 9; // total number of images required


num=0;


imgDelay = 5; //no of seconds to wait


alphaSpeed = 4; // speed that images fade in


var waitCount = 0;


imageDirectory = "pics/talent/li/";





this.createEmptyMovieClip("imgHolder",1); //  creates a blank mc


imgHolder._x = 21; // change the x position to where you want on the stage


imgHolder._y = 17; // ditto the y position


function loadImage(){


        num++;
        


        if(num>numberOfImages){


                num = 1;


        }
    
//change number of image text
        
imagenum.text = num + "/" + numberOfImages;        
        



        imgHolder._alpha = 0;


        imgHolder.loadMovie(imageDirectory + "pic" + num + ".jpg");


        checkInt = setInterval(checkImgLoaded, 500);




}





function checkImgLoaded(){


        imgBytesLoaded = imgHolder.getBytesLoaded();


        imgTotalBytes = imgHolder.getBytesTotal();


        if(imgBytesLoaded == imgTotalBytes){


                clearInterval(checkInt);


                fadeInt = setInterval(fadeIn,100);


        }


}





function fadeIn(){


        imgHolder._alpha+= alphaSpeed;


        if(imgHolder._alpha>99){


                imgHolder._alpha = 100;


                clearInterval(fadeInt);


                waitCount = 0;


                waitInt = setInterval(imgWait, 1000);


        }


}





function imgWait(){


        waitCount++;


        if(waitCount==imgDelay){


                clearInterval(waitInt);


                fadeInt = setInterval(fadeOut,100);


        }


}





function fadeOut(){


        imgHolder._alpha-= alphaSpeed;


        if(imgHolder._alpha<= alphaSpeed){


                clearInterval(fadeInt);


                loadImage();


        }


}





loadImage();

Last edited by sypher; Dec 5th, 2005 at 03:20.
Reply With Quote
Reply

Tags
strange, problem, indeed

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another strange IE problem... minute44 Web Page Design 10 Oct 18th, 2006 18:17
Strange CSS role over problem Joolsd186 Web Page Design 5 Aug 9th, 2006 14:50
Strange DNS problem with Win 64 and asp 1.1 sonic123 Classic ASP 1 Jul 19th, 2006 09:43
Very strange problem indeed! timmytots Flash & Multimedia Forum 2 Dec 31st, 2005 14:54
Strange IE print problem Danboy Web Page Design 4 Jan 12th, 2005 09:51


All times are GMT. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43