A very strange problem related to Flash and Java
Posted
by Nitesh Panchal
on Stack Overflow
See other posts from Stack Overflow
or by Nitesh Panchal
Published on 2010-05-14T11:06:49Z
Indexed on
2010/05/14
17:24 UTC
Read the original article
Hit count: 269
Hello,
I have created one simple program for showing webcam of the user. It works absolutely fine when i am running without integrating it in my java web application. But as soon as i copy paste the same files in Netbeans 6.8 and try to run it. My swf file is visible but the buttons in it are totally unclickable. I get the message of allow or deny showing webcam but the buttons are not clickable. It makes my application totally useless. I thought it's a minor issue but now it's getting on my nerves. I am trying it since 3 hours but didn't find any solution. I don't think anybody faced this issue till now that's why can't seem to find any thread in any forum on it in google.
I am using Netbeans 6.8, Ubuntu, Glassfish V3 and JSF.
Thanks in advance :).
UPDATE:- It works fine on Windows XP. Then what can be the problem with Ubuntu? Any kind of permission rights that i need to give?
2nd UPDATE:- I think this is bug with Flash. I found that this code doesn't work :-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
id="VideoConferenceAdmin" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="opaque"/>
<param name="allowFullScreen" value="false" />
<param NAME="FlashVars" VALUE="rootIp=localhost&userName=admin&roomName=test" />
<param name="movie" value="Conference/VideoConference.swf" /><param name="quality" value="high" />
<embed src="Conference/VideoConference.swf" wmode="window" FlashVars="rootIp=localhost&userName=test&roomName=test"
quality="high" width="600" height="500"
name="VideoConference" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
And this one works :-
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
id="VideoConferenceAdmin" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="opaque"/>
<param name="allowFullScreen" value="false" />
<param NAME="FlashVars" VALUE="rootIp=localhost&userName=admin&roomName=test" />
<param name="movie" value="Conference/VideoConference.swf" /><param name="quality" value="high" />
<embed src="Conference/VideoConference.swf" wmode="window" FlashVars="rootIp=localhost&userName=test&roomName=test"
quality="high"
name="VideoConference" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
As you can see, just by removing the height and width attribute the panels of Flash settings work fine. I know you will find me funny but i am not. You can check out on your own if you don't trust me.
Now, my question would be, can anybody tell me how do i set height and width of swf? I want it to be 600px width and 500px height. Even the style attribute doesn't work. Can i set height and width from within Flash? because without explicitly setting height and width, it looks very small. I think this should be very easy for all now. Thanks in advance :)
© Stack Overflow or respective owner