Solved

What is the call to open a Facebook Share dialog from a flash application on a profile tab?

Posted on 2010-08-30
5
1,013 Views
Last Modified: 2012-05-10
Good Evening!

I am trying to open a facebook sharing dialog from my flash application.  With my existing code, it opens the share dialog in a new window, I can't seem to get it to open in the parent window.  Here is the code that I am using:

function shareClickHandler(evt:MouseEvent):void
{
    var varsShare:URLVariables = new URLVariables();
    varsShare.u = 'http://domain.com/pageN.html';
    varsShare.t = 'Title Page';

    var urlFacebookShare:URLRequest = new URLRequest('http://www.facebook.com/sharer.php');
    urlFacebookShare.data = varsShare;
    urlFacebookShare.method = URLRequestMethod.GET;

    navigateToURL(urlFacebookShare);
}



Thanks!
Rose

 
0
Comment
Question by:rdurban
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:halfbloodprince
ID: 33566397
function showShareDialog() {
        var strWindowFeatures;
       /strWindowFeatures = "toolbar=no,menubar=no,dependent=yes,scrollbars=no,resizable=no,status=no,location=no,top=50px,left=80px,directories=no,width=650,height=300";

        window.open("http://www.facebook.com/sharer.php?u=yoururltoshare", "test", strWindowFeatures);
           }
0
 

Author Comment

by:rdurban
ID: 33568138
Good Morning HBP,

Thanks for the script, this is giving me a compile error.  Is this AS2 or AS3?  I need it to work in AS3.

Thanks!
Rose
0
 
LVL 5

Accepted Solution

by:
badrulnm earned 500 total points
ID: 33998712
navigateToURL(urlFacebookShare, "_self");
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 34272927
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
Viewers will learn key ranges in Sampler to make their sampled instruments sound more realistic Gather samples of various notes and drag them to Key Range panel: Set proper root key for each sample: Select all the samples with Command-A (or Ctrl…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question