ActionScript 2.0 :: LoadVars On The Server Is Not Working?

Nov 18, 2002

I'm using the LoadVars object to read data from a textfile. Everything works fine when I play my movie locally or on another computer in the network, but when I play it on the server, it does not load any data at all

[Code]...

View 11 Replies


Similar Posts:


ActionScript 2.0 :: LoadVars() Only Working On One Set Of Objects?

Sep 16, 2011

When I click on any of the chairs, the appropriate text loads in the textfields. But when I try a different items like tables. It shows up undefined.

ActionScript Code:
if (images == "chairs" && loadStat == "finished")
{
picLoading("MI_Products/Chairs/chair" + chairInt + ".jpg");

[code]....

I have all the info in 1 txt file seperated appropriately with the &. As I said, all the chairs load up each part of the text file as it should but every other item comes up as undefined in the textbox. I tried giving each loaderTxt a number to differenciate as seperate variables, yet no avail.

View 4 Replies

ActionScript 2.0 :: [mx] Working With LoadVars From PHP, In Flash?

Feb 20, 2004

I looked at the tutorial section to see how to get loadVars to load in data from PHP.

PHP code:
//do league queries
$query_mteam = "SELECT name FROM test ORDER BY name ASC";[code]......

Now I added the extra line in bold as I need to be able to use the variable I have grabbed from my PHP file using the above code (the var is called rows) and I need to be able to use this figuree to do some simple math.. but I can't seem to get it to do anything apart from appear in text fields....I want to be able to do:

row=row+5;

for example. In fact, I want to use the value of row to generate a certain number of buttons dynamically. This eventually will be a menu based on values from a database (mySQL and PHP) but I am stumbling at the first hurdle.

View 2 Replies

ActionScript 2.0 :: Loadvars Not Working On External Domain?

Aug 27, 2009

I have Domain1 that is hosting my flash .swf file, and Domain2 that is linking to that .swf file. In the flash file I have a;loadVars.send "POST");command. When the flash file is placed anywhere on a page on Domain1, this works perfectly fine. But when placed on Domain2 (and other domains), this loadVars statement does not work and does not forward to But when I change "_self" to "_blank" - the statement works fine on Domain2.

View 4 Replies

ActionScript 1/2 :: Loadvars Not Working On External Domain

Aug 27, 2009

I have Domain1 that is hosting my flash .swf file, and Domain2 that is linking to that .swf file. In the flash file I have a; loadVars.send("another-[URL]", "_self", "POST"); command. When the flash file is placed anywhere on a page on Domain1, this works perfectly fine. But when placed on Domain2 (and other domains), this loadVars statement does not work and does not forward to another- [URL]. But when I change "_self" to "_blank" - the statement works fine on Domain2. Why doesn't "_self" work on external domains?

View 3 Replies

ActionScript 2.0 :: LoadVars Working Locally, Not Live?

Sep 19, 2009

I'm having a bit of trouble with a Flash/PHP voting system. Basically, it's using a loadVars object to send a simple Number variable to a PHP file that connects with a database and returns.

But for some reason, I can only get the votes to count when I test locally with an absolute path to the PHP file on the server. When I put it live, it will read the PHP file but doesn't seem to be able to send the voting data to it. Here's my code:

ActionScript Code:
//----- On load data function -----//
var dataIn:LoadVars = new LoadVars();
var dataOut:LoadVars = new LoadVars();

[Code].....

Like I said, everything works fine in local testing, but when I put it live, the votes don't get counted, whether I use an absolute or a relative path to the PHP file on the server.

View 9 Replies

ActionScript 2.0 :: Don't Use Absolute Paths When Working With Loadvars

Feb 1, 2006

Working with loadvars can be frustrating if your calling vars from [URL]and testing them by navigating to "website.com/getVars.php". Flash will not load vars accross a domain (cause your missing the www) without adding a policy file. There are a couple ways around this:

1) Don't use absolute paths when working with loadvars.The issue here is testing locally and on the web, you can't load vars from getVars.php locally if you're web server is generating the file with a database...

2) Force your users to include www. before the domain name.I work for a tv network and I'm finishing up 4 flash sites that all use loadvars and I felt like writing a script that would work for all of them, instead of one for each site. The following is the result, and I thought I would share it with the faithful kirupa nerds.

<script language="javascript">
var thisURL = "" + window.location;
var WWW = (thisURL.indexOf("www"));
var dissect = thisURL.split("/");

[code]....

I compressed (and actually made the code more scalable) from 23 lines to 6

View 3 Replies

