Skip to main content
Inspiring
February 27, 2016
Answered

dynamic textfield var score not working in facebook post

  • February 27, 2016
  • 1 reply
  • 319 views

dynamic textfield var score not working in facebook post . Rather it showing "OBJECT TEXT FEILD"

import flash.events.Event;

btnFB.addEventListener(MouseEvent.CLICK, gotoFB);

function gotoFB(e:Event)

{

  var url:String = "https://www.facebook.com/dialog/feed?" +

  "%20app_id=1487500124800564%20&display=popup" +

  "&caption=I%20just%20scored%20" + score +

  "&link=graphicscoder.org" +

  "&redirect_uri=https://www.facebook.com/";

  navigateToURL(new URLRequest(url), "_blank");

}

This topic has been closed for replies.
Correct answer kglad

you're assigning something (eg, score) to be the textfield instead of the textfield's text property.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 27, 2016

you're assigning something (eg, score) to be the textfield instead of the textfield's text property.