ActionScript 2.0 :: Server Dependent CSV Parsing?

Oct 6, 2007

I've got a Flash site that uses a loadvars object to load a csv file that I then parse into arrays. The swf works great locally and on two hosts I have tested it on. However, I can't get it to work on the host server I own (er..rent). The HTML file, swf and csv are all stored on the same level and I've even included a policy file just in case. Additionally, I have changed the path to the csv in the Flash file several times to see if that was the issue. I created a trace that indicates my data is loading, but the functionality isn't working, leading me to believe the parsing is at issue. Any ideas why this file would work fine on two other servers but bomb on a third?? I'm completely stumped.

View 1 Replies


Similar Posts:


Media Server :: String Parsing By Remote Java Server?

Jan 4, 2011

I am writing a game where positions of an object are being exchanged between the two flash clients through a java server. The secnario goes simply like this:
 
PlayerA ---> Server : "Position X + Position Y+
"
Server ---> PlayerB: "Position X + Position Y+


and it works both ways of course.the problem here is that on my computer where i use "localhost" everything is fine and the data is exchanged seamlessly .. when I loaded the server on a remote host the message received strangely turns into something like "Position X + NaN" (i.e. the y position is wrongly parsed by the server), what is weird even more, is that sometimes, the message gets parsed correctly..the server is wrote in java and it is exactly the same source code that works on my machine that fails over the internet

View 1 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 3.0 :: Mouse Updating Dependent On Position?

Aug 26, 2009

I'm making a simple puzzle-building game. It's working, but I have just spotted an odd in-game behaviour...When I pick up a piece of the puzzle and move to the left side of the swf, the game runs at a playable frame rate. The farther I move the mouse to the right, the frame rate (or at least update rate) seems to drop.The only code it's running at that point is a method that checks which piece is carried and moves that piece's x and y coords to match the mouse.I've already tried using 'updateAfterEvent' with no change.

View 5 Replies

Flash Compiling Resource Consumption (CPU Or GPU Dependent)

Sep 14, 2009

Hopefully this is a straight forward question but as far as resources when compiling a flash project is flash more cpu dependent or gpu dependent? Trying to spec out a machine and need to determine what flash is going to use more.

View 1 Replies

AS3 :: Create Time-dependent Content In Flash?

May 18, 2010

I want my site to load different content depending on the time of the day, day of the year, holidays, etc.

Does anyone know how to do that in AS3?

I use CS5 Master Collection. Work mostly in Fl.

View 1 Replies

Flex :: Environment-dependent Compilation Properties In AIR?

Jan 19, 2011

I'm building a Flex/AIR application that connects to a remote server, the URL of which changes depending on the environment (development/production, and possibly others). For now, this URL parameter is hardcoded in my root application MXML file but it means I have to change it everytime I build my app for a different environment.Is there a way to externalize such a parameter so that when Flash Builder automatically builds my app (in development mode), it uses the development URL

View 1 Replies

Flash :: Rename A Dependent .as File Without Breaking The .swf?

Oct 5, 2011

I'm working on a flash project and wanted to rename an .as file. When I changed the name, the .swf breaks. Is there anyway I can remap the .as file to the .fla from CS5.5?

just wanted to know where is it preferred to keep your .as files? I've seen examples where people store them in a separate folder (ex. Actionscript/MainTimeline.as) but I've also seen examples where people just keep all the .as in their .fla file.

View 2 Replies

ActionScript 3.0 :: Various Lines Size Dependent Of Speed

Apr 18, 2011

I have a function which makes the line size change dependent of the speed of the cursor. Faster movements = thicker line. It works as it should, but im trying to call it thru external Interface an a .Js. The line size changes but not when drawing, it looks like it bases the line size on the speed the cursor had before the mouseDown is fired. So it changes speed but not while drawing.

