ActionScript 3.0 :: Properly Pulling In Data From Php?
Sep 10, 2009
I was running a test today and couldn't get flash to properly load data from php.Here's my textInput.php file:
Code:
<?php
$testVar = 'This is a sentence.';[code]....
why it's grabbing the entire php code, rather than just the echo?
View 3 Replies
Similar Posts:
Apr 23, 2010
I'm wondering if anyone has figured out how to pull data from a column in a SharePoint 2007 list to be able to dyamically generate a reaction in a flash object.Our designer created a dashboard of thermometers for our projects that use two variables, % complete and status (green, yellow, red, blue).
As the end user, I want to be able to update my project in my SharePoint list and have it so that my updates automatically populate that flash based dashboard.Right now, he's using an XML document that is stored in a folder on our SharePoint site and then simply updating the XML file when there are changes.It would be ideal to pull this data from the list rather than having to update and then upload the xml document to the SharePoint site.
View 1 Replies
Sep 21, 2006
I created a file that pulls data from the worldofwarcraft.com serverstatus xml page.The data populates a dropdown list and you can choose the server and it tells you if its up or down. The mini app works great on my desktop, when I upload it to my server it no longer retrieves the data.
Is Bliz blocking my server address from recieving the data? Anyone know how to navigate around this. [URL]..If you want to test it grab the swf out of your cache and load it from your desktop, it will work.
View 6 Replies
Aug 28, 2010
I have been failing to do a thing with Flash actionscript2.0; Here is the problem-
My xml file name is: sea.xml On my fla file, there is a button named: do; and a movieClip named: loader;
What I am trying to do is- load xml only when the button is pressed. So I tried this-
myXML:XML = new XML;
do.onRelease = function(){
myXML.load("sea.xml");
}
[Code].....
View 1 Replies
Sep 8, 2010
I am trying to pull a text from within xml tags and place them in a text box when certain mc's are clicked. I am using the e.target to find the name of the mc clicked and grab info from tags with the same name as the target mc. The XML link is good as i can get data when doing tests with out using mentioned technique.
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
[Code] .....
And the xml file
Code:
<statsIcons>
<pollutionIcon_mc> some text </pollutionIcon_mc>
</statsIcons>
View 1 Replies
Feb 23, 2010
I am building a userinterface for some industrial instruments which output some data to a XML spreadsheet. This is the only way I can retreave these data's from the instruments.
Now, I need to make a flash that can pull out these data's from ex. "A1" and "A2" in this spreadsheet...
Here's a screenshot of the XML as it appears in EXCEL:
...and the XML as it appear if opened in Dreamweaver:
Code: Select all<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
[Code].....
View 8 Replies
May 25, 2005
pulling specific data from XML? This is what I mean...Supposed I have an XML file like this:
HTML Code:
<data>
<article>
<ID>1a</ID>
<related items>
[code]....
Now, in Flash I want to load all items that have "5f" listed as one of their related item. So only display articles where item = 5f
View 7 Replies
Apr 30, 2007
Basically, I am having trouble pulling in more than one line of XML data. Here is the line of code I am trying to manipulate to give me more than one line. I have tried duplicating it and changing the values... but it just updates which line it is displaying instead of the first and second one...
_root.setlist = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
Inside of my XML document it is layed out like this....
<shows>
<show>
<setlist>
<song>Song 1</song>
</song>Song 2</song>
[Code]...
View 12 Replies
Mar 5, 2010
and E4X to pull in an XML file. I am wishing to display some text as subscipt. E.G with
G2, the 2 would be subscripted.if this can be done and if so how?
View 14 Replies
Jan 1, 2012
I loop through two arrays and im checking their data, i have collison working for them but I want to add more A.I. by making them stop when they are a certain distance from each other. so i need a way to pull EACH object that is in the arrays x,y, pos and use that data. my distance var keep bouncing all over the place...
THIS is my code:
//check events between 2 objects
function CheckEventsEnemyFighterFighter():void
{
[Code]....
P.S. i need some tips for my coding... like should have i used a break in these for loops?
View 2 Replies
Aug 6, 2009
I am trying to create this slide show application that will show product information (Tennis Rackets) based on diffrent categories. A great programmer advised me that OOP would be a way to go, however i am having a difficulty with it.
I created: A document class called CustomClass --> this class downloads all XML data from the server and pushing the content of it into Arrays based on a category.These arrays are public, there is also a funciton iterateArray which places the children information somewhere.
[Code]...
View 7 Replies
Aug 15, 2011
I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.
View 1 Replies
Sep 23, 2006
Newbie to XML here and I have what I *hope* is an easy problem, but I just don't know the answer. And as I have to try and show this by Monday, I'm sort of stuck. I am trying to pull in information about houses via an xml file. Each house has 1 address, 1 owner, 1 description, and about 6 photos. I have no problem accessing the address, owner, etc, and I can always access the first photo, but whenever I cycle through the photos, I seem to cycle through the first photo for every house, not every photo for each house.
Basically, I need the children <images> to go up by one, without the the parent going up by 1. I am hoping I am describing this well. My code looks like this:
[Code]...
View 4 Replies
Jul 24, 2010
I am trying to pull in information about houses via an xmlfile. Each house has 1 address, 1 owner, 1 description, and about 6photos. I have no problem accessing the address, owner, etc, and Ican always access the first photo, but whenever I cycle through thephotos, I seem to cycle through the first photo for every house,not every photo for each house.Basically, I need the children <images> to go up byone, without the the parent going up by 1. I am hoping I amdescribing this well.My code looks like this:
total = xmlNode.childNodes.length;
totalb =
xmlNode.childNodes[0].childNodes[5].childNodes.length;
[code].....
View 1 Replies
Aug 23, 2006
I have the following script which works jim-dandy when implimented as a frame script in my .swf, but I don't want it there, I want it in a class I've created called FigureItem. I've stripped the script down to just the part that loads the XML. When the script is inside the .swf (without the class constructor, obviously) 'trace(contentXML)' correctly returns the formatted XML. Inside the .as file, 'trace(contentXML)' returns 'undefined'. SOMETHING is loading becase 'trace("yay")' returns 'yay'. (loadXML gets called by the FiguireItem movie clip inside the .swf).
View 3 Replies
Oct 9, 2006
I'm having a total brain freeze this Monday morning... ugh. Anyhow. I'm trying to convert a string from an XML file to a number so that I can use it in equations. It isn't working. What is the proper syntax to do that?
This is the relevent code:
Code:
xArray[z] = xmlNode.childNodes[z].childNodes[2].firstChild;
xDest = xArray[0];
trace(Number(xDest))
Not working, it returns NaN. What stupid mistake am I making?
View 1 Replies
Feb 26, 2009
I have created an array, and everything seems to be going okay, although I am unable to capture the array's data properly. The Trace function returns something like this :
[Code]....
I need to put ALL that information into a dynamic text? what I am getting now is only the last entry.( Example myItemList[2], but no myItemList[1] or myItemList[0] ) here is the code:
[Code]....
Another option would be to take all this info and put it into 1 variable or something, but I'm not sure how to do that either.
View 12 Replies
Aug 17, 2009
I have a list of items in a database as well as images in a directory folder. I am looking for a flash app that can pull from the database to display the info and also the images and scroll this info vertically with associated links. I need to change this for each client by adding their unique "ID" in the code so their information pulls in correctly.
View 1 Replies
Feb 9, 2009
I have an HTML page called "mypage.html" with a form on it. The form contains a text field called "FName" and when submitted, it loads "mypage2.html" with a Flash file embedded within it.Using actionscript is it possible to pull the passed value "FName" to an actionscript variable. Previous threads mentioned the GetURL parameter but CS4 kicks it back saying it is no longer supported.I'm also a bit confused on whether actionscript can pull variables directly from the browser URL. I found a reference to the variables being placed in the HTML code that embeds the SWF file:<param name="movie" value="mySWFmovie.swf?myvar=heyyou" />'Why would this be the location to configure the passed parameters and not directly from the browser URL?
View 0 Replies
May 25, 2010
Is it possible to pull FLV's from a playlist in youtube?, and play them in custom build FLV player (not in youtubes api)?
View 0 Replies
Aug 12, 2009
Having real problems accessing data when I test my swf's online, i'm accessing data from the a bbc weather xml file online that's usually used for RSS feeds, on my computer flash can access the nodes and returns the data the way I want when I publish the files on my web server NaN or undefined appear in my text fields. Is there any security codes etc... I need to perform
[Code]....
View 1 Replies
Jan 29, 2010
I want to build a sort of pulled down projection screen thing using ActionScript.Basically the MC will come down with a picture on it.I have this starting code which doesn't work terribly well because it just moves the screen from top to bottom instantly.
Code:
on (release) {
do {_root.mcScreen._y+=1;
} while (_root.mcScreen._y<200);
}
Essentially I want the screen to smoothly scroll down into place over about half a second.
View 6 Replies
Nov 19, 2008
I would like to have a screen with multiple buttons and when the button is clicked different MC's will be imprted into the .fla file. For instance button 1 will import 1_MC, button 2, 2_MC, button 3, 3_MC etc. point me to a tutorial or give me a down and dirty example using AS3?
View 11 Replies
Jan 25, 2011
I am mostly a front end developer and my code guy at work is not Flash savvy. I have been working with Flash for years, but my coding is limited. Wondering if you might have a tutorial on the following, or some knowledge:
Need to play an FLV video or swf that has que points that grab someone's name from a database and puts that in a dynamic text field and at the end of video sends out a code back that tells the server that the video has been complete. My code guy knows PHP MySQL and Javascript if that will help.
View 1 Replies
Aug 10, 2009
I'm going to be creating a kind of fake RSS feed scrolling on the bottom of my webpage, and I want to be able to have it read data from a .txt file, so I don't constantly have to go into the flash file on a daily basis and make new swfs :P
View 3 Replies
Sep 10, 2011
asically I have a Player class with methods (i.e. Moving the player) that I want to listen for and implement in the main class. To put it simply, I'm creating the player methods in the player class and then calling them in the Main class. But for some reason I'm having some trouble, I'm still trying to get used to all this OOP design.Here is the (Main) code, it's not alot:
ActionScript Code:
package
{
[code].....
View 9 Replies
Oct 6, 2006
Is there a method to pull the value of the current swf file's name? For instance, if I have a movie called 1.swf open is there something I can do like myMovie.name and have the return value be 1.swf?
Problem: I have 24 flash movies. Each movie has different text that needs to be displayed, so what I did was created an HTML file with vars on it like &1=Hello &2=World. Now in my flash movies I load that HTML file, and have a dynamic text box that pulls in the values. This all works, but as it stands I have to change the var the text boxes pull in, and recompile, so instead I was wanting to set the variable to pull in based on the .swf file name, like 1.swf, pulls in the var &1 and 2.swf pulls in the var &2, this way I don't have to keep recompiling, I could just copy the movie 24 times and rename the movies accordingly.
View 4 Replies
Apr 11, 2007
im developing a game at the moment in flash that relies on flash remoting.I'm not great with flash remoting so ive managed to combine my flash game with a flash remoting tutorial. The tutorial pulls info off of my MySQL and works by putting it into a DataGrid. Im now just looking for a way to pull each piece of info out and into a variable. Heres some of the code:[code]I tried putting the info into and array but obviusly its returning an error due to the fact that r.result is a object.Im just looking for a way of pulling info out of the grid and into seperate variables.
View 1 Replies
Sep 20, 2007
I have a xml like so:
<job>
<title/>
<items>
<item>
[Code]....
Basically I pulll xml data into flash and most comes in, but only the first set will show the name, after that it goes to "undefined". Secondly, I can't pull in the info.
View 2 Replies
Jun 7, 2002
I have two scenes, one called "Script" and one called "Animation". On the Animation scene, I have one layer with thirty frames. Each frame is a progressive piece of animation, not converted to symbols or anything, just drawings.
Here's what I want to do. On the script scene, I have ActionScript pulling a random number from 1-30. For example, let's say it picks 17. I then want the drawing in Frame 17 of the Animation scene to appear in the current frame of the Script scene.
I'm beginning to understand this is more difficult than I first imagined, so here's an alternative. I could make a symbol from the drawing in each frame. Then call it Fish01, Fish02, Fish03... Fish30. Then when the random number is chosen, basically have that corresponding symbol appear. And when a new number is chosen, the symbol on the screen will disappear and be replaced by the new symbol.
View 4 Replies