ActionScript 2.0 :: Sending Parameters To Flash From Html (asp) Page

Mar 13, 2006

I have a project where I need to keep track of where the user is at a certain point of a flash training orientation.

Flash application needs to accept a parameter which contains a unique ID for the user running the flash application. This ID needs to be stored throughout the session of the flash application, from page to page. Once a user travels from page-X to page-X in the Flash, the next button needs to call an aspx page in order to send that ID and the page position so the aspx can write to an XML file this information. If the user does not finish the flash, once they return, the aspx needs to read the correct XML file and send 2 parameters to the flash application. These 2 parameters will be the user's ID and the page the user was on the flash can load the correct page. Instead of passing 2 parameters so the flash can dynamically load the correct section, the aspx can call the correct flash file (i.e. flash_file2.swf) but still pass the user's ID as a parameter.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Sending Variables In Flash Back To HTML Page

Dec 16, 2009

I had posted this in the PHP section but think it may be more relevant in Flash as have'nt had any replies yet..I have been asked to create a photo canvas website that allows users to upload an image, then apply several effects such as re-sizing/cropping/desaturate, then viewing the updated image on a generic wall and going to check out to buy the canvas.I am pretty new to web developing/designing, i am confident with html,css and actionscript to an extent, but have only used small parts of php before.My biggest worry is how to go between html > php >flash >back to html again.From what i understand i need to create the following functions:

1. Create a general html website which will store the upload form and flash photo editor swf on, when the user first access's the site i start the php session...

2. The user then uploads there image to the server using a simple php upload form which will store the file and create a unique named file also on the server...

3. The flash editor swf will then load up on the html page. Inside the actionscript of the swf i will tell flash to continue with the php session by calling it again and call users image on the server with the 'file reference' command. The editing functions such as cropping, canvas size will all have variables to mark what the user has chosen and these varaibles will get ent back to the html page using php to keep track of them for the checkout process...

4. Once the editing has finished the user will click 'finish' in the swf taking them to the php shopping basket/checkout which will call the variables sent in flash to determine final cost depending on what effects chosen.

Is the above correct and more importantly is it possible? The main part i am struggling to get my head around is editing in flash (say changing the uploaded image to 20 x 26) and then saving this back to the server and sending the new settings back into the html/php page.Is this all possible without using database and tables such as MySql?

View 0 Replies

ActionScript 3.0 :: URL Parameters In HTML Page?

Nov 26, 2010

I've recently been having a few problems generally relating to retriving URL information. I've overcome most of these errors at the point of posting this thread, however one still eludes me:

ActionScript Code:
trace(loaderInfo.parameters.variable)

Within the application, the parameter is being refered to in an if statement.

In all tests, including those on a web server, this code returns an "undefined" value. The only time at which I can get the code to work is when the swf is by itself, as soon as it is embedded into a HTML or other page it appears that the parameters cannot be picked up from the URL.

The URL could be example.com/app/?variable=123. The variable would be returned as "123", however it is not picked up.

View 9 Replies

Actionscript 3 :: Sending The Parameters To A Swf?

Oct 12, 2010

I am a Flex developer and I am trying to load an AS2 swf in my AS3 code.The load itself works, but the parameters are not transported for some reason.

This is my code.

var urlrequest:URLRequest = new URLRequest();
urlrequest.url = "Pres.swf?test=test1";
var loader:Loader = new Loader();
loader.load(urlRequest);

In the handler function for the complete event, when I checked for the parameters in contentLoaderInfo, there is just an empty object associated with it(I guess, there are no key- value pairs in it atleast).I cannot make any changes to the AS2 swf, because I don't have any tools to build it right now.

View 1 Replies

ActionScript 3.0 :: Sending Additional Parameters With Events?

Sep 20, 2009

im sure other ppl have been faced with this dilemma. say that you are attaching an event listener to an object which obviously if revoked, will call a function. now how do you send additional params with listeners?so you get something like:

Code:
public function eventHandler(e:Event, additionalParam:*){}

i have a solution for this and that is to attach it to the caller so it could be accessed with e.target.variable but i dont know if this is the way to go.

View 5 Replies

Flex :: Sending Parameters To Alert CloseHandler

Feb 21, 2011

Is it possible to send parameters to a closeHandler Alert function? The fisrt parameter the function gets is the CloseEvent, but how to send another one?

[Code]...

View 3 Replies

ActionScript 3.0 :: Sending A User To A Php Page From Flash?

Mar 31, 2011

So I am successfully able to send variabls from Flash to PHP, but I am still unable to figure out how to send the USER to the php page along with their variables. The reason I want to do this is because the PHP script in question spits out a bunch of text to the user based off the variables sent to it from flash.
 
