C# :: SWF Posting Image File To ASPX Page
Feb 22, 2011
I'm trying to save a file using HTTP request from a SWF file to an ASPX file. i have a WinForms app that hosts the SWF using AxShockwaveFlash control that passes parameters to the SWF that generats the file and posts it to an ASPX page. the page uses the binary data to save the binary stream to a file in the following way:
[Code]...
View 1 Replies
Similar Posts:
Aug 7, 2006
I have been using this function for a long time and this problem never occured. When the user press send button it does send the form as email but it also opens my aspx file in a seperate window.[code]...
View 3 Replies
Jan 20, 2010
I am trying to pass a variable from my .aspx page into my published swf file. I am using the code below, and using swfobject to try to pass my variable. (I am very comfortable with swfobject and would prefer, if possible, to avoid using FlashVars.) The variable myVar represents the name of an image file, and will be a different image for each user on my site. I am using Flash CS4, and AS3. I only mention that because I was able to do this in CS3 using AS3, yet certain things have been deprecated in CS4 - hence my code does not work. And for what I'm doing and how I'm doing it I cannot use CS3 to create my swf file. Anyway, here is the code:
[Code]...
View 1 Replies
Mar 4, 2011
I am having trouble embedding a flash file onto my website. I tried another file, which worked.
View 2 Replies
Jun 3, 2010
I need to call a javascript function in an aspx page from flash. Is it possible? Also I need to pass an argument to the js function in aspx page. How this can be achieved?
View 3 Replies
Mar 4, 2011
I have a iframe for advertisement but google adsense want to flash format how to convert iframe to flash swf
View 1 Replies
Jan 25, 2009
I am trying to call an aspx page, have it hit the database, and return a string of text to my actionscript.
Here is my actionscript code:
It crashed on the line 'gameText = urlLoader.data.theText;' with the error of 'Error #1010: A term is undefined and has no properties.' so i guess urlLoader.data.theText is coming back null.
Here is my .aspx page code:
When I run the .aspx page separately, it returns what I want it to: '&theText=This is my test text'. I think I may be missing the big picture here somewhere.
View 0 Replies
Jul 31, 2009
I'm using swfobject to replace various objects on my page with flash. I use location.href (javascript) in order to pass the URL into flash via flashvars. In flash, I load the page as XML and then parse the data according to my current needs.This all seems to work fine when testing locally. However, I am trying to use this process with a CMS that is running ASP.NET and it no longer works.Is there an issue with the following code if the page being loaded is a .aspx page rather than a .html page? (xmlPath is the URL passed via flashvars)
Code:
// loadXML
private function loadXML():void
[code].......
View 0 Replies
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
Jul 18, 2010
I'm making a project that will need to read some xml from aspx page
the aspx page will connect to database and retrive some records then will convert them to xml
I don't know how to read that info from as3.
View 2 Replies
Oct 17, 2010
How can I pass data to and from an aspx page tp AS3? IN AS2 I could use LoadVars . I have sen some examples and there seems afew ways.
View 6 Replies
Feb 2, 2010
I am making a flex app to embed in my ASP.NET portfolio. What is the best way to embed the .swf file into the HTML of the .aspx page?
View 2 Replies
Jan 4, 2012
i am trying to access the aspx variable.But i can't to do this.am using flash professional cs5.
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.net.URLRequestMethod;[code]....
View 2 Replies
Jan 3, 2012
I have a application in flash professional cs5.In that Application i have a Button.When i click the Button i want to receive the data from aspx page.
View 7 Replies
Jun 29, 2009
I have an aspx page with a flash movie (gallery) that calls another aspx page which gets the info form a database and returns XML that the movie uses to populate the gallery with. Currently I have it use a query string that is passed through the flashvars so it will get the right info on post back. Is there a way I can reload the movie and pass the variable into flash without a postback? For instance the page doesn't reload, just the flash with the correct set of images.This is the JS used for the movie:
Code:
Select all<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
[code]....
View 1 Replies
Jul 11, 2011
I have an application where the home page is an aspx page. It redirects to the flex application with authentication information in the url. The problem here is, if a guy copies the link for the flex application (which appears in the browser after redirection) and pastes it again, he will be able to access it. Is there some way to prevent this? That is, can we check whether the link was redirected from aspx or copy pasted?
View 2 Replies
Mar 17, 2011
I have a aspx called user-photo-upload.aspx and another aspx called get-photo.aspx. I set the Session["PhotoId"] in the page_load method of user-photo-upload.aspx.
If I visit the user-photo-upload.aspx through the browser normally, the session can be retrieved in get-photo.aspx. But if the flash uploads photo to the user-photo-upload.aspx page, I can't get the Session["PhotoId"] in get-photo.aspx.
I discover that the Session ID is different when visiting the page using browser normally or by flash. I don't know why flash uses another session.
View 1 Replies
Mar 21, 2012
Because of my version of Xcelsius I'm limited to 2 web service connections so I tried using XML Data connection and aspx page to bring data from database to Xcelsius.I have an ASPX page that outputs an xml file with the format
<data><variable name=""><row><column></column>...</row></variable>...</data>
In Xcelsius I made a XML Data connection having the XML URL pointing to the .aspx page that should output an xml. Then I have the Enable Load checked and I have selected the proper # of cells and rows . If I try preview I get
"An error has occurred. For more information, contact the file creator or yoursystem administrator. Error: Error #2032 Connection Type: XML Data".
I have the crossdomain.xml file on both the application folder and IIS wwwroot folder that looks like this:
<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain- policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false" />
[code].....
If I put in the XML URL in Xcelsius, the url to the xml file directly without using .aspx to write it to the output of the page it works. The xml is in the same application folder as .aspx page.My scope is to use the .aspx page to write query on the database and output back an xml with the table in the correct xml format so I can then consume the data in Xcelsius.
View 2 Replies
Jul 16, 2009
i needed to change the code below to post the userAnswer from radio button group, to an ASPX page so i can read the data in and post it to a database.
[Code].....
View 4 Replies
Jul 23, 2009
How to retrieve xml data in an aspx page after sending it using URLLoader.load
This is the flash code i am using:
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT; //tried by giving VARIABLES also urlLoader.addEventListener(Event.COMPLETE, handleComplete);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
[Code]....
I were able to accept data in above statement when i send a string in var1 say "test". But on sending xml above error is getting.I have tried to load the xml data in XMLDocument also.
In AS20 i used sendAndLoad method to send and reterive xml data.
View 2 Replies
Mar 30, 2012
Posting Image to Facebook with Flash?
View 1 Replies
Jul 20, 2009
I have a Flash movie which is embeded in 'base.aspx' file, when a button is clicked in the flash movie another 'something.aspx' file need to be called.When I run the flash movie from the Adobe Flash Professional CS3 IDE , it (the flash movie) calls the 'something.aspx' file just as expected.However when I embed the flash movie in to the 'base.aspx' file it doesn't work as expected .
View 4 Replies
Jun 30, 2011
I am making a uploader which has 2 buttons to upload image and video respectively.. I know fileReference to be used for uploading files but am unable to make out how to interact with aspx to save the files to server and name them dynamically..
View 1 Replies
Dec 16, 2010
I'd like to know if it's possible to communicate flex 4 with a file .aspx..
My problem is.. I'm trying to export a datagrid to excel and both parts are right, except because they are not communicating.. When I open with Visual Studio the url is = localhostcasawsExportExcel and when I open with flex the url is localhost:8080casaExportExcel.
View 1 Replies
Jun 12, 2009
I am working in Flash CS4. I have successfully run a .wmv file through the Media Encoder, converted it to a f4v file, imported it into Flash, and published it with a skin to a folder on my hard drive.I am learning this on my own (no one else in my state agency knows Flash - we are just getting started with posting videos on the Internet, and this is the test case).I get the following four files in one folder on my hard drive (I have put in parentheses what I think the files do, please correct if I am wrong):
oil.f4v (the movie file)
Test.html (the html page in which the swf file is embedded to play back the movie)
Test.swf (the swf file that is embedded in the html page)
SkinUnderPlayStopSeekMuteVol.swf (the skin file that is linked to from the Test.swf file??)
My question is: As long as these four files stay in the original folder, the html page plays the movie perfectly. As soon as I rename the folder, nothing works. It appears to be a question of re-establishing a relative/absolute link among the files? I want to post these to my live site in order to test, but of course that won't work yet either.
View 9 Replies
Jul 12, 2010
I would like to know how to upload a file from ActionScript 3 (From a FLEX Application) to a Dot Net Back End, maybe to an ASHX file, an ASPX file or similar and using C# as core backend language.
View 1 Replies
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
Jul 18, 2007
i'm trying to access an aspx file which is online. it's suppose to give me an xml data that i will parse and display inside of flash... the wierd thing is this: using any variation of code (using xml, or loadvars) the file loads the xml file and works great from WITHIN the flash authoring environment (when using "test movie") BUT it doesn't work when i run the swf file from its local directory (explorer) or from within a browser. what and why is this?
View 4 Replies
Sep 15, 2009
I'm using Flash CS3 Actionscript 2. I'm loading an external file (it used to be an XML file but now it is an aspx file). Anyway, my actionscript for loading the file looks like this:
xmlFile = "flash/info.aspx?id=1"
Which works great with the aspx file I've created. But I need the "id=1" to append a dynamic number instead of the "1".
View 3 Replies
Nov 6, 2003
Is it possible to change text in like a notepad file by using flash so entering text into a input field and then posting it to an external file.
View 1 Replies