| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2002
Location: Billings, MT
Posts: 11
|
I can't seem to get this function to work; perhaps I've misunderstood how it is used. I simply want to call a function residing on an aspx page from my a flash SWF on the same page.
My flash movie resides on webroot/flashremoting/bw/parentPage.aspx, and contains: ActionScript Code:
... and flashremoting/bw/parentPage.aspx contains: <%@ Page language="C#" ContentType="text/html" %> <%@ Register TagPrefix="MM" Namespace="FlashGateway" Assembly="flashgateway" %> <script language="C#" runat="server"> void Page_Load(Object source, EventArgs e) { Flash.Result = "This is a test."; displayAlert("initial value"); } public void displayAlert(String message) { alert.Text = message; } </script> <MM:Flash ID="Flash" runat="server" /> <html><head><title>test</title></head><body> <object>..."test.swf" typical flash applet embed code here...</object> <br /> <asp:label ID="alert" runat="server" /> </body></html> I've left out the _Result and _Status functions in the AS above; the result of "This is a test" is successfully returned to a text field in my flash object, but my call to displayAlert() fails to work and change the alert label from "initial value" to "hello". ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|