ActionScript 2.0 :: [FMX] Load Vars And Aim?

Apr 16, 2003

Well, I've come across a problem and i'm stumped. Anyway, I stumbled upon this aim online presence check in an old AIM pdf file. There is a server check at an aol server to see if a person is online, if they are it sends the browser to the "on_url" setting, if not, it sends the browser to the "off_url" setting. I realized that it doesn't work for some screen names for some reason, but it does for mine, so i wanted to use it in flash. I've tried three ways, and two of them WORK! But, only when I run them from my computer... When I upload it to my host, it doesn't work! Here's the two ways I've tried:

[code]...

Again, the first two WORK when running the SWF locally, but for some reason not on a couple of hosts that i've tried.. maybe i'm going about this the wrong way. I've thought about making some php script to do this then have AS read the PHP, but then i'm not sure about the PHP code on that.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Load Vars From A Text File Into A Load Vars Object?

May 19, 2005

i am trying to load vars from a text file into a load vars object.

var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');

Once in the object, i thought i could reference them like so

kitchentext.name
kitchentext.style

but i am having trouble doing this.

i have a textbox called displytext.

_root.displaytext.text = kitchentext.name;

doesnt work

View 3 Replies

ActionScript 3.0 :: Load Vars From .txt And Use In Many Frames?

Dec 14, 2010

my varloader.fla sample will load up a couple of variables from a .txt file (numbers.txt) and it will display them just fine in the dynamic text boxes on the layer below the actionscript layer. but if I move one of the dynamic text fields to another frame, lots of errors happen.

i gather this is because when the movie moves to the next frame, it 'forgets' all of the definitions in the actionscript of frame 1, but certainly there must be a way to do one load of the variables from the text file and use them project wide? please tell me i don't need to write a loader to parse my .txt file in ever frame I want to use the .txt variables?? how can i make these variables global? all i want to do is be able to display first_txt and second_txt on subsequent frames from the frame with the AS...


ActionScript Code:
here is my actionscript:[code]......

View 0 Replies

ActionScript 2.0 :: Load Php Vars Into Flash?

Nov 8, 2007

to load php vars into flash can i use this method

myButton.onRelease = function(){
var loadObj:LoadVars = new LoadVars();
loadObj.load("loadvar.php");
}

[Code].....

View 10 Replies

ActionScript 2.0 :: Private Function Load Vars?

Aug 19, 2009

