PDA

View Full Version : Text from DB to Flash via ASP


Stich76
12-09-2001, 09:15 PM
Hi there

I am working on a country map where the country labels text are displayed on mouse over, the site that I am using it on is Language dynamic, (The language of the site is determined by where the user comes from) Therefor I need to get these "Labels" dynamic too. I am using the ASP tag <%=getLabel("20")%>, where the number is determing what text from the SQL 2000 DB it should use in my ASP documents, with a session.

My problem is : How do I get this text from my DB, in to my Flash movie, by using the <%=getLabel("number")%> or simmilar ways??

PLEASE HELP, I will be very greatfull

Sincerly

Stich76
:)

roele
12-10-2001, 08:43 AM
i've posted some samples on my page...
--> www.rolandschaer.ch

perhaps they helps.

Stich76
12-10-2001, 11:37 AM
Hi Roele

First! My complements to your site, its a nice peace of work!
:D

I'm a little confused over witch samples in specific, you refere to. I have looked at the poll and the guestbook, and have seen how you load the variables from the .asp documents.

Will this work if i make an .asp or HTML document where I loads the variable something like this :

denmark='<%=getLabel("21")%>'
germany='<%=getLabel("22")%>'
spain='<%=getLabel("23")%>'
etc.

should I then in the flash movie refere (in the dynamic text field) to denmark, germany and spain etc. or what??

/Stich76

roele
12-26-2001, 05:42 PM
Use the Response.Write object.... like this

Response.Write("&denmark=" & objRS("label1"))
this return a variable called denmark=........ to Flash.

good luck ;-)