ActionScript 2.0 :: Send A Negative Value To A Text File Using Loadvars()?

Apr 21, 2007

I'm trying to send a negative value to a text file using loadvars().

so i did this:

send_lv.xPos = currObj._x;

but if the _x is negative, the minus is replaced by '%2D' How do i send the minus sign??

View 2 Replies


Similar Posts:


Media Server :: Using LoadVars In SSAS To Send Data To A Php File?

Mar 21, 2012

I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
 
Here is main.asc:
 
<code>
var variables = new LoadVars();
variables.username = "uname";
variables.send(http://url.abc.com/test.php,POST)
</code>
  
I can't compile with the second line. FMS just says: Sending error message: Compilation error
 
How do I send variables to a HTTP URL?

View 2 Replies

ActionScript 2.0 :: Caching HTML Text From A TXT File Using LoadVars?

Nov 21, 2010

I made a Flash-based "news section" for my website. This file uses a text field (with render-as HTML) and an instance name of dynamicText. The actionscript fills this text field with content from a TXT file called homeNews.txt.Everything works great, except if I make additions to the TXT file and re-upload to the server, the Flash file still calls an old version of the TXT file from my cache. This even happens after emptying the cache. This is a huge problem if I need to add daily updates. This problem only occurs on the server and not when testing locally.

Here is the code I put in my Flash file:

Code:
Ext_text = new LoadVars();
Ext_text.onLoad = addText;
Ext_text.load("homeNews.txt","POST");

[code]....

View 7 Replies

ActionScript 2.0 :: Using Loadvars To Load A Boolean Value From A Text File?

Jul 18, 2006

I am trying to control the visibility of a movie clip using a boolean variable contained within a text file.

The mc i want to make invisible is in a swf which is loaded into a 'master.swf' using a MovieClipLoader object.

I have managed to get text to display across various boxes in my loaded (child) MC using a loadvars obeject defined in the masterMC and used by the childMC. I just cant seem to be able to get the value of my Boolean variable to go with the text variables and therefore control the visibilty of my MC.

This is my code - (in the master movie):

var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {

[Code]....

View 2 Replies

ActionScript 2.0 :: Loadvars To Load External Text File Is Not Possible?

Sep 12, 2008

The code it concerns is this:

(which I found here on kirupa i belive)
myData = new LoadVars();
myData.onLoad = function() {

[code].....

View 3 Replies

ActionScript 2.0 :: Load A Variable From A Text File With LoadVars?

Nov 12, 2008

Im trying to load a variable from a text file with loadVars.The txt file has this -

Code:
num = 10
The flash looks like this

Code:
var load_lv = new LoadVars();
load_lv.load("tmbnum.txt");
load_lv.onLoad = loadTextVariables;[code]....

View 1 Replies

ActionScript 2.0 :: Obtain The Variables/contents Of A Php Or A Text File From Server Using LoadVars()?

Mar 5, 2010

I am trying to obtain the variables/contents of a php or a text file from my server using loadVars(), and the problem is that flash can get data from almost every server but from mine. (some shared hosting service) I just tried the code provided in the help files:

Code:

var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {

[code]....

I'm sure that I did no mistake in typing the URL, for it works fine in the browser (also no spaces, no freaky chars), and when i change the URL to another domain (and put the txt file on that server) everything works fine. I tried both possibilities "network access" and "local access" as well as running from an exe projector. But no chance.

View 4 Replies

ActionScript 1/2 :: Send An Object With Loadvars?

May 5, 2009

I wonder if this is doable. Let say if I have an object:
 
var car:Object = new Object();
car.color = 'red';
car.doors = ' 4';
car.make = 'Honda';
car.model = 'Accord';
 
Can I send this object via Loadvars like this:
 
var send_lv:LoadVars = new LoadVars();send_lv.carobj = car;
send_lv.sendAndLoad("script goes here", result_lv, "POST");

View 1 Replies

ActionScript 2.0 :: Send JSON With LoadVars?

Jun 18, 2009

I am trying to make a simple POST using LoadVars. Since I am using an API there are some limitations though. The request must be send via POST with a JSON header. The body of the request should not contain name value pairs, but rather just a JSON object.

This last requirement has been troublesome for me because it seems like the only way to make a POST with LoadVars requires you to specify a variable name.

[Code]...

View 0 Replies

IDE :: LoadVars Send Always Return Undefined?

Apr 19, 2009

Flash file:

Code:
s.onSoundComplete = function(){
loadVars_out.songId = sa[cps].id;
loadVars_out.send("incPlayedNumber.php", "_self", "POST");

[code]....

View 5 Replies

ActionScript 2.0 :: LoadVars() - Text File Loads Properly And Displays The Title Of The Mp3, But It Won't Play The Mp3?

Oct 22, 2005

I have on one file (player1.fla), a movie that plays MP3s from an array, which I specify in that movie. The code for that works just fine.I've duplicated the file and renamed it to a different one (player2.fla) so I could load the MP3s from a variable (array) on a text file. This way, to add more songs, all I would have to do is update the text file.

I changed the code around a tiny bit in the "player2.fla" file to accomodate for loading a text file, but nothing more.*My Problem* The text file loads properly and displays the Title of the mp3, but it won't play the mp3.The text file looks something like this: (just an example)

Code:
&songs=song1.mp3, song2.mp3, song3.mp3
&songTitles=my song1, my newer song, the third song

My script is very similar to this: (shortened; just an example)

Code:
lv = new LoadVars();
lv.onLoad = function() {[code]......

View 3 Replies

ActionScript 2.0 :: LoadVars - Form Can't Send With GET / POST

Jun 19, 2011

I have a very simple form to send user data to a php file

when i run my form from FLASH PROFESSIONAL it send without problem

but when i run SWF or html with SWF no matter on lacal disc or website it doesn't work[code]...

View 1 Replies

ActionScript 2.0 :: Use LoadVars To Send POST Without Attached Variable Name?

Jan 12, 2009

Let's say I'd like to post some data to a server side script. If my data is

var data:String = "<data><tag1>hi</tag1></data>";

and I'd like to send it with LoadVars, I can do:

var lv:LoadVars = new LoadVars()
lv.data = data;
lv.sendAndLoad("http://thescript/", lv, "POST");

However, this results in the POST looking like this:

data=<data><tag1>hi</tag1></data>

if I want to send it without the variable name (no "data=", just the actual data), how is this possible? In AS3 I can just use the .data property of a URLRequest and it will work, however I can't find a way to do this in AS2.

View 1 Replies

ActionScript 2.0 :: LoadVars.send Without The Popup Browser Window?

Nov 28, 2003

I'm using very successfully the "loadVars.send()", using the POST method. BUT I did not expect to see a popup browser window!? I can shut it down using another javascript, but get a confirmation message (because I didn't open up that unwanted browser window using js)... Is there any way I can call a loadVars send without the popup browser window? I am using: myVars.send ("Aurora.php", "POST"); Using: myVars.send("Aurora.php", "_blank", "POST"); or myVars.send ("Aurora.php", "", "POST"); gets me the same pop up window.

View 9 Replies

Data Integration :: LoadVars-using Send To Pass A Variable From Flash To Php

Mar 24, 2008

For the life of me, I've tried everything: I've researched LoadVars on Adobe forum, used David Powers' books, googled 'flash to php', LoadVars, etc. and tried sendAndLoad, send, and using $_POST, $_GET, $_REQUEST. $HTTP_POSTVARS but I keep getting this same error.

I have a Unix server running Apache/PHP 4 - LoadVars worked to load name-value pairs into an array -see thread)

My goal with this simple app is to prototype being able to pass a variable from flash to a variable in php.

Parse error: syntax error, unexpected T_VARIABLE in flash_to_SQL.php on line 5

Actionscript 2.0 code:

var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("

[Code]....

View 3 Replies

ActionScript 2.0 :: Target A Particular Frame In A Webpage As Can The LoadVars.send()-function?

Dec 6, 2006

Im wondering if the LoadVars.SendAndLoad()-function can target a particular frame in a webpage as can the LoadVars.send()-function?

View 2 Replies

IDE :: LoadVars - Send Data From PHP To Flash - Does Not Display The Contents In The Variable

Jun 23, 2009

I would like to send data from PHP to Flash however, it sends just fine but when displaying on Flash, it does not display the contents in the variable. Instead, it displays the name of the variable. This may be a simple answer but I'm quite new to this. Here is the code in Flash.

[Code]...

View 7 Replies

ActionScript 2.0 :: User Is Redirected To Paypal Via A LoadVars.send Command ?

Jul 19, 2009

I have made flash music player on http:[url]... - when the user has selected the songs to purchase and click's buy now, the user is redirected to paypal via a loadVars.send('https:url....') command.When I embed the flash player on MySpace or Soundclick for example,the redirect is blocked, and the player doesn't redirect.Is there a way around this, or an alternative to the lv.send method?

View 3 Replies

ActionScript 2.0 :: Loadvars - Avoid Opening The Browser When Send Variables To Php?

Mar 16, 2010

I am using the following code to send some values do a php file. The problem comes when i actually SEND them (values). A browser opens up. How could i avoid opening the browser when i send my variables to my php?

[Code]...

View 1 Replies

ActionScript 2.0 :: Change The Text In The Text Field And Send It Back To The Xml File

Aug 17, 2004

how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.

View 14 Replies

ActionScript 2.0 :: Change The Text In The Text Field And Send It Back To The Xml File?

Aug 17, 2004

how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.

View 14 Replies

Data Integration :: Firefox 2.x Sending Variables To PHP Scripts With The LoadVars.send / POST Method

Dec 29, 2006

There seems to be a problem with Firefox 2.x sending variables to PHP scripts with the LoadVars.send/POST method.

<br>

The same problem doesn't occur in IE or Opera. <br>See this url for example to try in both FF and IE/Opera: here. <br>The source files are here g.zelenka@iinet.net.au

View 4 Replies

ActionScript 3.0 :: Send A Text File From One Device To Another?

Feb 28, 2012

I'm working on an Android Air app made in CS5.5 where user data is saved in the app's applicationStorageDirectory as a text file.

Is there a way to send this saved text file to another device's applicationStorageDirectory via Bluetooth/email/text e.g?
 
The idea is that the app "game" is saved on each person's device. When the game is over, I want the users to be able to compare their results. (I'll write some code to compute who the winner is via comparing the two results)

View 3 Replies

ActionScript 2.0 :: Send The Properties Of Shapes To A Text File?

Apr 21, 2007

I am making an application wherein i will need to send the properties of shapes to a text file. That is, its x, y, xscale, yscale, rotation etc. Now the thing is, there could be any number of such shapes. And then, i also need to retrieve those values to redraw them onto the stage.

So how do i go about it? i mean do i create a new loadVars() instance for each shape and send it to the php file? Will that not create a separate text file for each shape?? And how do i get those variables back into the swf? Do i create just one loadVars then or do i create a new loadVars for each shape? How will i know how many to create if there is a separate text file for each shape?

I'm very new to php so i have only a theoretical understanding of how it works. I only need to do the AS part of it.

View 4 Replies

ActionScript 2.0 :: Send One Image And One Text File As Attachment?

Aug 31, 2010

Want to know whether it is possible to attach one image, or a zipped text file with the email form in a Flash template.Actually I want to send one image and one text file as attachment.

View 1 Replies

ActionScript 2.0 :: Unable To Send Data To A Text File?

Dec 22, 2003

I've been unable to send data to a text file. I am making a news poster for a website, but free or any XML, php MySQL or anything else; so is it possible to send data to a .txt file using no other files? is it getLocals or something?

View 6 Replies

Actionscript :: Load Variables From A File And Send It To A Dynamic Text Box?

Jun 17, 2011

I'm pretty inexperienced with actionscript, and I'm having the hardest time trying to figure out how to load variables from a file and send it to a dynamic text box. The content of an external file, "varload.txt", is "name1=John". Here is actionscript of my flash file:

[Code]...

View 1 Replies

ActionScript 2.0 :: Formating Text Negative?

Feb 19, 2010

how to format a dynamic text in "negative"? I mean for example white characters on black "box".

View 2 Replies

Changing File Extension From F4V To FLV - Any Negative Effects?

Sep 2, 2010

I am uploading videos to my new site (aspirin creative) and the player will not recognize any .f4v videos. I changed the extension on one to .flv and it now appears to recognize and play the video. Also, I didnt build the site myself and the developer not Define terms of video playback (which has been less than great so far) the player seems to be a rather strange resolution (600x340) which is not native 16:9 and wont recognize 4:3 encodes without stretching and warping. I have tried to encode close to this in media encoder but as soon as I select .flv over .f4v in the options my ratios seem to go mad, not keeping the preset and not letting me set to anything that is actually 16:9?!

View 2 Replies

Actionscript 3.0 :: Send A Bitmap Data And Ssome Text Fields Information To A Php File?

Oct 4, 2010

I was creating a program and now i need to send a bitmap data and ssome text fields information to a php file in my site, how can i do that?

View 2 Replies







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