Right now, when the user clicks the submit button in flash it sends the variables to flash ok, but to the user, they just continue to sit idly on the flash page, even though it no longer serves a purpose. So I guess my question is, how can I get flash to send the user AND their data to the php script when they click the submit button?

[Code]...

View 2 Replies

Asp.net :: Sending Captured Image From Flash To Page

Mar 27, 2012

I am using Asp.net/C# in my application , I am using a .swf file which is placed on my Default.aspx page to capture images from webcam, I have a requirement that the captured image should be sent to server or aspx page without storing it on the clients machine,

View 1 Replies

ActionScript 2.0 :: Sending Variables From One Flash Page To Another?

Jan 5, 2009

I am having trouble with what would seem to be a simple thing...I need to pass a variable generated by the user from a swf/html page to another swf/html page. I am encoding the variable in the URL....?bagVar=How do I get whatever the content of this variable is imported to the other swf/html page? None of the documentation I've found seems to answer this (maybe I am looking in the wrong places).

View 1 Replies

Html Fancybox Flash Parameters

May 5, 2011

I am using fancybox within a html page and I am calling an flv file via a swf file, plays fine locally and works via the web, the problem is that I need to link all of my assets with remote urls as I need to host the html elsewhere. So html hosted on server A and assets on server B. So my thoughts turn to adding the flash parameter to the query.fancybox-1.3.4.pack.js file and this is where I get stuck.url...I've located the object tag in the query.fancybox-1.3.4.pack.js file I just need to add the allowScriptAccess parameter.[code]

View 1 Replies

ActionScript 3.0 :: Parameters On HTML To Flash?

Sep 7, 2009

I'm having a problem with sending the value (FlashVars) from the parameters on HTML to Flash. Here's the full code on Flash.

[Code]...

View 1 Replies

Actionscript :: Sending HTTP Request With Multiple Parameters Having Same Name

Dec 2, 2009

I need to send a HTTP request (and get XML response) from Flash that looks similar to following:

http://example.com/somepath?data=1&data=2&data=3

I.e. having several parameters that share same name, but have different values.

Until now I used following code to make HTTP requests:

var resp:XML = new XML();
resp.onLoad = function(success:Boolean) {/*...*/};
resp.ignoreWhite = true;

[Code].....

But in that case I am loosing ability to do POST requests.

View 4 Replies

ActionScript 2.0 :: WebService: SOAPCall Sending Blank Parameters?

Sep 18, 2009

I'm having a huge issue when it comes to the mx's WebService class..Basically: We're communicating with the webservice, and the method we are calling has place for 5 parameters to be sent... but they're all optional, so i just need to send 3 parameters for this specific section

ActionScript Code:
_parent.getData("calledFunction",
handleResult,
handleError,

how to get flash to not send those blank nodes with the soapcall/pendingcall ?

View 0 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

ActionScript 3.0 :: Sending Vars From A Classic ASP Page To Flash?

Feb 23, 2011

I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.Here is my code:

PHP Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);

[code].....

View 2 Replies

Actionscript 3 :: Sending Vars From A Classic ASP Page To Flash?

Feb 23, 2011

I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.

Here is my code:

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

[Code]......

View 1 Replies

ActionScript 2.0 :: Sending Flash Vars To Php Without Refreshing Page?

Jan 4, 2010

i'm sending flash vars to php, but the .swf refresh when the fuction "send" is call.

fo exemple:

var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");

when this happen, the page refresh and also the .swf

View 3 Replies

ActionScript 3.0 :: Sending Variables AND The User To A Php Page From Flash?

Mar 31, 2011

So I am successfully able to send variabls from Flash to PHP, but I am still unable to figure out how to send the USER to the php page along with their variables. The reason I want to do this is because the PHP script in question spits out a bunch of text to the user based off the variables sent to it from flash.

Right now, when the user clicks the submit button in flash it sends the variables to flash ok, but to the user, they just continue to sit idly on the flash page, even though it no longer serves a purpose.

how can I get flash to send the user AND their data to the php script when they click the submit button?

Here's what I'm using now (inside flash):

//variables used to send data to server for processing
var scriptRequest2:URLRequest = new URLRequest("qm-results.php");
var scriptLoader2:URLLoader = new URLLoader();
var scriptVars2:URLVariables = new URLVariables();

[Code].....

View 1 Replies

Html :: Sending Flash In Email?

Dec 16, 2011

I was wondering... in the past it was never smart to send flash in emails, but now it's 2011, and I thought, would it be smart to embed flash in emails, and even possible?

