ActionScript 2.0 :: Use Loadvariables To Get Data From MySQL Using PHP?
Oct 15, 2010
I use loadvariables to get data from mySQL using PHP and up to Flash. Flash gets the data flawlessly. Now one of the data I load into Flash is a path to an image.
My problem is, when I check the imgVar variable, it telles me, its value is: images/news/001.jpg
Now When I use the AS:
loadMovie(imgVar, blanker);
it does nothing (blanker is the movie clip I load the picture to).
When I use the AS:
loadMovie("images/news/001.jpg", blanker);
it shows the picture...
My other question: If I solve this problem, how Can I resize the externally loaded image by just setting either the height or width and doing the resize so that it won't deform my image.
View 4 Replies
Similar Posts:
Jun 22, 2010
I'm trying to get an image slideshow to work with some external data, but I'm kinda new with AS3. I'm used to use the AS2 loadVariables() function, but that no longer works. What's the AS3 version of this?
View 2 Replies
May 23, 2007
I 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 Replies
Feb 16, 2009
Can anyone help me with getting a message that is said in flash (like a game) go to a mysql database?
View 2 Replies
Jun 17, 2007
I 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.
View 6 Replies
Oct 1, 2007
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 Replies
Oct 30, 2010
There an input textfield, name.text. There is a button with the following script,
send.onPress = function () { getURL ("name.php", "_blank", "POST"); }The info will be send to MySQL database, name, when pressing the button.
PHP---
<?// Receiving the variables.$name = $_POST['name'];
// Printing out the variables.print "Your name is ". $name . ".";
?>
I am not able to perform the task.
View 1 Replies
Jan 1, 2010
I'm trying to get some data from PHP/MySQL and send it to Flex..Let's say That my object in Flex would look like this:
package some.package.VO {
[RemoteClass(alias="VOPerson")]
[Bindable]
public class VOPerson {
[code]....
In my case, personDetails is an Array, and in theory, it could be some other object... But is it really necessary to make it an object? I do not intend to use that data nowhere else except within my VOPerson class. It is some associative array, and I can easily transform it to another object, but there will be lots of similar situations in my app, so I would like to avoid making unnecessary (value) objects if there is no need for it...
View 1 Replies
Oct 24, 2010
I am reading one tutorial :- But I can't understand what is "Gateway.php" and all such things. I am a beginner in Flash.
View 2 Replies
Oct 1, 2011
I need to pass private data from MySQL to a flash file securely. I have a PHP script that is assigning variables on the server side - how do I pass this to flash without being available publically? I assume XML and an HTTP query string are out of the question because of security. What's the most secure way of doing this? Basically I have some file paths that I need to load into a music player - however, I don't want these URLs to be publicly known. I was hoping I could pass data directly to flash securely somehow.
View 2 Replies
Aug 28, 2010
I don't like cookies. For saving data, submitting scores, etc. I'd like everything to be submitted into user's accounts in a mySQL database. I can do all that very easily with PHP, but how would I make it worth with flash/actionscript (I mainly/am used to working with AS2, but I have Flash CS5 now, so I can work with AS3 if necessary or more efficient). I have no idea how to mix actionscript with other languages (other than using a link with get variables, but, aside from the obvious reasons why that won't work, I'd prefer, if possible, to transmit data without any page reloading).
Are there any security holes or downsides I should consider before making a flash login system? I'd like to allow users to login if they wish to submit their score or save their data (mainly for users playing on a third-party site).
View 1 Replies
Jun 21, 2011
i'm trying to connect Action Script 2.0 Scrollpane to get data from php and mysql... my problem is in the action script 2.0 i'm trying to recieve data from mysql by php, Here is my php code :
[Code]....
and my data base is working 100%
i need to display the result in a ScrollPane Object In AS 2.0
View 0 Replies
May 3, 2010
I've scripted a connection to PHP that gets data from MYSQL and outputs that into a datagrid.When I encrypt the swf with Ameyata SWF Encrypt 5.0, and upload it to my webhost, it looks fine. I can click the header of the datagrid (that sorts the data), but when I click on a field of the datagrid, it just freezes and my datagrid is not usable. I'd have to reload the page in order to do something with the datagrid again. But the problem with the field remains.It works when I'm not encrypting the swf.URL...
View 2 Replies
Feb 3, 2005
I have a move clip called 101.
[Code]...
assigned to 101. Inside of 101 I have dynamic text fields with the var names of price, fee, and state.I have a movieclip 102 that is exactly like 101. What I need to know is, how can differentiate 101 from 102 so that when the db data comes in that 101 and 102 display different info?Also, I can't change the var names. They must stay as price, fee, and state in both movieclips.
View 1 Replies
Jan 27, 2010
Does anyone knows how do I readback data from mySQL with PHP?
E.g: I've a registration of students data and when I click on individual, flash reads back the particular student's data for me to edit.
View 1 Replies
Feb 3, 2005
I have a move clip called 101.
onClipEvent (load) {
loadVariables("you.php", this, "GET");
}
assigned to 101. Inside of 101 I have dynamic text fields with the var names of price, fee, and state.I have a movieclip 102 that is exactly like 101. What I need to know is, how can differentiate 101 from 102 so that when the db data comes in that 101 and 102 display different info?Also, I can't change the var names. They must stay as price, fee, and state in both movieclips.
View 1 Replies
May 18, 2009
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?
View 14 Replies
Aug 30, 2010
I'm making a login script and adding the data to my local mysql database using php.it works as long as I browse in my browser to localhost/ flash/ movie.swf but if I just open the folder and run the .swf file it doesnt work
View 2 Replies
Jun 27, 2006
I need to create a stand alone desktop app that uses a database. It's been a long time since I did any VB work, and I need to learn Flash for another job anyway...is there any reason why I shouldn't use Flash for the desktop app?
View 1 Replies
Mar 24, 2007
I'm in the process of expanding an admin area for a website (coded with PHP and MySQL) and would like to get my client list into a flash combo box. the main columns I would need would be the account and the company name... In a regular example would be
<select name='client'>
<option value='2460'>Client 1</option>
<option value='2461'>Client 2</option>
</select>
If I could get this I should be away...
View 2 Replies
Feb 23, 2007
ive managed to get info from a mysql database into flash in a combo box. i have a text field and i want it to load in the corresponding data when a new title is selected in the combo box.
View 1 Replies
Jan 23, 2007
I would like load values from mySQL to select from in a combobox. I would love to do this the most simple way w/o php, but that
View 3 Replies
Apr 8, 2009
i want to fill a listbox with data from a MySql table. the code ive gotten working is for static data from an xml file. here it is:
var options:XML = new XML();
options.ignoreWhitespace = true;
var loader:URLLoader = new URLLoader(new URLRequest("fillRegions.xml"));
[Code]....
this creates an echod file that looks just like the above xml example. so, how do i change my original AS3 code to pull data from this php file rather then the xml file?
View 1 Replies
Nov 6, 2010
I've been struggling with this for a few weeks, but I still can't get it right, and all the info I found is too ambiguous or uses AS2. What I want to do is to retrieve info from a MySQL database, using PHP, and send it to Flash; and in the other way, input info into the database from a Flash form. I want this to make a series of Flash tests for my website. show me a simple example code (on both PHP and Flash) of how to exchange data? PD: I know how to work with databases on PHP, so the only PHP code i need to see is the php-flash communication part.
View 3 Replies
Jun 20, 2011
I can get the data from the mysql database into the flash onDataLoad function but cant get it outside the function, and that is what i need to malipulate other data already in the project (update it)
var myLoader:URLLoader = new URLLoader() myLoader.dataFormat = URLLoaderDataFormat.VARIABLES myLoader.load(new URLRequest("http://localhost/flash_php_mysql/FormData.php?"))
[code].....
View 6 Replies
Jul 13, 2009
so i managed to get data from mysql through php through xml and output it in flash by dynamic textfield. So i got a value from mysql, an integer, modified it with flash using commands, and want to send it to php and overwrite the old integer and save
View 1 Replies
Aug 6, 2008
For database connection i m using [code]...
while retriving data in flash action script it shows me ".$nrows." not actual value
View 1 Replies
May 18, 2009
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?
View 1 Replies
Jun 26, 2010
I am wanting to load a list of names from mysql into a textfield in flash. I also want to load just one image from an image path in mysql. How can this be done easily?EX. SELECT name FROM table WHEREEX. SELECT imagepath FROM images WHERE id=`1
View 1 Replies
Jun 26, 2010
I am wanting to load a list of names from mysql into a textfield in flash. I also want to load just one image from an image path in mysql. How can this be done easily?
EX. SELECT name FROM table WHERE
EX. SELECT imagepath FROM images WHERE id=`1`
View 5 Replies