Re: [Flashcoders] Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread opto-type

You can use _url like this:

nomRoot = this;
src = nomRoot._url;

Patrick

2007/4/24, Vivek Lakhanpal [EMAIL PROTECTED]:


Hi Everyone,

Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?

I don't want to use flashvars or javascript. Pure swf/AS.

--
Thanks  Regards,
Vivek Lakhanpal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread opto-type

And what about that ?

var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
arr.sort(16);
trace(arr[arr.length-1]);

Patrick




2007/4/24, Sherif Elshazly [EMAIL PROTECTED]:


Could be irrelevant or could be useful so I'll mention it anyway.

That looks fine to me, but i would create a new variable to hold the value
of arr.length to test against, it'll be more efficient to access a
variable than an array's property.

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
var loopCount:Number = arr.length;
for(var i:Number = 0; i  loopCount; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

Sherif

- Original Message 
From: Gilles Roquefeuil [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:51:18 AM
Subject: Re: [Flashcoders] there is a problem plz help


Hello,


is this better ?

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i  arr.length; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

Gilles
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash player and pop-up blockers

2007-03-14 Thread opto-type

Hello,

You just need to use:
onRelease = function(){
getURL(javascript:CNN_openPopup('http://sportsillustrated.cnn.com/mysi/
?eref=side_article','si','toolbar=yes,scrollbars=yes,location=yes,status
bar=0,menubar=yes,resizable=yes,width=800,height=600');http://sportsillustrated.cnn.com/mysi/?eref=side_article%27,%27si%27,%27toolbar=yes,scrollbars=yes,location=yes,statusbar=0,menubar=yes,resizable=yes,width=800,height=600%27%29;
);
}
I don't know why but with onRelease it's ok !


Patrick


2007/3/14, Perdue, Blake [EMAIL PROTECTED]:


We've gotten a lot of complaints lately that popup windows spawned by a
SWF are getting blocked by pop-up blockers, even though they are user
initiated. It seems the newer flash players (v8, v9) or perhaps the new
pop-up blockers (Firefox, Google, etc) have changed the way they operate
- this didn't used to be a problem for us.

We're making calls such as this:

getURL(javascript:CNN_openPopup('http://sportsillustrated.cnn.com/mysi/
?eref=side_article','si','toolbar=yes,scrollbars=yes,location=yes,status
bar=0,menubar=yes,resizable=yes,width=800,height=600'););

or

getURL(javascript:cnnVideo('play','/video/seth_davis/2007/03/12/madness
1.SportsIllustrated'););

Does anyone have any suggestions on how to prevent these windows from
being blocked, or any explanation as to why this problem seems so
prevalent now? Thanks.

-Blake

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com