ActionScript 2.0 :: XML Data And Display?
Aug 24, 2011ActionScript 2.0 :: XML Data and Display
View 6 RepliesActionScript 2.0 :: XML Data and Display
View 6 RepliesThis is the edit to my question. There is quite a bit of code here, but the problem area is below the second set of three line comments. I stuck the rest in just in case I'm completely wrong about where the problem is. With the "if" statement I can display fine in a run, but not in debug. If I get rid of the conditional it runs fine in debug, but not in a regular run. These errors only occur on the first run of the quiz. In either mode it runs fine fi I take a second quiz.
// ** this function is called from another component that passes in the array of qnums
// ** and then function clears data from previous quizzes. Component starts in the
// ** "loadingState **//
[code].....
I am a complete rookie in ActionScript2.0/Flash.I just started learning regarding a project. My problem is I want to display data from MySQL in a DropDown Menu in Flash. the SendAndRecieve functionality only aids us to receive any responses,right?(Please correct me If I am Wrong.
View 2 RepliesI want to separate the data from the PHP call to Different CollectionArrays So that I can use the data for a bar-graph;
I created a static version of the bar-graph and separated the Collection array manually I don't want this done manually I need to do it dynamically. So what I am trying to understand is where to put the event-listener how to add to a collectionArray then once the collection array(s) are built. use that information to build the bar graphs...
/*
*
36, > 2 years, Compliance
6, 0-90 Days, Compliance
[Code].....
I want to get image data from php and also display in flash. I want to know... how to read and display imagejpeg( $imgData ); from php. I am able to get php data in flash through below method...
[Code]...
I'm trying to deploy flash e-learning with dynamic content on a content management server. The xml will not display, no matter how many different approaches I take. So I need a method of encapsulating lots of text within Flash and referencing it from say, an actionscript window.
I seems that referecing any outside content, be it an external actionscript file or text file is out, so I'm left with the option of encapsulation.
I'm having a slight problem getting XML data to read out in dynamic text files. I'm doing a pretty small experiment here. The XML file loads fine. I just must be making some small error in how I assign the value of the text fields to the values in the XML file. Can anyone please tell me my error? I am using Flash CS3 and ActionScript 3.
[Code]...
I have an XML response that goes like this[code]...
View 3 RepliesI am using textfields to display xml data. I am creating a mp3 player and the textfields display the song's name, artist and album. As the code is now, the textfields display the correct information. But when another song is played. The new textfields just appear on top of the older ones. i have been unable to remove the older texfields. no matter what i try.[code]
View 8 RepliesIn my application, I am using a BarChart to display data. However, the text in the category axis can be too long to display on the chart, so flex adjusts the font size automatically to the point that the data is either unreadable, or the text is partially visible.The length of the text varies every time new data comes in, so I can't set the gutterLeft attribute to a static value at runtime.Two things that come to my mind are:Change the gutter dynamically according to new data/Have a scroll bar on the categoryaxis so that if any text won't fit in the space, the user can scroll to see it.[code]
View 1 Repliesdatagrid won't display data. Evidentally it captures the correct no. rows because the scrollbar appears. I've got an amfphp returning a resultset from a db which contains too much info and doesn't correspond with my datagrid so I'm trying to copy out whats needed to a ResultCollection (if it all looks a bit mad then it's because I'm new to this and still finding my way around).
Debug tells me there actually is data in the ResultCollection but I'm really struggling to find out why it wont display and will be really. I've searched the web for AS 3 examples of coding a datagrid - all pointers welcomed.
[Code]...
how do i display data dynamically? I already refered to the tutorial for displaying XML data in flash from Kirupa.com and the amound of data that i want to display varies and i want to display all of them at any given time. Currently what i am doing is adding the set amounts of text areas statically but if the amount of data exceeds that maximum amount, then i wont be able to display the rest?
View 2 RepliesI can not display the data from an XML file. My code is like this:
function getdata() {
myXML=new XML();
myXML.onLoad=disp;
[Code]....
getdata fn is called on click of a button. when i run the application it goes to the disp function but doesnot display the the data from XML file.
Ok, so I've read up on the TextArea class in Livedocs, and i've been looking at XML explanations and their implementation into Flash for about a week. I've tried this EXACT code on another Flash document, except on the main stage instead of embedded inside of a
separate movie clip, and it worked perfectly. Can anyone explain why the text won't display in the TextArea? Does it have something to do with it being inside of a movieclip and that being placed on the Main Stage? (By the way, proxy.xml is just a copy of the xml produced by my CFM proxy for easier usage, in case you were wondering.
I am using an xml file to display text in a flash file. It works fine when it?s horizontal but I need to display the text vertical, the screens that will be playing the flash will be rotated 90 degrees so that they are in portrait view. When I do this the text does not display at all.
View 2 RepliesI'm designing a website aiming to provide visual coverage of surfing locations across the UK through the use of webcam images. Each of the images themselves will be retrieved externally,with permission, from various hotels over-looking these locations.I have spoken to someone who has completed a similar project,a widget which retrieves and displays webcam images, which can be viewed here:
View 2 RepliesIs there a tutorial somewhere that tells/shows how to display an image from a db. I have my image paths in a mysql db and I am using php to display my other text fields. I just haven't been able to get my images to show. Below is the code that I am using so far. Here is my actual goal, I am trying to have a flash document the has a list in the datagrid that is connected to a mysql db. I have successfully done this. When a user clicks on a product in the datagrid it populates the details below the grid and I have done so successfully. What I now need is to show a picture of the product in the details section. I would also like to see how to show different images for different vendors, each vendor has its own image size, so if I put just one image placeholder then some of the images will be scewed. I need something that shows image in placeholder 1 if company=1, show image in placeholder 2 if company=2, etc.
View 1 RepliesI've been building an XML feed reader, here's the code I'm using:
var myXML:XML;var myLoader:URLLoader = new URLLoader();
myLoader.load(new [code]....
It works fine and loads the XML inside the flash authoring environment (ie when i preview with crtl+enter), or when I make an executable projector, but when I try to run the SWF by double-clicking, or when the SWF is on the webserver, the text box doesn't display the data...
I have a php file which includes an array in it.I can trace the data of the php array correctly, but how do you grab any specific child of the array? For example on xml it would be:
xml.child("child1").child("child2")[i];
And here is the php array's data.I want to display the data: info, name, number, address
<i>(length=101)</i>
</pre><pre class='xdebug-var-dump' dir='ltr'>
<b>array</b>[code]....
I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application.I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application.For e.g. I have a simple form
<form name="review" action="admin_xml.php" method="post">
<textarea name="xml" cols="40" rows="10"></textarea>
<input class="submit" type="submit" value="Submit Request">[code]............
When i submit the form, i get all the order id's from 2009-01-01 till date and it get displayed in the browser.Is there a way to run that HTML form in an adobe air application such that I enter the XML element values it should go through the admin_xml.php file and get the results.I dont want to enter the XML Skeleton again and again. I only want to able to enter the values for those elements.
Is there are component in Flex where we can display the data in table format. [URL]..
I did not like the look and feel, any other components.
I need to display price of item for every date in the month. The chart can be Bar chart or plot chart.
Question: Suppose there is no data available for 01/15/2010 then, Is there a way to display (01/15/2010) on x axis but no (bar or plot point) corresponding y axis point ?
i.e. there will be a empty space between 2 bars or plot points.
Currently i am using 0 , But 0 is a valid value.
Let me know if such a display is possible.
I want to display a 20x20 grid of integer numbers in an AIR application.
View 2 RepliesAnyone know how to achieve a 1:1 display of box2d data?I'm dividing all my values by a Physics.Scale value (30) but boxes I create like this:polyDef.SetAsBox(640 /Physics. scale, 32 / Physics.scale);Are still showing up much larger than 640 pixels wide and 32 pixels high.Weirdly, my AABB for the world is showing up perfectly at 640x480.[code]
View 1 RepliesI want to display html(text) data into flash .Is there any way to do this dynamically? I am able to do this by creating an external xml file but how is it possible to do the same job without creating the external xml file using php and database?
View 3 RepliesI am trying to display grouped data in AdvancedDatagrid but the data does not show up. When I specify the dataprovider without the grouping collection I am able to see the data. Is there something wrong with this code?
<mx:AdvancedDataGrid id="dgAssetStatus" width="100%" height="85%" initialize="gc.refresh();">
<mx:dataProvider>
[code].....
I have a what I thought was a fairly simple scrolling number list (like a lotto ticker) and am trying to parse the XML data to display the digits for some reason I am having some trouble. Perhaps I could play the mc of the spinning numbers and then stop it and just import a number into a text field?
private function loadXML() : void {
var loader : XMLLoader = new XMLLoader();
loader.addEventListener(XMLLoaderEvent.COMPLETE, onXMLComplete, false, 0, true);
loader.addEventListener(XMLLoaderEvent.ERROR, xmlErrorHandler, false, 0, true);
loader.load("testRBS.xml"); //userStandingsXML.asp
[Code] .....
i want to import data from mysql into flash. its a simple highscore table. at the moment i have php to write out the scores in xml like this:
HTML Code:
<scores><score Myname="chris">35</score><score Myname="bob">36</score><score Myname="sam">36</score><score Myname="adam">36</score></scores>
then in flash i have a MC named 'scoreTable' and in there are dynamic text boxes named 'score', 'score1', 'name', 'name1'...etc...
and the AS3 code i have is:
ActionScript Code:
//***************** This sets up the variables *********
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
[Code].....
i am using the greensock xml parser to parse xml data in actionscript 2.0 i am using two xml files.. i want to display this data in a table format in rows and columns.. how should i do it.. i have to write code in as 2.0 only... i tried using html tags but since table tags don't work in flash so it did not work
View 1 Repliesi have something like this in my XML
Code: Select all<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<city_data>
[code].....