LoadVars send firefox popup block

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post June 1st, 2007, 4:04 am

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?
“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. ”
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 1st, 2007, 4:04 am

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post June 3rd, 2007, 3:37 pm

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
  • No Avatar
  • Joined: Oct 21, 2006
  • Posts: 202
  • Status: Offline

Post June 3rd, 2007, 5:11 pm

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 51 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.