ShowPermissionDialog With ExternalInterface (facebook/ Flash)?

Mar 22, 2010

I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall.I have the flowing javascript code:

<script type="text/javascript">
function showStreamPermissions() {
FB.Connect.showPermissionDialog("publish_stream", doResult);

[code].....

View 1 Replies


Similar Posts:


Flash :: Adobe Facebook API Facebook.login VS Facebook.ui Popups?

Oct 24, 2010

I'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked.

This code works fine and displays me a Facebook login popup without question (Firefox):

var permissions:Array = ['publish_stream'];

Facebook.login( onFacebookLogin, { perms:permissions.join(',') } );

However, the following code running in the same application throws up a popup blocker (again Firefox):

Facebook.ui( "stream.publish", "popup", params );

Does anyone know of a work around this issue to make the share popup come up just like the login popup?

View 2 Replies

Flash :: Facebook Connect And Actionscript - Make All Of The Facebook API Calls Via JavaScript

Jun 1, 2009

I'm trying to determine the practical difference between using the com.facebook.session.WebSession and com.facebook.session.JSSession. The documentation ([URL]) has more around WebSession - but the example I have which is closest to what solution I'm trying to implement uses JSSession and it looks like I could avoid all of the JavaScript pass-through & ExternalInterface calls I'm making. It appears that the benefit of using this new ActionScript Facebook API is to avoid having to make all of the Facebook calls via JavaScript.

View 5 Replies

Facebook :: Flash - Connecting To Facebook From A Remote Website With OAuth2?

Jan 13, 2012

i need to connect to have a button on my website that connects to facebook (if not already logged in) and posts to the users wall.I've only done this from within an iFrame - do i still need AppId etc etc?

View 1 Replies

Facebook :: Flash - Post Swf With Parameters To Facebook Via Application?

Apr 4, 2012

I have a facebook application where the user choose 4 of his friends and then it creates a video (swf) with the pictures of your friends in it (loaded via xml). So I need to share this video on the user timeline. Everything works fine but the video is not embedded in the post on his timeline, there is only a post with the link to the page in it.The weird thing is, if I post the url directly on my timeline, the video is embedded, but not if the same link is posted via the application.here is my code called by the share button in js :

function postToFeed() {
var obj = {
method: 'feed',[code].........

View 1 Replies

Flash :: Facebook :: Facebook Pages And Content - Autoplay?

Dec 6, 2011

I've recently used the 'Static HTML' application to add autoplaying flash content to a Facebook Page.Nothing too fancy, no sound, and only a few secs long. Now, Facebook say:-"Apps on Pages must not host media that plays automatically without a user's interaction."

What do they mean by 'Media' exactly? I can understand a ban on autoplaying audio content but does the ban extend to something as harmless as an animated GIF? Or more to the point, does an autoplaying .swf file fall under this?

Lastly, what course of action would Facebook take if I did violate this rule? Would they issue a warning (giving me an opportunity to remove the 'offending' item) or would they just shut down my page without any consultation?

View 2 Replies

Actionscript 3 :: Facebook Login Handler Doesn't Get Fired In Flex4 Facebook API?

Mar 13, 2011

I have literally spent HOURS trying to solve this mystery... but simply can't seem to get hold of it.
I am using the same code lines (literally!) as the example here (official adobe tutorial) and I get different result.

[Code]...

Everything works fine, i.e. everything till it is time to fire the loggedin event. I get asked to log in and all permissions are asked correctly. After I log myself in to facebook, the loggedin event doesn't fire. Is there any way of solving this problem??

View 1 Replies

Flex :: Using A Widget For Facebook Application - Get The Current User's Facebook ID?

Sep 24, 2009

I am using a Flex widget for my facebook application. How can I get the current user's facebook ID?

View 1 Replies

ActionScript 3.0 :: Using The Adobe Facebook API To Logout Of Facebook From Swf

Sep 24, 2009

I can't find in the Adobe Facebook API how to log the user out of Facebook. The FacebookSessionUtil (and the related sessions and Facebook classes) all have a .logout() function, which will invalidate the user's current *session* within the swf, but it doesn't log the user out of Facebook.

What am I missing here? How are you supposed to log the user out of Facebook with this API? Since it's part of the TOS for Facebook Connect apps, you'd think this would be available in the API somewhere.

View 0 Replies

Actionscript 3 :: Get Facebook Post Id With Facebook-SDK?

Nov 8, 2011

After I upload a photo on a desktop facebook application i need to store it's post id in a database. From the facebook ActionScript SDK documentation:pi() methodpublic static function api(method:String, callback:Function, params:* = null, requestMethod:String = GET):voidMakes a new request on the Facebook Graph API.Parameters [...]callback:Function — Method that will be called when this request is complete The handler must have the signature of callback(result:Object, fail:Object); On success, result will be the object data returned from Facebook. On fail, result will be null and fail will contain information about the error.

So I implemented my callback function as follows:
protected function handleUploadComplete(response:Object, fail:Object):void{
status = (response) ? 'Success' : 'Error';

[code].....

View 1 Replies

Flash ExternalInterface.call In IE

Feb 21, 2010

I am having an issues with ExternalInterface.call to return a value in IE. It is working fine in Firefox. Eventhough I changed the "allowscript access" to "always", still it is not working. Is there any thing that I need to change in Flex or the HTML to make this work? or this is a security setting in IE?

View 1 Replies

Javascript :: Flash - Get A VAR With ExternalInterface?

Nov 5, 2010

I am trying to use the ExternalInterface.call function in my ActionScript(2.0) to get a javascript var value set in the wrapping document. The following seems to work in FireFox and in Chrome but, naturally, it does not work in IE(8). getting the value stored at this variable?

var linkPath = ExternalInterface.call("function(){return window.customLinkLocation;}", null);

[Code].....

View 5 Replies

Flash :: Way To Use ExternalInterface Locally

Oct 11, 2011

The problem is this: I have an swf embedded in an html. I must call a js function in the page from the swf via ExternalInteface. Ok. But it must work locally, for any user, without doing nothing. That's because this thing must be distributed in cdroms.

View 4 Replies

Javascript :: Linking Flash To OOP Using ExternalInterface?

Dec 6, 2009

I'm looking to call a flash method from a method in javascript and recieve a result:Example:Flash -

ExternalInterface.addCallback("getProgress", getProgress) // Javascript to flash
public function getProgress():void {
ExternalInterface.call("getProgress", progress); // Send progress back to javascript from

[code].....

View 1 Replies

Flash :: Get ExternalInterface Definitions In Script?

Jan 12, 2010

Is there a way to get a list of the exposed functions from a Flash object? For example, you could get a list of all methods in an object by executing[code]...

The only issue is that this won't expose any methods registered through the ExternalInterfaces API. I can try and see if the function exists (object['method']) and it tells me it is a function, but I would have to guess every existing method in this manner..

View 4 Replies

C# :: Communication Between Flash And C# Using ExternalInterface Without TLF Text

Jun 15, 2010

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like:

[Code]...

The axFlash_FlashCal is called fine, as long as there is a textbox on screen that's set to use TLF text. (any textbox will do, no specific ID). Without the textbox the even will not fire. (Even though ExternalInterface.Avaliable is set to true) I've tried using CS4 and CS5 to publish, using both Flash 10 and 9 as output.

View 1 Replies

Javascript :: Calling A Flash ExternalInterface ?

Mar 27, 2009

I'm trying to call a function declared with ExternalInterface in a Flash swf, using JavaScript.It worked once, but all of a sudden, it stopped working.I have a debug version of the Flash Player, but no errors occur in Flash.Not even a "Security Sandbox Error" or something. The only error I get is the following error in JavaScript Error: Error in Actionscript. Use a try/catch block to find error.I'm using AS3, exporting for Flash Player 10 and testing on Firefox 3/Safari 4, on a Mac.

View 4 Replies

Actionscript :: Can't Get ExternalInterface In Flash To Work

May 14, 2009

I'm using the XSPF music player (the slim version found here [URL], written in AS2) to play through a list of mp3s on a website. I need to make a javascript call each time it loads a track. I'm attempting to do this through ExternalInterface, but so far with no luck. Here's my setup: I'm writing the site on a linux machine which also houses the testing server, but editing the flash in windows. I'm testing the site on the same linux box with firefox 3.0.10. The html and actionscript are posted here[URL]). Does anyone see anything wrong with my code? why it's not working? I feel like it's something in my basic setup...

View 1 Replies

Flash :: Access ExternalInterface From QWebView?

Jan 2, 2012

Is it possible to access Flash's ExternalInterface from QWebView? If so, how can it be done?

View 1 Replies

ActionScript 3.0 :: Pass A Value To Javascript From Flash Using Externalinterface

Jun 1, 2009

i'm currently trying to call a javascript function and pass values to it. but i'm not really familiar in using the addcallback since i only tested on calling a function from flash without passing anything to the function.
 
Basically, i'm going to retrieve the values of a node from xml. and then i will assign those values to a variable in flash. now what i'm going to do next is pass this value to a javascript parameter..is it done using externalinterface?

I just need to throw the value to the javascript function parameter and no return values to the actionscript. The event is that whenever an image is click, the corresponding value for each image is passed to the javascript function.

[Code]....

View 1 Replies

Flash :: AS2.0 And JavaScript / JQuery (ExternalInterface) Communication

Jan 7, 2010

Im trying to use JS to send data to my Flash AS2.0 music player with ExternalInterface, except there are no good tutorials or guides on ExternalInterface that I can find. I want to be able to change the current song in the player by clicking a JavaScript link, and on page / window load without clicking, play a default song.

I dont need a super complicated answer on loading sounds in flash, etc., I am just having a lot of difficulties getting JS to send anything to Flash, and when I get that to work - would I need to put some if / else into the flash to determine if the link has been clicked or not?

[Code]....

View 2 Replies

Flash :: Getting Javascript To Work With SWF File Using ExternalInterface

Oct 16, 2010

I have a SWF file emedded withing a HTML page. Trying to do a simple operation - go to and play certain frame in SWF using javascript. I'm using ExternalInterface to do this but for the life of me can't get the two to communicate. I add all the code but when clicking on the link which calls javascript, it says my flash object is undefined?

[Code]...

View 2 Replies

Flash :: Use ExternalInterface.available To Check If JavaScript Is Enabled?

Nov 27, 2010

Flash has the ExternalInterface class which can communicate to JavaScript running in the browser Can you use the ExternalInterface.available property to check if JavaScript is enabled?

View 2 Replies

Javascript :: ExternalInterface Call From Flash To Function In OOP?

Dec 7, 2010

I can't call a javascript function from flash, when the flash object is added within an OOP structure in javascript. In short the code:

In flash:

if (ExternalInterface.available) {
ExternalInterface.call("flashMessages", "ready");
}

[Code]....

Flash gets loaded, but the call to the javascript function isn't received.

View 1 Replies

Actionscript 3 :: Pass Vector.<> From Flash With ExternalInterface?

Dec 15, 2010

I have a custom container (C#) for the Flash ActiveX control and am passing data back and forth. Previously I would use ExternalInterface.call and pass an Array as a parameter. I would prefer to use the Vector class now that it is available, but it appears that when I do that the call is never made.

It is however made if it is embedded in IE. It appears that when in IE, Flash will send out JavaScript to execute rather than serializing to XML. My guess is that the Vector XML serialization isn't baked in, so Flash just ignores the call.

Other than just going back to using Array, I've already done that for now.

View 2 Replies

Flash :: Does ExternalInterface Work On The File: Protocol

Mar 9, 2011

Can anyone confirm that ExternalInterface works on the file: protocol, or point to some docs that say that it will not?

View 3 Replies

Javascript :: Flash - ExternalInterface Not Working In Harmony?

Aug 2, 2011

I have avoided adobe products like the plague from when I was developing myself since it costs a fortune to buy and of their products, but big employers love it and pay for it so here I am. Our "Flash" guy just left the team and I inherited this issue. If you read my other post you know what is going on so I will move on. I want to make a simple call from actionscript to my javascript taht is referenced in my other post. I specifically want to call the CheckboxCollection function from inside of actionscript. I don't need to pass it any args or anything of the such from inside of actionscript.

All I need it to do is run that function once the flash is done loading. The javascript function will take care of everything I need, I just HAVE TO HAVE IT called from actionscript to make everything work in harmony. I am in the middle of teaching myself all things adobe and actionscript(much to my dismay), but I really have no clue where top go from here to make this work. I have reviewed adobe documentation, but until I have a better grasp of the language as a whole I am still lost. I copied most of my actionscript on to here, but I did leave out everything that had to deal with mouseover events, since my issue is not about a mouseover and they all work like a charm.

UPDATE: I had to stop working on this to get some other things done, but I am back to step one. NO matter what I do I am having no luck making this work. I have tried all suggestions on here, and tried everything I KNOW how to do, but I am having no luck. If anyone could take a look at this post and the one that I link to (It is the companion javascript for this) and see if they can come up with anything. I have tried so many different iterations of my code there is no use putting all of my trials up for example of what doesn't work,

/*
JavaScript External Calls
*/
function RegisterExternalCalls():void
{
if(ExternalInterface.available)

[code]....

View 2 Replies

Flash :: Flex Sandbox Error On ExternalInterface

Dec 9, 2011

My Flex application generates a sanbox error SecurityError: Error #2060: Violation securtity sanbox : ExternalInterface file:///C:/Documents and Settings/test/Bureau/FPtest/4.5/flashProspectus.swf cannot access file:///C:/Documents and Settings/test/Bureau/FPtest/4.5/flashProspectus.html.

1) this works when I do publish it on the web, does not work when I open the HTML file as file://

2) params.allowscriptaccess = "always";

3) I tested with c:flashProspectus.html (to avoid having SPACES in the file path)

4) in my flex init, I added: Security.allowDomain('*');

5) in my flex init I got

[CODE]..

View 1 Replies

Flash :: Forbid ExternalInterface Access To Loaded SWF?

Mar 5, 2012

We have a Flash app (AS3).This is a desktop application that runs in our own projector.No Air.The projector is written in C++.The projector gives Flash part an indirect access to Windows API via ExternalInterface.Now we want to let our community to create plugins.Just to let them make a small animated picture with a bit of Action Script 3.A plugin is going to be loaded as external .swf file at runtime.And, of course, we would like our users to distribute the plugins on the net.But, we have a security concern.What if some bad person would take advantage of the indirect access to Win API?I have made a small test.A child .swf loaded into the program tries to call ExternalInterface methods.It turned out the child.swf was able to do this.So every .swf file loaded into our program will automatically has an access to Win API.Downloading plugins for our program becomes as dangerous as an .exe file.Can we forbid ExternalInterface access to the loaded .swf?If not - how would you implement plugin system in AS3 with security in mind

View 3 Replies

ActionScript 2.0 :: ExternalInterface Scroll Events To/from Flash?

Jul 9, 2009

[URL] BUT it got moved to components (I do understand why) , however, someone in another forum said to look at ExternalInterface to fix the problem above which seems to now be more appropriate to this forum.

I just dont understand how this >>> ExternalInterface / getURL to send scroll events to/from flash, would fix this>>> [URL].

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved