Results 1 to 8 of 8

Thread: [RESOLVED] flash and VB fscommand help

  1. #1

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Resolved [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:
    1. Private Sub ShockwaveFlash1_FSCommand(ByVal command As String, ByVal args As String)
    2.  
    3.     If (command = "info") Then
    4.         frmhome.txtInfo.Text = (args)
    5.     Else
    6.        MsgBox (args)
    7.     End If
    8.    
    9. 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?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: flash and VB fscommand help

    This is just a guess, but try
    VB Code:
    1. frmhome.txtInfo.Text = frmhome.txtInfo.Text & args

  3. #3

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    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?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: flash and VB fscommand help

    Set the textbox Multiline property to True

    Select what type of scrollbars you want.

  5. #5

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    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?

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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:
    1. frmhome.txtInfo.Text = frmhome.txtInfo.Text & args & vbNewLine

  7. #7

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Re: flash and VB fscommand help

    That works, thanks alot!
    He who never made a mistake never made a discovery?

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: flash and VB fscommand help

    Quote 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
  •  



Click Here to Expand Forum to Full Width