ActionScript 2.0 :: Lading Data From Txt File Shows Undefined?
Feb 2, 2009I have this little code, just loading text from a file, but as the title says, the variable s seams to remain unchanged :S
[Code]...
I have this little code, just loading text from a file, but as the title says, the variable s seams to remain unchanged :S
[Code]...
I have this little code, just loading text from a file, but as the title says, the variable s seams to remain unchanged :S
Code:
var s:String;
var loadText:LoadVars = new LoadVars();
[code]......
we have this variable from the internet, val(0), in a dynamic text field we can see a digit from this variable. but when we use this variable in actionscript and test it with trace, the variable shows as undefined.
how can we make this work without it coming up as undefined??
I have a swf file that loads other swf files with an XML file, which are populated by external text on the fly.
Everything works perfectly on my computer. And it all worked perfectly on a previous website.
Now, for some reason, when I load these onto my website, the text fields show 'Undefined'.[code]...
I created a new slideshow in flash CS3 - AS3 but my code that I had for xml caching is barking at me and I am not sure what to do. The output window shows access to undefined property root.
[code]...
I am trying to write a piece of code to retreive data from a SOL file : this is my code :[CODE]//get External interfaceimport flash.external.*;
[Code]...
How can that be ? what can I do ? What am I doing wrong ?(bear with me, as I said, I'm kind AS newbie).
In As2 i was used to just being able to put for example: Apple = House
and when i typed Apple As2 would see it as House, im trying that in As3 and it says "Undefined Property" which is obvious but,how would i be able to do this in As3? could i possibley make this a Variable? if so which do i use kind of variable do i use? Example: :Number:Boolean etc
we have this variable from the internet, val(0), in a dynamic text field we can see a digit from this variable. but when we use this variable in actionscript and test it with trace, the variable shows as undefined.how can we make this work without it coming up as undefined??
View 12 Repliesi'm loading some data from an xml-file and dynamically create movieclips with textfields inside of them, but I'm kinda stuck. I'm not up to the point where I completely understand how you can refer to a nested object using this syntax: _root[movieClipName]. If you want to nest something inside of that movieclip, you have to work like this:
[Code]...
this will be the preloader code what i put initial frame of my flash file.
[Code]...
i've working in flex for some years and it seems to me it's an awesome tool. Some days ago i've had an extrange behavior in my datagrid.
I have a php service which reads a database and sends this data to felx. The service and the info saved in the dataprovider in flex are working without problems, but when datagrid shows the loaded info, it shows many cells with wrong data. The data shown seem to be mixed with other cells. I have two registers: "The lightbulb is red" and "The dog is dangerous". But the datagrid shows e.g. "The lightbulb is Dangerous" or "The dog is red". When i see the dataprovider in a breakpoint all data is correct.
But it's even much strange when I click over a problematic cell, this automaticaly changes its content to correct values.
[Code]...
I'm using a simple form to submit to a php mail functions.works fine, however when i publish for flash 8 the mail body shows all the inline style as plain text.[code]...
View 1 Repliesso my XML looks like this:
<root>
<level1>
<level2>
<level3-array-start->
<name text="Dolphins"/>
</level3>
[Code]...
i had a issue, when the chart data is displaying the legends has to be shown theinformation of the charts.But i need to show the multiple data columns for each each legends has to be displayed.Can any one of you having this type component
View 1 RepliesI loaded a page on the server and is not showing up the flash object. You can hover the screen and you know the object is there but is showing a white box. Locally in my computer I can see it. The test page is [URL]
View 2 RepliesI am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.
I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.
Localhost server is using 5.2.17 and so if my Server hosted on 1&1
Flash Code To Send Info to PHP
Code:
function MakeZip():void
{
var variables:URLVariables = new URLVariables();
//variables.Image1=img1;
variables.ImageList=OrderItems;
[Code]....
I have created a fla document named main.fla I have defined the document class as Main which is attached. (rename to Main.as)
The problem is preloader shows only when the file is completely loaded. How can I appear the progress preloader for the main file.
I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.
I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.
Localhost server is using 5.2.17 and so if my Server hosted on 1&1
Flash Code To Send Info to PHP
function MakeZip():void
{
var variables:URLVariables = new URLVariables();
//variables.Image1=img1;
[Code]....
I have downloaded an xml gallery (as2) as we needed one for an old as2 file. Now I mostly use as3 but thought as I only needed to tweak it there would be no probs. Of course, it rarely works out that way. The problem is, text loaded from the xml file is displayed with its corresponding image. This works fine in the file.When I load the SWF into another SWF however, it all works EXCEPT the text doesn't show at all?? Whoever made the gallery used 'device fonts' in the textbox, I don't know if this has anything to do with it. I tried changing the textbox to dynamic and embedding characters but still nothing.
[Code]...
Since Flash doesn't support multithread how do you that in actionscript 3?
View 1 RepliesHow can I save data to a text file and also append a record to data in an existing text file? I've used Authowrware previously and it was quite easy to create a large string of data (a comma separated list) and export that to a text file (and create the text file if it didn't already exist). I could then easily append additional rows of data (records) to the text file. We want to build a questionnaire that will store the data locally on the computer in a text file. Each record may have a few hundred data points in a comma separated list.
View 8 RepliesImplemeting RSL in Flex 3.2 The build comils perfectly but opening it shows Error #2124: Loaded file is an unknown type. URL:Whereas I have confirmed the requisite files are there in the folder. i.e. SWZ/SWF. I also noticed we assetCache does not contains framework swz.
View 1 RepliesI am the fan of kirupa but this is my first thread in forum. I have some problem with sendAndLoad method with actionscript 2.0. I am developing a online game with flash mx , MS SQL 2000 and asp. The problem is I send the data using sendAndLoad method to asp file and get data back from asp file. But when the internet connection is not good there is a problem like jam or lost packets. How can I prevent the lost of packets. Some of the data are important. Is there any way to solve this?
View 1 Replieshow to compile actionscript with the mxmlc file? everytime i doubleclick the file to run it, a prompt will show up for a split second then disappear.
View 2 RepliesI have a custom ActionScript class:
package EntityClasses
{
import mx.collections.ArrayCollection;[code]....
And I want to bind these values to textBoxes, so that when user types information to the textBoxes it is populated in the class too. Is Flex 3 bidirectional so that marking the class with [Bindable] I can bind the values to a textbox for example?This is my mxml file in which I try to bind the class:
import mx.rpc.events.ResultEvent;
import EntityClasses.CompanyInfo;
[Bindable][code].....
The flex compiler shows me this kind of warnings: Data binding will not be able to detect assignments to "company".
I can load the xml in the first time just fine but when i try to reload the xml to get the new data it comes up undefined. What do I need to do? Do i need to clear the xml object and then reload the data? Am i reloading it wrong? I call the code again using this function and the data comes up undefined
[Code]....
I am in the middle of making an xml driven menu. Each button has an image which loads from an external folder and 3 dynamic text fields. The content for the text fields is taken from an external XML file and I would also like the image to be defined in the XML file. The problem I am having is when I use the code attached below .I get the following error message; :
'Error opening URL
'file:///C|/Documents%20and%20Settings/barry.gee/Desktop/undefined'
However when I manually enter the image url as commented out in the attached code the image loads fine.
I cross with a problem that I do not understand why is happening. I a AS3 and php getting the results from the database. The php is working fine since I test it. but the request from the flash give me a result of "undefined" .I have a text area on the flash file in which is supposed to show the results from the php. This code so far:
AS3:
import flash.display.*;
import flash.events.*;
import flash.net.URLLoader;[code]....
This is most the code and I get a undefined result in the textarea in flash.
Does anyone know why I'm getting this error on the code below?Scene 1, Layer 'Layer 1', Frame 1, Line 441119: Access of possibly undefined property result through a reference with static type flash.data:SQLStatement.[code]
View 1 RepliesI found out that if XML file's attribute contains German special chars (chars with umlaut, like:..) then I get "undefined" answer when I try to read an attributes value. I tryed to change XML file encoding to: "UTF-8" and "iso-8859-1" but still no luck. "system.useCodepage = true;
View 2 Replies