ActionScript 2.0 :: Load Data From Mysql Into A Dynamic Text Box?
Mar 29, 2007what i'm trying to do is create a "kind of rss feed" but where data gets pulled from my mysql database and gets placed into a dynamic text field in flash
View 1 Replieswhat i'm trying to do is create a "kind of rss feed" but where data gets pulled from my mysql database and gets placed into a dynamic text field in flash
View 1 RepliesI got a music portfolio web site running PHP, MySQL and Flash. There's a page showing all the artists my client worked for and when you click on a song title, this title is passed as a variable to a PHP page then to a Flash page. The Flash page contains an actionscript music player which then looks for the right audio file in the database and plays the song. Everything works great except for the dynamic text field which displays the song title. If the song title contains an apostrophe or a single quote, the Flash dynamic text field then shows the apostrophe.[code]
View 1 RepliesIs there a way to easily get data from mySQL database and display it in a dynamic text field?
View 5 RepliesI am trying to load xml data into a dynamic text field. I am able to load, and trace the data but cannot display it into a dynamic field. Here is what i have:
Code:
var xmlLoader:URLLoader = new URLLoader()
xmlLoader.load(new URLRequest("directory.xml"));
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
What I am trying to achieve, is to produce what I've traced into the dynamic field. Also if there is a way to do that when a button has been clicked. I tried making the function showXML a mouse event, but it didn't work.
I like to call for different SWF files from a link in a MySQL database to use in a Detailpage with PHP. Photos and text are no problem. The AC code is probably complicating things.
View 6 RepliesI created a button and put some dynamic texts in it. But i cannot load text it from an xml file dynamically. see the code below :
var xmlLoader9:URLLoader = new URLLoader();xmlLoader9.addEventListener(Event.COMPLETE, showXML99);xmlLoader9.load(new URLRequest("mempops.xml"));
[Code]....
This is the script that I use to load data from 2 txt files to a dynamic text:
myData = new LoadVars ()
myData.onLoad = function () {
myText.html = "true"
[Code]....
I am trying to load data from mysql to xml to flash using actionscript and php. Im doing something wrong but not sure what.Basically, my php file (latestnews.php) looks like this
Code:
<?php
header("Content-type: text/xml");
$host = "host";
$user = "user";
$pass = "password";[code].......
this is placed in the same frame number as the dynamic text fields but on a seperate layer. The dynamic text fields are:
Title_txt
Comments_txt
Date_txt
There is no output error but nothing is showing up. The file is using actionscript 2.0 and wondering if the actionscript i am using is write for that format?
I am trying to load data from mysql to xml to flash using actionscript and php. Im doing something wrong but not sure what. Basically, my php file (latestnews.php) looks like this
[Code]...
There is no output error but nothing is showing up. The file is using actionscript 2.0 and wondering if the actionscript i am using is write for that format?
I am trying to load dynamic data into text fields with in flash (.swf) the system is a closed circuit (no internet & web access) basically there are about 10 standalone computers connect through a network and one central computer i created a flash which will be downloaded to all the computers at once and each computer has a unique (name).
My goal is to load the different data into the text field for each computer:
Computer 1 would have winner 1
Computer 2 would have winner 2
and so one........
Steps the code should do..
1. call function and load the "unique (name)." of the computer by going to ("c:/myharddrive/local.ini"); flash will reconize the "ini file to say "this is computer 1
2.then have the txt request come from("c:/CMS/MediaFiles/Data2.txt");
when i publish the file out there is no errors-
When I view the files on each computer there is no data (blank screen")
so my guess it is not seeing the path for new URLRequest("c:/myharddrive/local.ini");
or
new URLRequest("c:/CMS/MediaFiles/Data2.txt");
can anyone breakdown the code and let me know how flash can go to those specific areas on each individual computer and pull the data into flash
[Code]....
I'm trying to load in xml test data into a dynamic text field.
this is my code so far:
var me_XML:XML;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("me.xml"));
[Code].....
This, however, loads all the text in with tags. How would i go about accessing each node so i can remove the tags so I can apply a css style to each section??
Looking to load data from a MySQL database into a Tile List component. Not sure where to start to be honest, I've got a set up just now to add data from the same database into a List component - should I just use the same code and change it accordingly?
Or is there a simpler, more effective manner of loading my required info (it is a title and an image (x4), which changes regularly, ie every week depending on the sort applied for the products)[code]...
Code:
var nc:NetConnection=new NetConnection();
nc.connect("http://localhost/amfphp/gateway.php");
var res:Responder=new Responder(onResult,onError);
[Code]....
The code is working good and brings back the info from mysql via amfphp, but I would like the "goBtn" to bring the info when pressed.
How do I load data from a mysql table to a combobox using php and AS ?
I do know how to retrieve the data from my table needed but how is this inserted the combobox ?
Assume you have combobox1 and combobox2. When I, in combobox1 select: 'cars' I would now like the script to search my table for cars in the column 'stuff' and then insert the result in combobox2.
I'm quite new to ActionScript and would be grateful for any help here. I want to load text into a dynamic text field (called 'about_tab') using a class depending on the language selected (by clicking on a flag icon) by the user. I managed to get this to work when the ActionScript was written directly in the timeline, but am having problems with doing the same thing via a class.
[Code]...
I have a programmer asking me to display everything shown by an xml file that acts like a php page and show it in a text field..
Here is the php page. I need to show all of this in my text field.
[URL]
I'm creating a backend using flash, php and mysql. The problem i'm having is that i have 2 dynamic text fields on the stage that i want it to display their content based on the page i am. My txtTitle is showing both mysql rows together like this: Aboutabout_content=About from MySQL Here is my coding:
[Code]...
The desired affect is simple: I have a single button... with each click I want it to load text into a dynamic text field and load a corresponding picture or movieclip.There are only three unique text/image combinations- after its displayed the third, with the next click I want it to just start over. All the text functions perfectly with each click.
The problem is:I use "createEmptyMovieClip" then use the resulting clip as a loader clip.. With the first click I want a movieclip from the library to load, so I use the "attachMovie" method- it displays the first library fine.With the next click I want to load an external swf- so I call the "loadMovie" method of the loaderclip... The external swf loads just fine replacing the first library clip.The third clip is where I have problems... now I want to load another library item into the loaderclip... so I tried using the attachMovie method again but the external swf remains static... then with the next click, I discover the first library item no longer loads and the external swf remains still playing- it's like once it's been loaded into the loaderclip it cant be moved...
So I tried adding the "unloadMovie" method in the code for the third click.. it successfully removed the swf... but the next line of code immediately after the unload statement, doesn't work. The line calls the attachMovie method for the loaderclip... but the library item doesnt load... Oddly enough, with the next click, the first library item now does load as if everything's fine... It seems like you cant use the unloadMovie and attachMovie on the same executing code? if that makes any sense... the basic idea was that if I couldnt get the attachmovie method to replace the loaded external swf, then I would use the unload method to remove it, then have code immediately after, to then execute the attachMovie method... but it still doesnt load the library clip. and I know it's not a type-o, because when I comment out the loadMovie and unloadMovie statements, it loads both the library items perfectly ? The code is below
var increment:Number = 1;
var verbiage1:String = "Hello World1";
var verbiage2:String = "Hello World2";[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 have 2 input textfields on the stage and 1 dynamic textfield.
-input1 is for quantity
-input2 is for page count
When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?
Can anyone help me with getting a message that is said in flash (like a game) go to a mysql database?
View 2 RepliesI would like flash to send and receive data from mysql.
To send data I would like to create 5 input fields, and then use a submit button.
Then to retrieve the data I would like to use the data grid or a dynamic text field.
I have a text inside a xml file and i would like to display this text in a dynamic text field, using the xmlConnector.The files are at the following address:[url]............
View 1 RepliesI'm having a problem adding numbers that are loaded to dynamic text boxes. I'm using AS 2 (Flash 8). The numbers are loaded to the textboxes from a text file using a loadVars command. The text boxes have instance names of TELEMATICS and BOOK - I have a third textbox called (instance name) RESULT - the text file is called TEST1.txt. My problem is that after trying (and trying) several solutions in tutorials I am unable to add the values in TELEMATICs and BOOK to get a (sum) total in RESULT. My code to load the numbers is as follows:
[Code]...
I've got a flash movie with a menu that jumps to a particular frame to load a page. On that frame, there is a movie clip (instance name: scrollbox_frame), and in that movie clip there is a four-layer animation. One of the layers is not animated but contains a dynamic text box (instance name: about_frame), with multi-line and HTML turned on, and a variable name of "aboutus". This is the code that is triggered by the menu button on the root of the flash movie:
Code:
myVariables = new LoadVars();
myVariables.load("text1.txt");
myVariables.onLoad = function(success){
[Code]....
I've learnt ActionScript basics from this forum and i hope i get a solution for my problem.I am doing this window shopping gallery for my company but iam stuck in the middle of nowhere.I am attaching the files so that u can have a look at it. the gallery is xml driven.
when a user hovers to the left side of the gallery tween starts and the stores move in a perspective angle. i am placing the code here for xml loading which is in 1st frame[code]...
I am using a mehot to drag data from a database (via php) and then insert it into the dynamic text field. This works fine locally, however when I put it onto mysite, none of the text loads.
PHP data looks like this
Code:
$result = mysql_query("SELECT title FROM jos_content WHERE id=46");
$row = mysql_fetch_assoc($result);
echo $row['title'];
Actionscript for text looks like this
Code:
var my_xml = new XML ();
my_xml.ignoreWhite = true;
my_xml.load ("[URL]");
my_xml.onLoad = function (success){
if (success)
titlenewsone_txt.htmlText = this;
}
Is there any way to make line breaks when you load text into a dynamic text box, other than using html? And if not, could someone give me an example of how to do it using html?
View 12 RepliesSo I'm loading text from an external file I've uploaded onto the internet. It loads absolutely fine when I test the movie from my computer, but when I upload it and embed it onto an html page, all of the dynamic text refuses to load. Can someone enlighten me as to what's going on? Or at least tell me how to fix it? XD;
[Code]...
I'm using Flash 8 and I'm trying to load new text into a dynamic text box already populated by a xml file.
I have a home page with 5 different buttons on the top menu.
1. Home
2. News
3. Tips
and a few more.
Upon my home page loading, I have a dynamic text box with the welcome text which is populated by my xml file, here is my code for AS2:
function loadXML(loaded) {
if (loaded) {
_root.home = this.firstChild.childNodes[0].childNodes[0];
_root.tips = this.firstChild.childNodes[1].childNodes[0];
[Code].....
What I want to do is load the news and tips text into the same dynamic text box on the home page when the news or tips button is clicked, so I don't have to load a whole new swf for each category thus making the site faster.
What code would I have to use to clear the text from the xml file and how would I load my new text upon clicking the button?