PDA

View Full Version : Ghost Pictures...


Babylon_Inc
11-28-2004, 10:08 AM
Hi,

I hope there's someone around who can help me. I (myself a bloody beginner with flash) made some photo albums. Just two buttons to switch the pictures...

Here's my Problem:
In some of those Flashfiles, the pictures are not shown while testing the movie in flash, but later on when I put them into an .htm file. Some of them don't even show there.
They seem to be somehow existant, since the context menu is behaving as if a picture was loaded (on rightclick on the area the picture was supposed to be located)

I hope someone can give me a hint.

avelives
11-29-2004, 12:13 PM
I believe i had a similar problem a while back.
I think (dont quote me on this) that flash has a problem displaying Jpgs which are set 'progressive'

When you save the Jpeg make sure it isnt progressive and they may show up.
Or it may be something else entirely :)

Babylon_Inc
12-01-2004, 04:23 PM
Well I checked that. they are not saved "progressiv"....

I'm just gonna post the code I wrote:

TotalPics=5;
recentPic=1;
FileNameStartsWith="kb"; //the files are named kb1.jpg .. kb5.jpg

next.onPress = function (){
recentPic++;
if(recentPic>TotalPics){
recentPic = 1;
}
filename = FileNameStartsWith+recentPic+".jpg";
loadMovie(FileName,"square");
// square is an instance of rectangle i turned
// into a movieclip (don't know if I'm saying that right) :)
};

back.onPress = function (){
recentPic--;
if(recentPic<1){
recentPic= TotalPics;
}
filename = FileNameStartsWith+recentPic+".jpg";
loadMovie(FileName,"square");
};

Thanks for your effort though

Babylon_Inc
12-01-2004, 04:30 PM
This comes up when i test the movie an press Ctrl+Alt+V:

Level #0:
Variable _level0.$version = "WIN 6,0,21,0"
Variable _level0.TotalPics = 5
Variable _level0.recentPic = 5
Variable _level0.FileNameStartsWith = "kb"
Variable _level0.filename = "kb5.jpg"
Movie Clip: Target="_level0.square"
Button: Target="_level0.next"
Variable _level0.next.onPress = [function 'onPress']
Variable _level0.next.tabIndex = [getter/setter] undefined
Button: Target="_level0.back"
Variable _level0.back.onPress = [function 'onPress']
Variable _level0.back.tabIndex = [getter/setter] undefined

.. hmmm .. [getter/setter] undefined that does not sound healthy, but I do not know what a getter/setter is.