ActionScript 3.0 :: Send Variable To Php Page?

Jan 12, 2010

I've got a flash course that needs to pass the current screen number from the course to the mySQL database. The person who built the back-end built a php page that I can pass the number to and it will get written to the db but I'm not sure how to "send" that in the background.He told me that I just need to call the index.php page like: [URL]So, would I use URLRequest for something like that?

Code:
var vars:URLVariables = new URLVariables();
vars.theData = data;
var req:URLRequest = new URLRequest("www.url.com/index.php/user/bookmark/"+slideNum);

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Send Variable To Asp.net Page From Flash?

Apr 15, 2010

I want to send some varibale to asp.net page and from there to SQL DB.

how to send the variable to asp.net?

View 9 Replies

ActionScript 2.0 :: Send A Variable Value From Flash To A Php Page?

Sep 7, 2004

[Flash MX 2004] Anyone noe how to send a variable value from flash to a php page? I have a score's value which I need to send it to the php page n update into the database.

View 3 Replies

Javascript :: Send A Variable To Flash Movie After It Has Been Loaded On The Page?

Sep 13, 2010

Like the title say's, is it possible to send data to my flash movie after it has been loaded? More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie

View 2 Replies

ActionScript 2.0 :: Sending Variable To Php Page - Login Page?

Feb 19, 2008

I'm trying to login to a password protected php page through a form in flash.When the user provides correct information the flashmovie opens a php-page, but how do I protect the php page from unautorized accesses?Can I send a variable containing the user/pass given?but then everyone who checks history can access the page without even having to access the flash page..

View 2 Replies

IDE :: Load Panghat Spa.swf As A Variable By Pasing Variable From Html Page In To Flash

Sep 15, 2009

var loader:Loader = new Loader();
loader.load(new URLRequest("panghat spa.swf"));
addChild(loader);

want to load panghat spa.swf as a variable by pasing variable from html page in to flash

View 1 Replies

ActionScript 2.0 :: Send To Another Url On Page Load

Mar 17, 2009

I would like to embed this flash file within an HTML Page. User finds my page on a google search. The domain is **here.com once the user clicks on the link, it tries to load the "gethere" page but immediately forwards them to another site. I found this code but I am unsure of how to use it.URl..

View 3 Replies

Flash :: Send Xml Data To Php Page?

Mar 24, 2011

I want to send xml data to php page

my xml in flash is that for examle:

<level id="1" mark="10"><page id="12">HI..</page></level>

i send it,but at the URL i see this:

../inex.php?xml=<level id=1 mark=10><page id=12>HI..</page></level>

without double qout....!!!!

so i can't read this xml with simplexml_load_file() function in php

View 1 Replies

ActionScript 2.0 :: How To Send Data To ASP Page

Jan 20, 2006

i am trying to send data to a ASP page.i am trying to track a flash movie.the asp page is already set up. but i have tried everythign in my knowledge to get this to work.[code]

View 9 Replies

ActionScript 2.0 :: Send Some Variables To A Php Page?

Jun 29, 2006

I'm making a flash form and I just want to send some variables to a php page but not show a new window or anything. And the variable is huge so I want to use the post method. It's also posted from a component therefore movieclip.loadVariables doesn't work?

View 3 Replies

ActionScript 2.0 :: Send Value From Flash To ASPX Page

Oct 30, 2010

How can we able to send a value with getURL from flash document to aspx page?
Example:
getURL("default.aspx?ui=12", "_blank", "POST");
The main aim is that the address above don't show in browser's address bar.

View 1 Replies

ActionScript 3.0 :: Send Two Fields To An Asp.net Validate Page?

Oct 28, 2009

I need to send two fields to an asp.net validate page. It's a login, and the client is handling all errors on their end. So just need to pass them the two variables (username and password) and send the user to the asp page.So I gather it's going to look something like this:

Code:
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("valildate.asp");
var varLoader:URLLoader = new URLLoader();[code]...........

View 1 Replies

ActionScript 3.0 :: Send Post Data To A Php Page On Webpage?

Feb 8, 2009

I'm making a contact page in as3 and I need some help. How do I send post data to a php page on this web page http://parallels.fm. Basically I have three dynamic text fields and a submit button. If I can send post data from that page to a php page that would be great.

View 1 Replies

ActionScript 3.0 :: Captures Image And Send To A Seperate Page?

Sep 16, 2011

The swf file kind of captures a certain area of a flash movie which is loaded in.. I guess it works a bit like a camera..Anyway, what I am trying to do is figure out what determines the size of JPEG produced. At the minute its pretty small.The Flash movie is used to make an avatar. When the user is finished they hit a button and it captures the design, then emails it.I have found a line of code which relates to the size of the jpeg which is emailed

var myBitmapData:BitmapData = new BitmapData(230, 200);

What I want to do is produce a much bigger image than 230, 200

I tried changing those numbers higher and it did not work,Also I want to be able to send the image to a seperate page where an API can be picked up.Here is the code

Actionscript Code: [code]......

View 4 Replies

Actionscript 2 :: Send Data From Flash To Html Page?

Nov 18, 2009

I would like to know that how we could send out data from a flash movie to html , php, aspx page so that that data could use for further calculation.

View 4 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 HTML Page To Flash?

