Is it me the only one who didn't know this or ... ?
This is what i have:
function PlayEmbededVideo()
{
var lvSend:LoadVars = new LoadVars();
lvSend.strEmbed = "some text";
lvSend.send("playembed.php", "_blank", "POST");
}
// first case: when i press the button, firefox blocks the new window
myBtn.onPress = function()
{
PlayEmbededVideo();
}
// -------- onPress and onRelease are not used in the same time, i remove one of them when testing
// second case: when i release the button, firefox displays the new window
myBtn.onRelease = function()
{
PlayEmbededVideo();
}
- function PlayEmbededVideo()
- {
- var lvSend:LoadVars = new LoadVars();
- lvSend.strEmbed = "some text";
- lvSend.send("playembed.php", "_blank", "POST");
- }
- // first case: when i press the button, firefox blocks the new window
- myBtn.onPress = function()
- {
- PlayEmbededVideo();
- }
- // -------- onPress and onRelease are not used in the same time, i remove one of them when testing
- // second case: when i release the button, firefox displays the new window
- myBtn.onRelease = function()
- {
- PlayEmbededVideo();
- }
Which makes me wonder: what does onRelease more than onPress, so new window is no longer considered a popup and blocked?
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”