ActionScript 2.0 :: Loading ASPX Function From Flash?
Mar 5, 2009
How to load a aspx function from flash? For example, I wrote a function inside the aspx page.. say sayhello().. I want to call that sayhello() function inside the flash..
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)
I'm having a problem retrieving xml data from aspx proxies only when the swf is embedded in an HTML page on a staging server. I developed the swf on my local machine, providing urls to the proxy pages via full urls to my local machine (a la, [URL]. While this worked, I need the path to the proxy page to be relative to the html page, so that when it's on the site, it can still reach the proxy page.
The code looked like this when it worked:
var localProxyPageUrl:String = "http://machinename/sitename/proxypage.aspx"; var proxyPage:XML = new XML(); proxyPage.ignoreWhite = true;
[Code]....
PS: Forgot to mention that I tried even putting the absolute url in the 2nd version to the proxy page, to no avail... <sigh>
PPS: The proxy page is in the same folder as the swf & html page...
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".
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.
I've been having some trouble lately trying to get my flash movie to load variables being set in an aspx page, I'm new to asp and flash so I have a lot working against me.Here is the aspx onload code:
Code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim tnumber As String = ""
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 = {};
Using SWFUpload v2.2, Firefox 3, IE 8, Flash 10In my ASP.NET application all uploads are being processed by upload.aspx (I have the correct upload_url set in the settings object). Can anyone tell me why (in Firefox) the uploads never hit the upload.aspx page? [code]...
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.
I'm using Javascript to call a method on a Flash movie embedded in an ASPX page using SWFObject. It works fine in Firefox, but Internet Explorer 7 and 8 (so far) claim the object returned by swfobject.getObjectById() "doesn't support this property or method". I've found similar posts on this site and others, but nothing I've tried has fixed this in IE.
ActionScript 3.0 class: public class Player extends MovieClip { public function Player() { Security.allowDomain("http://localhost"); ExternalInterface.addCallback("test", test); [Code] .....
Internet Explorer complains about the last line in that function, "Object doesn't support this property or method".
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?
I have a problem showing up a SWF file (Flash) in an ASP MVC file.I have problems adjusting the height to 100%. If this is showed in Firefox or Opera the result is the picture you see below (everything works fine under Chrome and IE).[code]
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
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 .
Is it possible to set a listener or something like it to run a function once the flash movie itself has finished loading?So something like:When this flash movie has finished loading, activate function.Btw. I'm not trying to do this with a swf file loaded into another flash movie. I need this to be done by the movie once it self has finished loading.
I am importing several external files using the Loader-class, and one of them is an swf-file. When doing so (I had done it successfully before, so did not expect any issues), I ran into all sorts of errors, and finally Flash crashed.
I put down a trace in the constructor function, and it didn't trace just once, but kept on tracing, suggesting that the constructor was stuck on loop. I guess the loading of too many of the same swf is what causes flash to eventually crash.
Here is my code (the swf im loading is now a simple test-file which contains an image and no code):
private var slides:Loader = new Loader(); public function DocumentClass() {
I did a banner for a client and was asked if I could put the banner up on their site when I was done, not realizing the site was done in .aspx. I'm in the control panel of the site, I uploaded the flash files to the correct folder and rather than going into this blind I thoughtThe code for the banner on the site currently is
<script type="text/javascript" src="/home-ads/swfobject.js"></script> <script type="text/javascript"> var flashvars = {}; flashvars.xmlPath = "/home-ads/powertri-ads.xml"; var params =
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?
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.
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.
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..
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.