|
-
May 9th, 2006, 08:21 AM
#1
Thread Starter
Fanatic Member
[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
He who never made a mistake never made a discovery?
-
May 9th, 2006, 08:46 AM
#2
Re: flash and VB fscommand help
This is just a guess, but try
VB Code:
frmhome.txtInfo.Text = frmhome.txtInfo.Text & args
-
May 9th, 2006, 09:03 AM
#3
Thread Starter
Fanatic Member
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
He who never made a mistake never made a discovery?
-
May 9th, 2006, 09:06 AM
#4
Re: flash and VB fscommand help
Set the textbox Multiline property to True
Select what type of scrollbars you want.
-
May 9th, 2006, 09:09 AM
#5
Thread Starter
Fanatic Member
Re: flash and VB fscommand help
I did that but everything is still bunched up one after the other.
He who never made a mistake never made a discovery?
-
May 9th, 2006, 09:20 AM
#6
Re: flash and VB fscommand help
 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
-
May 9th, 2006, 09:22 AM
#7
Thread Starter
Fanatic Member
Re: flash and VB fscommand help
That works, thanks alot!
He who never made a mistake never made a discovery?
-
May 9th, 2006, 09:33 AM
#8
Re: flash and VB fscommand help
 Originally Posted by Navarone
That works, thanks alot! 
Gotta take care of my fellow Akron Arrows fans.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|