Thanks Trevor
In example FlashWebExample we can see in the <head>
<head>
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/
libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="
http://connect.facebook.net/
en_US/all.js"></script>
</head>
So the JS script is required.
I am making a game, which will be distributed on portals and I have no
access to HTML code from there.
Can I call from Flash a function like this:
"
var url:URLRequest = new URLRequest( "
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= '
http://connect.facebook.net/en_US/all.js';
document.getElementById('theHeader').appendChild(script)
top.attachScript " );
navigateToURL(url, "_self")
"
?
Will it work?
Did anyone try to master this functionality?
Is there any way to use FB from Flash, without access to initial HTML,
like on Flash game portals?
On Jun 30, 6:44 pm, Trevor <
rovertn...@gmail.com> wrote:
> Take a look at the FlashWebExample athttp://
code.google.com/p/facebook-actionscript-api/downloads/detail?n...