ActionScript 3.0 :: Mochiads - Wrapped SWF Won't Receive Facebook Parameters

Sep 5, 2009

I am having an issue with Mochiads. I have one of my Flash games on Facebook. Everything works just fine when the SWF is hosted by me. However, when I give it to Mochiads, they create a wrapper for the file, and the facebook transactions don't work. I suspect it's because of this code:

[Code]....

Facebook passes in some parameters when it loads the SWF, such as session ID and user ID. However, when the SWF looks at this.root.loaderInfo it is only looking at the Mochiads wrapper, not the Facebook canvas that loaded it. I am going to contact Mochiads and see what they recommend. I suspect it might be worth trying this:

View 5 Replies


Similar Posts:


Php :: Embedded SWF In Facebook With MochiAds Loader, Access FB Flashvars?

Dec 7, 2009

I have a flash game embedded on Facebook but need access to the flashvars facebook passes to all embedded games. However I am using the mochiads preloader meaning that _root.fb_sig_user is always undefined?How do I get to the variables?stage.loaderInfo.parameters.fb_sig_user

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

Actionscript 3 :: Receive Parameters In A Swf From A GET Request?

Sep 9, 2010

I tried using var params: Object = ((this.stage.loaderInfo) as LoaderInfo).parameters; to get the parameters, but it returns an Object with no properties. That LoaderInfo will give me the correct URL without the parameters though if I use LoaderInfo.url. I'm using the request: http://localhost/foo.swf?start=foobar. params.hasOwnProperty("start") returns nothing, and using a for loop shows that "params" has no properties. How do I receive the start/foobar pair in my code? I would much prefer to not use FlashVars due to our setup.

View 2 Replies

Actionscript 3 :: Functions That Can Receive Unknown / Variable Amount Of Parameters?

Nov 28, 2010

How can I define functions that can receive unknown/variable amount of parameters?

View 2 Replies

ActionScript 3.0 :: Convert Facebook Parameters Into Array?

Nov 24, 2010

it seems that there are few support with regards to facebook api in flash. I would just like to ask for help with regards to managing facebook params when it's loaded to flash.
 
I'm using amfphp and flash professional. I've manage to get the params using

var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
 
This returns 5 params:
 
sessionheightfb_fbjs_connectionfb_local_connectionwidth What I'm interested in getting are the values in session.My question is how do I convert this session values into an array or how do I get the uid and session_key?
 
This is the exact return in string:
 