View 1 Replies

ActionScript 3.0 :: Read Parameters From Html In Flash?

May 18, 2011

How i can read parms from html tag ?with out swfobject and java script maybe?

View 1 Replies

ActionScript 3.0 :: Reading Parameters From Html In Flash?

May 18, 2011

how i can read parms from html tag ? maybe with out swfobject and java script ?

View 3 Replies

Flash :: Program An Html Page To Move To A New Web Page On User's Clicking An Item Of An Embedded Movie?

Nov 21, 2011

Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.

View 2 Replies

Professional :: Preloading An HTML / Flash Page On PREVIOUS Page

Jul 1, 2010

I have a site where all the pages have a common SWF embedded at the top (Nav and banner), but the rest of the page is HTML.Everything is working fine, but I'm finding the 'independence' between the HTML and Flash is making for some sloppy transitions from page to page.I was expecting the SWF to be delayed, at least for the first page visit(and I have a preload routine inside the swf to make it's delay and appearance a bit more visually pleasant), but was surprised to sometimes find the SWF appearing and playing while the HTML content was delayed (resulting in a SWF floating in black).What I'm wondering is if there's a way I can do some sort of preload on my index page.BUT, not the standard one that I'm sure everyone would suggest (like the javascript image 'preload', or the newer 'css visibility' preload trick). The problem with the standard one is that it doesn't check to see if everything is loaded.What I'm after is a routine on my index page that invisibly loads some of the elements from my inner pages (common swf, maybe some of the images) and WAITS until it's done before moving to the inner pages (displaying the company logo and/or a load status in the meantime).Many people would suggest a preloader inside the common SWF on my inner pages (which I have), but the problem with that on its own is that it doesn't stop the HTML from displaying.

I'm trying to figure out a way to do a preloader (like those in a SWF, which loops until everything is loaded) that controls both the SWF AND the HTML.Recently, I found that you can use one swf to preload another, which would be a potential solution, as I could make an SWF on the index page whose sole purpose is to load (invisibly) the common SWF, displaying the load status and then loading an inner html page once it's done.Problem is, I have bee having trouble finding the coding for that, as most searches for preloaders end up being about standard preloaders, where it's monitoring the same SWF that the code is on, as opposed to controlling a second, external SWF.Can someone point me to or provide me with the proper coding/procedure for a preloader that controlls a second external swf or give me a better solution?
 one?

View 1 Replies

ActionScript 2.0 :: Sending Variable From Flash To HTML?

Feb 16, 2009

I have an issue on sending variable from flash to HTML. For example I have a main.html page with flash Object. In this flash there is a search text field. When you enter some text and click on Go button, It will go to search.html page and it should show the text value in this page.

View 2 Replies

ActionScript 3.0 :: Passing Parameters From HTML To Flash Object

Jan 19, 2010

I know this should be very simple, but in following the examples I can find on passing parameters from HTML to my Flash App I have not been successful. I would like to find a relatively current example using AS3, Flash CS4. I need to pass the url of an XML file off to the flash app so that it can go pick up instructions on what it is supposed to be playing. We want to do it this way because we don't control the web site so we can't just leave the XML file on the server and maintain it as needed.

View 4 Replies

ActionScript 2.0 :: Passing HTML Form And Hidden Variables From Flash To Html Page

Dec 3, 2003

I have a html/flash site now, [URL]. i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire <form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window. now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:

[Code]...

View 1 Replies

ActionScript 2.0 :: Flash + HTML + Variables - Go To The Home.html Page An Animation Will Play From Start And Then Stop At The End Of It

Feb 25, 2010

when you go to the home.html page an animation will play from start and then stop at the end of it. However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through. I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say

"if this html page is aboutus.html then go to the last frame and stop" and with the index page it would say "if this html page is index.html then keep playing"

View 2 Replies

Html :: Set Link Of Another Html Page On Flash File

Mar 11, 2011

I want to set link of another html page on flash file.

View 1 Replies

Flash :: Html - SWF Object Rendering At The Html Page

Jun 19, 2011

I would like to ask when swf object rendering at the html page? Is it rendered only it's visible? If swf at the page bottom that is not visible, will swf be rendered when I scroll down? The problem is that swf object raises some events when it's rendered and I would like to force rendering even if swf object is not visible.

View 1 Replies

Html :: Works When Tested In Flash, But Not On Html Page?

Feb 29, 2012

I am trying to create an ad for a website. When someone clicks on the ad, it is supposed to redirect them to a website, and register the click with google analytics.I have done this with the following script:

import flash.external.ExternalInterface;
movieClip_3.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void {

[code].....

View 2 Replies







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