ActionScript Code:
var prevPt:Point=new Point(mouseX,mouseY);
ActionScript Code:
var THICKNESS:Number = 1;
function mouseDown(_x:Number, _y:Number):void {

[Code].....

View 1 Replies

ActionScript 3.0 :: File Loading Dependent On Locale

Jul 21, 2011

how i can develop my AS3 code from a previous project, here is the code: -

ActionScript Code:
stop();
import flash.events.MouseEvent;
import flash.filters.GlowFilter;

[Code].....

What i would like to do is load a file depending on the locale, for example if the locale is 'en' load ENGdoc1.exe or if it is 'fr' load FRAdoc1.exe.

View 0 Replies

ActionScript 2.0 :: Browser Dependent Object Centering?

Mar 4, 2007

I seen alot in many sites. Full screen flash site with objects in the site centering or their predestined position as browser scales.

View 3 Replies

ActionScript 1/2 :: What Code Will Turn Layer Vis On Or Off Dependent On Magnification

Jan 6, 2010

We have a flash vector type map with pan and zoom ability and need to have layer1 which features a simple flash vector map visible from the initial overview until when the user has zoomed in to a certain amount when a more detailed layer2 flash vector map then appears and layer1 disappears. I would imagine a code turning off or on visibility of a layer dependent upon the zoom is what we need.

View 1 Replies

ActionScript 1/2 :: Date Dependent Button Won't Be Visible Or Active?

Nov 20, 2010

I'm trying to make an online advent calendar, and I want to know whether it is possible to add an actionscript code to a button in flash, so that it wont be visible or active until a certain date?

View 17 Replies

ActionScript 1/2 :: Variables Sent By Post Dependent On Browser Type / Version?

Mar 29, 2010

I am writing a type of mail form in AS2 of Flash CS4. I collect two variables (nameCli and messageCli) I setup a "sending button" to appear only when there is a minimum of characters (2) under nameCli AND a minimum of 10 characters in messageCli. When that button is pressed I POST these two vars tru email_lv to email2.php. I do this check to be absolutely sure that these vars have contents.

It works and tests well on several computers (PCs) under XP, Vista and 7.
I haven't tested on a Mac
Under IE and Firefox 3.0.xx
I get the email with the correct values.

The problem: somehow, now and then I get (and worse, my client, to whom I wrote this app, gets) an "empty" email. That is, the subject of these emails are: "Request from" and blank. No name. The message is also blank. Since I know, with no doubt that these vars have content, otherwise the send button wouldn't come up, I am puzzled. I have no idea of what OS or Browsers these users have. Would be possible that some browsers would "block" the vars sent via POST?

email_lv.sendAndLoad("email2.php",dummy_lv, "POST");
email2.php is:
<?php
$to = 'any@whomever.com';$to2 = 'another@whomever.com';
$subject= 'Request from ' . $_POST["nameCli"];
$message = $_POST["messageCli"];
$headers = 'From: WebSite@clientserver.com'. "
" . 'Reply-To: doNOTreply@clientserver.com'. "
" . 'X-M ailer: PHP/'.phpversion() ." ";
mail($to, $subject, $message, $headers);mail($to2, $subject, $message, $headers);
?>

View 1 Replies

Flex :: Elements - Loop Over Children Of A Container When They Are State-dependent?

Aug 17, 2011

Flex's new States re-parents visual items that are marked with includeIn/excludeFrom. If I have a Group (MainGroup) with 5 children/elements that are state controlled, is there still a way to get a reference to MainGroup's children? mainGroup.numChildren and mainGroup.numElements don't work since the children are re-parented. At best, they show 1.

<s:states>
<s:State name="view1State" />
<s:State name="view2State" />
<s:State name="view3State" />

[code]....

View 4 Replies

Flex :: Double Click Event Propagation On Datagrid Dependent On Component Order?

Mar 21, 2010

I'd like to have a double click event on a datagrid in Flex3. The following example only works if the Accordion (id = "mustBeSecond") container comes after the DataGrid. Why is the order of the components important and what can I do to prevent this behavior? (The example does not work. If you change the order of "mustBeSecond" and gridReportConversions" the example works fine)

<mx:Script>
<![CDATA[
import mx.controls.Alert;

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Text Box - Width Dependent On Text?

Dec 21, 2006

if I have a dynamic textbox named 'myText' and have this kind of code..

Code:
myText.text = "I want to stretch the text box dependent on the text";

At the moment all I can see is 'I' - I want the textbox to stretch based on how much text is in it, and not to go to a new line - So the one line just keeps gettin bigger.

View 3 Replies

ActionScript 2.0 :: XML And Flash Parsing?

Apr 13, 2009

I have a couple of questions that I hope someone can answer. I have this ActionScript that reads the XML file into the flash movie. The poblem is this: The XML is in this format:

<listitem name="TEST" url="rtmp://000.000.000.000/">
<stream len="-1" name="Test" start="0"/>
<group name="Testing"/>
</listitem>

[code]....

View 1 Replies

ActionScript 3.0 :: Parsing Xml To A List?

Feb 26, 2010

i get a syntax error when everything seems to be in the right place, out..home.swf

PHP Code:
stop();
var xmlLoader:URLLoader = new URLLoader();

[code]........

View 8 Replies

ActionScript 3.0 :: Get Parsing String In Url Id?

Oct 5, 2010

I want to get id from this [URL] get this id in as3 and use this id in xml and show the message in text field.

[Code]...

View 4 Replies

ActionScript 3.0 :: Parsing XML To Flash?

Sep 26, 2008

This is my first day to try and use XML to display dynamic text in Flash. My skillset is weak with AS3 and Flash, but I found some tutorials online and I have managed to successfully display the first record in mytest.swf. However I also seem to have all records displaying in each dynamic text box as well. My loop isn't stopping after each record. It's reading everything. And dumping the results into each text field.

I need to only display each record individually. Once I accomplish that, I will need to include some form of navigation. Lets say buttons that perform a NEXT, PREVIOUS, LAST, FIRST type function. Then lastly, I'll need to include some type of search navigation option by item number. I assume that I'd have to have a second screen that links to my primary results screen with an input form for the item number.

[Code]...

View 3 Replies

AS3 :: Parsing Xml Using The .text() Function?

Jun 30, 2009

I am accessing an xml document in actionscript, I know flash can see the xml as I am tracing it but when I add the .text() funtion to my trace to strip out the tags by trace doesn't see anything.

function LoadXML(e:Event):void {xmlData = new XML(e.target.data);ParseXML(xmlData);}function ParseXML(thexmlInput:XML):void {
trace("XML Output");trace("------------------------");trace(thexmlInput.wrapper.page);

[code].....

View 2 Replies

ActionScript 1/2 :: Parsing The XML Namespace?

Sep 28, 2009

I am attempting to parse some weather information from the Yahoo weather RSS feed.This is a typical XML node;

<description>Yahoo! Weather for Palm Springs, CA</description>
 
I used the typical XML parsing code in as2;

var text1 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
txt1.text = text1;
 
I was doing pretty good until I reached a node that was formatted thus;

<yweather:forecast day="Mon" date="28 Sep 2009" low="74" high="103" text="Sunny" code="32" />

This text traced a value of undefined.I have tried to research this and so far all I have been able to find out, is that this is a XML namespace and is very easily handled in as3. Unfortunately I have to use as2.How do I parse out this information into a dyamic text fields?

View 2 Replies

Flex :: XML Parsing Error In It

Aug 26, 2010

I am passing a XML document form the Java to Flex using Remote Object.[code]...

View 1 Replies

Actionscript 3 :: Parsing Data From Xml

Sep 29, 2010

I'm trying to make a banner which the user can edit his Preferences in a xml file. My xml file looks like below.[code]that means image 1 has three textboxes with fontsize: 14,18,30.now i've the following problem.as you can see i've get function from my billboardData_array i want to call this get function in other classes to get the correct data i need. [code]this function returns the last fontsize but i need to loop through it to display text on the stage.

View 1 Replies

Actionscript 3 :: Parsing XML From XML String

Dec 21, 2010

I am trying to parse out the nodeName but nothing was return, what is wrong with my script?

[Code]...

View 1 Replies

Actionscript 3 :: Parsing An XML Response

Jan 19, 2011

i have this response from a socket server:

[DataEvent type="data" bubbles=false
cancelable=false eventPhase=2
data="Segunda vez"]

How can i parse this info?, for example if i want the data value.

View 1 Replies

Actionscript 3 :: Xml Parsing In Flex?

Jan 12, 2012

I have an xml file and im putting this xml file in an XML object

var receivedXML:XML

In some function, I have:

var xmlList:XMLList = new XMLList();
xmlList = receivedXML.some.attributes.here;
object.functionDoStuff = xmlList;

The function functionDoStuff takes xmlList as its argument:

function functionDoStuff(xmlList:XMLList) {}

When does receivedXML get parsed, is it when we assign it to xmlList, or is it when it gets used in the next instruction by the function functionDoStuff?

View 1 Replies

ActionScript 3.0 :: XML Parsing Failed?

Jan 25, 2011

If I use the following XML it does not output anything. Please help me to find what is the issue.

PHP Code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Parsing XML Into An Array?

Mar 11, 2011

I have Visual studio with AS and Flex 4 installed into it. Can someone provide me with simple sample code and a simple xml file (can just be like a=8083&b=8873) and grabbing the data for a and b and putting this into 2 different arrays of size 1 (since its simple).

View 1 Replies







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