ActionScript 2.0 :: Sending Php Vars To .swf?

Oct 12, 2004

i have this php page..

PHP Code:

<?
include("dbconnect.php");   /// connects to database
//// get data
$SQLstr = "SELECT * FROM programtexter WHERE subject='$select'";

[Code].....

flash reads in the 1st variable _root.pg1text1 and writes it out on the page ok
but how do i make it know when theres a new variable. because it also puts the second part in the 1st variable. it does not break up the variables it just puts all the text into _root.pg1text1

how do i break it up so that each text string is put into the right text string? doing <br> and haviung spaces between dident work

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Flash Sending Vars To ASP

Nov 23, 2007

I need to pass some variables so ASP, but error occur.

[Code]

but it did not catch any request

View 4 Replies

ActionScript 2.0 :: Sending Vars From Flash To Php?

Aug 18, 2011

having an unusual problem sending vars to php. it is sending the var but my flash game is being unloaded off the site once the var is sent. if there is another way to send VARS please let me know, OR maybe my code is wrong.

Code:

function sender()
{
varsToSend = new LoadVars();
varsToSend.var1 = beatTimer;

[code]....

View 1 Replies

ActionScript 2.0 :: Sending Vars To A Php-file?

Jul 2, 2003

I am using the follwing actionscript to send 2 vars to a php file:

Code:
getURL ("file.php?name1=" + name1+ "&name2=" +name2, "_self", "POST");
.but when i test it local. I see the following:
"file.php?name1=david&name2=posh?M%5FloveMatch=%5B type+Function%5D&calculateScore=%5Btype+Function%5 D&your%5Fname%5Fstatic=dfjkawef&your%5Floveone%5Fs tatic=oiaSDV&score=78&scoretext=78%25&name1=david& name2=posh"

and all i wanna get is:

"name1=david&name2=posh"

View 1 Replies

ActionScript 2.0 :: Sending And Tracing Vars To PHP?

Jun 9, 2004

I'm trying to send variables to a php-file. It works ok with some of the vars but not for continent (see code below). I have all tried the "" around the value - still no go. The clip is loaded from a mouseover function. I have tried to make a trace of the variables, but that doesn't work either.

this.createEmptyMovieClip("myForm", 0);
myForm.newSearch = 1;
myForm.searchType = 1;[code]....

View 2 Replies

ActionScript 3.0 :: Sending Vars From Php To Flash For Different Events?

Jan 1, 2012

I have an AIR app that is uploading a txt file to a server, and I have a progress bar set up in AIR for the user.
 
The php file that handles the upload then opens the txt file, parses and sanitizes the contents, and inserts them into mysql.
 
I was wondering if there is any way to have php tell Flash what's going on at each stage of the operation?
 
At the moment, my progress bar gets up to 100% once the txt file stops uploading, but then hangs around until php has finished the backend stuff.  This is fine - I like that the progress bar movieclip stays there until the mysql insert is complete, but I was wondering if it would be possible to reset the progress back and have it move as the php continues through the parsing and mysql insert, or send back a series of text vars saying 'Parsing text file' then 'updating database'?
 
I understand that you can only echo back to Flash once, and I've also come across that Flash bug that doesn't accept variables back when you are uploading a file as opposed to just uploading variables.

View 5 Replies

Php :: Securely Sending POST Vars From Flash?

Apr 23, 2008

I have developed a facebook application in which I am sending data from Flash to Php.Its actually a game based on Flash 8 and at the end I send data by using

loadVarsNum()

using POST method to flash but the problem is this data can be easily tampered so I want know that how can I secure my data from theft or any hack.

View 1 Replies

ActionScript 3.0 :: Sending Vars From A Classic ASP Page To Flash?

Feb 23, 2011

I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.Here is my code:

PHP Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);

[code].....

View 2 Replies

Actionscript 3 :: Sending Vars From A Classic ASP Page To Flash?

Feb 23, 2011

I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.

Here is my code:

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

[Code]......

View 1 Replies

ActionScript 2.0 :: Sending Flash Vars To Php Without Refreshing Page?

Jan 4, 2010

i'm sending flash vars to php, but the .swf refresh when the fuction "send" is call.

fo exemple:

var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");

when this happen, the page refresh and also the .swf

View 3 Replies

ActionScript 2.0 :: Flash8 Sending Vars Between Swfs - External Interface?

Jul 5, 2010

On my html page I have two frames, one for navigation and the other for content. The navigation menu is an swf. Most of the content is html, except for the 'gallery' page.

The thumbnails for the gallery appear within the navigation. I can get the pictures to load from the thumbnails into the 'content' frame using LoadVars sendAndLoad.

However, doing this means that the flash gallery refreshes itself each time a thumbnail is clicked (thereby losing the transition effect).

So, how do I load the images in the other frame without reloading the flash??

Could I do it using external interface? ..

View 2 Replies

Actionscript 3 :: Opening A Webpage From A Flash Sending POST Vars

Dec 11, 2011

I want to open a web page on the same tab when the user clicks a movieclip. I'm using this method:

var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {

[Code]...

how to open it sending POST vars. Is that possible?

View 2 Replies

ActionScript 2.0 :: Sending Flash Vars To Php, But The .swf Refresh When The Function "send" Is Call?

Jan 4, 2010

i'm sending flash vars to php, but the .swf refresh when the function "send" is call.

fo exemple:

var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");

is somehow more correct to do it?

View 4 Replies

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 :: 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

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

ActionScript 2.0 :: Send Vars To Php?

Feb 5, 2007

i have just been looking for a simple solution to send vars to php.I have found a lot of threads that have problems but no results.I hope that someone can give me a quick fix..or is this just a mission.

[Code]...

View 8 Replies

ActionScript 2.0 :: Using Mc Vars In Function?

Aug 16, 2003

ok, first of all, im not totally sure how to describe my problem so im going to recreate a simple example of what im trying to do...

my problem is that im not sure how to refer to a dynamic mc in a function...i know that sounds confusing but maybe this will help...

lets say i have a function like:

[Code]...

the problem with this is that the function looks for an mc titled "mcName"...and the function is hard coded...what i want to do....is to reuse this function with any movieClip on the timeline i want...so how do i refer to the mc in the function dynamically? i hope this makes sense?

ive also tried something like this

_root[mcName]_x = 123;

but this doesnt work either....ive seen something like this done before...using brackets to target an mc with a var...

View 1 Replies







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