Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Read Variables From Facebook



I'm currently trying to integrate flash into a java Facebok application and I have read that the FB:swf tag is capable of passing parameters into flash. I don't know how to read the parameters into flash though



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-17-2008, 09:59 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Read Variables
Hi guys, another problem !
How i can read in Flash MX variables what receive from browser.
For example :

http://localhost/test.php?a=1&b=2

now i send the variables a and b to a php file wher i have my swf inside.

Now i want to read this variables in flash without calling once again the script.

shortcut : "Read in flash variables what i send in browser"

i hope u understand what i`m trying to say.
thank you !

I Can't Get It To Read My Variables...
Ok, take a look at this script I have. I am retrieving data with php and mysql and putting them into variables: thisHereX, thisHerey, and thisHereMap. If I were to do trace on any on of this, if gives me what corresponds with the database; giving me the right variables. But if I were to use it like this:

char = {xtile:thisHereX, ytile:thisHereY, speed:3};

It completely slows down and tells me to abort before it crashes, with a pop up window.

Yet if I were type in :

char = {xtile:5, ytile:5, speed:3};

It returns fine and plays just as normal, why is this?!

I will post more code if what I have isn't enough info. Thanks.

Smartclip Variables Not Being Read
No luck in the other boards...I really need some feedback here - Please help!

Here's the scenario:

Frame 1 - four variables defined(level 0):

Code:
var price1 = "one"
var price2 = "two"
var price3 = "three"
var price4 = "four"


Frame 5 - movie clip(level 1) containg four duplicated smartclips (level 2)

this smart clip contains a property called 'price' defined by a list. This list has four values: price1, price2 etc. Flash documentation states that list values for smartclip properties that are not in quotes will be read as variable names instead of actual values, which is what I want. The smartclip set as 'price1' should find the value for 'price1' from frame 1 of level 0. Well, it doesn't. Does anyone see a problem with my logic that I'm missing? I've tried placing the variable definitions within the level 1 movie clip, but that doesn't work either.

here is the .fla: http://www.alphajournal.com/smartclip_test.fla

Thanx all,

Quasi

Getting Flash To Read Variables From ASP
I have viewed quite a few posts of people having problems getting Flash to read variables from an ASP page. I too had that problem until now.

Perhaps this will help others.

I have been building my ASP page with the default document that Dreamweaver opens with you click NEW DOCUMENT.

Those who use Dreamweaver know that it puts the <HTML><TITLE><HEAD> and <BODY> tags in by default.

I would then put my ASP code between the <BODY> tags. Don't ask me why, I was a newbie and it worked.

Well, take all of that code out and just leave the ASP code between <% %>

If you need HTML coding on the same page, put the ASP code at the very top, above the <HTML> tag, and it should work.

Hope this helps.

Can Flash Only Read Php Variables From A Url?
Can flash only read php variables taken from a url string using get or is it possible to read posted values, i dont want the php script to ever be a visible element of the site, just to be used for processing.

I've tried numerous methods to receive variables in flash from php, i can send them to php but not receive anything back. If anyone could look at these files and tell me where i'm going wrong it would be much appreciated. I've tried searching the forums but i cant find any resolution to this issue.

setup is php 4.2.3, apache 1.3.27, flash mx, testing on localhost

Thanks.

How Read Variables Into Flash?
Hey,

I need to read some variables into a flash movie. Can I do this with javascript or the <param> tags? A short example or a link would be very helpful.

Thanks.

Unable To Read Variables
Hello everyone.

I am trying to bring some variables in from a database then use them in my movie. This is the code I am using:

function createHeader() {
trace(divPrefix);
trace(projectHeader.medium);
trace(_level0.projectHeader.type);
trace(projectHeader[ouManager]);
trace(_level0.projectHeader[preparationDate]);
trace(_root.projectHeader.divisionName);
}
projectHeader = new LoadVars();
projectHeader.load("/forms/projectdata.php");
projectHeader.onLoad = function() {
createHeader();
};

When I test this movie in debugger mode I can see the variables with their correct data on level0 under the projectHeader object. Yet no matter which way I try to call them the results say "undefined". Can anyone see what I am doing wrong?

Thanks.

Help - Read Variables From Movies ?
Hi, I loaded a movie using " loadMovieNum("MasterPage2.swf", 0); ", But how can I read the variables from the loaded movie??

Thanks..Pls give me advise...

Cant Read Embed Variables ?
Hi,

I'm having a weird problem trying to read embedded variables.

The parameters in my html page look like this


ActionScript Code:
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="testRquest" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="testRquest.swf" /><param name="quality" value="high" /><param name="trackids" value="1,2,3,4,5,6,7,8,9,10"/><param name="bgcolor" value="#ffffff" /> <embed src="testRquest.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testRquest" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>

I want to be able to read the parameter value of "trackids"

The code that I'm using to try and do this is as follows but when I run it the text field that should hold the parameter displays nothing?


ActionScript Code:
var paramObj = LoaderInfo(this.root.loaderInfo).parameters;
test.text=paramObj.trackids;

As far I know this is how you read embedded variables. Can anyone see why I cant get at my variables?

IE Wont Read Variables
Hi,

Has anybody got much experience with IE not reading embed src variables?

The variables read fine in firefox but in IE they come up as undefined.

I'm a bit stuck on this one. I've no idea why it wont read them.

I read somewhere that IE dosnt always read the vars on the first go. Would this be a likely diagnosis? What other causes have you come across?


ActionScript Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="200" id="mixtape" align="middle">
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="allowFullScreen" value="false" />
  <param name="trackids" value="27,15,10,33,9,11,47,13,29,1"/>
  <param name="mixtapeusername" value="bernard1"/>
  <param name ="mixtapeuserid" value="21"/>
  <param name="mixtapetitle" value="ie" />
  <param name="movie" value="flash/mixtape.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#000000" /> 
  <embed src="flash/mixtape.swf?trackids=27,15,10,33,9,11,47,13,29,1&mixtapeusername=bernard1&mixtapeuserid=21&mixtapetitle=ie"
    quality="high"
    bgcolor="#000000"
    width="400"
    height="200"
    name="mixtape"
    align="middle"
    allowScriptAccess="sameDomain"
    allowFullScreen="false"
    type="application/x-shockwave-flash"
  trackids="27,15,10,33,9,11,47,13,29,1"
  mixtapeusername="bernard1"
  mixtapeuserid="21"
  mixtapetitle="ie"
    pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Read Variables From A Loaded Swf
Hi all!

I am struggling with a problem for a few days now and I really want to solve it!

The case I am working on includes a simple problem: I want to read a variable 'test' from the movie test.swf which I loaded into my main.swf. The problem is that, although the movie loads fine, I cannot acces the variable stored in this movie.

I have the following code:

Code:
//code in the first and only frame of test.swf
var test:String = "test";

Code:
//code in the first and only frame of main.swf
// Code for adding the file
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, SWFLoaded);
loader.load(new URLRequest("test.swf"));

function SWFLoaded(evt:Event):void {
trace( "test=" + loader.content.test );
}
The trace function gives the following error:

Quote:




1119: Access of possibly undefined property test through a reference with static type flash.displayisplayObject.




I really have no idea what I am doing wrong? Both files are compiled with CS3. Anyone has the solution? I cannot believe that this is so hard to do

Read Variables Into Flash?
I need to read some variables into a flash movie. Can I do this with javascript or the <param> tags?

Read Variables From InputText?
I was wondering if anyone knows wether it's possible to create variables from text inside an inputText.

Example -> if I put the text "bDead = false" inside an inputBox, and I press some button, the variable bDead is created and initialized with "false".

I tried loadVariables with the box.text as a parameter, but I guess it expects a link to some file instead of a text...

Read Variables From Classes
Hello,
I have created my first class - a checkbox class.
Everything works great, I added the checkbox clip to the stage (drug it out of library) and functionality is fine.

However, I can read if the checkbox is checked from the class file, but not from the timeline.
How can I access the "_checked" var that I created that tells me if the checkbox is checked or not?

here is my class file for reference:

Code:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.text.TextField;

public class Checkbox extends MovieClip
{
private var _checked:Boolean = false;

public function Checkbox()
{
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, cbClick);
}


private function cbClick(event:MouseEvent):void
{
if (!_checked)
{
this.gotoAndStop("checked");
_checked = true;
trace("Value should be: "+_checked);
}
else
{
this.gotoAndStop(1);
_checked = false;
trace("Value should be: "+_checked);
}
}



}
}
I hope this is something obvious that I am missing. Thank you for your time!

Read Variables Into Flash?
I need to read some variables into a flash movie. Can I do this with javascript or the <param> tags?

How Do I Read URL Variables In Flash MX?
Hi Guys, I want to know how to read cookies in Flash MX.

I'm embedding my flash movie on the html page, have added JavaScript to create a cookie which stores the username and password, I then want to send this information using URL variables to the flash movie and read the data using actionscript and authenticate the user.

Here is my code, I've knicked most of the logic to read and pass the cookie to flash in JavaScript from this site:
http://www.virtual-fx.net/tutorials/html/flookies.html

Here is the code:

<SCRIPT LANGUAGE="JavaScript1.1">
<!--
  createCookie("Username","testUser");
  createCookie("Password","testPassword");
       
  function createCookie(name,value) {
        var expireday = new Date();
        expireday.setTime(expireday.valueOf() + 1000*3600*24*365);
        document.cookie = name + "=" + value + "; expires=" + expireday.toGMTString() + ";";
   }

    // Get Cookies script
    cookString = "?"      
    // does the visitor have a cookie?      
    if(document.cookie != "") {
          theCook = document.cookie.split("; ")
          // add each part of the cookie to a string variable
          for (i = 0; i < theCook.length; i ++) {
                cookString += theCook + "&"
          }
    }

      // Name the variables
      flName = "myFlashmovie.swf"
      flColor = "#99cc99"
      flHeight = "300"
      flWidth = "400"
      // This portion of the script is a modified version of Colin Moock's
      // flash cookie importer, query string version script.
      // Slight modifications have been made to
      // work with the get cookies script.
document.write('<OBJECT '
      + 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
      + 'codebase="http://download.macromedia.com/pub/shockwave/'
      + 'cabs/flash/swflash.cab#version=6,0,0,0"'
      + ' ID="graph"'
      + ' WIDTH=680'
      + ' HEIGHT=600>'
      + '<PARAM NAME=movie VALUE="' + flName + cookString + '">'
      + '<PARAM NAME=quality VALUE=high>'
      + '<PARAM NAME=bgcolor VALUE=#FFFFFF>'
      + '<EMBED src="myFlashmovie.swf' + cookString + '"'
      + ' name="flash"'
      + ' quality=high bgcolor=#FFFFFF'
      + ' WIDTH=680'
      + ' HEIGHT=600'
      + ' TYPE="application/x-shockwave-flash"'
      + ' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
      + '</EMBED></OBJECT>'
      )
// -->
</SCRIPT>

If someone's got a better solution to do this, then please let me know.

Could somebody show me how to read the URL variables in Flash MX?

Read URL Variables For If/Then In Flash
i would like my Flash banner to know which page it is on, by accessing the URL variable 'content'.

depending on which page is being accessed, will depend on how i want the banner to behave ie:

- for the Home page all parts of the banner will be animated,

- but for other pages only certain parts of it will be animated,

- or it may be static

btw: the site is dynamic, calling in content using a typical url variable ('content'). here's the site:

URL

any ideas?

Change And Read Variables By Txt Input
hi.
i'm new to actioncript, so no flames please.

i'd just wanted to know how to read a variable from an input text box.
i have this inp txt box, on the text options i give a name to the var
then what do i need to do next to read that variable (the entered text on the input text box)?

the variable is only used on this movie (i dont want it to be used with javascript, vbs. Its not to be used as html post method GET/POST).

the idea is to have a inp txt box, read the content entered and if content = someword, then goToAndPlay(x).

do i need to create a confirmation button, i.e an ok/submit, so i can read the entered text? or can i just hit enter when i finish typed?
and how can i get the cursor to focus on that txt field? i tried setFocus, getFocus, and some more but without success.

thanks.

HELP Can FLash Read JavaScript Variables?
Hi,

Is it possible for Flash to get the value of a Javascript variable and use that value in ActionScript?


I have read al kinds of info on setVariable, but It seems that this is unable to affect ActionScript, only Dynamic textfields?....

Read And Write Variables Via Javascript
ok here is the prob: i can write variables into my html-code with a javascript function, but how can i get the variables out of it into the my swf?

this is my javascript, so how can i get the variable "this.varTest = 0" into my swf-file?


<SCRIPT language=JavaScript>
<!--

this.varTest = 0

function setVar(aw) {
alert('aw= ' + aw);
this.varTest = aw;
//alert(this.varTest);
}

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>

thanks, s1

Simple Fill / Read Variables ?
hi all and thanks for reading this!

i got 5 buttons, then an animation and at that point i want to
load 5 different movieclip. i wanna use the same animation for
every button to keep the size low. isnt there a simple way to
fill in a variable like e.g. menuvar=1 for the first button and
read this variable at the last key-frame of the animation and load
movie 1-5 from the number in the menuvar variable.

hope its not 2 confusing. the animation is 3d and therefor pretty big lol, so its essential that i dont have to copy it 5 times.

thanks in advance
and btw. i tried to search for the info but couldnt find a simple enough example :/

Read All & Variables From A Loaded .txt In A Textfield?
Hello,

Created a CMS that reads and writes to .txt files, that are displayed in a Flash site. Problem is I put variables through out the text files and now when I go to load the full .txt files into the CMS, the read part only shows the first variable, every other variable that starts with & does not show.

Anyone know of a fix? Besides breaking the variables into separate .txt files.

Thanks in advance.

Actionscript Variables, Read From Access DB
I found this movie on this site:
http://www.flashkit.com/movies/Scrip...8875/index.php


Right now, the different 'news' items are built into the actionscript. How could I make these read from an Access database?

*Using MX 2004

Thanks so much in advance,
Matt

Can Read Text Variables From Word Doc?
New to ActionScript, I was successful in reading a text string from a .txt file into a text object in Flash. Works great.

But my management is asking that Microsoft Word be the default editor for the text string (mostly to be able to spell check). But when I try to read a simple string from a Word document, it appears as squares (since there's all that Word stuff intermixed wirth the simple text string I'm trying to retrieve).

Anybody know how to just get the string?

Thanks,

Ron Cook
Boulder, CO

Is This Possible? Can Flash Read Html Variables?
Sorry Flash Newb - We're making a banner to give out to 3 different sites. Each site uses its own variable for the html.

Example:

yahoo uses getURL(Yahoo, '_blank'); and the html would be *.swf?Yahoo=http://*

msn uses basically the same thing only is Msn instead of Yahoo

aol uses a {FSCommand("CLICK");}

is there anyway that I could code the flash to read the html file to see which variable is defined? and using if than statements to use that code? basically I want to keep from having to make 3 different banners.

anyhelp would be greatly appreciated.

Problem To Read Variables In Flash
Hi,

I want to pass some variable into flash on runtime.

See this link,
http://www.globtier.com/portfolio/

Then click on any link at the top navigation. you will reach the details page for particular section.


If somebody clicks on any of project there, it should be highlighted in left flash navigation.

Anyone know there, how can I do this?

Thanks in advance...

Jitendra

FaceBook
Has anyone looked into developing applications for FaceBook?

How Wiil I Read Variables Form Asp File
Hi Masters

Will u please tell me that how can i read a variable form a asp page and can use that in my swf.

For example if I am going to a URL
http://www.ii.com/rits/flash.asp?nam...=ritesh@ii.com

then how can i load "name" and "mail" variable i my flash movie.

thanx

Ritesh

::: Can A Flash SWF File Read Variables From The URL By Which It Is Called?
Dear Flash/DB specialists,

Can you please help me to solve following problem?

Can a flash SWF file read variables from the URL by which it is called? In other words, can a file, say, MyFlashFile.swf be built in such a way, that it performs distinct actions when it is targeted by the browser as
www.SomeServer.com/MyFlashFile.swf?user=John
and
www.SomeServer.com/MyFlashFile.swf?user=Billy
(where the same SWF file is called with two distinct values for the variable user).

Thank you in advance for your help,

Vahagn

How Does Flash Read Variables From A Perl Script?
Hi!

I'm busy working on a site that sends a variable to a perl script, and then retrieves 4 variables that this script sends back. Problem is, i have no idea how to do this in flash.

Let me explain. I have a perl script that spits out content whenever i acces it with http://myhost/cgi-bin/getitem.pl?num=10

The script grabs line number 10 from a textfile, splits it into a nice array and then returns $item[0], $item[1], $item[2] and $item[3].

I've tested it by going to the url with a browser, and i can set the output to anything i want.

So 2 questions here:

1) how do i let Flash access the url
2) how does Flash know when/what to recieve?


Any help in this would be greatly appreciated.


-errtu

[F8] Passing Variables To Flash Links .. Please Read
Hello everybody,

firstly I wanna say sorry if the question is out of place or if the question is retardedly stupid.

So .. I wanna make a Oscomemrse website and in the part where I put buttons I wanna changed them to flash buttons. Till then I do everything right. I use a program called FMF (Flash menu factory) which works grate and dose a lot of cool buttons. I put them on my oscommerce website, but the ugly part comes when I click on .. lets say "New product" I loose the session ID which causes the shopping cart to get empty. I really dont know how to pass the session id to the flash links and I need to do it badly. Thanks in advance!

Best regards,
L33cher

Read Variables From Flash OCX In A Microsoft VB Project
Hi,
we use flash a fair bit in projects written in Microsoft Visual basic.
In the past everything we have done has been VB telling the movie what to do, Tplay, SetVariables etc.
Those of you that are familiar with this know that the VB commands for flsah are not the same as actionscript.
Now we find ourselves wanting to READ a variable from flash with VB.
Can we do that?
If so how?

Also any links to resources on using flash and VB together would be greatly appreciated.
I have had very little luck tracking down resources on using them together.

thanks
mark

Win Nt 40 + Apache::can't Read Php Generated Variables Into Flash MX
Hello everybody!
This is my first message on this forum.
I have the following problem:
System:
Win nt 4.0 service pack 6
Apache
PHP
MySQL
Flash MX
The problem:
reading php generated variables from Flash
The php script looks like this:


PHP:--------------------------------------------------------------------------------

<?
$result = $HTTP_GET_VARS['input'] +1;
print "result=$result";
?>

--------------------------------------------------------------------------------

When I enter in the browser's address window the following address:
<http://localhost/phpFile?input=100>
In the Browser window appears:
<result=101>

So the php works fine with Apache!
The next step would be to read the "result" variable into Flash, using the "loadVars()" method.
This part doesn't work.

What could be the problem?
Win NT permissions?
Apache settings?
PHP .ini settings?
I hope that somebody has the answer.

[F8] Flash And Facebook
Has anyone had any experience with using AS to parse/search for images online (or specifically on Facebook) and displaying them in flash?

For example, search for all images on Facebook that have the word "flower" in their title, and display?

Any thoughts, suggestions?
Thanks in advance!

[CS3] Facebook App Using Flash
Our professor assigned us to create a facebook using flash. I know a little about facebook apps but I dont know how to create one in flash. Ive just read that you'd have to integrate use of a server side script like PHP. I really don't know the whole process. I hope you could point me to a website tutorial or someone could help. thanks.

Facebook And Flash
I am having a terrible time getting flash to work in facebook. The documentation is useless over there. I was wondering if anybody could give me a little help. (My flash app works perfectly outside of facebook).

These are the 3 things I need to do:

1. Allow Flash to communicate back to the server to load a file, i.e. with URLRequest or LoadVars.
2. Get the facebook variables (i.e. the facebook user's ID) into Flash.
3. When the user clicks a certain button in the Flash app, trigger it to load a new canvas page (again, using the same methods as #1).

Obviously, if you are using the <fb:swf> tag, #2 happens very easily. But #1 and #3 seem to be blocked by facebook for security reasons or something.

If you are using <fb:iframe>, #1 works fine, #2 and #3 are the problems (with #3, when the user clicks the button, a new page is loaded right in the iframe itself, or in a totally new window if you use _BLANK or _TOP, but not in the canvas page as far as I can tell).

EDIT: this part of your post was removed. Read this forum's guidelines - in your case #5.
gparis
.

I've got to get an app up there.

Facebook/flash
Hello. I hope to be able to load facebook friend pics into my flash gamr(cs3). But I'm having a hard time finding a way to do it, or the correct way or atleast a way that works. Anyone able to point me in the right/best direction?

Thanks in advance.

Lars Holen

Facebook AS3 URLLoader
hi
I'm trying to create just another facebook drawing application for witch I use fb:swf on canvas. When the user is done drawing, it is supossed to send the art as a biteArray via http_raw_post_data to a PHP file witch safe it as a JPG file on my server.

When tested on my server everything works great. But when tested inside facebook it is like my URLLoader never gets done. ¿Do you know what is going on?

Here is my AS:

public function done() {
variables.sendresponse = "Saving draw";
this.msgBox.text = variables.sendresponse;

var myBitmapData:BitmapData = new BitmapData(canvas.width, canvas.height);
myBitmapData.draw(canvas);

var jpgEncoder:JPGEncoder = new JPGEncoder(30);
var jpgStream:ByteArray = jpgEncoder.encode(myBitmapData);
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");

var jpgURLRequest:URLRequest = new URLRequest("jpg_encoder_download.php?name=" + (new Date()).getTime() + ".jpg");
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;

var jpgURLLoader:URLLoader = new URLLoader();
jpgURLLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
jpgURLLoader.addEventListener( Event.COMPLETE, sendComplete );
jpgURLLoader.addEventListener( IOErrorEvent.IO_ERROR, sendIOError );
jpgURLLoader.load( jpgURLRequest );

}


And here is my PHP

<?php
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
$im = $GLOBALS["HTTP_RAW_POST_DATA"];
$filename = "drawings/".$_GET['name'];
touch($filename); // Create blank file
chmod($filename,0777);
$fp = fopen($filename,"wb");
fwrite($fp,$im);
fclose($fp);
} else echo 'Error.';
?>


Here is my app on facebook (a work in progress)
http://apps.facebook.com/eatbookyouface/


And here is my app on my server
http://chiste.hostsnake.com/chisteSimpleDrawApp.html

Graffitti App On Facebook
Has anyone noticed the update thats been made to the Graffitti application.
Now there is the option to replay the process of the graffitti being drawn with it's own little timeline just like a video.

I know you a create the drawing app the Bitmap Data object, but does anyone how the playback feature works?

I'm sure there are some good applications for this.

Facebook Like Chat?
is there a way that flash can do what facebook is doing. where flash stay in front of the html page.



that the image is what i am talking about

Facebook Question
I know its the wrong place...
But was just wondering with programming languages would I need to know to create my own little facebook? And how tough would it be to make it?
Cheers.
Leo.

.txt File Read Into Flash Without Variables, Huh? Say Whaa? Look Inside Please
Hello,

I am trying to get .txt file read into flash and its contents to be assigned to a variable I can use to create a url with using that text.

This is how I plan to use it. Right now I have a Winamp plugin which uploads track info to my webspace and creates a .txt file. After 2 minutes it repeats the process clearing out the previous track info. Note, there are no variables set in this .txt file. It contains an artist name and title, and that is it.

So far I have the following script:

myLV = new LoadVars ();
myLV.onLoad = function (success)
{
if ( success )
trace( unescape( this ) );
else
trace( "Failed" );
}
myLV.load("myTextfile.txt");

This has worked from a file reference in the same directory as well as fully accessed from the internet (ie www.domain.com/myTextfile.txt instead of just myTextfile.txt)

Now that I am this far, I am trying to see how I can take what is brought into Flash and set a variable. Then I want to be able to put this into a GetURL action. I have done the second part before, I just need to remember the syntax. It is the first one that has me stumped, how do I take the text already retrieved from my webspace and assign it to a variable I can use in making a URL?

Load Vars Cannot Read Variables In Specific Site
hi forum,
i have experie3nced a weird probblem with the LoadVars command. I have designed a website using loadvars to load text into flash from external txt files.
the main interface has been checked both locally and remotely and works fine. two days ago i had to upload the site to another server and i noticed that although everything else works (images dynamically loaded, xml loaded) the data from the txt files cannot be loaded through loadvars. this is so weird. it works in my pc, it works from another server but it does not from this particular server.
does anyone has experienced this before? is there any particular FTP parameter i have to check? is it a server side problem?

thanks a lot
vasi

Fail To Read Variables Frow SWFObject, Js Seems Correct, Not Sure Of Swf
Hi,

To get variables from my html to my flash movie I've intergrated SWFObject(2.1). Now I'm trying to get variables from js to the swf, but it fails.

The text currently displayed should be replaced by "hello", but it doesn't happen.

Here's my as code:

ActionScript Code:
var style:StyleSheet = new StyleSheet();

var styleObj:Object = new Object();
styleObj.color = "#B62C2C";
styleObj.font = "Kozuka Gothic Pro H";
style.setStyle(".vak", styleObj);

var myText:String = root.loaderInfo.parameters.name1;
// "<p><span class = 'vak'><font face='Kozuka Gothic Pro H'>des</font></span>stramines met contrasten</p>"

myTextBox.styleSheet = style;
myTextBox.htmlText = myText;
myTextBoxMirror.styleSheet = style;
myTextBoxMirror.htmlText = myText;

and this is my current html:


HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject - step 3</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="flash/swfobject_2_1/swfobject/swfobject.js"></script>

<script type="text/javascript">
var flashvars = {};
flashvars.name1 = "hello";
swfobject.embedSWF("flash/koppen/koppenSWF.swf", "SWFKop1", "500", "43", "9.0.0","expressInstall.swf", flashvars);
</script>

</head>
<body>
<div>
<object id="SWFKop1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="43">

<param name="movie" value="flash/koppen/koppenSWF.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/koppen/koppenSWF.swf" width="500" height="43">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
Thank you!

Facebook Issue+php+flash
I know its the wrong place...

But was just wondering which programming languages would I need to know to create my own little version of facebook? And how hard would it be to make it?

Cheers.

Leo.

Amfphp Facebook Connection
Hi guys,

I'm currently working on a facebook application using amfphp to feed flash with the return array from a php facebook call.

Problem is I'm struggling to integrate facebook's api into my amfphp class. My knowledge of amfphp isn't as high as it should be to be doing this kind of work.
(I've done all the examples I can find, but nothing really has information like this).

I've got amfphp working correctly, just need to get a dynamic facebook array in there, instead of my current static array.

So I was wondering if anyone has done anything like this before?
Has anyone got ANY ideas about what the best way would be?

As you've probably gathered - I'm down on my knees begging, so I would appreciate any feedback or possible direction.

Thanks,

Jason

Load Image From Facebook
I used Loader class to load image from faceboot, but get the following message:

SecurityError: Error #2122: Security sandbox violation: Loader.conten

Does facebook has crossdomain.xml?

If they do not, How can I fix this?

Thanks,

ff

Quick Facebook API > XML Question...
Hey everyone,

I have a quick question about getting XML data from the Facebook API. Basically I want to build an XML file of my mobile uploads (images) and use that info on a portfolio page I'm building (will be hosted on my server).

What is the best way to get the XML info? I see the API has a Photos.get method, but I'm not 100% sure how to use it. Do I need to setup an application on Facebook even though I won't be using it on there?

Thanks,
Mike

Access MySpace, Facebook, MSN, Etc.
Hi, I'm looking for a way to let users log on to their mySpace, Facebook, MSN, etc. accounts from an AS2 application. Is it possible? Thanks!

Copyright © 2005-08 www.BigResource.com, All rights reserved