WebPlayer : Custom Progress Bar problem

Hello, I have Unity3.1 PRO

I’m trying to change the logo and progress bar of the webplayer loading.
i followed the instructions i found “here” and I managed to do it quite well. (i can see the new logo and bars)
But,when i look twice, it seem’s that the progress bar doesn’t work properly.

i thought that the “progress frame image” would remain fixed in the back while the “progress bar image” would grow overlaid, …but it did not !

actually the “progress frame image” is SCALING (from left to right) as the “progress bar image” is growing.

i wonder if this is a sort of bug or if I did big mistake…
here is the code:

[COLOR="navy"]function [/COLOR]GetUnity() {
	[COLOR="navy"]if [/COLOR]([COLOR="#708090"]typeof [/COLOR]unityObject != [COLOR="#8b0000"]"undefined"[/COLOR]) {
		[COLOR="navy"]return [/COLOR]unityObject.getObjectById([COLOR="#8b0000"]"unityPlayer"[/COLOR]);
	}
	[COLOR="navy"]return null[/COLOR];
}
[COLOR="navy"]if [/COLOR]([COLOR="#708090"]typeof [/COLOR]unityObject != [COLOR="#8b0000"]"undefined"[/COLOR]) {
	[COLOR="navy"]var [/COLOR]params = {
		disableContextMenu: [COLOR="navy"]true[/COLOR],
		logoimage: [COLOR="#8b0000"]"/WebPlayer/logo.png"[/COLOR],
		progressbarimage: [COLOR="#8b0000"]"/WebPlayer/pbar.png"[/COLOR],
		progressframeimage: [COLOR="#8b0000"]"/WebPlayer/pframe.png"[/COLOR]
	};
	unityObject.embedUnity([COLOR="#8b0000"]"unityPlayer"[/COLOR], [COLOR="#8b0000"]"/WebPlayer/WebPlayer.unity3d"[/COLOR], [COLOR="blue"]640[/COLOR], [COLOR="blue"]360[/COLOR], params);
}

looks like i’m missing something… but don’t know what.
I’m under Win7 64b, and tested on Firefox3, InternetExplorer8, and chrome, they did the same…

anybody ?

me,too. the logo and progress bar imgs is scaling. how to fix it ???

This happens when you open the web player html file on a browser directly. You shouldn’t just run the player by clicking on the “html” file, you must put it on a web server that can properly interpret it.

Other problems include not being able to download the player when you click the “missing plugin” message/image.

I recommend you to set up a localhost server to properly test your Unity Web Player script!