7 Replies - 2128 Views - Last Post: 24 September 2011 - 06:34 AM Rate Topic: -----

#1 chkm8  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 84
  • Joined: 24-December 08

send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 06:52 PM

good day,

i would like to ask if there is another way in doing this one. I want to send data from vb.net to the flash.(ex. i have variable x in .net which has a value of 5, now every time i load the flash in vb.net the value of x will reflect in the text i put in the flash.). I was able to made this but through loadVariables() in the flash but I should save the data in txt files so that the flash will load it.., I want to make it simply because I need to fetch data from the database and then i need to save it to txt file in order to load the data. Any suggestion?


best regards,


chulolots

Is This A Good Question/Topic? 0
  • +

Replies To: send data from vb.net to dynamic text in flash

#2 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1066
  • View blog
  • Posts: 4,173
  • Joined: 02-July 08

Re: send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 07:07 PM

What is flash? System.IO.StreamWriter can write the data to a text file.
Was This Post Helpful? 0
  • +
  • -

#3 chkm8  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 84
  • Joined: 24-December 08

Re: send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 08:29 PM

Im using macromedia flash. Yes, i know how to write text in a textfile but i found it more difficult and hassle since i need to fetch data first in data base and write it in textfile. And the worst is, it doesn't support multi line in textfile. I have four flash running in my vb.net and each should have a text file. I want it more easy like sending the data from the database directly to the flash.. but if its impossible , then i'll do the first way.
Was This Post Helpful? 0
  • +
  • -

#4 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1066
  • View blog
  • Posts: 4,173
  • Joined: 02-July 08

Re: send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 08:36 PM

How does it not support multiline. Read the data, break it up and write to the textfile.

Using sw As New StreamWriter(<path>)
  For i As Integer = 1 To 10
    'each one on a separate line
    sw.Writeline("some text")
  Next
End Using

Was This Post Helpful? 0
  • +
  • -

#5 DimitriV  Icon User is offline

  • They don't think it be like it is, but it do
  • member icon

Reputation: 584
  • View blog
  • Posts: 2,738
  • Joined: 24-July 11

Re: send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 08:59 PM

View Posthawkvalley1, on 24 September 2011 - 01:36 PM, said:

How does it not support multiline. Read the data, break it up and write to the textfile.

Using sw As New StreamWriter(<path>)
  For i As Integer = 1 To 10
    'each one on a separate line
    sw.Writeline("some text")
  Next
End Using


Did you mean the Macromedia Flash program doesn't support multiple line. Text files? That's kinda dodgy.
Was This Post Helpful? 0
  • +
  • -

#6 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1066
  • View blog
  • Posts: 4,173
  • Joined: 02-July 08

Re: send data from vb.net to dynamic text in flash

Posted 23 September 2011 - 09:35 PM

No, how does the StreamWriter not support it! Hence the example. I have no idea about flash - don't use it.

This post has been edited by hawkvalley1: 23 September 2011 - 09:35 PM

Was This Post Helpful? 0
  • +
  • -

#7 chkm8  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 84
  • Joined: 24-December 08

Re: send data from vb.net to dynamic text in flash

Posted 24 September 2011 - 12:09 AM

i don't have problem with the streamwriter, my porblem is with the flash in vb.net. In order for me to load a data to the macromedia flash, i used the textfile and using this code loadVariables("textfile name.txt","").

Now, in vb.net, every time i run the form where the flash is, i to send data to my flash.
Ex.
i have a variable x which handles integer from my database. I want it to be loaded and displayed in the textbox of the flash.

This post has been edited by chkm8: 24 September 2011 - 12:10 AM

Was This Post Helpful? 0
  • +
  • -

#8 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1066
  • View blog
  • Posts: 4,173
  • Joined: 02-July 08

Re: send data from vb.net to dynamic text in flash

Posted 24 September 2011 - 06:34 AM

Can you show us how you formatted the text file? From one thing I found this is the format:

&<variablename>=sometext&<diffvariable>=something else

Link
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1