ActionScript 2.0 :: Reload Variables From Database?

Jan 25, 2005

I have a flash header that receives random text from a database through a PHP page. I'm using the loadVariables function to bring in the first random text and that works fine. I then have a button that should access the PHP again and retrieve another random text set from the database (once again using the loadVariables function).

Whenever I use the loadVariables function on the button to renew the random text, it brings up the same text over and over again. When I use loadVariablesNum it works, but opens up a blank page with the output of the variables (getURL also works, opening up a blank page).

Is there a way for me to use the loadVariablesNum without having the page popup with the variables printed out? Or better yet, is there a way to just use the loadVariables to renew the info?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Update Variables And Reload?

Jul 27, 2004

I'm loading a .txt file using a good ol LoadVars. But if i modify my .txt and reload the .txt with a button, it doesn't update it in flash, like it's in its cache or something.How to make it reload?

View 2 Replies

ActionScript 2.0 :: Reload Variables From Txt File Every X Minutes?

Nov 14, 2009

I am trying to create something in which even when the flash file is already loaded and never closed, it will update itself. All the variables that are changing are pulled from a text file and loaded using

myData = new LoadVars();
myData.onLoad = function(){

and then I set all of the variables of the text equal to dynamic text fields. My question is: Is it possible to have it reload this text file (reset the text fields to the new variable) every so often?

View 3 Replies

ActionScript 2.0 :: Doesn't Update Variables And Reload?

Jul 27, 2004

I'm loading a .txt file using a good ol LoadVars. But if i modify my .txt and reload the .txt with a button, it doesn't update it in flash, like it's in its cache or something... How to make it reload?

View 2 Replies

ActionScript 3.0 :: Sending Variables To A Database?

Jun 5, 2011

how to send data via ActionScript 3.0, I just wanted to make sure that my code is on the up-and-up. I'm having some problems getting my data to send, and I'm wondering if it's on me, or on my client's backend.

Code:
function add_score():void {
var myRequest:URLRequest = new URLRequest(baseVar + "main add_record");

[code]....

View 1 Replies

ActionScript 3.0 :: Loading Database Into Variables?

Aug 24, 2009

I'm trying to load the variables from a database into my flash file but I'm unsure what to use. I know for XML it's

var myXML:XML;
myXML= new XML(e.target.data);

but i'm not sure what the type is if it is coming from a  database? I sent it the database via php and need to receive it back into flash. Even a reference so I can go look, I'm just not sure what class to begin with.

View 16 Replies

ActionScript 2.0 :: Getting Variables From MySQL Database?

Feb 7, 2006

I have a database with info about each of my movies (filename, size, length, credits, etc) How would I load the variables for a particular movie from the database into the flash?

I did a search on the forum, but I wasnt sure excatlly to search for so I didn't find anything.

View 6 Replies

ActionScript 2.0 :: Reloading Variables From Database

Jan 25, 2005

I have a flash header that receives random text from a database through a PHP page. I'm using the loadVariables function to bring in the first random text and that works fine. I then have a button that should access the PHP again and retrieve another random text set from the database (once again using the loadVariables function).

Whenever I use the loadVariables function on the button to renew the random text, it brings up the same text over and over again. When I use loadVariablesNum it works, but opens up a blank page with the output of the variables (getURL also works, opening up a blank page).

Is there a way for me to use the loadVariablesNum without having the page popup with the variables printed out? Or better yet, is there a way to just use the loadVariables to renew the info?

View 3 Replies

ActionScript 2.0 :: MySQL Database Return Variables

May 15, 2004

I am using Freddy Thunder's tutorial on how to make a login script with php/mySQL The problem is that the button doesn't do anything when I click it. I can't tell if it goes to the php script, but it sure doesn't return the correct variables like it is supposed to.

View 3 Replies

ActionScript 2.0 :: MySQL Database Return Variables?

May 15, 2004

I am using Freddy Thunder's tutorial on how to make a login script with php/mySQL

The problem is that the button doesn't do anything when I click it. I can't tell if it goes to the php script, but it sure doesn't return the correct variables like it is supposed to.

[URL]

View 3 Replies

ActionScript 2.0 :: Database Contents - Dynamic Variables Not Shown

Dec 28, 2003

My cfm script pulls the contents of database fine. (a cfoutput reveals variables). In flash however I cannot see my dynamic variables.

// In the flash mainframe I have.
loadVariables("LoadVars.cfm",0,"GET");
// I've also tried this:
myLoadVars = new LoadVars();
myLoadVars.load("LoadVars.cfm");
// In the LoadVars.cfm I have.
<CFQUERY NAME="ElfVars" DATASOURCE="ElfQuest">
SELECT * FROM Stats
</CFQUERY>

I have a dynamic text field named "Name". Why doesn't it display the Name in the database. I can see my variable hardcoding cfoutput in the page. SQL is working. Why can't I see them in Flash?

View 14 Replies

ActionScript 2.0 :: Load Variables Into Flash Movie From Database

Jul 8, 2004

I'm making a game and I need to load variables into my flash movie from a database.My problem is that when I try to load the data into flash, it won't let me use the variables. If I put a dynamic textfield on the stage with fname (one of my variables), the text field diplays the correct data, but when I say trace(fname) with having the text field, "undefined" pops up.

View 5 Replies

Data Integration :: Send Variables To Database Without Opening Broswer?

Mar 12, 2007

I have a standalone flash app that needs to get user inputand send it to a remote server / database. When I use the methodbelow, a browser window opens which I don't want to happen - I wantthe data to be sent but not display the page.

my_lv.fname = fname;
my_lv.lname = lname;
my_lv.emailaddr = emailaddr;

[code].....

View 1 Replies

ActionScript 2.0 :: Pass Variables To Php Then The Php Runs A Query From The Mysql Database

Jul 28, 2011

I want to pass variables to php, then the php runs a query from the mysql database, and then sends back the new variable... I looked for tutorial, but nothin' seemed to work.

[Code]....

View 2 Replies

IDE :: Make A Flash Movie Display Text That Is In The Sql Database And A Php Script To Change The Database?

Jul 15, 2009

i want to intertwine php, MySql and flash. so i can make a flash movie display text that is in the sql database and a php script to change the database, php > sql = i can do but sql > flash = i can't do..i want it so the sql data show's in a text box in the flash movie...

View 1 Replies

Flex :: Get Local SQLite Database In Sync With Live Server Database?

Dec 17, 2009

I want to create a Flex 3 application running in Adobe Air that accesses an SQLite database and I need to keep this database in sync with an SQL server 2005 database running a website.Is this something that Flex supports or is it going to be a custom script? Also, has anybody done anything like this?

Edit: The synchronisation can be done on a daily basis rather than real time. The data will be read only from a front end perspective with a CMS to do updates on the website.

View 2 Replies

Php :: FLEX Database Will Not Refresh After Updating Database Unless Browser Is Restarted?

Jun 7, 2010

I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything. So, my issue is this. I have a mySQL database hosted I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.Here is my licenseTracker.mxml

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 9 Replies

Database :: Save A Form To The Database Without Knowing The Field Type?

Jun 17, 2010

I am working on a function to generate a form at runtime in Flex based on a call to the DB. The call to the DB returns the field types, id, tooltips etc as an arraycollection, the arraycollection is then parsed in order to ascertain what control to display based on the type field in the array - this bit works fine.However, i am stuck on trying to save the form fields back to the database using a CFC.my form rendering code is as follows but how do i save values entered back to the database? rendering code..

[Bindable]
public var getglobalprofileb:ArrayCollection;
public function init(event:ResultEvent):void {[code].......

View 1 Replies

Php :: FLEX Database Will Not Refresh After Updating Database Unless Browser Is Restarted

Aug 31, 2011

I have updated the mxml code to only show the needed code for the program to run the update.

I am new to Flex and have an issue I hope you all can help me out with.

I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything.

So, my issue is this. I have a mySQL database hosted on 000webhost.com, I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.

Here is my licenseTracker.mxml

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

Database :: Approach Local Database Management Via Flex/Air App?

Jan 17, 2011

I am planning on using Flash Builder 4/Flex to write an AIR application which is primarily based around recording, storing and analyzing data.I'll be creating charts etc that need to update in almost real time.It's essential to me that the application be able to function without an internet connection so I need a local database of some variety,but I would also eventually like to build in online synchronization of the data where either database can be update each other based on newer information. Moreover, some type of encryption would definitely be welcome, and speed is a large concern

Synchronization: Primarily updates/additions/deletions will be done on the offline database, but ideally I want to have a web interface that will allow the same updates/additions/deletions and will be synced (beyond that I'm not sure exactly how to do it as I can model that based on what is most achievable).I'm wondering if there's any prebuilt engine that could handle the synchronization of 2 databases. I may end up having the web interface only be for additions, which would be significantly easier to sync.. and I may start that way, but i want to build with technologies that will best allow me to implement full online crud at some point.

View 1 Replies

Database :: Connect Adobe Flash CS To Database Of Any Kind?

Jul 17, 2011

Can I build flash application that connects to database? (MySQL) For example: Photo Gallery that brings me the photos from database...

View 3 Replies

Database :: Adobe Flex With Accessing Database For Mobile Web?

Sep 26, 2011

Here is the issue: a client wants his entire equipment inventory accessible by persons navigating to his jquery mobile site. The inventory that exists on the desktop site was, as I understood, built with Flex. Is it possible to access this database for the jquery mobile site? I believe it is. I was then given this information from someone in the know:

Database:
mlxx.db.xxxxxxx.hostedresource.com
login: mxxx

[code]...

View 1 Replies

Database :: Is It Possible To Create A Database Driven Website With Flash?

Oct 26, 2006

Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?

View 1 Replies

Database :: Which Database To Use For Flex Standalone Application?

Jan 11, 2010

I am planning to develop a standalone application, which infact will be used for personal purposes. So only single user access may be there. I want to develop it in Flex. Just want some opinions from the gurus over here : Whether i should use Flex or AIR (I know only Flex, AIR i need to start learning)Which database i should use? SQLLite or HSQLDB or some other.

View 3 Replies

Database :: Flash Database Grid Fill?

Jan 15, 2012

I have a database on a server and I transfer the data from it to a web site. So I need to build a flash grid on this site and to load the data on it. But the problem is that I do not know how to do it. So my question is how to build a dynamic flash grid wich is fill with data from a database? Is there a way to do it with action script only or I must do it another way?

View 1 Replies

Database :: Connecting To Database With Flex?

Dec 14, 2011

I am writing a large flex app that has to connect to a database many times. I currently am using asp pages to connect, but I would like to use the most efficient option. What do you think is the best way to connect to a database from a flex app?

View 1 Replies

Reload The New Swf?

Nov 4, 2009

I have an animated logo swf file that loads and runs once on the home page every time the page loads. The logo has been updated to appear in three different colour schemes. I want one scheme to load and when the page is refreshed or revisited, one of the other colour schemes to load in its place. They can appear in any random order, just a different one to the one that played before reloading.

View 1 Replies

ActionScript 3.0 :: How To Reload Swf

Nov 17, 2009

I have a form, when the user clicks reset, I want the flash file to reload so everything is back to it's intial settings.I should point out, its not on a server, it's just a local file, so I don't think I can use the .load function.

View 10 Replies

Professional :: Can't Get Swf To Reload

Feb 12, 2010

I have a simple flash website it is in AS3. Inside the website is a portfolio with a link to "print," "web," and "motion." When they click on motion, I have another swf that runs -- so far so good -- however, if they click off the "motion" page to look at any other page and then decide to go back to the "motion" page the swf no longer runs. The code I'm currently using is below. The swf that runs from the "motion" page is a component that I bought that is in AS2. Prior to buying it I asked the developer if it would work in AS3 and was told yes. I have posted these questions to the developer and have received no answer.

[Code].....

View 2 Replies

CS3 Reload Xml When Browser Refresh

Apr 12, 2009

i'm working on a project that uses php and xml to link my database information with flash. I've successfully allowed flash to read the xml contents. I need to randomise the data i retrieved from the database, so my xml content will change everytime i refresh the browser. However, i realised that the flash content didn't change like the xml content. The script to read the xml is written on the 1st frame of my 1st scene. Is there a way to read the xml again everytime i refresh the browser or re-enter the scene?

View 2 Replies







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