CS3 :: Stage Size For Facebook Apps?
Aug 14, 2009Recommend for the stage size (in px of course) for a swf, if I were going to create a Facebook app (using the FBML's canvas)?
View 3 RepliesRecommend for the stage size (in px of course) for a swf, if I were going to create a Facebook app (using the FBML's canvas)?
View 3 RepliesCan Facebook apps be written in Flash CS3 or do I have to use Flex? I'm more comfortable with Flash, but it seems geared toward Flex.One of the Facebook SDK examples (FriendsList_flash) contains an FLA file but it won't load in Flash CS3. Does it require a new version or am I doing something wrong?
View 1 RepliesI am developing a game and using the official "Adobe AS3 SDK for Facebook platform" libraries to connect it to facebook.In the libraries, you have two options for connecting to facebook, via the Facebook.as, and the FacebookDesktop.as.The Facebook.as is meant for Facebook Canvas and Web deployment, and it assumes the Facebook Javascript to be embedded in the page that has your .SWF.
However as we all know, games are frequently redistributed, just by taking the .SWF and posting it elsewhere, where most likely it wont have the Facebook Javascript embedded in the page.My question is, that in these situatins, is it a good idea to use the FacebookDesktop.as instead? IE detect the URL, and if we are on 3rd party Website, then use the FacebookDesktop.init() etc methods instead of the Facebook.init() ones?
What do you think? Are there any big disadvantages or a better way of doing it?
I have a task to make simple game that deployed as a facebook app using Adobe Flex. Like most facebook game, I need to show high score, compare score with friends and some other similar functionalities, which I think need some sort of database thing.
The problem is a had only little experience about database, only have tried simple things with MySQL and I don't know where to start.
While running a Flash app, if I open a new or existing Facebook chat window, my Flash content disappears. I can continue to hear music playing from the app and when I close/minimize the Facebook chat window, my Flash content reappears. Is this a known issue? This is happening in Google Chrome 15 and Internet Explorer 9 on Windows 7 with Flash Player 11.
I checked this on my own Flash app as well as on another Flash app made by someone else and the same behaviour is occurring. It does not however hide non-Flash content. It seems to be a bug with Facebook chat and Flash content.
Does anyone have any experience making Flash-based Facebook apps? I'm trying to make one but the event listeners don't seem to do anything. It works fine on its own but once I upload it to Facebook, it stops working.
View 4 RepliesI have been trying to develop flash based facebook apps. After reading a bit on methods (there are many) I went with zerofractals bridge component ... basically an external interface wrapper that manages calls to the javascript api. Well, its been frustrating for me... some calls go off into limbo and generate no result event.. it hangs on various calls, never on the same one... im just over it. So now i need to decide what to try next.
I have had a hard time finding good flash/facebook documentation. I would love to see a good working example. As it stands, in addition to the above api frustration, my app chooses not to ask the user for permission the first time they come and doesn't load at all. They have to hit refresh. Lots of little **** like this is bugging me.
Does anyone here have experience with this? I need something that is reliable. I was hesitant to use the adobe library because you have to compile your api key and secret in it. Now im thinking about giving it another look, I can always bring those strings at runtime in from a protected place I guess.
I'm playing a flash game on facebook. I know I can decompile it to find out all the commands and would like to make scripts to automate the game by calling procedures in the actionscript of the game. So I guess I would like to make a plugin also that would insert this console into any flash app and this would be handy for a lot of things. Then if anyone wants to hack a new game, u just decompile it and make a handbook of methods for people to make scripts with. So how would I go about making this console? I don't know if I could make a swf interact with the game or if it has to be compiled into the game's swf. Or if it is easier with javascript, that is cool too. maybe we can make a javascript library just for this. anyone can tell me more?
View 2 RepliesI'm trying to get an object to increase in size the lower it goes down the stage, and decrease in size the high it moves up the stage.
It only needs to increase or decrease by a small amount. Basically, it's for a game character. To ad realism to his movements, it would be nice to have this feature.
This is where i'm up to so far:
Code:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
[code]....
I think I need something like:
if (object moves up)
decrease
else if (object moves down)
increase
I load an SWF using a simple loader but it changes the main applications x/y position and size.Which loader do I use to load an swf that will maintain the position size of my app?
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, function handleInit(event:Event):void{
var UIDesigner:UIComponent = new UIComponent();
[code]......
Due to screen density of iPhone, image assets are developed larger. So, when specifying the icons and images to Flex components takes this form.
<s:ViewNavigator id="tab1" label="Tab1 width="100%" height="100%" firstView="views.Tab1">
<s:icon>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/tabIcon.png')"/>
</s:icon>
</s:ViewNavigator>
Flex of course renders this correctly and adjusts the size to what it should be. However, when I load images myself, they appear blown up as they would appear double in size. This is how I use it when overriding the tab bar.
[Code]...
How do I change the stage quality to improve rendering performance in Flash Player AIR? StageQuality doesn't seem to have any effect at all. Is this a known bug or am I doing something wrong? I'm using this in the Main() app class constructor:
stage.quality = StageQuality.LOW;
Is there no other way to improve performance in AIR apps?
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?
I'm working on a slideshow where I'm calling in photos from an xml file. How do I tell AS to resize the stage according to photo dimensions? Would I need to list the dimensions in the xml file? If so, how would I pull that into the fla file with AS?
View 6 Repliesis possible to dynamically change the dimensions of my flash stage depending on the size of the browser window ?
Very important, I don't want to stretch any element. Just make the background bigger.
is possible to dynamically change the dimensions of my flash stage depending on the size of the browser window ?
Very important, I don't want to stretch any element. Just make the background bigger.
I'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...
Actionscript Code:
import flash.display.*;var adLoader1:Loader = new Loader();adLoader1.load(new URLRequest("100828_budlight_texas_fight_728x90_jn.swf"));adLoader1.x = 313;adLoader1.y = 162;addChild(adLoader1);var adLoader3:Loader = new Loader();adLoader3.load(new URLRequest("100828_budlight_texas_fight_300x615_jn.swf"));adLoader3.x = 738;adLoader3.y = 0;addChild(adLoader3);
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 RepliesI 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??
I am using a Flex widget for my facebook application. How can I get the current user's facebook ID?
View 1 Repliesi 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 RepliesI 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].........
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?
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.
I have created a flash project in CS5 and I have set the size of the stage to 500 x 400. When I view it in the flash player as the swf it plays fine. What I want to be able to do is get the swf file to fill the screen with the image no matter what size the end user scales the window of the Flash player too.
View 5 Repliesi have a bit of a problem with a number var. On opening stage (875 px) the var value is 368; when i resize the stage i need the var to grow till 578 max.
View 1 RepliesWhen I type text on the stage, especially long sentences, and Match Contents in Document Properties, the stage size is always off. See attachment.
Is this a common Flash problem, and what's the best way to deal with it? (CS4)
I have a component, in which I am trying to create a sprite the size of the stage. But stage is null:
var bg:Sprite = new Sprite();
this.addChild(bg);
bg.graphics.beginFill(0xFF0000);
bg.graphics.drawRect(0,0,stage.width,stage.height);
What am I missing here? If I put something similar in the document class, it works.
I'm using Flash CS3 and wish to create a movie where the stage is a certain size but the actual content of the movie extends further than the stage. The user will be able to drag the stage from left to right to show hidden parts of the movie. Similar to the idea of a horizontal scrolling image gallery but without the scrollbar (see attached for example image).
View 7 RepliesI am doing one completely dynamic interface which is control by an admin module. what i want to do is to control the stage size by this admin module.When i press submit in the admin module it will generate one xml file which is connected to the flash flie, and what ever the size is mention in that xml that has to reflect in that flash file. I don't want any supporting file only one swf. I don't know whether it is possible to adjust the stage size dynamically on fly.
View 3 Replies