LoadVars send firefox popup block

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

Is it me the only one who didn't know this or ... ?
This is what i have:
Code: [ Select ]
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();
}
  1. function PlayEmbededVideo()
  2. {
  3.     var lvSend:LoadVars = new LoadVars();
  4.     lvSend.strEmbed = "some text";
  5.     lvSend.send("playembed.php", "_blank", "POST");
  6. }
  7. // first case: when i press the button, firefox blocks the new window
  8. myBtn.onPress = function()
  9. {
  10.   PlayEmbededVideo();
  11. }
  12. // -------- onPress and onRelease are not used in the same time, i remove one of them when testing
  13. // second case: when i release the button, firefox displays the new window
  14. myBtn.onRelease = function()
  15. {
  16.   PlayEmbededVideo();
  17. }

Which makes me wonder: what does onRelease more than onPress, so new window is no longer considered a popup and blocked?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Hmm its funny. I did not know that. I always use onRelease because I feel that it provides more of the expected user experience, but either way there shouldn't be that kind of difference. Just curious but what happens if you use a key press?

also does it change the FF reaction if you use
Code: [ Select ]
System.security.allowDomain( "www.mysite.com" );
  • krismeister
  • Graduate
  • Graduate
  • krismeister
  • Posts: 202

Post 3+ Months Ago

I don't know your answer, but--

Thanks so much. I never understood how some people could get their Flash movies to open a pop-up but not me.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.