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


Similar Posts:


ActionScript 2.0 :: Reloading Movieclip As Variables Change?

Jun 18, 2006

i am working on a flash website and i have for the first time made everything dynamically loading from outside of the SWF to reduce the file size. I have a text file which is dynamically loaded into a text box, which i have defined in a variable called "textfile". I want to reload the movieclip on the click of a button and at the same time change the variable for the text file to be opened into the text box. so as i click content, the variable changes to content and the movieclip reloads, showing content.txt in the text box

View 1 Replies

ActionScript 2.0 :: Some Variables Aren't Reloading From Text File?

May 19, 2011

I have 6 variables that load into 6 different dynamic text boxes. They all load fine when I load them, but only the first one updates after 6 seconds. I have them all set to update after 6 seconds. Here is the code that is working fine followed by the code that isn't. I'm using CS5.5

1st Box that works fine:

myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this.myVariable;
};

[Code].....

View 2 Replies

ActionScript 2.0 :: Send Variables From Flash To Php Without Reloading The Page?

Jul 20, 2004

I know there were many messages posted regarding sending variables from flash to php. I wrote a small code where in I used send() method of LoadVar object, it sends the message but it reloads the php page which I do not want it to do. I tried using sendAndLoad() and here it does not send any variable at all. Below is my sample code.

PHP code: (recieve.php)
<?php
$s = "12";
$r = $_POST['name'];

[Code].....

View 1 Replies

ActionScript 2.0 :: Send Variables From Flash To Php Without Reloading Page

Jul 20, 2004

I know there were many messages posted regarding sending variables from flash to php. But I am facing a problem. I wrote a small code where in I used send() method of LoadVar object, it sends the message but it reloads the php page which I do not want it to do. I tried using sendAndLoad() and here it does not send any variable at all.[code]

View 1 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 :: 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

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 :: 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

Actionscript 3.0 :: Why The XML Is Not Reloading

Jan 30, 2009

I have build a simple flash application to try to make changes to an xml and save it. The application has two buttons: load xml - that loads the xml and write xml - that saves whatever is in the textbox to the xml. Then when pressing load xml again, it should load the modified xml.

You can see the file here: [URL]

It works fine on localhost, but as I uploaded it to the sever it doesn't work!

flash code:
Code: Select allvar myLoader:URLLoader = new URLLoader;
var xml:XML;
var myRequest:URLRequest;

[Code].....

View 2 Replies

ActionScript 2.0 :: MOVIECLIP Not Reloading?

Nov 5, 2009

I have frame 1 and frame 2 which are almost the same. Both have a movie clip TAB. This tab has buttons: button 1, button 2, button 3. When I click button 1, it will show a text, and so on..If I am at frame 1, and I click button 2, it is ok. But when I go to frame 2, TAB movieclip is still at button 2! I think it is not reloading.

View 2 Replies

AS3 :: Reloading A Tween Movieclip

Jun 16, 2011

URL...Once you get to my portfolio menu homepage, click on Print design. Everything there loads fine.The trouble is going back to the portfolio movieclip and having it display those menu buttons again.As you can see, if you try to click the view portfolio button at the top, it loads that movieclip to wherever you left off at.Basically, my question is: How can I have my "view portfolio" button reload/refresh the movieclip (page1) from the beginning in my pagecontainer_mc?

-page1 is a movieclip that shows my portfolio buttons.

-page2 is a movieclip that show the "about me" section.

-pagecontainer_mc is an empty movieclip that loads page1 or page2.[code]

View 5 Replies







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