Please help… Having a bad day

Ok So I’m using this code to load my images

on (release) {
	_root.createEmptyMovieClip("container", 1);
	container.loadMovie("PP999.jpg");
	container._x = 144;
	container._y = 200;
}

I have each movie that contains this code in the same root as the images but they wont load this time around. I have done other gallery sections in the same way for this company and they work fine. The only difference with this one is they wanted the new folder structure implemented but I did a test and it loads the other images.

I remember hearing something about only certain types of jpg images can be called using Flash in this way, and although these images are .jpg’s you still need to doctor them in some way??

Sadly I can’t post the link coz of the nature of the images.

On top of all this I’m feeling as sick as a pig and nothing is going according to plan [Oh woe is me].

Any help would be greatly appreciated b4 I go stark raving mad

to check and see if it the progressive JPG problem, simply change the path to a jpg you know works…

If it works, then it is a path problem… if it doesn’t, chances are its a progressive jpeg. re-optimize and see if that fixes the problem…

hope this helps,

Rev

Yeah I dropped another image in and all that and it worked fine.
So what’s the progressive jpg thing then?

[Sorry if this is a stupid question but I’m burning right now.]

what prog do you use to optimize your images for the web?

Rev

PShop

I was afraid of that. I never use PS, unless I have to…

When you save to web, there should be a checkbox somewhere that says “progressive jpeg” . make sure that is not checked. or hit F1 and check there. then save again. I think that will do it…

Sorry, I use Fireworks…

eilsoe would know, or lost (I think he’s offline right now), maybe sen…

Rev

Thanx man I’ll give it a go.

Are you the Rev that I see at 12 stone?

I don’t think so…

I don’t know what 12 stone is…

Rev

Kel, try using this script:

on (release) {
    _root.createEmptyMovieClip("container", 1);
    _root.container.loadMovie("PP999.jpg");
    _root.container._x = 144;
    _root.container._y = 200;
}

Basically added _root to the other lines as well, hopefully that’s the problem. =)

I’ll give it a go :slight_smile:

Thanx for that

Hey EG:

If he dropped another jpeg in and it worked, then wouldn’t that make it a progressive jpeg problem?

I’m just curious as I have not had to deal with this much (Generator is so much more robust, png to gif)…

and Happy B’day again…

:elderly:

Rev

Using photoshop 7 after you choose JPG and click save a box will pop up with options on quality and format options. Under format options there are 3 choices:

Baseline “Standard”
Baseline Optimized
Progressive

selecting either one of the first 2 should work, selecting progressive will make it so flash can’t import your jpg.

HB from me too. :smiley:

Sorry to say it didn’t work :frowning:

I have also fireworks 3 and ACDSee on this PC if someone can help with the progressive thing

*Originally posted by Sorcerer *
**Using photoshop 7 after you choose JPG and click save a box will pop up with options on quality and format options. Under format options there are 3 choices:

Baseline “Standard”
Baseline Optimized
Progressive

selecting either one of the first 2 should work, selecting progressive will make it so flash can’t import your jpg. **

It was set to the first one so I changed it to the second and still nothing

*Originally posted by reverendflash *
**Hey EG:

If he dropped another jpeg in and it worked, then wouldn’t that make it a progressive jpeg problem?

I’m just curious as I have not had to deal with this much (Generator is so much more robust, png to gif)…

and Happy B’day again…

:elderly:

Rev **

Oh I only looked at his first post and noticed there wasn’t any _root added to the other line of the script so I thought that could be the problem, but since you mention the fact that it worked with another image then yes, it could be the progressive problem. Re-saving it while the progessive box is unchecked would solve it then, you’re right Rev. =)

*Originally posted by electrongeek *
**Oh I only looked at his first post and noticed there wasn’t any _root added to the other line of the script so I thought that could be the problem, but since you mention the fact that it worked with another image then yes, it could be the progressive problem. Re-saving it while the progessive box is unchecked would solve it then, you’re right Rev. =) **

I have just checked and re-checked.
When I drop other images in they work fine but not with these new image!!

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

As this doesn’t look like it will be resolved anytime soon, can I use a different extension other than jpg or swf with my existing code??

As a last resort, you can put your jpgs in swfs and load swfs instead of jpgs, because that code won’t work with anything else.

And anyway, your code isn’t very clean. You should wait for the picture to be fully loaded before you can move it.

pom :crazy:

*Originally posted by ilyaslamasse *
**And anyway, your code isn’t very clean. You should wait for the picture to be fully loaded before you can move it.
pom :crazy: **

Yeah I don’t really want to use swf’s for this.

Not sure what you mean by moving it? The images don’t move. They are static. To move to the next image you click on the thumbnail. Thanx for the input though.

Can anyone help with the Progressive jpg part of this problem please??

Hey Kel, if you don’t have Photoshop then put all your images into zip file and post it here so I can take all your images and resave them in photoshop without progressive checked. Once I’m done then I’ll post it back up here.