ActionScript Code:
private var __milena:LoadVars;
private function Loadprom(prom:String):Void {

[code].....

View 5 Replies

ActionScript 2.0 :: Why Is Load Vars Not Updating Variables

Apr 18, 2011

I'm loading variables from php using loadVars in a function that is called when a button is pressed.

ActionScript Code:
getArrangement = function(){
theArrangement = new LoadVars();
theArrangement.onLoad = function(){

[Code]....

how do i get my variable to always be the same as the onLoad value and/or the one in my dynamic text box?

I need to feed the correct result back into my database.

View 3 Replies

ActionScript 2.0 :: Load Vars From Javascript To Flash

Jan 17, 2004

I'm trying to give a friend a hand with his project and could use a bit of direction. We are trying to pass a string of variables and values from an html page to a flash project. We're using javascript to put the variables and values into a string named queryvar. We are able to view the string using a javascript alert box at the time that it should be passed to flash. Now here's where I can't figure out where the problem lies...I'm not sure if we're passing the string to the flash movie properly. The html embed tags are as follows:

[Code]....

View 3 Replies

ActionScript 2.0 :: [flashMX] Can Get Vars To Load But Can't Display All Of It

Dec 15, 2004

why the "songinfo" variable (song title and artist) won't always show up. Sometimes, only the "seconds remaining" value will appear. Since that number is based on caculations I'm doing to other variables, I know that I'm getting the variables correctly but I have to sometimes reload the web page multiple times in order for the song artist and title to display.

[URL]

What I've done is to create a Flash-based display for a radio station that shows what song is currently playing on the radio. I'm using actionscript to read in a series of variables from a PHP file (sont title/artist, length of song, and time the song started playing).Now, rather than having the Flash file check the PHP file every 30 seconds and overload the servers, I'm using actionscript to calculate a countdown timer value for me and to only recheck the PHP file when that counter is < 0 (i.e. the song is over).

View 2 Replies

ActionScript 2.0 :: Contact Us Form Load Vars

Dec 13, 2007

I am communicating with my php file file but i having trouble with the variables loading into the email the php code generates. I'm gues the problem has to do with which timeline the variables are loading into. I've tried several things here and nothing appears to work. Can you guys tell me if this looks correct?

[Code]...

View 1 Replies

ActionScript 2.0 :: Load Vars Function Not Working?

Jan 21, 2008

I am trying to make a button that when clicked on loads an external text file into a dynamic text box.

I can make it work when I use it specifically - but I can't make it work when I want to use it as part of a generic 'button function'.

Basically I have a .txt file "mycontent.txt" which is called using the Load Vars function inside a generic function (tab_grow) i created to managed the behavior of the 12 tabs that are the navigation for the movie. For now i'm just focusing on ONE of the tabs. Basically the tabs move when a user hovers over them and when they mouse off. When they click it should call the external text file. The section in the .txt i'm calling is called 'mega_data'.

This is what I have right now:

HTML Code:
function tab_grow(mov, file) {
mov.onRollOver = function() {
mov.onEnterFrame = function() {

[Code].....

BUT then I can't change which section of the .txt file I pull up for different tabs - which is the whole point of the function!!

View 1 Replies

ActionScript 2.0 :: Load Vars From Javascript To Flash?

Jan 17, 2004

I'm trying to give a friend a hand with his project and could use a bit of direction. We are trying to pass a string of variables and values from an html page to a flash project. We're using javascript to put the variables and values into a string named queryvar. We are able to view the string using a javascript alert box at the time that it should be passed to flash. I'm not sure if we're passing the string to the flash movie properly. The html embed tags are as follows:

document.write('<PARAM NAME=movie VALUE="pie_chart.swf?' + queryVar + '">');
document.write('<PARAM NAME=FlashVars VALUE="' + queryVar + '">');[code]....

I try using parseint to parse the string but get NaN error.

View 3 Replies

ActionScript 2.0 :: Make Button Load Vars Direct From Xml

Apr 21, 2010

how can i make a flash button template that load vars from direct xml? like height/width/text/color/curve/background or transparent background also i will have more than one of these buttons on the same page, so they must take the vars directly fromt the xml.

View 0 Replies

Flash :: Server Side - Load Vars With Php Variables (mx)

Jan 27, 2003

I am trying to load the value of a php variable into a dynamic text field in flash mx. I am using the loadvars method, with "nameofPHPfile,"0","GET" etc. It doesn't seem to work, but then I am not sure if the php code is correct. A process of elimination is needed. Am I using the right method in flash???

View 14 Replies

Data Integration :: Load Vars Into A Text Area &amp; Loader

Aug 23, 2007

So I am trying to load variables from a .php file into a movie clip and then plug in those variables to various fields and for some reason its not working...so heres whats going on...(this is for the staff page for my church)

In the primary timeline we have this line...

loadVariables("./middleware/staff.php?id=" + staffID,
staff_panel, "GET");

We are loading the variables into the movie clip which contains our various fields...the value for staffID is created in the previous frame when the user click on that person's icon, we know for sure that this is being passed correctly to this frame, because I have a text box in the main timeline which displays the number.

The resulting string from the .php file looks like this...

staffNameE=Jason+Webb&staffTitleE=Lead+Pastor&staffDescE=Jason's+bio+g oes+here...&picLoader=./images/staff_pics/jwebb.jpg&staffEmail=webmast er@brooklife.org

Within the movie clip that the variables are being loaded into we have this....it loops till the var load is done and then writes the information to the fields...

while (L ne "stop"){
if (staffNameE ne ""){
staffName = staffNameE;

[Code].....

View 3 Replies

Flash :: Load Facebook ID Vars Into Client Side Scripting?

Sep 2, 2011

I'd like to simply display the users name and photo inside a flash app. I hope to do this only in the client without using any backend scripting. The ActionScript 3 SDK for Facebook Platform is under construction for the next few weeks to comply with new facebook requirements so I don't trust the current build to be useful.

We have searched and built tests for a week with no luck. I have a feeling the answer is either very simple or not possible.

View 1 Replies

Data Integration :: Load Vars Into A Text Area &amp; Loader?

Apr 3, 2002

So I am trying to load variables from a .php file into amovie clip and then plug in those variables to various fields andfor some reason its not working...so heres whats going on...(thisis for the staff page for my church) (and yes I have read theutorials :P )In the primary timeline we have this line...

loadVariables("./middleware/staff.php?id=" + staffID,
staff_panel, "GET");

We are loading the variables into the movie clip whichcontains our various fields...the value for staffID is created inthe previous frame when the user click on that person's icon, weknow for sure that this is being passed correctly to this frame,

View 7 Replies

ActionScript 2.0 :: Load Vars From One Html File With Other Dynamic Text Fields?

Nov 18, 2006

When i've created a vars in my fla file and load it from the html file to dynamic text field, using this action

[code]...

Ok ... it is working, but it only for 1 text field. So .. how i can load a vars from one html file with other dynamic text fields.

View 2 Replies

ActionScript 3.0 :: Get Vars From PHP?

Jul 22, 2010

I'm building a little application in AS3 but I need to get variables from PHP. I searched on the internet on how I should do that. It makes the connection, but it doesn't get the variables. It just prints whole my php script.

[Code]...

View 1 Replies

IDE :: Passing Vars From A SWF To New SWF?

Feb 26, 2008

I think this should not be a big deal, but I do not get it to work. I got a "MainFlash" witch loades an XML with about 60 variables (Settings), in base of a paramater then this "MainFlash" loades another "FlashMovie" and this one needs, all, the same Variables too.

How do I properly pass all the Vars in the new/other "FlashMovie"?

U need to know I use LoadMovieNum to Level 0 I do replace the "MainFlash", cause the new loaded "FlashMovie" can have a completly different height and width ( ...I don't think it's possible to change the Document-Setting in a compiled swf, or is it? If this is possible I would not need to load a separate swf to Level 0. the main SWF usually ist about 320x180, the following can be 2x, 3x bigger...

View 2 Replies

ActionScript 3.0 :: Add Vars To XML?

Dec 7, 2009

var navChildXml:XML = <subpoint>
<text>XML(_nodes[prop].childNodes[inc].title)</text>
<link>XML(_nodes[prop].childNodes[inc].title)</link>
</subpoint>;

how to in this instance

the vars are not being declared

View 1 Replies

ActionScript 2.0 :: CS3 Flash Vars To PHP Md5?

Jul 7, 2009

I've created a Flash interface that sends variables to PHP to place in MySQL.In Flash I have the following AS2 (abbreviated) ..

myVars=new LoadVars();
submit_btn.onRelease=function() {
myVars.username=_root.username;[code]..........

Invariably the else statement is deployed and a new record is inserted into the database even when the username and passwords (md5 encrypted) are identical. I've been on PHP forums and nobody has a solution, so I'm wondering if this is a Flash issue. Perhaps even though the username and password in MySQL 'appear' identical to what's submitted by Flash and md5 encrypted they're really not for some reason. I tried trim() and stripslashes() to no avail.

View 5 Replies

ActionScript 3.0 :: Using Flash Vars?

Jun 9, 2010

I have set something up for my flashvars. I have a form in html which accepts two inputs. This is then sent to this php page

[Code]...

View 9 Replies

ActionScript 1/2 :: For() Loop With Mc's With Different Vars

Apr 18, 2009

how can I do this trick and keep different vars for each mc?

for(var i=0; i<arr.length; i++) {
var mc[i] = _root.createEmptyMovieClip('mc'+i, _root.getNextHighestDepth());}

View 1 Replies

ActionScript 3.0 :: Get Vars From The Root Swf?

Jan 30, 2009

i have two swf files, a preloader witch loads main.swf

in preloader on the maintimeline i set this var

var lang:String = "de";

but i cant trace it in my main.swf

trace(root.lang);

how do i get this var?

View 7 Replies

ActionScript 2.0 :: PHP Vars To Flash

Feb 9, 2009

this should be simple as nothing but i just need to get a clearer picture here my PHP has this as final line

[Code]...

where $newPics is a number what do I insert in AS code to to retrieve that variable and store it as an AS variable?

View 5 Replies

ActionScript 2.0 :: URL (GET) Vars To Flash

Jun 24, 2009

I've surfed for days to find a solution to this. There are a jillion out there, but I haven't found one that works. Suppose I have the following

<?php
header('location:http://www.sleepydad.com?firstName=s...ame=dad');
// the above URL will house my Flash movie
?>

I need to get the values of firstName and lastName into my Flash movie to save as variables (ultimately LoadVars()) and pass as an ID for some MySQL tasks performed in my Flash movie. NOTE the value of the names are not constant (ie sleepy dad). They will change with login - each user having a unique name. I've tried modifying the javascript in my HTML - some.swf?firstName=firstName (in both Object & Embed Tags)

[Code]....

View 0 Replies

ActionScript 3.0 :: Hide A Few Vars In An .as?

Dec 13, 2009

I am working on a project that uses PHP , as3, and possibly some AMFPHP.

The project allows users to upload and download images among other things. I have been trying to gather as much info about making things as secure as possible. I've got some good advise about using .htaccess files, and a few other tricks.

My main question at the moment is how to hide the "path" info from and to the PHP / assets / and to and from the AMFPHP sevices ...

Currently I have all the paths hard-coded in one .as that returns an object with the paths to any of the other classes that need/request it. I found this method to work well since I only need to change this one .AS , and it will branch out to the other classes that need it.

I'm not super worried about others decompiling my code, and they could probably "sniff" out the paths if they really wanted. I'm mostly concerned with allowing others easy access to all of my AMFPHP services or being allowed to parts of the site I do not wish them to be. basically I realize that things aren't gonna be 100% secure regardless, but would like to take precautions.

So to cut to the chase ... Whats the best- simplest way to obscure / hide the paths being used in a PHP - AS3 project ? ... I entertained the possibly of PHP includes or even a SQL database if need be. I rather not spend a bunch of time and money on questionable obfuscator software, unless there's a tried and true one for flash (not flex). .. and I currently do not have a SSL but don't know how critical - common this is.

View 0 Replies

ActionScript 3.0 :: Loading Vars From PHP?

Feb 9, 2010

When I run the flash from my local host (using XAMPP) it all works fine. But when I put the whole thing onto my online web server and change the URL to access the php file, its just coming back as "NaN" ...so why does it work on my local server but not the online one?

View 6 Replies

ActionScript 2.0 :: MX Loading Vars From A Txt?

Aug 3, 2004

ok I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I'd like to have the txt in the root of my server and then be able to link from any dir in the site...I have: ("dataValues.txt")what should I add before it, I thought maybe a full URL, but no, is it something like ("../dataValues.txt"), basically I want to make the link global for the site - I dont have access to the files right now so I cant just try a bunch of stuff myself.

View 1 Replies

ActionScript 2.0 :: Vars To Swf From Browser?

Aug 19, 2005

Im trying to pass a huge string (12k) to my flash from the browser using the param embed tags.

HTML e.g.
<param name="movie" value="/pix/inzalo/menutest/080105v28_slim_Menu.swf?menuData=data_data_data_da ta....

[Code]....

The flash recieves the data just fine if its not so large. I know that flash can accept vars that are up to 64k big.

My flash does have a preloader for the swf but I think that I need some kind of LoarVars preloader for it? (oddly enough if I half the data size of the var's being passed in to the flash then it render's just fine in FF but does nothing in IE?)

View 2 Replies







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