[RESOLVED] flash and VB fscommand help
In my Flash movie I have the following code:
Code:
ns.onMetaData = function(obj) {
this.totalTime = obj.duration;
for (var propName in obj) {
trace(propName+" = "+obj[propName]);
fscommand("info", propName+" = "+obj[propName])
}
};
this gives the following in the output window
---
creationdate = Wed Jan 04 09:21:00 2006
framerate = 30
audiodatarate = 128
videodatarate = 1000
height = 278
width = 500
duration = 118.36
---
In my VB app I have the following argument:
VB Code:
Private Sub ShockwaveFlash1_FSCommand(ByVal command As String, ByVal args As String)
If (command = "info") Then
frmhome.txtInfo.Text = (args)
Else
MsgBox (args)
End If
End Sub
When I run my vb app only the last item in the propName gets displayed. My text box in the VB app only displays the duration. I would like all the information in the flash output box to pass into the vb app.
It may be that all the information is being passed but only the last item is being displayed.
Many thanks
Re: flash and VB fscommand help
This is just a guess, but try
VB Code:
frmhome.txtInfo.Text = frmhome.txtInfo.Text & args
Re: flash and VB fscommand help
Hey thats great, everything seems to be there except it's all on one line
Text1creationdate = Wed Mar 31 14:18:43 2004
framerate = 983040audiodatarate = 64videodatarate = 176.4height = 0width = 0duration = 12.0666666030884
Re: flash and VB fscommand help
Set the textbox Multiline property to True
Select what type of scrollbars you want.
Re: flash and VB fscommand help
I did that but everything is still bunched up one after the other. :)
Re: flash and VB fscommand help
Quote:
Originally Posted by Navarone
I did that but everything is still bunched up one after the other. :)
Ok, then try this
VB Code:
frmhome.txtInfo.Text = frmhome.txtInfo.Text & args & vbNewLine
Re: flash and VB fscommand help
That works, thanks alot! :wave:
Re: flash and VB fscommand help
Quote:
Originally Posted by Navarone
That works, thanks alot! :wave:
Gotta take care of my fellow Akron Arrows fans. :D