Data Integration :: Reset A Variable From Flash In The Parent Php Page
Jun 5, 2006
I know how to pass vars from php to flash and from flash to a "new" php page but here is my question.
I have a php page (page1.php) with some HTML and a php variable called $number. page1.php also has an embedded test.swf movie. While working with the test.swf movie, I want to send data back to the $number var on the page1.php without reloading the page1.php because then it would reload the test.swf movie.
I have been able to use javascript to change background colors on page1.php from within the test.swf movie but cannot figure out how to set a php variable from within the test.swf movie.
View 2 Replies
Similar Posts:
May 26, 2006
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
View 2 Replies
Sep 7, 2006
This would be the code to call a movie:
var fo = new FlashObject( "Movie1_controller.swf",
"Movie1_controller.swf", "591", "480", "7", "#FFFFFF", false,
"best" );
--------------------------
Is there a way to modify that call (maybe using ASP Javascript) so you can call different movies calling the same page with different parameters?. I haven't been able to get this
working. It seems to be that the "FlashObject" call cannot have any variables on it.This is the way I'm trying it:
1. The call to the page would be: http:[url]....
2. Add javascript to get value passed:[code]....
It just doesn't work. The FlashObject.js doesn't seem to like that call.
View 1 Replies
Aug 8, 2006
I can't figure this out. When I test a URL page with an embedded SWF file (using [URL]) I cannot get the embedded SWF to play more than one or two frames. However, if I upload this same flash-embedded html page, and test it on the WWW, then it seesm to play without a glitch.
View 1 Replies
Mar 14, 2007
according to a Flash MX book I'm using, the following should work (their own example):
The Flash movie:
- button with script:
on (release) {
loadVariablesNum("xxx.php", 0, "POST");
}[code]........
View 7 Replies
Oct 9, 2006
this liveDoc covers getting a url variable into flash:http:/[url]....you can pass data to a flash movie by doing the following:[url]....this will create a variable: _level0. variablename with the data: thisisthedata.so far so good.you can then embed this in the published html doc by including your data string in the object/embed tags.like so:
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=8,0,0,0"[code].....
not to bad, so now your html is loading the swf with the url variable. the problem is this data is hard coded into the html.now for the question. how do i get the html to pass the url variable it receives onto the flash?
View 2 Replies
Mar 24, 2008
For the life of me, I've tried everything: I've researched LoadVars on Adobe forum, used David Powers' books, googled 'flash to php', LoadVars, etc. and tried sendAndLoad, send, and using $_POST, $_GET, $_REQUEST. $HTTP_POSTVARS but I keep getting this same error.
I have a Unix server running Apache/PHP 4 - LoadVars worked to load name-value pairs into an array -see thread)
My goal with this simple app is to prototype being able to pass a variable from flash to a variable in php.
Parse error: syntax error, unexpected T_VARIABLE in flash_to_SQL.php on line 5
Actionscript 2.0 code:
var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("
[Code]....
View 3 Replies
Aug 10, 2008
Loading data from the test.php into the startLoading();
How do I load the data from test.php "echo $photo_out;" into the startLoading();
loadVariables("test.php", this, "POST");
infoField._visible = true;
startLoading(test.jpg);
[Code]....
View 16 Replies
Aug 21, 2006
I have the following code in place to move a variable from my Flash app to an XML file for storage [code] how do I go about getting my VoucherNo variable from.Flash to replace the value in the GoodVoucher field in my XML file?
View 3 Replies
May 7, 2010
Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script. I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter. It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
Or is there another way I can pass the tablename variable to the php file before I call any functions?
View 3 Replies
Jan 30, 2007
I have three dynamic text boxes. variables respectively
(caption0,caption1,caption2).
My xml file is structured as:
<?xml version="1.0" encoding="iso-8859-1"?>
<captions>
<caption>Roll over this</caption>
<caption>This is the first Caption.</caption>
<caption>This is the second Caption.</caption>
</captions>
I am trying to create a rollover where when you rollover caption0; caption1 and caption2 are displayed in sequence. Everything works except though only the first caption is ever displayed. For the other two I get "level0.caption1" and "level0.caption2" instead of the text in the xml file above. How do I parse the data so that each of the variables are assigned the text in the xml file?
View 8 Replies
May 10, 2006
How can you set the XML connector's URL to a variable?
I have a variable called "thisURL" and an XML Connector called "myXMLConnector"
View 2 Replies
May 17, 2006
There is a combo-box by the name "cbJobs" and it gets its value from the XML file named "data.xml".. I want to store the value transferred from this XML file into a variable.. so basically someone told me to use the code
on (change) {
_root.subject = this.getValue();
}
the only problem with this code is that it gets activated only after I "change" the value in combobox by pulling it down.. I want to use this value obtained from _root.subject as a subject in the script
getURL("mailto:abc@abc.com?subject="+_root.subject);
View 1 Replies
Jul 10, 2008
I'm trying to access RootNode in the code from anywhere inthe timeline. I assigned a value in the loadFile function but whenI try to access it from outside this function I get "undefined".How can I have this easily accessible from anywhere in the code? Iknow _global.RootNode will not work for XMLnode types.
View 1 Replies
Apr 24, 2007
I have just established a menu based-image in flash in the main html page. Also I do have a second page has details on each option of the menu of the main page. I am trying to whenever I click on any option of the menu in the main page; this should take me to the specific section in the second page describing this option.
View 3 Replies
Apr 4, 2007
I do have a set of images (lets say 1,2,3,4 and 5) in an html page. what I want is once the html page is reloaded, the order of the sliding should change randomly (from 1,2,3,4 and 5) to (4,5,3,4,5...)for example.
View 7 Replies
May 4, 2007
I need to hold a couple of variables in an outside file that can be incremented by user activity -- not just during one interaction with the swf, but with every one.I have no problems with using loadVars and I get the loadandsend process; it is just that I have
no background in cgi or asp for holding the variable and being able to update it.I know I cannot write to a txt file -- that is what I have been using thus far with loadVars for importing values, but this will not help me here. I know it should be a fairly simple script -- I also know I ought to pick up php, but for the moment -- until a greater amount of time comes my way -- I turn to you.
View 3 Replies
Jan 1, 2010
I have a video player that is currently using XML for its video library which is all fine and dandy. Now I have some developers working on a CMS type page in PHP that is going to hopefully pass some sort of information to my player that will let it know where the video is stored on our server. Is there a way to do this without using FMS? If so does anyone have ideas where I can find the information for it.
View 2 Replies
Jan 4, 2007
I need to build a variable speed horizontal scrolling bar that when the image is click produces a result from a database.
[URL]
However they are using Javascript I believe and I need to run PHP anf flash together.
View 1 Replies
Jan 25, 2007
I need to parse and display the value for variable VALUE in xml to the screen but read from the file continuously instead of
once. The XML file is being created dynamically so its getting larger but flash only displays first value for variabel VALUE.
View 5 Replies
Nov 12, 2007
I'd like to create one empty Flash movie that is essentially a placeholder for externally loaded content I can change through XML. This content would just be able to randomly load 1 of 3 photos, with a button linking to a website within each of the photos on page load. If the user refreshes the page, a new photo with it's link would appear, but I understand since it's random,having 3 images the same image is likely to reappear, but I can always add additional photos and links.
Does anyone know of a tutorial that might lead me on the correct path to create this? I've found some tuts, but they've been different than my need.
View 2 Replies
Feb 1, 2007
We want to be able to upload over 100+ files (if needed) to a server along with desc + keywords. I see that Flash 8 has the neccessary tools to handle file uploading, but my question is, can we have it act as a Stand alone FTP program so that we can utilize the fastest user upload, or will we be confined to the settings in the server INI settings.IE MAX_UPLOAD_TIME,MAX_FILESIZE, etc. If possible we want to avoid using the HTTP upload as it is noticeably slower. So if we can use flash to utilize user BW to upload, then that would be ideal.
View 1 Replies
May 4, 2007
How to store the data text in Access databases using flash form and to search into the database. It is possible to work without server because I don't want to put this flash file on the net. how to make databases and to connect with flash and to have possibility to search the database, but to work database in the local computer.
View 1 Replies
Jul 18, 2007
Im new to placing external data into Flash. I just got CS3 and Im trying to use Flash to dynamically load XML data via a FlashVars call in the HTML.
The problem is I have followed the very straight forward AS2 Help files for using FlashVars and URL variables.I have placed the code directly from the Help file into the Html between
<noscript> <noscript>and i keep getting undefined.I have tried saving the file as flash 8 and i am publish flash 8.
View 1 Replies
Jun 15, 2007
Is it possible to read/write data to and from Access with Flash in a offline format? I need to create a stand alone system that users can log into and pull information from - but it will not be networked or have any sort of internet connection.
View 2 Replies
May 31, 2007
I would like my flash to act differently depending on what html page it is on. Can I send information from html code to action script?
View 1 Replies
Mar 1, 2007
i have a problem regarding the integration between flash and ASP file i have an ASP file that gets a record set from the database i don't know how to send this record set to flash and place it in a data grid
View 4 Replies
Apr 9, 2007
I will be creating a program to use for data entry. I'll be studying zebras in kenya and I won't have the internet there as I'm recording the data. I'd like to be able to send the data I generate in flash to an external text file. I understand I need some sort of script to do that, but is this something I can run just on my machine? (I'll probably make the data into xml format).
View 1 Replies
Sep 5, 2006
We have implemented a Flash photo slideshow on our site and it works just fine for most of our users. Whenever the xml.load(success) returns false I have the Flash email me a debug report. For the life of me I can not find a common thread between all of these people having problems with the Flash. I don't think it's a cross-domain issue because it works for most people, and I have the crossdomain.xml files where they should be.
[Code]...
View 1 Replies
May 1, 2007
this is my current cv, painstakenly written in flash: [URL] I was told that I can use an external data file and load this into a flash file with xml, i am trying to make an xml file that will do what you see here above. But i cannot get the information to load properly where each title is separate (bold) and the description underneath it (plain text). i cannot get my cv to show up in a linear format as it only shows the
first entry and then stops.
[Code]....
View 3 Replies