User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion

Reply
Thread Tools Display Modes
Unread 16 Dec 2004, 19:29   #1
JammyJim
Godfather
 
JammyJim's Avatar
 
Join Date: May 2000
Location: England
Posts: 5,185
JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Passing Flash Variables about

2 Problems (actually 2 diff questions but if you cant do the first one then can you help with the second)


1.
Is it possible to perform database saving commands in Flash using ASP code? And if so how.

(i need examples of code and where to put them etc)
the variable name to be saved is called "correct".



OR

2.

I have a flash movie which contains the variable 'correct'

Basically if correct < 10 it redirects the browser to a different page....

on this page is another flash movie which i want to display the variable correct. The page also saves the variable to a database via ASP.

So how do i get flash to display a variable thats been posted to it in the "flash_var_1" form???


Any help would be most appreciated.
__________________
Forum Administrator
Mail : [email protected] // IRC : #forums
__________________
It's not personal, it's just business.
JammyJim is offline   Reply With Quote
Unread 17 Dec 2004, 09:51   #2
sayonara
Shai Halud
 
sayonara's Avatar
 
Join Date: Aug 2001
Location: Sunny Leeds \o/
Posts: 2,127
sayonara is just really nicesayonara is just really nicesayonara is just really nicesayonara is just really nicesayonara is just really nice
Re: Passing Flash Variables about

What version of Flash?

There are key differences between them with integration.
__________________
meow
sayonara is offline   Reply With Quote
Unread 17 Dec 2004, 15:34   #3
JammyJim
Godfather
 
JammyJim's Avatar
 
Join Date: May 2000
Location: England
Posts: 5,185
JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: Passing Flash Variables about

Flash MX
__________________
Forum Administrator
Mail : [email protected] // IRC : #forums
__________________
It's not personal, it's just business.
JammyJim is offline   Reply With Quote
Unread 17 Dec 2004, 23:00   #4
Caesar2
Commander
 
Caesar2's Avatar
 
Join Date: Sep 2001
Location: Netherlands
Posts: 146
Caesar2 is just really niceCaesar2 is just really niceCaesar2 is just really niceCaesar2 is just really nice
Re: Passing Flash Variables about

It can be done with webservices in ASP.NET. In ASP I don't have a clue. I can show you an example when I'm at work Tuesday
__________________
Quote:
Originally posted by Cochese
Cathaar are not overpowered.

You were just "bashed", live with it.
Caesar2 is offline   Reply With Quote
Unread 20 Dec 2004, 21:40   #5
JammyJim
Godfather
 
JammyJim's Avatar
 
Join Date: May 2000
Location: England
Posts: 5,185
JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.JammyJim has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: Passing Flash Variables about

tuesday is nearly upon us!
__________________
Forum Administrator
Mail : [email protected] // IRC : #forums
__________________
It's not personal, it's just business.
JammyJim is offline   Reply With Quote
Unread 21 Dec 2004, 07:10   #6
Raging.Retard
Street Tramp
 
Raging.Retard's Avatar
 
Join Date: Apr 2000
Location: Street Gutter
Posts: 341
Raging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant futureRaging.Retard has a brilliant future
Re: Passing Flash Variables about

Just get the Flash applet to call a server side page, with the data you want as a query string. Nice and simple.

loadVariables(...) is fine for doing this.
__________________
Chimney Pots.
Raging.Retard is offline   Reply With Quote
Unread 21 Dec 2004, 09:59   #7
Caesar2
Commander
 
Caesar2's Avatar
 
Join Date: Sep 2001
Location: Netherlands
Posts: 146
Caesar2 is just really niceCaesar2 is just really niceCaesar2 is just really niceCaesar2 is just really nice
Re: Passing Flash Variables about

The Flash code:
Code:
import mx.services.*; 
/* import all of the webservices class packages. 
Note: if you do not use the above import statement you will have to 
call the web service with the full path (new mx.services.WebService(..) */ 
                                                                        
// set it up so that the service is called when the button is pressed. 
result_btn.onPress = function() { 
     
    // Create a new instance of web service called - stockservice.  
    var stockservice = new WebService("http://rode-server/Webservices/helloworld/hello.asmx?WSDL"); 

	// Call the doCompanyInfo method and assign it to the pending call object to handle results. 
    stockResultObj = stockservice.HelloWorld(txtname.text);
     
    // the onResult function is called if the service is successful 
    stockResultObj.onResult = function(result) { 
     
        // example result values.  The result is a decoded actionscript object 
        //version of the xml returned by the operation. 
        // In this case the result is a object with company, lastPrice etc being properties. 
        txthello.text = result.bla;
		txthello2.text = result.bla2;
    } 

    stockResultObj.onFault = function(fault) { 
        // If there is any error such as the service not working, the onFault handler will be invoked. 
          trace(fault.faultCode + "," + fault.faultstring); 
    } 
}
After you created a webservice in ASP.NET use this code:
Code:
Imports System.Web.Services
Imports System.Xml.Serialization

<WebService(Namespace := "http://tempuri.org/")> _
Public Class hello
    Inherits System.Web.Services.WebService

    Public blabla As New retData()

    <WebMethod()> Public Function HelloWorld(ByVal name As String) As retData
        blabla.bla = "Hello " & name
        blabla.bla2 = "Hello " & name & "!"
        Return blabla
    End Function

End Class
<XmlRoot("hellodata")> _
Public Class retData
    <XmlElement("bla")> Public bla As String
    <XmlElement("bla2")> Public bla2 As String
End Class
The Flash form has 3 fields and a button. The first field is called txtname. The others are called txthello and txthello2. The webservice has a method with 1 input parameter. The results are placed in a different class that is read by Flash.
More info about webservices
__________________
Quote:
Originally posted by Cochese
Cathaar are not overpowered.

You were just "bashed", live with it.
Caesar2 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Forum Jump


All times are GMT +1. The time now is 16:23.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018