Current location: Hot Scripts Forums » Programming Languages » ASP » asp... flash... together forever!


asp... flash... together forever!

Reply
  #1 (permalink)  
Old 08-27-03, 11:30 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Angry asp... flash... together forever!

I don't know if any of you do flash, but I at least you can point out asp errors .

Okay first off this is my asp code.
Code:
<HTML>
<!--#include file="adovbs.inc"-->
<%
set filesys = CreateObject("Scripting.FileSystemObject")
set txt = filesys.OpenTextFile(Server.MapPath("/cubularrpg/db/chat.txt"),8,0)
txt.WriteLine = "Request(usesay)"
txt.close
%>
&received2=ok
this is the actionscript I used to write to this page.
Code:
on (release) {
	loadVariables("http://www28.brinkster.com/cubularrpg/usay.asp", POST[usesay]);
}
if anyone can help, it would be appreciated.


P.S. here is the error.
Quote:
Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'WriteLine'

/cubularrpg/usay.asp, line 6
__________________
God save us from the religious fanatics
Reply With Quote
  #2 (permalink)  
Old 08-28-03, 02:21 AM
Stealth Stealth is offline
1337 pr0gr4mm3r
 
Join Date: Jun 2003
Location: Glasgow, Scotland
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
your syntax is wrong


txt.WriteLine = "Request(usesay)"
should be
txt.WriteLine(Request(usesay))

Last edited by Stealth; 08-28-03 at 02:23 AM.
Reply With Quote
  #3 (permalink)  
Old 08-28-03, 12:09 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks... plus one more thing, now I want the text I just added to be viewed in the Flash page so I use this

loadVariables("http://www.brinkster.com/cubularrpg/db/chat.txt", "_root.usee");

where usee is what the dynamic textbox is called.
__________________
God save us from the religious fanatics
Reply With Quote
  #4 (permalink)  
Old 08-29-03, 03:27 AM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
you should use this actionscript:

loadVariables("http://www.brinkster.com/cubularrpg/db/chat.txt", "_root.usee", "POST");

You must define the variable type "POST" so it posts the text into the flash, not send it.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.
Reply With Quote
  #5 (permalink)  
Old 08-29-03, 04:33 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
that will work, coming from a text file?
__________________
God save us from the religious fanatics
Reply With Quote
  #6 (permalink)  
Old 08-29-03, 09:57 PM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
yes. oh..also in the text file you have to have the first word in the first line like this:

text=put text here, you can use html commands too, im not sure if all of them work in flash though, so if u use a html command and it doesnt work try something else. (if you use HTML, make sure in flash you click the Render as HTML) im not sure if u have to make it an HTML file extention or if u can just put HTML into the .txt file. try it a find out.

'text=' is the name of the variable "ex. Var: text". if you have no HTML in your file, unclick the Render as HTML button.

Note: im using Flash MX.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.

Last edited by Arctic; 08-29-03 at 10:15 PM.
Reply With Quote
  #7 (permalink)  
Old 08-31-03, 12:40 AM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
<HTML>
<!--#include file="adovbs.inc"-->
<%
set filesys = CreateObject("Scripting.FileSystemObject")
set txt = filesys.OpenTextFile(Server.MapPath("/cubularrpg/db/chat.txt"),8,0)
txt.WriteLine(text=Request.cookies("cubularrpg")(" user")&nbsp;Request(usesay))
txt.close
%>
&received2=ok

well it still dosent work... I just get text= in the .txt file.
__________________
God save us from the religious fanatics

Last edited by Mister B.; 09-01-03 at 07:44 PM.
Reply With Quote
  #8 (permalink)  
Old 09-01-03, 07:44 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
on my own on this one?
__________________
God save us from the religious fanatics
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free PHP / Flash photo gallery Niklas Script Requests 1 01-06-04 10:45 PM
Register your flash related site in azflash.com dcarrero Traffic Exchange 0 10-05-03 08:41 AM
Easy Flash Contact Form??? adameve Script Requests 1 08-21-03 02:24 PM
Flash konigwolf PHP 7 07-14-03 02:43 AM
New Flash video piece { J } Website Reviews 1 06-26-03 01:06 PM


All times are GMT -5. The time now is 03:22 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.