Jun 22, 2003

Im trying to send variables from my HTML page to flash, in order to control the location of movie clips. This is what I have.

HTML PAGE

PHP Code:

<param name="movie" value="navi.swf?sectionheader=charts"> 

*I have also added the "?sectionheader=charts" to the EMBED line.

SWF/FLA

sectionheader._x = 10;
sectionheader._y = 290;
*This is set on the first frame.

The theory is that flash will read the variable and come up with something like:

charts._x = 10;
charts._y = 290;

..................but, ofcourse it doesnt!!!

I have been able to set text of textfields and event traget frame Labels in similar ways, but this will not work..

View 2 Replies

ActionScript 2.0 :: Generate A Link That Will Send The User To A Page?

Aug 21, 2008

how or where i could learn about embeded links. In other word, i want to generate a link that will send the user to a page where my swf will be, therefore nobody can come and get the source of my file or even decomplile it.

View 6 Replies

ActionScript 2.0 :: Send Pages To The Next Page That Has New Images And Text?

Sep 19, 2003

For example, if a site has multiple pages in a section, and you want to send them to the next page that has new images and text, how would you do it? Use dynamic text? Movie clips? Or just send them to anoter frame?

View 7 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 2.0 :: Put On A 'submit ' Button To Send The Page's Form To An Email Address?

Jan 15, 2003

what code do i need to put on a 'submit ' button to send the page's form to an email address??(if the page has got an input text box with the information in.)

View 1 Replies

ActionScript 3.0 :: Send Some Information To A Javascript Function On The Same Html Page As The Swf File Is In?

Nov 3, 2011

I am trying to send some information to a javascript function on the same html page as the swf file is in. I used the tutorial here on Kirupa but for same way it doesnt work.

ExternalInterface.call("fillForm('"+ l.x, l.y +"')");
ExternalInterface.call("fillForm", l.x, l.y);

These are the variations I tried.

View 1 Replies

ActionScript 2.0 :: Send Variable Outside Of A MC To Root?

Nov 30, 2008

I brought a pre-built shopping cart and I'm trying to put some buttons in another MC but when I click them the cart don't update.

The original setup of the cart was:

The 'Add to cart' buttons are on the root and the cart was inside an MC also on the root.

Now I understand that it's not not working due to me moving the buttons into a MC.[code]...

View 10 Replies

ActionScript 3.0 :: FlashVars - Send A Variable Value From Swf To PHP?

May 18, 2010

I'd like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable.

View 10 Replies

ActionScript 2.0 :: Can't Send Variable To Index.php?

Jul 26, 2010

using Flash CS5, writing in Actionscript 2:This script works:

Actionscript Code:
get_ecard.onRelease = function(){  my_vars = new LoadVars();  my_vars.firstname = name_txt.text;  if (my_vars.firstname != "") 

[code].....

View 5 Replies

ActionScript 3.0 :: Send A Variable From Flash To Php?

Feb 1, 2010

Basically I am trying to send a variable from flash to php, I was trying to do it through the sendToURL function, because this seemed to be the most appropriate way to do this, although I may be wrong. Below is the AS.
 
var quizVariables:URLVariables = new URLVariables();
quizVariables.party = "labour";
var myURLRequest:URLRequest = new URLRequest(".../partyhandler.php");
myURLRequest.data = quizVariables;
sendToURL(myURLRequest);
 
Once this is done it should cause the following PHP to run (which works fine if I manually type in the address eg .../partyhandler.php?party=labour)
 
$party = $_GET['party']; 
mysql_query("UPDATE party SET $party = $party+1 WHERE id=1");echo $party;
 
however something seems to not be working with the flash element of the code.

View 8 Replies

ActionScript 1/2 :: Swf Send Variable To Php With Random Name?

Mar 10, 2010

i want to make a swf ecard. the  swf will include an input text for a message + input text for  sender email adress + recipient email adress.the swf will send variable to php with random name + email to recipience with message that inform bout an ecard sent to them + specific url.

View 2 Replies

ActionScript 3.0 :: Send The Variable Name To A Swf File?

Apr 30, 2010

I have a html form and when submit is clicked, my php processes the data.  At the moment its simple, just one field displayed to the screen <?php echo htmlspecialchars($_POST['name']); ?>.Instead of doing this, I want to send the variable name to a swf file, and load the swf file with the name.  I will use flashvars to do this.  I have seen examples, and I think this one is used to display the swf onto the webpage, and pass the data to the swf.
 
<object width="540" height="240" title="sample">
<param name="movie" value="card.swf" />
<param name="flashvars" value="var1=here&var2=are&var3=my&var4=flashvars" />
<embed src="card.swf" flashvars="var1=here&var2=are&var3=my&var4=flashvars" type="application/x-shockwave-flash" width="540" height="240" ></embed>
 
I am not sure what it is really doing, and what I should change the value to in order for my name variable to be passed. 

View 8 Replies

ActionScript 1/2 :: How To Send Data As PHP Variable

Oct 28, 2011

I am creating avatar for website. After selecting avatar it store to the database and how can send it as php variable.

View 4 Replies

ActionScript 3.0 :: FlashVars - Send A Variable Value From Swf To PHP.

May 18, 2010

I'd like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable.

View 3 Replies







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