{"uid":"1448570087",
"session_key":"2.LpHrIZ9IOujNzZBVf7W_Wg__.3600.1290628800-1448570087",
"secret":"vZnL1HJsaI4QpNtqdNaYNQ__",

[Code]....

View 4 Replies

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

Make Wrapped Text Zoom In?

Jul 21, 2010

I have wrapped text in a box I'd like to do a "zoom-in" effect on.  It is 3 lines long in the box.  I don't want to make the font size bigger and bigger because that will change the way it wraps.  Do I have to "break apart" the layer until it's outlined?  I'd rather leave the text editable.

View 3 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

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

Xml :: Getting A Flex RTE To Group LI Items Properly (wrapped In UL Tag)?

Feb 5, 2010

I'm trying to use XML to convert the code that a Flex RTE creates to valid HTML. No problems on other HTML elements, but difficulty with unordered lists. I created a solution for moving consecutive LIs into a UL node. After trial and error, I came up with the following solution. My question is - surely there's a better way to do this?

for each (listXML:XML in xml..li) {
if (listXML.children().length() == 0) {
// list item is empty - make it an empty paragraph instead

[code].....

View 1 Replies

Flex :: Make A Wrapped Property Bindable?

May 20, 2011

I have Class1 with a read-only bindable property called age:

public class Class1 {
private var _age:int;
[Bindable(event="ageChanged"]

[Code]....

Of course the [Bindable] tag there doesn't make sense. But how can I achieve the same effect?

I believe I can dispatch some sort of ageChanged event from Class2 up to Class1 and then have an event handler in Class1 dispatch another local ageChanged event to which I bind Class2's age property.

View 2 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

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

ActionScript 3.0 :: Position MCs In The Stage Like Words Wrapped In A Page?

Jul 4, 2009

I'm trying to position some MCs in rows in the stage (MCs created dinamically) in a manner that when they reach a max width they jump to a row bellow, like words wrapped in a page with left alignment or, to better explain, like the image scheme attached. Each  MC has a different width.

I've tryed a lot with no success. But I guess that I'm almost there. At this moment I'm using an array that retrieves each MCs width and another that retrieves the widths sum. Here's my code, important parts in red:

[Code]...

View 5 Replies

Flex :: Adobe - How To Get Text In Label Control Wrapped

Jul 16, 2009

How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.

View 1 Replies

ActionScript 2.0 :: Last Line Of Multiline Wrapped Text Cut Off With DropShadowFilter

Oct 15, 2008

I'm running into an issue where, if the dynamic text field I create wraps and autoSizes to 2 lines or more, the last disappears (sometimes partially). However, this only happens when I apply a DropShadowFilter to it. If I don't apply the drop shadow filter, it renders correctly. Note that whether or not the text renders correctly, flash seems to know that the text has wrapped and autosized, as this is how i assign the Y position of the second text field below it. See code below:

[Code,,,]

View 4 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

Javascript - Flex Tree View With Wrapped Text On Nodes?

Sep 8, 2010

I've spend hours searching for a way to put one paragraph of text in one tree node in Adobe flex. How can I do it? I created a simple tree view but the text is cut after the right border.

So I tried to create a tree renderer. In the renderer I specified width=100 and the text wrapped. But the height of the nodes was not being calculated properly, so the text over consecutive nodes overlapped and got messed.

So how do i do wrapped text in a tree node?

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

Flex :: Flash Builder 4: Error #1009 In When Button Is Wrapped In BorderContainer

Sep 7, 2010

I have a component where a Button is wrapped in BorderContainer. I'm passing a custom property to the component at run-time to change the label of the button but Flex is reporting the following error:

Cannot access a property or method of a null object reference

When the error occurs, Flex highlights the following code:

myButton.label = value;

Here's the app:

// MyApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]....

View 1 Replies

ActionScript 2.0 :: Creating An Input Text Appeared Wrapped Round A Circle?

Jul 25, 2010

how it is possible to create an input box for the user to type their text and make the text appear wrap around a circle dynamically and the radius of the circle can also be changed dynamically?

View 1 Replies

ActionScript 2.0 :: Detect Newlines In Dynamically Loaded Wrapped Multiline Textfield

Oct 4, 2008

I have the following composition from my designer:

So, I have to load these two HTML paragraphs from an XML file and put them in two actionscript created text fields. The text fields are multiline, wrapped and html and they are displayed just fine. Then I have to hilight one of the textfields just like in the image above so I must define a function that takes this textfield as an argument and creates a movieclip behind it. All I have to do further is draw some lines in this movieclip.

The problem is I just can't detect the newline characters in the text field so I can draw the hilights from the start of each line to the end of it.

Here is my function:

function hilight(sapou_txt){
var hilight_mc = sapou_txt._parent.createEmptyMovieClip("hilight_mc",-1);
hilight_mc._x = -5;
hilight_mc._y = sapou_txt._y;}

There would be .indexOf("") method of strings but if I use it after sapou_txt.text this has no result because, apparently, all I have there is a string without any special newline characters, just as I loaded it from the XML file, minus HTML tags.

If I use sapou_txt.htmlText apparently I get the original text including the HTML tags but, again, no special newline characters and, as you probably realised from my description above, I need both newlines from HTML (wich are not so hard to detect) and newlines caused by wrapping text in the textfield. Anyway, if I succeed in detcting newlines in the text field then I won't need the newlines in my original HTML.

View 4 Replies

Actionscript 3 :: Spark - Manually Scrolling A Element Wrapped Inside A Scroller Window

Jun 21, 2011

The answer to my question is possibly easy, yet I haven't found an example of solving it in the web, nor have I found a solution reading ActionScript reference. My problem is the following: I have a big UIComponent derivate element inside a Scroller (spark.components.Scroller) window. The Scroller class is great because when my canvas element, that changes size dynamically, exceeds its boundaries, scrollbars appear automatically and handle scrolling of my UIComponent inside it. However, I'd like not just to be able to Scroll using these automatically appeared scroll bars, but also by using a pan tool that I will myself implement (similar to the hand tool in Adobe software, for example). The thing is that I am not able to modify correctly the element's position inside the Scroller window.

I tried, as a first approach, accessing to my elements' 'x' and 'y' properties, however, when changing them, I dont get the resulkts wanted. The code for it is the following (in which, for symplifying reasons, I used a text label as my 'inside' element, and two buttons as an external scroll controller, instead of a hand tool)

[cODE]....

View 1 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

Javascript :: Fix: "NPMethod Called On Non-NPObject Wrapped JSObject" Error?

Mar 17, 2010

I am trying to call a method defined in flash object from javascript (firefox-3.0/Linux) and getting the exception: "NPMethod called on non- NPObject wrapped JSObject". If I use eval on window.document.flash_object.func() it throws "NPMethod called on non-NPObject wrapped JSObject". Where as, if I define a javascript function in side the page as given

[Code]....

View 4 Replies

Flex :: Access XML Object In Restlet 2.0 Thats Wrapped Inside A Representation Object?

Jan 7, 2010

I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object to a DomRepresentation, but thats not working. If I put the received Representation object into a Form object, then getFirstValue is returning that XML as a string! I noticed that the contentType of the HTTPService was application/www-form-encoded so I set it to application/xml and its not helping either. I use restlet 2.0m6 and here is the code snippet that I use -

[Code]...

View 1 Replies

ActionScript 3.0 :: BoneArmature Runtime Error "Runtime Symbols With Skewed Matrices Should Be Wrapped In A Movie Clip"?

Oct 9, 2009

Whenever I link a set of movieclips together with the bone tool which are inside a containing movieclip, and also set the type to "runtime" instead of "authortime", I get this error when published.

"Runtime symbols with skewed matrices should be wrapped in a movie clip" What does it mean? I need the type to be set to runtime so I can use scripting with it..

View 2 Replies

ActionScript 3.0 :: Send And Receive From PHP

May 26, 2009

I would like to send information to a php script that queries a database.

eg

send two strings clientName and userName to php

PHP queries the mysql database and returns the result.

How would I us URLVariables or URLLoader? or is it something entirely different.

View 10 Replies

ActionScript 3.0 :: Best Way To Receive AMF Dates?

Dec 22, 2009

Whats the best way to receive AMF dates? The queue is an array of vo objects, and some testing vars.
My VO
public var itemID:uint;
public var itemSource:String;
public var itemCategory:String;
public var itemTitle:String;
public var dateString:String;
[Code] .....

View 1 Replies







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