ActionScript 2.0 :: [CS3] LoadVars.sendAndLoad Only Working On Some Computers

Jan 15, 2009

I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain via curl to sign up the user.

So far, so good, and it works on roughly 70% of the computers on which it's been tested (it's being tested live from the website, not locally). However, on some computers, it doesn't appear that the LoadVars.sendAndLoad call is being made, as the email addresses sent from those computers aren't showing up on the subscriber list. I know that the PHP script still works on those computers as I've made a barebones HTML form that acts in exactly the way the Flash app does (POSTs to same PHP script with same variables, etc) and it works on all computers.

Here's the relevant AS:

submit_btn.onRelease = function(){
submitOutAnimation();
this.enabled = false;

[Code]....

View 2 Replies

ActionScript 3.0 :: Flash AS3 Loadvars Not Working After Publish

Feb 17, 2011

I'm having an issue with some AS3 Loadvars. This works fine when running as preview (^+Ent), however after publishing this doesn't work. I'm very new (this is my first 'dip' into the flash world!).

Code:
myData = new LoadVars();
myData.load("[URL]");
myData.onLoad = function(success) {
if(success){
L_Var1.text = this.RetVar1;
L_Var2.text = this.RetVar2;
_level0.gotoAndStop(2);
} else {
_level0.gotoAndStop(80);
}};

Whenever this runs in preview, frame 2 is shown without issue. If run after publishing, frame 80 is shown, but without the trace I cannot see why.

View 1 Replies

ActionScript 2.0 :: Sending Image To Server Using LoadVars

Oct 20, 2009

I need to send a image to PHP (server) and get it in my mail. Sending using LoadVars.
Code:
import flash.display.BitmapData;
var bmd:BitmapData = new BitmapData(20,20,false,0x00ffff);
var output:String = bmd.getPixel(1,1).toString(16);
trace(output);
while (output.length<6){
output = "0"+output;
[Code] .....

View 2 Replies

Media Server :: LoadVars - PHP Taking Long To Display The XML

Oct 9, 2009

I am using sendAndLoad heavily in my fms3.5.2 application because it accesses an API on the webserver to execute commands. It calls a PHP file on the webserver which connects to a database, does some processing and returns XML output. Now, LoadVars has been giving me problems for months now. I suspect it is the reason my application crashes intermittently.

Also, lately.. it takes about 2 minutes just for the sendAndLoad to reach the onData stage. I have no idea why. This is not a problem of the PHP taking long to display the XML because if I access the PHP directly using `links` linux command, then it returns practically immediately.

View 1 Replies

ActionScript 2.0 :: LoadVars Get Extra Html Stuff From Server

Jul 17, 2008

[Code]...

when i trace the loaded content, it shows html part too. has anyone encountered the same problem? How i can prevent html part being sent to flash? trace result:

[Code]...

View 1 Replies

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 :: LoadVars To Read Variables From .txt Files On A Different Server With Flash?

Mar 13, 2006

use loadVars to read variables from .txt files on a different server with flash, do any of you know because I'm getting really annoyed?

View 14 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 2.0 :: TUTORIAL Error - Change LoadVars() Into LoadVars()?

Apr 13, 2004

One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work

View 2 Replies

ActionScript 2.0 :: Using LoadVars.getBytesLoaded And LoadVars.getBytesTotal?

Sep 1, 2003

Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.

View 14 Replies

ActionScript 2.0 :: UTF-8 French Characters Working Locally, But Not Working On Server?

Apr 21, 2009

I missing a file that needs to reside on the server to get this working?

View 1 Replies

ActionScript 3.0 :: Flash - Url Picking Not Working On Server But Working Locally

Mar 17, 2012

i have a "swf" file which is picking url from xml & displaying the image, when i tested it locally it works fine, which means it picks up URL from XML & displaying corresponding image. After i uploaded it on server, it doesn't show anything.

View 2 Replies

Media Server :: Dynamicstream.f4m Not Working From Index File Of New Install Of 4.03 Server?

Oct 17, 2011

I'm doing a test install before we update our old server to 4.03.I've got the server software installed and configured (4.03 server, using iis for web).All the test stuff on the sample index page works, except for the dynamic stream tab.I've eyeballed the .f4m file, and tried putting in a complete url to the samples...but no luck.i just keep getting the stock connection timed out message. 
 
Where do i need to look to start confiriming where this issue may be coming from?I've made made sure I can reach all the test videos by making flash players for them, calling them via rtmp... no problems.It's got to be something dumb with either the f4m file, or the way it's being served   (btw, i have added all the mime types to iis , including .f4m as video/mp4....which is one of two ways I've seen it added).

View 3 Replies

Media Server :: HLS And External Apache HTTP Server Not Working?

Sep 19, 2011

I installed the FMS 4.5 on a debian system already running an apache web server. I configured the httpd.conf as mentioned in d6093a7e2f8312a374a1bde-8000.html but when i call a streaming url e.g. http://<IP>/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 the request is still handled by the old apache, not by the FMS

View 9 Replies

Media Server :: "Server Rejected An Invalid Flow" - RTMFP Stops Working?

Apr 30, 2011

Sometimes RTMFP stops working on my server, and I have to restart it for RTMFP to work again.Here is what I saw in the error log :

2011-04-29 05:43:17 26120 (i)2631502 The server rejected an invalid flow. -
2011-04-29 05:44:22 26120 (i)2641213 Connection rejected by server. Reason : [ Server.Reject ] : Adaptor: _defaultRoot_, VHost: TheFMSServer, App: Application/_definst_, (onConnect call

[code].....

View 25 Replies

Media Server :: Flash Media Server Stopped Working?

Jul 23, 2009

I have a FMS and HTTP server on one machine A and all my swf's were kept there. I had one more machine B in a network, from which I was testing the swf's on Machine A.Everything was running fine, until suddenly I could not access the swfs from Machine B.Moreover, when i checked the Admin console in machine A, there was no cent (referring Machine B) was connected to the FM Development Server.hat could have happened sosuddenly. In the swf that i tried connecting from Machine B, I debugged and found out that the swf was not able to connect to the FMS. (NetConnection.Connect.Failure)

View 3 Replies

ActionScript 3.0 :: SWF In Not Working On My Server?

Apr 22, 2011

I have create a Swf file its working fine in FL CS5 But whenever I uploaded it is show only dots(.....) instead of my Swf.I am unable to resolved it

View 2 Replies

Media Server :: FMS Using A Public Ip (not Working)?

Dec 6, 2011

I was making live streaming using FMLE and FMS but inside a local network,  now my server is using a public ip, and now the FMLE cant connect to the server, im sure i have to change something in the FMS but i dont know where, if i try to work inside my network works, but if i try to do it by my public ip launch an error eerytime i try to connect.for example: inside my network my server ip was 192.168.1.200,  so everytime my FMLE needed the url to stream was something like.. rtmp://192.168.1.200/live. 

lets pretend that my new server ip is 190.15.15.103 so im trying to connect with FMLE to rtmp://1990.15.15.103/live.. and nothing happend, i also tryed using some ports.. like 1935.80.8888.1111 and nothing happened.

View 5 Replies

ActionScript 2.0 :: MP3 Player Not Working In Server?

Jul 25, 2009

I just created a flash audio player.. It running properly in localhost, But if i host it into the server, Its not running when i play MP3s but some of the mp3s running well.

Here I have given the demo link... [URL]

View 2 Replies

ActionScript 3.0 :: XML Parsing Not Working On Server?

Dec 4, 2010

I am trying to migrate some classes to a new project and I am running into a problem. I have a class that loads up XML and is suppose to just present the raw data in a textfield. This works fine on my local machine but when I upload it I get this error:

Code:
[HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=404]
XML: ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
LoadXML class (called from the constructor of my document class):
ActionScript Code:

[Code]...

View 2 Replies

ActionScript 2.0 :: LoadMovie Not Working On Server?

Nov 2, 2007

why doesn't loadMovie("folder\file.jp",this); work? Could it be something with folder/file permissions on the server? It works in my computer but when I upload it to the server..it doesn't!I have the folder and the needed file already in the server.

View 1 Replies

ActionScript 3.0 :: Files Loaded On Server Not Working?

Jan 26, 2010

If I run the site locally on a web server, it works fine. BUT, when I upload to my hosted server, it stops working.I have an SWF that loads another SWF, using a relative path and as I said, this works perfectly well until I upload it.Any ideas anyone.. has anyone had a similar problem. Am using Actionscript 3 and publishing to Flash Player 10. Just so you know

View 2 Replies

Media Server :: H.264 Not Working In Live Stream

Dec 4, 2008

I have a HD Camera streaming a live feed through FME 2.5 to FMS 3.0 using the VP6 codec and it works fine. I have now been trying to get the same stream running via H.264 and althogh FME 2.5 connects to the FMS 3.0 server and the stream starts with FMS 3.0 reporting the stream no problem. The Client application crerated with Captivate 3 using Flash Player 9 for publishing no longer dispays the video. Switching back to VP6 works again.

View 4 Replies







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